-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove audio by language Plugin #39
Comments
I like that text input and being able to add in a comma-separated list of languages. As my library also has several files with English tracks that are listed as UND or unknown, I would say just skip those ones. That way we still have sound in the file. As for the containers that do not define what language it is, I haven't dealt with them in the past, so I'm not really certain how those might need handling. |
I started writing this plugin tonight. As I was almost done I realised... Why not have a comma separated list of streams that you want removed? Would that work? That is much safer. And you can run it against your library safely as many time as you like. For example, you add 'fr' to remove all French language streams. Then, after processing your whole library, you find you have a bunch of Japanese streams, so you edit the plugin config and save it as 'fr,jp'. Now you run your library scan again and it removes all Japanese streams and also removes French streams for any newly added files. |
That does sound a bit safer to me. I do like the idea and would be happy to add the languages I'm good with it deleting. |
@Josh5 not sure if you had more to do with this plugin, but I ran it against my library and it did the job well. Just a heads up in the event you would like to close this one. |
Ah. Yes, thanks. |
Just a quick note that there is a bug in the plugin. If you specify "hi" (Hindi) to be removed, it will also remove "chi" (Chinese) audio due to a partial match of that string. You may also wish to build in a safety measure to only remove languages under the condition that a certain language is present (in most cases, English). Right now the plugin is capable of stripping the final language from a file in cases where 99% of your library in in English but you have a handful of 'foreign' movies, for example. Maybe a "don't strip audio if it's the final remaining audio track" option would be a good one? |
Hiya! Thank you for adding this plugin to the repo, and it seems to work great! I do have a feature request specifically for it if I could, though. Could we get a negation switch? IE: only keep the languages specified? Ditto for subtitles if possible, too! Now that I'm asking... I'll see if I have the ability to add it myself and make a PR if you don't/won't to add this/these, ha! |
Looking for a list of all the language codes supported, but can't find a ISO that treats japanese as "jp" so I dont really know what to write. I second that being able to negate would be a much better option! I just need english, swedish and undefined. Would be a lot easier! Thanks! :) |
I would like a plugin that can remove any audio track that is not a specified language.
If English is selected only keep English audio tracks.
If English, Spanish is selected only keep English and Spanish audio tracks etc.
The same would be nice for subtitles as well.
The text was updated successfully, but these errors were encountered: