Empty NZB file when RSS feed has escaped ampersand &

Report & discuss bugs found in 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
paperreader
Newbie
Newbie
Posts: 1
Joined: January 2nd, 2015, 3:35 am

Empty NZB file when RSS feed has escaped ampersand &

Post by paperreader »

Using sabnzbd 0.7.20 on Windows 8.1, and the RSS feed / download works for most of my index sites. However, for one particular site, the link in the RSS feed doesn't work when the NZB is added manually. However, the same link, if the & is unescaped to &, the NZB can be manually added via "Add NZB" URL. Also, the same escaped URL can be pasted into a browser and be successfully reached.

Here is the log with some info masked:

Code: Select all

2015-01-01 23:30:21,022::INFO::[__init__:513] Fetching https://somewhere.net/getnzb/xxx6ca54fcexx74fd3.nzb&i=xxxx&r=xxxx&del=1
2015-01-01 23:30:21,022::INFO::[nzbqueue:218] Saving queue
2015-01-01 23:30:21,022::INFO::[__init__:919] Saving data for queue9.sab in C:\Users\auser\AppData\Local\sabnzbd\admin\queue9.sab
2015-01-01 23:30:21,552::INFO::[urlgrabber:116] Grabbing URL https://somewhere.net/getnzb/xxx6ca54fcexxxx74fd3.nzb&i=xxxx&r=xxxx&del=1
2015-01-01 23:30:22,569::INFO::[misc:811] Creating directories: D:\incomplete\xxxxca54fcexxxxxx
2015-01-01 23:30:22,569::WARNING::[nzbstuff:744] Empty NZB file xxx8f0441bxxx.nzb&i=xxxx&r=xxxx&del=1.nzb [https://somewhere.net/getnzb/xxxce5xxxx.nzb&i=xxx&r=xxxx&del=1]
If I modify the problematic URL with & and replace all instances with & (i.e. unescape the &), the sabnzbd is able to download the file.

Are there any switches that allow unescaping of the ampersand in the URL? Is it possible to modify rss.py?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Empty NZB file when RSS feed has escaped ampersand &

Post by shypike »

From what source do these URLs come from?
It looks to me like the RSS content is incorrect.
Post Reply