Page 1 of 1
Easy Podcasting Plugin: Linking
Posted: Mon Feb 06, 2012 12:16 pm
by Lux
Hi,
the Easy Podcasting Plugin rewrites the links for media files.
First:
Sometimes this is not wanted. See
here, it should read "als MP4 and M4V" with the appropriate links.
Second:
This is the
original article showing buttons instead of filenames, the plugin changes it
this way. What can we do to see buttons (or any other text) instead of the filename.
Third (and last for now):
Sometimes the show notes contain links to external media files as well. What can be done with them, if we don't want them to be managed by the plugin. Maybe setting <a href="xyz" class="nopodcast"> would be an idea? Or even better, tell the plugin which domain contains the podcast content, "archiv.radiotux.de" in our case.
We want to go live by end of February. Any chance to get this solved till then?
Cheers
Dirk
Re: Easy Podcasting Plugin: Linking
Posted: Tue Feb 07, 2012 9:58 am
by garvinhicking
Hi!
The problem is that the original <a> content is not really easily fetchable and injectable. Using the filename is the only placeholder that currently is available to be placed, I believe.
The code currently matches all media file links, it's also quite hard (with regexps) to exclude specific classes.
So the short answer is: This is very hard to code and cannot be easily done. If you remind me in March/April, I might have enough time to look into this - for now, I personally cannot offer to work on this, since it would take a few hours that I currently do not have.
Maybe Grischa, who did much initial work, is willing to inspect this? He has some more knowledge on regexp matching due to his oEmbed-Plugin I bet!
Regards,
Garvin
Re: Easy Podcasting Plugin: Linking
Posted: Tue Feb 07, 2012 10:22 am
by Lux
Hi Garvin,
garvinhicking wrote:The problem is that the original <a> content is not really easily fetchable and injectable. Using the filename is the only placeholder that currently is available to be placed, I believe.
is it really that difficult to parse a <a href ...>xxx</a>?
garvinhicking wrote:The code currently matches all media file links, it's also quite hard (with regexps) to exclude specific classes.
In my opinion this is the wrong starting point. You configure in the plugin a list of file extensions to look at and only those should be considered by the plugin and this would only be matching "(ogg|mp3|xxx)$".
garvinhicking wrote:So the short answer is: This is very hard to code and cannot be easily done. If you remind me in March/April, I might have enough time to look into this - for now, I personally cannot offer to work on this, since it would take a few hours that I currently do not have.
Ok!
garvinhicking wrote:Maybe Grischa, who did much initial work, is willing to inspect this? He has some more knowledge on regexp matching due to his oEmbed-Plugin I bet!

Informed Grischa via Twitter.
In addition to that I like the podcasting plugin only to operate on files from predefined domains.
Cheers
Dirk
Re: Easy Podcasting Plugin: Linking
Posted: Tue Feb 07, 2012 11:27 am
by garvinhicking
Hi!
Until the plugin is enhanced you might want to use a URL link shortening service to shorten those links you don't want the podcast plugin to catch...
HTH,
Garvin
Re: Easy Podcasting Plugin: Linking
Posted: Wed Feb 08, 2012 5:59 am
by Lux
garvinhicking wrote:Until the plugin is enhanced you might want to use a URL link shortening service to shorten those links you don't want the podcast plugin to catch...
Yes, we will do that.
Cheers
Dirk
Re: Easy Podcasting Plugin: Linking
Posted: Wed Feb 29, 2012 11:54 am
by blog.brockha.us
As the example links don't work any more, I assume the problem is: You want to define what media link should be exchanged and what not.
I think the easiest solution would be: Add an option "Don't autoreplace html links (use [podcast:] only)".
This would leave the <a href> links as they are and would only expand the explicit [podcast: ..] syntax (what is not documented any more in the plugins configuration screen, I noticed a little surprised).
Would this be a working solution for this problem, Dirk?
Re: Easy Podcasting Plugin: Linking
Posted: Wed Feb 29, 2012 12:12 pm
by Lux
blog.brockha.us wrote:As the example links don't work any more, I assume the problem is: You want to define what media link should be exchanged and what not.
Ah, yes sure. We did the import several times to have it
like it is now.
blog.brockha.us wrote:I think the easiest solution would be: Add an option "Don't autoreplace html links (use [podcast:] only)".
This would leave the <a href> links as they are and would only expand the explicit [podcast: ..] syntax (what is not documented any more in the plugins configuration screen, I noticed a little surprised).
Would this be a working solution for this problem, Dirk?
Hi Grischa, thanks for the feedback.
This means every blog article has to be changed, if you consider using this option, which is bad in my opinion. I would like to go for a approach where media data that should not be displayed with the plugin will be marked separately.
Since only few articles contain links to media files in the show notes, it would be easier to change only them.
Maybe either with <a href="xyz" class="nopodcast"> or with [nopodcast: ...].
Cheers
Dirk
Re: Easy Podcasting Plugin: Linking
Posted: Sat Mar 10, 2012 8:36 pm
by blog.brockha.us
I added the possibility to exclude media links by CSS class:
http://t.co/fMYhhTRQ
Betatests are welcomed.

Re: Easy Podcasting Plugin: Linking
Posted: Mon Mar 12, 2012 9:59 am
by Lux
blog.brockha.us wrote:I added the possibility to exclude media links by CSS class:
http://t.co/fMYhhTRQ
Betatests are welcomed.

Hi Grischa,
many thanks. I will take a look, when I find the time.
Cheers
Dirk
Re: Easy Podcasting Plugin: Linking
Posted: Mon Mar 12, 2012 12:09 pm
by blog.brockha.us
Cool. I already put the patch into Spartacus, so others can test this, too.
Worked here, I hope it'll work everywhere else, too.

Re: Easy Podcasting Plugin: Linking
Posted: Wed Mar 14, 2012 9:00 am
by Lux
blog.brockha.us wrote:Cool. I already put the patch into Spartacus, so others can test this, too.
Worked here, I hope it'll work everywhere else, too.

Hi Grischa,
plugin installed. What is the preferred way to do it?
Code: Select all
<a href="link" class="nopodcast">Description</a>
Dirk
Re: Easy Podcasting Plugin: Linking
Posted: Wed Mar 14, 2012 12:44 pm
by blog.brockha.us
Yes, like that. If you use the class "nopodcast" it has to be configured like that in the plugins configuration.
Is it not working or why do you ask?
Re: Easy Podcasting Plugin: Linking
Posted: Wed Mar 14, 2012 12:58 pm
by Lux
blog.brockha.us wrote:Yes, like that. If you use the class "nopodcast" it has to be configured like that in the plugins configuration.
Sure
blog.brockha.us wrote:Is it not working or why do you ask?
I did not test yet.
Cheers
Dirk