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
My own feed stop working... 0.6.12
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Re: My own feed stop working... 0.6.12
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
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
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.
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
Fixed in 0.6.14