[Noob] Needs help with setting up Utorrent

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
Tarrega
Posts: 5
Joined: 02 Dec 2019, 04:09

[Noob] Needs help with setting up Utorrent

Post by Tarrega » 02 Dec 2019, 17:28

I'd like to switch back to Utorrent. Though the coding(don't know what is called and apologize for my ignorance on the subject) for filebot seems to be basic; im getting lost without a GUI. I'm currently using the filebot-tool for deluge because I don't know how to implement what I need into the "run program" script in uTorrents options. Any help would be greatly appreciated.

Im using uTorrent 2.2.1

What I need it to do:

1) For Movies I would like to have implement features:
(All based on the label "Movies")
Expression: {n} ({y})/{n.upperInitial().space('.')}.{y}.{source}.{vc}{'-'+group}
Move files to: C:/Users/USERNAME/Videos/Movies
on conflict: "overwrite"


Extras Download subtitles (optional as my media server and subtitle scapper can take of this operation)

2) and Similar features for TV Shows based on the Label "TV Shows":
Scrape using TVDB Database
Expression: {n}/Season {s}/{n.space('.')}.{'s'+s.pad(2)}e{e.pad(2)}.{t.space('.')}.{vf}.{vc}.{ac}
Move files to: C:/Users/USERNAME/Videos/TV Shows
on conflict: "Auto"
Optional: sort by "air date"


Would this be hard to do. The multiple "by Label" thing is really getting me. I'm not even sure if what I wrote makes any sense.

(plex or Emby naming would be fine too; if someone already has one written)

Filebot Tool separates filebot expressions from handlers like this (specific to deluge?):

Code: Select all

{
  "file": 1, 
  "format": 1
}{
  "plugin_preferences": {}, 
  "auto_sort_rules": [
    [
      0, 
      "label", 
      "is exactly", 
      "Movies", 
      "Movies"
    ], 
    [
      1, 
      "label", 
      "is exactly", 
      "TV Shows", 
      "TV Shows"
    ]
  ], 
  "saved_handlers": {
    "Movies": {
      "episode_order": null, 
      "show_advanced": true, 
      "subs_language": "en", 
      "format_string": "{n} ({y})/{n.upperInitial().space('.')}.{y}.{source}.{vc}{'-'+group}", 
      "database": "TheMovieDB", 
      "encoding": "UTF-8", 
      "rename_action": "move", 
      "download_subs": true, 
      "query_override": "", 
      "language_code": "", 
      "output": "C:\\Users\\tarre\\Videos\\Movies", 
      "on_conflict": "override"
    }, 
    "TV Shows": {
      "episode_order": "airdate", 
      "show_advanced": true, 
      "subs_language": "en", 
      "format_string": "{n}/Season {s}/{n.space('.')}.{'s'+s.pad(2)}e{e.pad(2)}.{t.space('.')}.{vf}.{vc}.{ac}", 
      "database": "TheTVDB", 
      "encoding": "UTF-8", 
      "rename_action": "move", 
      "download_subs": true, 
      "query_override": "", 
      "language_code": "", 
      "output": "C:\\Users\\tarre\\Videos\\TV Shows", 
      "on_conflict": null
    }
  }, 
  "rename_dialog_last_settings": {
    "show_advanced": false, 
    "encoding": "UTF-8", 
    "rename_action": null, 
    "download_subs": false, 
    "query_override": null, 
    "language_code": null, 
    "handler_name": null, 
    "episode_order": null, 
    "database": null, 
    "format_string": null, 
    "subs_language": null, 
    "output": null, 
    "on_conflict": null
  }
}
and Handlers like this:

Code: Select all

