rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.36k stars 602 forks source link

Add ability to skip path checks if Deluge host and Headphones host differ #3195

Closed Xalaxis closed 7 months ago

Xalaxis commented 5 years ago

This resolves the following scenario:

Deluge host, move destination wanted "/volume1/destination/movedest"

Headphones host, Deluge host mapped "/volume1/destination -> /mnt/deluge"

In this case the Headphones host must use headphones.CONFIG.DOWNLOAD_TORRENT_DIR for comparison rather than headphones.CONFIG.DELUGE_DONE_DIRECTORY otherwise it will be looking in /volume1/, a path which isn't mapped locally. Temporarily, this patch just disables the path checks provided an advanced setting is enabled.

Fixes #3191

Xalaxis commented 5 years ago

Very open to edit suggestions, this is just my go-to attempt at solving the problem.