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

Suggest, post, or discuss plugins for Deluge
aristidesfl
New User
New User
Posts: 8
Joined: Sat Jul 07, 2012 4:46 am

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

Post 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 7097 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
Last edited by aristidesfl on Tue Aug 21, 2012 8:26 am, edited 4 times in total.
dupko

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

Post 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:
Last edited by Cas on Tue Aug 07, 2012 6:24 pm, edited 1 time in total.
Reason: Please do not quote entire posts
aristidesfl
New User
New User
Posts: 8
Joined: Sat Jul 07, 2012 4:46 am

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

Post by aristidesfl »

It works for me. Try again, maybe the site was down.
jlatour88
Member
Member
Posts: 10
Joined: Sun Aug 19, 2012 7:57 pm

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

Post by jlatour88 »

its also down for me as well
aristidesfl
New User
New User
Posts: 8
Joined: Sat Jul 07, 2012 4:46 am

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

Post by aristidesfl »

I've uploaded an updated attachment so now they should work.
jlatour88
Member
Member
Posts: 10
Joined: Sun Aug 19, 2012 7:57 pm

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

Post by jlatour88 »

awesome, thanks man
vood
New User
New User
Posts: 6
Joined: Fri Aug 24, 2012 8:16 am

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

Post 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 ?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

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

Post 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.
vood
New User
New User
Posts: 6
Joined: Fri Aug 24, 2012 8:16 am

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

Post 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
vood
New User
New User
Posts: 6
Joined: Fri Aug 24, 2012 8:16 am

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

Post 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 ? :/
Post Reply