Rename artwork file
Posted: 26 Feb 2016, 13:46
Hi guys,
I've just started to use FileBot and it's amazing for matching with my showRSS and Transmission. My problem is I know nothing about scripting like rename and get only 1 file from artwork. I have tried to rename but it seems to get the name from TVDB. Please help.Below is my script.
get poster.jpg , ignore banner.jpg ,ignore fanart.jpg,ignore tvshow.nfo, rename poster.jpg to Folder.jpg
did not include artwork when moving. Receive this error ' Ignore processed folder: /share/MD0_DATA/Multimedia/Transmission/RSS/Supergirl.S01E05.HDTV.x264-LOL[ettv]
No files selected for processing'
I've just started to use FileBot and it's amazing for matching with my showRSS and Transmission. My problem is I know nothing about scripting like rename and get only 1 file from artwork. I have tried to rename but it seems to get the name from TVDB. Please help.Below is my script.
Code: Select all
echo -en "`date` User `whoami` started the TV script.\n" >> /share/MD0_DATA/Multimedia/Transmission/LOGS/who_call_script.txt
echo -en "`which filebot`\n" >> /share/MD0_DATA/Multimedia/Transmission/LOGS/whichfile.txt
echo -en "`which java`\n" >> /share/MD0_DATA/Multimedia/Transmission/LOGS/whichfile.txt
/opt/bin/filebot -version > /share/MD0_DATA/Multimedia/Transmission/LOGS/version.log 2>&1
/opt/bin/filebot -script fn:sysinfo > /share/MD0_DATA/Multimedia/Transmission/LOGS/sysinfo.log 2>&1
/opt/bin/filebot -script fn:sysenv > /share/MD0_DATA/Multimedia/Transmission/LOGS/env.log 2>&1
/opt/bin/filebot -script fn:suball --lang en "/share/MD0_DATA/Multimedia/Transmission/RSS" --def maxAgeDays=14 --log all --log-file "/share/MD0_DATA/Multimedia/Transmission/LOGS/error.txt" > /share/MD0_DATA/Multimedia/Transmission/LOGS/out.txt 2> /share/MD0_DATA/Multimedia/Transmission/LOGS/err.txt
/opt/bin/filebot -script fn:artwork.tvdb /share/MD0_DATA/Multimedia/Transmission/RSS
/opt/bin/filebot -script fn:amc --action move -non-strict --def artwork=y "/share/MD0_DATA/Multimedia/Transmission/RSS" --def "seriesFormat=/share/MD0_DATA/Multimedia/TV Series/{n}/{'Season ' +s.pad(2)}/{n} - {s00e00} - {t}" --def excludeList=/share/MD0_DATA/Multimedia/Transmission/LOGS/TV.txt
/opt/bin/filebot -script fn:cleaner "/share/MD0_DATA/Multimedia/Transmission/RSS"
Code: Select all
/opt/bin/filebot -script fn:artwork.tvdb /share/MD0_DATA/Multimedia/Transmission/RSS
Code: Select all
/opt/bin/filebot -script fn:amc --action move -non-strict --def artwork=y "/share/MD0_DATA/Multimedia/Transmission/RSS" --def "seriesFormat=/share/MD0_DATA/Multimedia/TV Series/{n}/{'Season ' +s.pad(2)}/{n} - {s00e00} - {t}" --def excludeList=/share/MD0_DATA/Multimedia/Transmission/LOGS/TV.txt
No files selected for processing'