Page 1 of 1

problem with 3 letters subs prefix

Posted: 09 Aug 2019, 07:18
by lukjod
What should be valid expression for calling subtitles download in pl and en language name, toget them as name.pl.srt and name.en.srt (and not default name.eng.srt) and code them in utf8. mine script is like this but i need to reedit part with "subtitles=pl,en" to somehow get as above.
if not possible its possible to call script on every file proceeded by filebox amc. how to rename only those to files for 2 letter lang.

Code: Select all

#!/bin/bash
export JAVA_OPTS=`free | awk -vm=1024 -vp=0.7 '/Mem:/ {printf "-Xmx%dm", ($2*p)/m; exit}'`    # set -Xmx to 0.7 of physical memory
/share/CACHEDEV1_DATA/.qpkg/filebot/bin/filebot.sh -script fn:amc "/share/CACHEDEV1_DATA/Download/transmission/completed" --output "/share/CACHEDEV1_DATA/Download" --log-file amc.log  --action copy --conflict override -non-strict --lang en --def minFileSize=50000000 artwork=y "subtitles=pl,en" plex=192.168.1.197:xxxxxxx [email protected]:xxxx [email protected] "excludeList=filebot_processed_files.txt" "musicFormat=Music/{n}/{t}" "seriesFormat=Series/{n}/Season {s.pad(2)}/{n} {s00e00} - {t}{subt}" "movieFormat=Movies/{n} ({y}) [{vf}, {ac}, {af}]/{n} ({y}){subt}"
chmod -R 777 /share/CACHEDEV1_DATA/Download/Movies/
chmod -R 777 /share/CACHEDEV1_DATA/Download/Series/

plese help

Re: problem with 3 letters subs prefix

Posted: 09 Aug 2019, 11:55
by rednoah
{subt} is the standard subtitle tag, so you will always get a 3-letter code, as specified by your format.

You could use {lang.ISO2} instead:

Code: Select all

{lang.ISO2}

Re: problem with 3 letters subs prefix

Posted: 09 Aug 2019, 14:44
by lukjod
thx, it works