Add option to disable Recycle Bin use
It is sometimes desirable to keep the Radarr/Sonarr Recycle Bin configured, but to not have the script use it. Per @kennethsible
@kennethsible, I've added a --disable-recycle command line option.
If you feel like testing, please set your DOCKER MODS variable to DOCKER_MODS=thecaptain989/radarr-striptracks:develop and restart your container.
NOTE: I've only barely smoke tested the changes.
Once I've completed my own testing, I'll move to production.
@TheCaptain989 I tested the update today, and everything seems to be working properly. I checked the log /config/logs/striptracks.txt and confirmed that all unwanted subtitle tracks were removed. However, I don't see any indication of this in Sonarr by looking at the History page. Previously, it showed that the original file was replaced.
Thanks. Did the striptracks.txt log show two rescan events? Would you mind posting your log?
2025-05-16 13:48:00.5|[2991]Info|Using settings from environment variable.
2025-05-16 13:48:00.5|[2991]Info|Sonarr event: Download, Video: <video-path>.mkv, Size: 232.465M
2025-05-16 13:48:00.8|[2991]Warn|No languages found in any profile or custom format. Unable to use a
utomatic language detection.
2025-05-16 13:48:00.9|[2991]Info|Keeping audio tracks with codes 'eng,jpn,jpn,und' and subtitle trac
ks with codes 'eng,jpn'
2025-05-16 13:48:01.0|[2991]Info|Keeping audio track 1: jpn (AAC)
2025-05-16 13:48:01.0|[2991]Info|Keeping subtitles track 2: eng (SubRip/SRT)
2025-05-16 13:48:01.0|[2991]Info|Removing subtitles tracks: 3: ind (SubStationAlpha), 4: tha (SubSta
tionAlpha)
2025-05-16 13:48:01.0|[2991]Info|Kept tracks: 3 (audio: 1, subtitles: 1)
2025-05-16 13:48:02.0|[2991]Info|New size: 232.362M
2025-05-16 13:48:02.0|[2991]Info|Calling Sonarr API to rescan series
2025-05-16 13:48:03.0|[2991]Info|Calling Sonarr API to rescan series
2025-05-16 13:48:04.3|[2991]Info|Completed in 0m 4s
Thanks! I'm still performing my own testing, but this is what I expect to see.