problem with 3 letters subs prefix

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
lukjod
Posts: 35
Joined: 13 Jul 2014, 18:53

problem with 3 letters subs prefix

Post 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
User avatar
rednoah
The Source
Posts: 23449
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: problem with 3 letters subs prefix

Post 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}
:idea: Please read the FAQ and How to Request Help.
lukjod
Posts: 35
Joined: 13 Jul 2014, 18:53

Re: problem with 3 letters subs prefix

Post by lukjod »

thx, it works
Post Reply