Skip to content

Commit

Permalink
file-naming: More text replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlendea committed Jun 16, 2023
1 parent d5b120f commit 91f2f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plex-video-optimiser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ OUTPUT_FILE_NAME=$(echo "${OUTPUT_FILE_NAME}" | sed 's/[-\ \.]*\(AVC\|D[o]*V[i]*
OUTPUT_FILE_NAME=$(echo "${OUTPUT_FILE_NAME}" | sed 's/[-\ \.]*\(Amazon\|AMZN\|ATVP\|Disney\|DSNP\|Vimeo\|[Ww][Ee][Bb]\(-DL\)*\|WEBRip\)//g')
OUTPUT_FILE_NAME=$(echo "${OUTPUT_FILE_NAME}" | sed 's/[-\ \.]*\(Extended Edition\|Extended\)//g')
OUTPUT_FILE_NAME=$(echo "${OUTPUT_FILE_NAME}" | sed 's/[-\ \.]*\(REPACK\|Remux\|REMUX\|RoSubbed\)//g')
OUTPUT_FILE_NAME=$(echo "${OUTPUT_FILE_NAME}" | sed 's/[-\ \.]*\(AC3\|AAC2\.0\|Atmos\|DTS-MA\|DTS-X\|DTS\|HD[-\ \.]MA\|LPCM\|DD+\|DD[P]*[\.]*[567]\.1\|DTSX\|FLAC[-\ \.][567]\.1\|TrueHD\|[567]\.1\)//g')
OUTPUT_FILE_NAME=$(echo "${OUTPUT_FILE_NAME}" | sed 's/[-\ \.]*\(AC3\|AAC2\.0\|Atmos\|DDP2\.0\|DTS-MA\|DTS-X\|DTS\|HD[-\ \.]MA\|LPCM\|DD+\|DD[P]*[\.]*[567]\.1\|DTSX\|FLAC[-\ \.][567]\.1\|TrueHD\|[567]\.1\)//g')
OUTPUT_FILE_NAME=$(echo "${OUTPUT_FILE_NAME}" | sed 's/[-\ \.]*\(Director.s[. ]Cut\|Extended[. ]Edition\)//g')
OUTPUT_FILE_NAME=$(echo "${OUTPUT_FILE_NAME}" | iconv -f utf-8 -t ascii//translit)
OUTPUT_FILE_NAME=$(echo "${OUTPUT_FILE_NAME}" | sed 's@\(?\|!\|\\\|/\)@@g')
Expand Down

0 comments on commit 91f2f69

Please sign in to comment.