Page 1 of 1

My own feed stop working... 0.6.12

Posted: December 8th, 2011, 9:50 am
by CoDeX2k
Hello everyone,

I had an own feed for my two QNap NAS boxes in my office and home. So I always have the same content at both places. It worked really well until I upgraded to 0.6.12 which suddenly turned off my feeds... because of incompatiblity...

Here is the debug log:

2011-12-08 15:48:27,174::INFO::[rss:357] Traceback:
Traceback (most recent call last):
File "/share/MD0_DATA/.qpkg/SABnzbdplus/sabnzbd/rss.py", line 352, in run_feed
link, category = _get_link(uri, entry)
File "/share/MD0_DATA/.qpkg/SABnzbdplus/sabnzbd/rss.py", line 622, in _get_link
link = entry.enclosures[0]['href']
File "/share/MD0_DATA/.qpkg/SABnzbdplus/sabnzbd/utils/feedparser.py", line 236, in __getattr__
raise AttributeError, "object has no attribute '%s'" % key
AttributeError: object has no attribute 'enclosures'

What does it mean? How can I fix it?

Regards,
CoDeX2k

Re: My own feed stop working... 0.6.12

Posted: December 8th, 2011, 10:01 am
by CoDeX2k
I just compared the rss.py from 0.6.10 with 0.6.12 with the result that there is a else if missing or changed:

On line 616:
elif 'nzbindex.nl' in uri or 'nzbindex.com' in uri or 'animeusenet.org' in uri or 'nzbclub.com' in uri:
link = entry.enclosures[0]['href']
Is now:
else:


# Try standard link first
link = entry.link
if not link:
link = entry.links[0].href
if encl_sites(uri, link):
link = entry.enclosures[0]['href']

And there is a new function on the bottom:
_ENCL_SITES = ('nzbindex.nl', 'nzbindex.com', 'animeusenet.org', 'nzbclub.com')
def encl_sites(url, link):
""" Return True if url or link match sites that use enclosures
"""
for site in _ENCL_SITES:
if site in url or (link and site in link):
return True
return False

Re: My own feed stop working... 0.6.12

Posted: December 8th, 2011, 12:31 pm
by shypike
Always dangerous to fix things in mature app.
Can you PM me an URL to this feed?
Or if that would compromise your account, can you open it with browser and save it as an XML file and PM that?
(Or email to bugs at sabnzbd.org?)
With a bit of luck I can add a fix to the pending 0.6.13 release.

Re: My own feed stop working... 0.6.12

Posted: December 10th, 2011, 5:23 am
by shypike
Fixed in 0.6.14