Closed rmnavz closed 1 year ago
You've just encountered a limitation of Sonarr. Specifying :org
is only supported on Radarr (the last time I checked Sonarr it didn't have that capability.) I do document this in my README.
I'll check again, though.
What's happening is that you're effectively selecting no audio tracks. This is evidenced by the AudioKeep: ,
text on the first log entry and Keeping last audio track
on the fourth log entry. However, I do think my script could handle this situation better. Let me think on that.
For your purposes, please discontinue the use of :org
in Sonarr. Either create a Language Profile with the specific language(s) you want to keep, or use a wrapper with all possible languages. Something like:
#!/bin/bash
. /usr/local/bin/striptracks.sh --audio :ara:bul:zho:chi:ces:cze:dan:nld:dut:eng:fin:fra:fre:deu:ger:ell:gre:heb:hin:hun:isl:ice:ita:jpn:kor:lit:nor:pol:por:ron:rom:rus:spa:swe:tha:tur:vie:und --subs :eng:und
Inelegant, but I don't have a better way right now. (See issue thecaptain989/striptracks#42 for some additional background.)
I've just pushed a new version that adds more warning messages, and will not exit if the code evaluates to selecting no audio languages.
Hi @TheCaptain989, thank you for quickly responding and attending to this appreciate it big time.
Will try to create a separate wrapper for sonarr without using org tag language.
btw if I use jpn (or any specific languages) tag for audio will it keep both audio for main audio track and commentary track?
or does it only keep 1 of the specified languages?
No problem.
It will keep all tracks that match the language(s) you specify. In your example, if you specify --audio :jpn
both tracks would be kept.
I'm currently having issue with a series on sonarr that have actual audio (audio track 1) and commentary (audio track 2). I'm wondering if there is a way to keep both.
I'm running this custom wrapper as I wanted it to run on every series I have in sonarr that have american, chinese, japanese, anime and more. so I used keep original audio.
this is the logs for specific issue that it's keeping only the commentary audio and original audio subtitle.
Note: for now I imported this specific season by disabling striptracks as I wanted all that it have mostly. but if I plan to import more BD disks that have commentary in them,
I checked also on using tags but might be an issue as I mostly pull from lists like trakt and anilist. and language might vary. and checking them 1 by 1 would be an issue as family member also uses lists, and only have access to adding shows to lists.