{
  "file": 1, 
  "format": 1
}{
  "plugin_preferences": {}, 
  "auto_sort_rules": [
    [
      0, 
      "label", 
      "is exactly", 
      "Movies", 
      "Movies"
    ], 
    [
      1, 
      "label", 
      "is exactly", 
      "TV Shows", 
      "TV Shows"
    ]
  ], 
  "saved_handlers": {
    "Movies": {
      "episode_order": null, 
      "show_advanced": true, 
      "subs_language": "en", 
      "format_string": "{n} ({y})/{n.upperInitial().space('.')}.{y}.{source}.{vc}{'-'+group}", 
      "database": "TheMovieDB", 
      "encoding": "UTF-8", 
      "rename_action": "move", 
      "download_subs": true, 
      "query_override": "", 
      "language_code": "", 
      "output": "C:\\Users\\tarre\\Videos\\Movies", 
      "on_conflict": "override"
    }, 
    "TV Shows": {
      "episode_order": null, 
      "show_advanced": true, 
      "subs_language": "en", 
      "format_string": "{n}/Season {s}/{n.space('.')}.{'s'+s.pad(2)}e{e.pad(2)}.{t.space('.')}.{vf}.{vc}.{ac}", 
      "database": "TheTVDB", 
      "encoding": "UTF-8", 
      "rename_action": "move", 
      "download_subs": true, 
      "query_override": "", 
      "language_code": "", 
      "output": "C:\\Users\\tarre\\Videos\\TV Shows", 
      "on_conflict": null
    }
  }, 
  "rename_dialog_last_settings": {
    "show_advanced": false, 
    "encoding": "UTF-8", 
    "rename_action": null, 
    "download_subs": false, 
    "query_override": null, 
    "language_code": null, 
    "handler_name": null, 
    "episode_order": null, 
    "database": null, 
    "format_string": null, 
    "subs_language": null, 
    "output": null, 
    "on_conflict": null
  }
}

User avatar
rednoah
The Source
Posts: 16942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Noob] Needs help with setting up Utorrent

Post by rednoah » 02 Dec 2019, 18:07

The amc script should get you started, once you've got that set up and running, then you just plug in your custom formats, and pretty much done.


:!: You won't be able to have both --conflict auto and --conflict override for different categories. It's going to be either on or the other for all categories.
:idea: Please read the FAQ and How to Request Help.

Tarrega
Posts: 5
Joined: 02 Dec 2019, 04:09

Re: [Noob] Needs help with setting up Utorrent

Post by Tarrega » 03 Dec 2019, 03:48

Edit:
I guess the only questions I have is:

Do I need to change the "--action duplicate" to "--action move" in the amc script?

and do I need or can I paste the above code into a text file, change the file extension to...(???) and somehow call that script to work with Filebot

Should I make two text scripts for each of the codes above; one for Movies and one for TV Shows?

it can't all fit in the "run program" box in utorrent... Can it?

Does any of that make sense? That was an honest question lol.

Ignore ramblings below:
So can I just copy the text I have into a file and somehow call it from the AMC Script(minus the null info and conflict setting)? And the default AMC Script says "copy" instead of "move" files.

Do I need to build a custom AMC Script. The expressions make sense to me but the amc script has me baffled.

I don't know if I'm suppose to add the expressions to the end of the script and are appending "labels" to the torrents strictly part of Deluges' software; amc of custom expressions page. I can't seem to get started as I can't figure out even the smallest details of how to approach or where to write it.

Sorry, Im the worst of Noobs. Ive copied snippits and batch file codes online but I've never wrote anything, compiled or customized anything myself

It helps that the expressions are color coded lol. Sorry for rambling

Tarrega
Posts: 5
Joined: 02 Dec 2019, 04:09

Re: [Noob] Needs help with setting up Utorrent

Post by Tarrega » 03 Dec 2019, 04:25

@ Rednoah: I didn't notice you were the same coder writing all of the tutorials. Please don't waste your time with this post. Im reading the tutorials again. If I can't figure it out I'll just switch back to Deluge. No biggie. Thank you for all of your help.

But this might be a cool link for the deluge setup tutorial :)
https://github.com/Laharah/deluge-FileBotTool

User avatar
rednoah
The Source
Posts: 16942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Noob] Needs help with setting up Utorrent

Post by rednoah » 03 Dec 2019, 05:13

It's really just the few steps described here:
https://www.filebot.net/amc.html


:idea: Copy & paste & modify a little and you're done. At least for the first basic setup without your customizations, should take less than a minute.


:idea: uT has only one Run Command setting, so yes, it's only one command. ;)


:idea: You can't use --action move because the uT process may keep files open for seeding, so Windows may very likely prohibit the FileBot process from moving files. Use --action duplicate instead, as is default in all the examples, and make sure that input / output files are on the same drive, so that we can just hardlink.
:idea: Please read the FAQ and How to Request Help.

Tarrega
Posts: 5
Joined: 02 Dec 2019, 04:09

Re: [Noob] Needs help with setting up Utorrent

Post by Tarrega » 03 Dec 2019, 14:56

I'll give it a try. Thank you!

Post Reply