Generic ContentURLContainer plugin for dynamic web scripts
I am looking for a plugin that is basically capable of receiving a set of ContentURLContainer objects from a dynamic web script. This way, a web script can be used to harvest the required data, which should be a lot faster (since it can be hosted on a fast web server) if many more HTTP requests are required to construct content URLs etc. In contrast to LiveFeeds, this approach allows all ContentURLContainer parameters to be specified by the web script instead of just some.
An RSS feed could look something like this:
- Code:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Folder name here ...</title>
<pubDate>...</pubDate>
<item>
<title>Here be dragons!</title>
<expiresImmediately>1</expiresImmediately>
<live>1</live>
<contentUrl>rtmp://...</contentUrl>
<cacheKey>27821ea227782eed16e5b7062874d944</cacheKey>
<link>http://27821ea227782eed16e5b7062874d944</link>
</item>
<item>
[...]
</item>
</channel>
</rss>
The extractorMatches method would either have to identify a magic string (like LiveFeeds does) or an URL prefix like
The extractUrl method would have to extract the parameters from the RSS feed and turn them into appropriate Java types and return the resulting ContentURLContainer object.
I would appreciate if
- someone could look into this, commenting about whether this makes sense or not
- implemented the extractUrl method of the groovy plugin
Thanks,
wae3
