Page 1 of 3

[Script] Filebot auto rename, categorize, subtitle, artwork

Posted: Mon Jul 09, 2012 2:12 pm
by aristidesfl
Hi, just made a script to run FileBot (http://filebot.sourceforge.net/) when downloads complete.
It wraps around a script made by rednoah for utorrent (http://filebot.sourceforge.net/forums/v ... 1561#p1561).

This is what it will do for you every time a download is complete:

0. Select torrents with whitelisted labels
1. Unrar archives
2. Group movies and episodes and then handle them seperately (auto-detect episode-vs-movie file)
3. Fetch subtitles and transcode to SubRip/UTF-8
4. Copy and Organize episodes and movies into folders and rename files properly
* Movies will be sorted into $output/Movies/Name (Year)/Name (Year) [CDN].ext
* TV Shows will be sorted into $output/TV Shows/Name/Season N/Name - S00E00 - Title.ext
5. Fetch artwork and generate .nfo files
6. Notify XBMC/Plex to rescan it's video library
7. Growl notifications

Download scrips:
delugeScripts.tar.gz
(9.94 KiB) Downloaded 6889 times
You have to give them executable permissions, edit the options inside and add it to the execute plugin on Deluge.

Let me know if something doesn't work, and enjoy ;)

Notes:
* If you have installed 32-bit Java you will need a 32-bit FileBot install for 7zip and MediaInfo integration to work
* If you don't use XBMC then notifying XBMC will just fail silently and not affect anything
* If you use more than one XBMC you can specify multiple hosts or ips like this -Xxbmc=host1,host2,host3,etc
* Use --conflict fail to make the script terminate on any conflicts or failures rather than gracefully ignore these errors and continue
* Using --action symlink|keeplink|hardlink requires admin priviledges so you'll need to run µTorrent as admin
* Using --action keeplink won't work because µTorrent has a known bug that prevents it from opening and seeding symbolic links
* fn:name will automatically fetch the online script but you can also specify a local path to run your own customized scrip

Re: Filebot auto renaming, categorizing, subtitles, artwork.

Posted: Tue Aug 07, 2012 8:12 am
by dupko
aristidesfl wrote:Hi, just made a script to run FileBot (http://filebot.sourceforge.net/) when downloads complete.
It wraps around a script made by rednoah for utorrent (http://filebot.sourceforge.net/forums/v ... 4&t=5#p802).
Link doesnt work ;/ its loading for 5 minutes :roll:

Re: Filebot auto renaming, categorizing, subtitles, artwork.

Posted: Tue Aug 07, 2012 3:14 pm
by aristidesfl
It works for me. Try again, maybe the site was down.

Re: Filebot auto renaming, categorizing, subtitles, artwork.

Posted: Mon Aug 20, 2012 5:20 am
by jlatour88
its also down for me as well

Re: Filebot auto renaming, categorizing, subtitles, artwork.

Posted: Mon Aug 20, 2012 4:53 pm
by aristidesfl
I've uploaded an updated attachment so now they should work.

Re: Filebot auto renaming, categorizing, subtitles, artwork.

Posted: Tue Aug 21, 2012 12:18 am
by jlatour88
awesome, thanks man

Re: [Script] Filebot auto rename, categorize, subtitle, artw

Posted: Fri Sep 14, 2012 8:33 pm
by vood
Hi, I didnt know filebot before, and what you did seems very interesting, so I tried to use it but I dont know what to add to the execute plugin ?

Re: [Script] Filebot auto rename, categorize, subtitle, artw

Posted: Fri Sep 14, 2012 10:47 pm
by Cas
vood wrote:so I tried to use it but I dont know what to add to the execute plugin ?
I would assume, looking at the archive files, you would use the completed script, make sure it is executable and that Deluge has been restarted.

Re: [Script] Filebot auto rename, categorize, subtitle, artw

Posted: Sun Sep 16, 2012 10:01 am
by vood
thanks for your time but I guess I found out why it is not working:

Code: Select all

from deluge.ui.client import client
And as Im running deluge daemon on a seedbox it wont work:

Code: Select all

[WARNING ] 11:30:56 core:116 [execute] command '/home/deluge/deluge.py' failed with exit code 1
[WARNING ] 11:30:56 core:120 [execute] stderr: Traceback (most recent call last):
  File "/home/deluge/deluge.py", line 27, in <module>
    from deluge.ui.client import client
  File "/home/deluge/deluge.py", line 27, in <module>
    from deluge.ui.client import client
ImportError: No module named ui.client
am I right ? :o

Re: [Script] Filebot auto rename, categorize, subtitle, artw

Posted: Fri Sep 21, 2012 8:11 pm
by vood
I thought I couldnt run this script because it was for gtk deluge and not console, but Im wrong.
Some people had the same problem with flexget and virtualenv, but Im not using virtualenv.
The only thing I did was to move my deluge directory and its conf files but I dont know if its linked.
Any idea ? :/