Groovy & Filebot rename episodes under Windows

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
lucbas
Posts: 4
Joined: 06 May 2014, 18:07

Groovy & Filebot rename episodes under Windows

Post by lucbas »

Hi community

First of all huge thanks to rednoah.
You're doing an awesome job here! I always recommend FileBot to all of my friends. Great product! :D

If have a RaspberryPi, which uses PyLoad & FlexGet to download and extract my series.
All files will be downloaded to the folder "Downloads" and get extracted with PyLoad (incl. password list) to the folder "Extracted".
The folders are on my windows server and connected over SMB/CIFS (due the limited SD card of the Pi).

I'm trying to automatically rename series on my Windows server.
(Later on I'll try to also get FlexGet running on the server)

For now it would be very cool, if I get Groovy running.
I saw on the CLI scripts page that there are 2 methods. The first method will receive file modification events and the second checks every 5 minutes the folder.
http://www.filebot.net/forums/viewtopic ... 4&t=5#p132
I don't exactly know which one is better, but I tend to use the first method. What do you think?

Then the other question is, how do I use groovy in this purpose? How do I have to set it up under windows?

The script which I'd like to use is following:

Code: Select all

filebot -rename /path --output /path --db thetvdb --lang de --format "{n}/{"Staffel $s"}/{s00e00} - {t}/{n} - {s00e00} - {t}"
filebot -script fn:cleaner /path --def "exts=jpg|nfo|etc" --def "terms=sample|trailer|etc"
Can I use it this way?

Thanks a lot for your help! :D
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Groovy & Filebot rename episodes under Windows

Post by rednoah »

The best thing would be if pyload would call the amc script on newly downloaded files.

Alternatively you can call the amc script on a schedule every once in a while (read the docs, output folder must not be input folder, must set exclude list, etc).

The scripts above will probably work just fine, but I don't find them as clean as running amc on a schedule.
:idea: Please read the FAQ and How to Request Help.
GamesGamble
Posts: 6
Joined: 08 May 2014, 19:13

Re: Groovy & Filebot rename episodes under Windows

Post by GamesGamble »

rednoah > Pyload dont support CTI on Windows actually so ExternalScripts dont working (tested)...

filebot -script fn:housekeeping -rename "E:\Downloads\media\EN_Complete" --output "E:\Downloads\media\EN_Series" --format "{n}/Season {s}/{s00e00} - {t}" --db serienjunkies --lang en -non-strict

thats my setting (The watcher Script dont working for me (He dont do anything on Windows) I´ve just setup two Pyloads for DE & EN Language und DE & EN FileBot Script) and configured the Filepaths using Symbolic Links from C:\Downloads to E:\Downloads because Pyload dont support Full Paths on Windows so when yours is in C:\Program Files (x86)\pyload u must use ......\Downloads\media\EN_Incomplete (Download Folder from Pyload) ......\Downloads\media\EN_Complete (Plugins>ExtractArchive) for doing this

Question to rednoah > This Script maked bad things on my windows... he dont moves the files in the output path he puts his on C:\Windows\System32\srt\{n}/Season {s}/{s00e00} - {t} I Dunno why she makes this... and some files are just vanished (Dont found them yet) is there some logs i can show where filebot puts the files?
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Groovy & Filebot rename episodes under Windows

Post by rednoah »

I suppose you run with from system32 which is where new cmd windows usually spawn. You can set --output to some absolute root path so the format get's resolved to that instead of whatever the working directory may be.
:idea: Please read the FAQ and How to Request Help.
GamesGamble
Posts: 6
Joined: 08 May 2014, 19:13

Re: Groovy & Filebot rename episodes under Windows

Post by GamesGamble »

hmm The vanished Files are not vanished, they are deleted and now I know what deletes it :D Pyload ExtractArchive deletes them, but dunno why
Post Reply