Page 2 of 2
Re: intelligently download PARs dont work
Posted: July 31st, 2013, 4:30 am
by dericvenra
I have verified that my issue is with the par2cmdline which was installed. My system is gentoo and the par2cmdline-0.4-r2.ebuild had a patch which only pertained to par2 wildcard expansion that only worked on creating par2 files, not verify nor repair. I have submitted a request to the gentoo to get this resolved for the ebuild.
on a side note if anyone wants info on required changes to par2cmdline i can add it.
Re: intelligently download PARs dont work
Posted: August 3rd, 2013, 5:40 am
by moneytoo
shypike wrote:It looks like this is a platform specific issue.
The trailing blabla/* means "all files in folder blabla".
For some reason the par2 program (or shell) on your NAS expands this to include the __ADMIN__ folder.
Windows, OSX and Ubuntu do not have this problem.
Alternatively it could be a side-effect from a missing primary par2 file.
I'm not sure, but I currently do not have the time to delve deeper into this.
I'm facing the same issue on my NAS due to __ADMIN__ directory being included. However to me it seems really like a bug because:
a) * matches all files and directories
b) wildcards are replaced by shell before passing to application (checked by printing args in main() of compiled par2 on NAS)
Since par2 is able to process wildcards on its own, it can be worked around by passing escaped wildcards. It worked if I replaced the last parameter path/* with "path/\*"
Another thing I don't understand. As you wrote, par2 from Ubuntu repo works fine. However If I download par2 source, apply Ubuntu patches and compile, using wildcard doesn't work. I have no idea why.
Re: intelligently download PARs dont work
Posted: August 3rd, 2013, 5:49 pm
by Orionos
Same thing here on my Gentoo, the usage of the wildcard cannot handle directories of any kind. As soon as I (re)move the ADMIN directory, it works fine.
Since the multicore version works fine, is there any way to make SAB look into a specific folder for a binary?
I'd rather not have to replace the /usr/bin/par2 executable only to have it replaced again at the next repository update.
Re: intelligently download PARs dont work
Posted: August 4th, 2013, 12:11 pm
by Thom-
To anyone using sabnzbd on Synology: The SynoCommunity package fixes this problem now.
They fix it with this code snipped:
https://github.com/SynoCommunity/spksrc ... 893897fd24
Works perfect on my system now
no need to downgrade.