[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
OS or Distro: Ubuntu

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

Postby aristidesfl » Mon Jul 09, 2012 2:12 pm

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/viewtopic.php?f=4&t=215&p=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 4187 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.

Postby dupko » Tue Aug 07, 2012 8:12 am

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/viewtopic.php?f=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
OS or Distro: Ubuntu

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

Postby aristidesfl » Tue Aug 07, 2012 3:14 pm

It works for me. Try again, maybe the site was down.

jlatour88
Member
Member
Posts: 10
Joined: Sun Aug 19, 2012 7:57 pm
OS or Distro: Ubuntu 12.04

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

Postby jlatour88 » Mon Aug 20, 2012 5:20 am

its also down for me as well

aristidesfl
New User
New User
Posts: 8
Joined: Sat Jul 07, 2012 4:46 am
OS or Distro: Ubuntu

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

Postby aristidesfl » Mon Aug 20, 2012 4:53 pm

I've uploaded an updated attachment so now they should work.

jlatour88
Member
Member
Posts: 10
Joined: Sun Aug 19, 2012 7:57 pm
OS or Distro: Ubuntu 12.04

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

Postby jlatour88 » Tue Aug 21, 2012 12:18 am

awesome, thanks man

vood
New User
New User
Posts: 6
Joined: Fri Aug 24, 2012 8:16 am
OS or Distro: ubuntu server

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

Postby vood » Fri Sep 14, 2012 8:33 pm

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: 3184
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

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

Postby Cas » Fri Sep 14, 2012 10:47 pm

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
OS or Distro: ubuntu server

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

Postby vood » Sun Sep 16, 2012 10:01 am

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
OS or Distro: ubuntu server

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

Postby vood » Fri Sep 21, 2012 8:11 pm

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


Return to “Plugins”

Who is online

Users browsing this forum: No registered users and 2 guests