Unix based Script with Cygwin?
Posted: 01 Jan 2016, 21:39
Hello dear Filebot Community,
i'm trying to work out a script to automate the rename process for my tv shows.
I'm on Win 10 and Filebot 4.6.1 installed with the Win installer.
Now i found a script that should work for me but unfortunately it is written for a Unix based System but not for Windows.
Can you tell me what changes are needed to make this work on Windows ?
Here is my Script:
In the end this should automate in cooperation with sabnzbd. So when Sabnzbd finished the download Filebot should do the rest.
I hope u can help me i really appreciate any help
Greetings Veepas
i'm trying to work out a script to automate the rename process for my tv shows.
I'm on Win 10 and Filebot 4.6.1 installed with the Win installer.
Now i found a script that should work for me but unfortunately it is written for a Unix based System but not for Windows.

Can you tell me what changes are needed to make this work on Windows ?
Here is my Script:
Code: Select all
#!/bin/sh
BaseDir="Z:\video\SERIEN\"
DownloadFolderTVde="Z:\admin\download\complete"
Serie="{n.replaceAll(/[!?.]+\$/).replaceAll(/[\`´‘’ʻ]/, \"'\").replace(':',' -')}"
Titel="{t.replaceAll(/[!?.]+\$/).replaceAll(/[\`´‘’ʻ]/, \"'\").replace(':',' -')}"
setfacl -Rb "${DownloadFolderTVde}"
chown root:users "${DownloadFolderTVde}" -R
find "${DownloadFolderTVde}" -type d -exec chmod 775 {} +
find "${DownloadFolderTVde}" -type f -exec chmod 664 {} +
filebot -rename "${DownloadFolderTVde}" --db thetvdb --format "${BaseDir}/${Serie}/Staffel {s} DE + EN {vf}/${Serie} - {s00e00} - ${Titel}" -non-strict -r --override auto
filebot -script fn:cleaner "${DownloadFolderTVde}"
find "${BaseDir}" -type d -exec chmod 775 {} +
find "${BaseDir}" -type f -exec chmod 664 {} +
I hope u can help me i really appreciate any help
Greetings Veepas
