Skip to content

Commit

Permalink
fixed issues mentioned in the pull request validation
Browse files Browse the repository at this point in the history
  • Loading branch information
cpadil committed Apr 16, 2024
1 parent c6cffb9 commit 2296312
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions Community/Tdarr_Plugin_cp92_clean_audio_subtitles.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,31 @@ const details = () => ({
Name: 'Clean audio and subtitle streams',
Type: 'Audio',
Operation: 'Transcode',
Description: `This plugin is a combination of other plugins to clean the audio and subtitle streams. No video transcoding happens here.
For AUDIO streams, it will look for the original language in Radarr/Sonarr or TMDB to KEEP it,
it will also keep any additional audio stream based on the parameter audio_language (ISO-639-2), and it will remove the rest, including commentary audio stream.
For SUBTITLE streams, it will keep subtitles based on the parameter subtitle_language (ISO-639-2) and remove based on the parameter subtitle_codecs (e.g. hdmv_pgs_subtitle).
Description: `This plugin is a combination of other plugins to clean the audio and subtitle streams.
No video transcoding happens here. For AUDIO streams,
it will look for the original language in Radarr/Sonarr or TMDB to KEEP it,
it will also keep any additional audio stream based on the parameter audio_language (ISO-639-2),
and it will remove the rest, including commentary audio stream.
For SUBTITLE streams, it will keep subtitles based on the parameter subtitle_language (ISO-639-2)
and remove based on the parameter subtitle_codecs (e.g. hdmv_pgs_subtitle).
If the subtitle_language is left empty, it will remove all subtitles.
If a subtitle is found with a codec specified in the parameter subtitle_codecs it will be removed regardless of the parameter subtitle_language.`,
If a subtitle is found with a codec specified in the parameter subtitle_codecs
it will be removed regardless of the parameter subtitle_language.`,
Version: '1.0',
Tags: 'pre-processing,configurable,ffmpeg,audio,subtitle',
Inputs: [
{
name: 'audio_language',
type: 'string',
defaultValue: '',
inputUI: {
type: 'text',
},
tooltip:
'Input a comma separated list of ISO-639-2 languages. It will still keep English and undefined tracks.'
+ '(https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes 639-2 column)'
+ '\\n Example:\\n '
+ 'nld,nor',
name: 'audio_language',
type: 'string',
defaultValue: '',
inputUI: {
type: 'text',
},
tooltip:
'Input a comma separated list of ISO-639-2 languages. It will still keep English and undefined tracks.'
+ '(https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes 639-2 column)'
+ '\\n Example:\\n '
+ 'nld,nor',
},
{
name: 'priority',
Expand Down

0 comments on commit 2296312

Please sign in to comment.