I made it work kinda hacky on Windows, by using
wsl. Kind of amazing that
wsl can
co-run Linux
bash and Windows
cmd in the same command.
Had to change line ending on the file so it was
LF instead of
CRLF though.
This is my
qBittorrent execute line on Windows:
Code: Select all
wsl bash /mnt/m/Media/filebot-to-discord.sh filebot @/mnt/m/Media/filebot.conf --def "ut_label=%L" "ut_title=%N" "ut_dir=/mnt/m/Torrents/Plex/%N"
This is an example code run:
Code: Select all
wsl bash /mnt/m/Media/filebot-to-discord.sh filebot @/mnt/m/Media/filebot.conf --def "ut_label=Series" "ut_title=[SubsPlease] Boku no Hero Academia - 111 (1080p) [60B80680].mkv" "ut_dir=/mnt/m/Torrents/Plex/[SubsPlease] Boku no Hero Academia - 111 (1080p) [60B80680].mkv"
I did
enable the exit code 0 on line 34, since I only do single file processing through
qBittorrent, rest is through the FileBot GUI.
My FileBot AMC configuration you can see me calling in the execution code:
Code: Select all
-script
fn:amc
--log-file
/mnt/m/Media/filebot.log
--output
/mnt/m/Media/
--action
move
--conflict
skip
-non-strict
--apply
date
--filter
(age < 28 || !model.any{ it.age < 28 }) && !lines('''/mnt/m/Media/filebot.exclude''').contains(n)
--def
ignore=Completed
discord=WEBHOOK_URL
plex=127.0.0.1:TOKEN
movieFormat={anime || /Anime/ in genres == true ? 'Anime Films' : 'Movies'}/{ny.replaceAll(/[!?.`"]+/).replace(':','꞉')} [tmdb-{id}]/{fn.matchAll(/\[.+?\]/).first()} {ny.replaceAll(/[!?.`"]+/).replace(':','꞉')} [{vf}, {vc}{audioLanguages.size() > 1 ? ', Dual Audio' : null}]{'.'+lang}
seriesFormat={anime || /Anime/ in genres == true ? 'Anime' : 'Series'}/{n.replaceAll(/[!?.`"]+/).replace(':','꞉')} [tvdb-{id}]{episode.special ? '/Specials' : '/Season ' + s00}/{fn.matchAll(/\[.+?\]/).first()} {n.replaceAll(/[!?.`"]+/).replace(':','꞉')} - {s00}x{e00} [{vf}, {vc}{audioLanguages.size() > 1 ? ', Dual Audio' : null}]{'.'+lang}{' [' + absolute + ']'}
animeFormat=/mnt/m/Torrents/Plex/Failed/{fn.matchAll(/\[.+?\]/).first()} {primaryTitle.replaceAll(/[!?.`"]+/).replace(':','꞉')} - {e00}
Shana Project is set up to RSS download my files to
M:/Torrents/Plex/, my Plex files is for example at
M:/Media/Anime
I will work on making the embed look nicer personally.
(Image shows two runs, the first is normal one and the second shows it repeated, with the file now already existing.)
