Page 2 of 42

Re: Fully Automated Media Center

Posted: 08 Sep 2012, 11:38
by ashfallen0
So, I'm liking the fully automated usage since my media server also runs PS3MS as a service, and the cleaner sorting is a bonus. I do need a little leading to the water so to speak, and here is why:

My current process:
I run utorrent with an RSS feed from showrss.kamorra.info, downloaded into a temp folder;
Utorrent dumps completed files into a "complete" folder;
PS3MS sees files and I watch TV.

I would like this process:
Utorrent loads RSS Feed;
Utorrent downloads tv shows;
Utorrent calls Filebot;
Filebot renames then moves/sorts files into "TV/NEW/{n} - {'S'+s.pad(2)}E{e.pad(2)} - {t} [{hpi}][{resolution} {vc}-{ac}]"
PS3MS sees files and I watch TV.

I have a problem with the second setup, and that is 3 of my favorite shows I would prefer them to use:
{n} - {airdate} - {t} [{hpi}][{resolution} {vc}-{ac}]
I don't know how to use the automation aspect of the utorrent.postprocess.groovy to choose only those 3 shows from herd and use a separate format?

Re: Fully Automated Media Center

Posted: 08 Sep 2012, 16:31
by bixtool
Hi,

I just discovered filebot and this script is exactly what i'm looking for.
One small problem: I don't save my tv series to a subfolder. They are saved by series name to the root of an external drive:

F:/Name/Season N/Name - S00E00 - Title.ext

This script uses:
$output/TV Shows/Name/Season N/Name - S00E00 - Title.ext

I guess I need:
$output/Name/Season N/Name - S00E00 - Title.ext

I've tried unsuccessfully to edit the script to remove the "TV Shows" folder but I don't understand the scripting language enough yet to make this simple change.

Can anyone help?

tks

Re: Fully Automated Media Center

Posted: 08 Sep 2012, 17:00
by rednoah
ashfallen0 wrote: I have a problem with the second setup, and that is 3 of my favorite shows I would prefer them to use:
{n} - {airdate} - {t} [{hpi}][{resolution} {vc}-{ac}]
I don't know how to use the automation aspect of the utorrent.postprocess.groovy to choose only those 3 shows from herd and use a separate format?
You can change the format in the script, just lookup the format parameter of the rename function. e.g. rename(..., format:'''...''', ...). Which files to process you can also easy adjust in the script by ignoring invalid files (which is already done for certain tags), just modify the forceIgnore(file) { ... } function.

Re: Fully Automated Media Center

Posted: 08 Sep 2012, 17:03
by rednoah
bixtool wrote:I've tried unsuccessfully to edit the script to remove the "TV Shows" folder but I don't understand the scripting language enough yet to make this simple change.
Find this snipped and remove TV Shows/

Code: Select all

format:'TV Shows/...

Re: Fully Automated Media Center

Posted: 08 Sep 2012, 19:42
by bixtool
Find this snipped and remove TV Shows/

Code: Select all

format:'TV Shows/...
Many thanks. I took a closer look at the error ouput and I discovered "filenotfound" errors. I had edited and renamed the script to test.groovy. That is why none of my edits worked earlier. Filebot was searching online for test.groovy. I added -script "path" and it worked mostly but htpc.groovy was not found. I did see it in the online script database. Can local scripts be included in the command line? I cannot find settings anywhere in the filebot program

Re: Fully Automated Media Center

Posted: 08 Sep 2012, 20:59
by sam829

Code: Select all

filebot -script "C:\Program Files\Filebot\watcher.groovy"
Just add the full path to 'watcher.groovy'.

Re: Fully Automated Media Center

Posted: 08 Sep 2012, 23:27
by bixtool
sam829 wrote:

Code: Select all

filebot -script fn:C:\Program Files\Filebot\watcher.groovy
Just add the full path to 'watcher.groovy'.
hi,
that doesn't seem to work for me on win 7.

This works:

Code: Select all

 filebot -script "c:/tv/test.groovy" 
Can I drop the 'fn:' and use the windows unc directory style somehow? 'c:\tv' instead of 'c:/tv'
It also appears I need " " around the path.

Re: Fully Automated Media Center

Posted: 09 Sep 2012, 00:25
by sam829
I fixed my original post. I had 100+ tabs open should payed closer attention.

Code: Select all

filebot -script "path/to/script.groovy" args...
http://filebot.sourceforge.net/cli.html

Re: Fully Automated Media Center

Posted: 09 Sep 2012, 00:54
by bixtool
Very sophisticated script. Works great. It may take some time to work out all the nuances, but it will be amazing.
Thanks for sharing rednoah!

Re: Fully Automated Media Center

Posted: 09 Sep 2012, 03:09
by rednoah
Well, there might still be some issues for some corner cases, but it should already be worked out mostly. It's a bit of collaborative effort, just let me know when things don't work as expected.

Re: Fully Automated Media Center

Posted: 09 Sep 2012, 03:16
by rednoah
bixtool wrote:Can I drop the 'fn:' and use the windows unc directory style somehow? 'c:\tv' instead of 'c:/tv'
It also appears I need " " around the path.
Read this:
http://filebot.sourceforge.net/forums/v ... f=4&t=5#p5

* filepath (slash/blackslash doesn't matter) or http url (only slash obviously)
* fn:name is for the default online scripts
* g:script is for inline scripts
* system:in is for piping the script into stdin

Note: Some scripts may include(...) other scripts. In that case the include name is resolved relatively, but you can write a local script and include online scripts via url or fn:name schemes.

Re: Fully Automated Media Center

Posted: 14 Sep 2012, 02:50
by greenythebeast
Is there anyway to make this work with Serviio?

Re: Fully Automated Media Center

Posted: 14 Sep 2012, 02:59
by rednoah
What's not working with serviio? Just initiating a rescan is plex/xbmc specific. If you find out how to do that with serviio I can add that.

Re: Fully Automated Media Center

Posted: 14 Sep 2012, 18:41
by bawng
Hi!
I first used this script yesterday and everything worked fine from uTorrent.
Today, however I got a new movie and I get this result:

Code: Select all

Parameter: xbmc = 192.168.0.13
Parameter: subtitles = y
Parameter: artwork = y
Parameter: ut_dir = C:\Users\XXXXX\Downloads\Unsorted\The.Cabin.In.The.Woods.2011
.720p.BluRay.x264-HDEX
Parameter: ut_file = h-citw720p.nfo
Parameter: ut_kind = multi
Parameter: ut_title = The.Cabin.In.The.Woods.2011.720p.BluRay.x264-HDEX
Parameter: ut_label =
Parameter: ut_state = 5
Notify XBMC: 192.168.0.13
Done ?(?????)?
and the movie isn't extracted or copied or anything.
The same happens if I use the manual command-line thingy.

Any ideas?

Thanx

Re: Fully Automated Media Center

Posted: 15 Sep 2012, 13:19
by rednoah
Looks like it can't find any archives or video files. What files are in that folder?

Re: Fully Automated Media Center

Posted: 16 Sep 2012, 18:26
by bawng
Rar files from .rar, r00, r01 ... r93 as well as an .nfo and an .sfv

Re: Fully Automated Media Center

Posted: 17 Sep 2012, 09:23
by rednoah
Tested with .rar, r00, r01 ... r93 and works perfectly fine. Latest FileBot with latest utorrent-postprocess definitely works as expected. Run some tests yourself to check what's wrong with the input or if you made some modifications that make it skip the extract() step.

Re: Fully Automated Media Center

Posted: 17 Sep 2012, 13:20
by bawng
For all other films I've tried, the script has worked perfectly, whether RARed or not.
I'm using the online script so I haven't made any changes.

I'm thinking that maybe it has something to do with the file path. Are there any know issues with spaces or too many characters or something?

Re: Fully Automated Media Center

Posted: 17 Sep 2012, 15:29
by rednoah
Send me the full paths to all the files and I'll try to recreate it? There shouldn't be any problems with perfectly normal input data like this.

PS: You can easy copy files names into the clipboard / text file via List panel (kinda like ls > files.txt)

Re: Fully Automated Media Center

Posted: 18 Sep 2012, 01:42
by mikzr
Hi, I don't know why but mine has stopped fetching artwork, I've tried --def artwork=y and artwork=true to no avail from cmdline usage

Good work btw, I'm glad I found this software

Re: Fully Automated Media Center

Posted: 18 Sep 2012, 03:16
by rednoah
--def artwork=y should work. What's the console output? Maybe it just says it can find any artwork or that it can find that particular series/movie?

Re: POSTBUCKET - where random posts in unrelated topics go

Posted: 19 Sep 2012, 19:31
by bawng
Hello!
Sorry for not getting back to you after you've been so helpful. I've been away. I will try to get the full paths and post them here.

Thanks!

Re: POSTBUCKET - where random posts in unrelated topics go

Posted: 19 Sep 2012, 20:31
by bawng
Hello again.

Couldn't get List to work, but here is a list of all the file names:

Code: Select all

2012-09-19  22:28    <DIR>          .
2012-09-19  22:28    <DIR>          ..
2012-09-14  20:13            17ÿ654 h-citw720p.nfo
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r00
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r01
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r02
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r03
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r04
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r05
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r06
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r07
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r08
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r09
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r10
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r11
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r12
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r13
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r14
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r15
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r16
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r17
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r18
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r19
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r20
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r21
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r22
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r23
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r24
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r25
2012-09-14  20:13        50ÿ000ÿ000 h-citw720p.r26
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r27
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r28
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r29
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r30
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r31
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r32
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r33
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r34
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r35
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r36
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r37
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r38
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r39
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r40
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r41
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r42
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r43
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r44
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r45
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r46
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r47
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r48
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r49
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r50
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r51
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r52
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r53
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r54
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r55
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r56
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r57
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r58
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r59
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r60
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r61
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r62
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r63
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r64
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r65
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r66
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r67
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r68
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r69
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r70
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r71
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r72
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r73
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r74
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r75
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r76
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r77
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r78
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r79
2012-09-14  20:14        50ÿ000ÿ000 h-citw720p.r80
2012-09-14  20:15        50ÿ000ÿ000 h-citw720p.r81
2012-09-14  20:15        50ÿ000ÿ000 h-citw720p.r82
2012-09-14  20:15        50ÿ000ÿ000 h-citw720p.r83
2012-09-14  20:15        50ÿ000ÿ000 h-citw720p.r84
2012-09-14  20:15        50ÿ000ÿ000 h-citw720p.r85
2012-09-14  20:15        50ÿ000ÿ000 h-citw720p.r86
2012-09-14  20:15        50ÿ000ÿ000 h-citw720p.r87
2012-09-14  20:15        50ÿ000ÿ000 h-citw720p.r88
2012-09-14  20:15        50ÿ000ÿ000 h-citw720p.r89
2012-09-14  20:15        50ÿ000ÿ000 h-citw720p.r90
2012-09-14  20:15        50ÿ000ÿ000 h-citw720p.r91
2012-09-14  20:15        50ÿ000ÿ000 h-citw720p.r92
2012-09-14  20:15        41ÿ838ÿ245 h-citw720p.r93
2012-09-14  20:33        50ÿ000ÿ000 h-citw720p.rar
2012-09-14  20:33             2ÿ375 h-citw720p.sfv
(the weird ÿ is supposed to be blank space)

And they are all located under C:\Users\Erik\Downloads\Unsorted\The.Cabin.In.The.Woods.2011.720p.BluRay.x264-HDEX

Re: POSTBUCKET - where random posts in unrelated topics go

Posted: 20 Sep 2012, 04:38
by rednoah

Code: Select all

Parameter: ut_kind = multi
Parameter: ut_dir = E:\testdata\Unsorted\The.Cabin.In.The.Woods.2011.720p.BluRay.x264-HDEX
SevenZipException: Archive file can't be opened with none of the registered codecs
Done ヾ(@⌒ー⌒@)ノ
Works for me. Except extracting the volumes failes since it's all empty files. I don't know why but in your console logs it seems like it's not even trying to extract anything. Must be something wrong with the input.

Re: [MANUAL] Configure Sublight login

Posted: 25 Sep 2012, 13:20
by fbuser123
Where are the configured username and password stored?

Answer: On linux: ~/java/.userPrefs/