linuxserver / docker-sabnzbd

GNU General Public License v3.0
266 stars 66 forks source link

[FEAT] Use 7zip instead of p7zip #166

Closed woiza closed 1 year ago

woiza commented 1 year ago

Is this a new feature request?

Wanted change

Please use 7zip instead of p7zip

Reason for change

Proposed code change

apk add 7zip

github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

aptalca commented 1 year ago

That package is not available in alpine 3.16, but we'll consider switching during a rebase

woiza commented 1 year ago

Thanks, much appreciated.

aptalca commented 1 year ago

My main reservations are:

If you can find out about the second point above and confirm that it would work, that would save us a lot of time and speed up the rebase and switch

woiza commented 1 year ago

According to Safihre's answer in this thread, sabnzbd uses 7zip for zips: https://www.reddit.com/r/SABnzbd/comments/qm2bna/how_to_make_sabnzbd_use_7zip_to_unpack_everything/

Source includes 7zip (at least for Windows): https://github.com/sabnzbd/sabnzbd/archive/3.7.2.zip

Besides, nzbget mentions 7zip in its configuration documentation and sabnzbd and nzbget pretty much do the same thing. Nzbget UI --> Settings --> UNPACK --> SevenZipCmd:

Full path to 7-Zip executable.
Example: /usr/bin/7z.
Similar to option [UnrarCmd] this option can also include extra switches.
If 7-Zip binary is in your PATH you may leave the path part and set only the executable name ("7z" or "7za" on POSIX or "7z.exe" on Windows).

I tested it succesfully with the following file: https://raw.githubusercontent.com/sanderjo/NZBs/master/reftestnzb-7z-instead-of-rar-ea5b7e8fcddd.nzb which I got from this issue: https://github.com/sabnzbd/sabnzbd/issues/1305

For my test I used a "custom" nzbget image based on your work (sorry, I don't use sabnzbd yet): https://github.com/linuxserver/docker-nzbget/compare/master...woiza:docker-nzbget:unrar-neon