So I have been using filebot for quite some time on my windows machine just to manually drag, drop, rename movies and tv shows and its made me happy.
Over the past couple of days I have now setup a Linux (ubuntu) machine which i control via ssh from my windows machine. (i'm new to linux and have had a lot of help). I have everything installed and running except my script only extracts the files from the rar, and moves them into the designated folder. What it is not doing is renaming them according to TheTVDB or MovieDB depending on the type of file. No i'm sure the reason is because i am butchering up the script so I need some help please.
so i was looking at some older links on these boards where i would use this, but with a warning not to use it above (at least how i understood it). this makes me think that the code goes out and finds thetvdb info or the moviedb info.
Code: Select all
filebot -script fn:watcher -extract -rename /home/administrator/Torrents/ --output /home/administrator/Torrents/Extracted --format "TV Shows/{n}/Season {s}/{n} {sxe} {t}" --db TheTVDB
filebot -script fn:housekeeping -extract -rename /home/administrator/Torrents/ --output /home/administrator/Torrents/Extracted --format "Movies/{n} {y}/{n} ({y}){" CD$pi"}" --db TheMovieDB
So this is currently what i have right now. I guess i could remove the music stuff i don't do music i have pandora and spotify.
Code: Select all
#!/bin/bash
TORRENT_ID=$1
TORRENT_NAME=$2
TORRENT_PATH=$3
filebot -script fn:amc --output "/home/administrator/Torrents/" --log-file amc.log --action duplicate --conflict override -non-strict --def ut_label=movie --def ut_label=tv --def ut_label=other --def music=y artwork=y "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"