Incompatible feed file (since upgrade to 2.3.6)

Get help with all aspects of SABnzbd
Forum rules
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.
Post Reply
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

Incompatible feed file (since upgrade to 2.3.6)

Post by OneCD »

Hello. :)

After the successful upgrade of SABnzbd from 2.3.5 to 2.3.6 on Debian 9.6, my custom RSS feed file is no longer accepted:

Code: Select all

2018-12-22 05:58:50,160::INFO::[rss:510] Starting scheduled RSS read-out for "my locally filtered feed"
2018-12-22 05:58:50,270::INFO::[rss:338] Incompatible feed file:///share/feed/output.rss
2018-12-22 05:58:50,274::INFO::[rss:339] Traceback: 
Traceback (most recent call last):
  File "/opt/sabnzbd/sabnzbd/rss.py", line 336, in run_feed
    link, infourl, category, size, age, season, episode = _get_link(entry)
  File "/opt/sabnzbd/sabnzbd/rss.py", line 651, in _get_link
    if entry.id and entry.id != link and entry.id.startswith('http'):
  File "/opt/sabnzbd/sabnzbd/utils/feedparser.py", line 416, in __getattr__
    raise AttributeError, "object has no attribute '%s'" % key
AttributeError: object has no attribute 'id'
My locally-built feed file has this basic layout:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>my RSS Feed</title>
      <item>
         <title>video title here</title>
         <link>nzb download link here</link>
         <category>assigned cat</category>
         <matched>filter match reason</matched>
         <size>blah GiB</size>
      </item>
   </channel>
</rss>
The recent changelog mentioned an RSS-related item. Is there something I should modify in my RSS file so SAB will accept it?

Thank you.
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Incompatible feed file (since upgrade to 2.3.6)

Post by safihre »

Damn, stupid basic python mistake.
Nothing wrong with your feed.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

Re: Incompatible feed file (since upgrade to 2.3.6)

Post by OneCD »

Ah, no worries. Thank you.

Is there any way I can patch my current version so it can read my feed again?
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

Re: Incompatible feed file (since upgrade to 2.3.6)

Post by OneCD »

I've applied the modified [rss.py] file in the 'develop' branch (as indicated here), and the feed is working again. Thank you. ;D

Any possibility of pushing that fix into the 'master' branch?

side-note: when I view a specific RSS feed details in SAB, Firefox (on my client PC) goes 100% CPU on a single thread for 15-20 seconds. The rest of the SAB UI is unresponsive during this time. Firefox 64.0 on Debian 9.6.
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Incompatible feed file (since upgrade to 2.3.6)

Post by safihre »

Weird, we use quite boring html and Javascript. No real fancy frameworks etc!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply