problem with 3 letters subs prefix
Posted: 09 Aug 2019, 07:18
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.
plese help
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