Page 1 of 1

Groovy & Filebot rename episodes under Windows

Posted: 06 May 2014, 18:36
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

Re: Groovy & Filebot rename episodes under Windows

Posted: 06 May 2014, 19:02
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.

Re: Groovy & Filebot rename episodes under Windows

Posted: 08 May 2014, 19:23
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?

Re: Groovy & Filebot rename episodes under Windows

Posted: 09 May 2014, 02:09
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.

Re: Groovy & Filebot rename episodes under Windows

Posted: 09 May 2014, 15:21
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