Importing an nzb file generated on a windows machine (for example via Binsearch) sometimes fails when SABnzbd is running on a unix (Linux in this case) host.
The issue can be solved by running dos2unix on the file, and importing it again.
Steps to reproduce:
1. Generate an nzb file on windows. For example, generate an nzb file using www.binsearch.info in Mozille Firefox running on windows.
2. Load this file into SABnzbd. For example, save it in the incoming nzb directory.
Result: The file will not appear in the queue and the logfile will show the following:
2007-08-14 22:58:45,261::ERROR::[nzbstuff] Trying to fix blablabla.nzb (will take some time)
Traceback (most recent call last):
File "/opt/SABnzbd-0.2.5/sabnzbd/nzbstuff.py", line 329, in __init__
root = XML(nzb)
File "<string>", line 85, in XML
SyntaxError: not well-formed (invalid token): line 674, column 80
2007-08-14 22:58:46,600::ERROR::Error importing
Traceback (most recent call last):
File "/opt/SABnzbd-0.2.5/sabnzbd/misc.py", line 81, in run
self.d, data))
File "/opt/SABnzbd-0.2.5/sabnzbd/nzbstuff.py", line 336, in __init__
root = XML(nzb)
File "<string>", line 85, in XML
SyntaxError: not well-formed (invalid token): line 674, column 80
Workaround: do a dos2unix on the file, and load it again:
$ dos2unix blablabla.nzb blablabla.nzb
The file will now be accepted.