l3uddz / plex_autoscan

Script to assist sonarr/radarr with plex imports. Will only scan the folder that has been imported, instead of the whole library section.
GNU General Public License v3.0
397 stars 70 forks source link

Allow for scan arguments in External Commands #161

Closed jolbol1 closed 2 years ago

jolbol1 commented 3 years ago

This PR allows for the arguments of the scan process to be used in external commands, allowing for more complex ones.

The scan argument are: config, lock, path, scan_for, section scan_type, resleep_paths, scan_title, scan_lookup_type, scan_lookup_id

You can use these in external commands by using a % before the argument you want as follows:

"RUN_COMMAND_BEFORE_SCAN": "echo %config %lock %path %scan_for %section %scan_type %resleep_paths %scan_title %scan_lookup_type %scan_lookup_id",

saltydk commented 2 years ago

Can you rebase this against develop?