[Edit: Saw your answer just now, sorry! ZDF plugin is working, found the problem with these loggging settings and the standalone debugging instructions from the wiki]
...finally got it to work...
I had set the "Max number of feed items to retrieve" to unlimited, which sets
- Code:
maxItemsToRetrieve = -1
This made the item list size always larger than
which made the extractItems function not loop over the found URLs.
I attached a new version which will extract all available items when set to unlimited (watch out...
). I also extended the buildItem function to append the extracted date to the item titles (useful for e.g. Tagesschau items, and also some Tatorts which have no date in their main title).
Hope this may also help a few others
And thanks again to Physikus for this very useful plugin!
Cheers,
Bitmaster
PS: Here's a diff:
- Code:
2d1
< import org.apache.commons.lang.StringUtils
112c111
< for (def i = 0; i < matcher.getCount() && list.size() < maxItemsToRetrieve | maxItemsToRetrieve == -1; i++) {
---
> for (def i = 0; i < matcher.getCount() && list.size() < maxItemsToRetrieve; i++) {
130c129
< if (list.size() < maxItemsToRetrieve | maxItemsToRetrieve == -1) {
---
> if (list.size() < maxItemsToRetrieve) {
204,206d202
< // extract date from subtitle and append to item title
< def date = StringUtils.left(matches[4].toString(), 10)
< title += ", " + date