POSTBUCKET - where random posts in unrelated topics go

Any questions? Need some help?
Post Reply
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Please don't post your random problems into the "How about sharing your...?" topics. Create a new topic for every issue/problem.
:idea: Please read the FAQ and How to Request Help.
ntg
Posts: 5
Joined: 06 Mar 2012, 04:47

Re: How about sharing our format expressions?

Post by ntg »

Is there any documentation on the functions/syntax that can be used in the renaming patterns? Is it based on another scripting language, or custom-built for filebot?

My problem of the moment is to name the file with a 720p or 1080p resolution when the video height is different. eg If the black bars are cropped (for an AR other than 16:9), then a vf of 688px should be tagged as 720p (1280x688 ~= 1.85:1), but if vf=800px it should become 1080p (1920x800 ~= 2.39:1)...and any other height should round up to the "main" resolutions of 480p/720p/1080p. I'd love to know if there's an easy way to do this, but I'd also love to see what else I can do with the language.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How about sharing our format expressions?

Post by rednoah »

ntg wrote:Is there any documentation on the functions/syntax that can be used in the renaming patterns? Is it based on another scripting language, or custom-built for filebot?

My problem of the moment is to name the file with a 720p or 1080p resolution when the video height is different. eg If the black bars are cropped (for an AR other than 16:9), then a vf of 688px should be tagged as 720p (1280x688 ~= 1.85:1), but if vf=800px it should become 1080p (1920x800 ~= 2.39:1)...and any other height should round up to the "main" resolutions of 480p/720p/1080p. I'd love to know if there's an easy way to do this, but I'd also love to see what else I can do with the language.
There is lots of ways to do this, pic one that works for you:
http://filebot.sourceforge.net/forums/v ... =1126#p839

My format expression docs:
http://filebot.sourceforge.net/naming.html

Groovy scripting language:
http://groovy.codehaus.org

You can use the extra stuff FileBot provides for you, or everything Groovy provides, or everything Java provides. So you can do pretty much anything.
:idea: Please read the FAQ and How to Request Help.
ntg
Posts: 5
Joined: 06 Mar 2012, 04:47

Re: POSTBUCKET - where random posts in unrelated topics go

Post by ntg »

Thanks, I have no idea how I missed that when I searched for it...
doctorzoidberg
Posts: 3
Joined: 23 Aug 2012, 16:35

Name matching to wrong show using command line

Post by doctorzoidberg »

Hi,

First I would like to say thanks for all the hard work put into this app, very cool app! It is just the tool needed to get the media library automated. I installed FileBot oh my home server and I am testing using the utorrent post process script file like is shown in the post about that topic. Everything seems to be working as expected, it is copying the shows to the output folder and pulling in the artwork and nfo files correctly.

The only problem I am having is that for some shows it is picking up the wrong show from the tv database (I am currently using TheTVdb). For example, when it is processing files for the show "The League" it is instead matching the show to "The League of Gentlemen." Is there a way to specify which show to match to in the event that it gets multiple shows and chooses the wrong show? I am looking to run this from the command line, in the GUI it would be easy enough to just select the correct show but I need a way to specify this while running from the command line.

I have looked in the forums and documentation and I haven't seen anything that jumped out at me as the solution. I did find the topic where you could override the naming of the show/episodes in the pattern matching however I don't think that will help in this situation as the wrong show is being matched so it would still give me incorrect episode names with the correct show title if I modified that I believe, is that correct?

I am certainly no expert at this but would definitely put together a tutorial on how to set this up once I get it all working.

Thank you!
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Name matching to wrong show using command line

Post by rednoah »

I don't have time to look into this in detail yet.

If it's matching the wrong episodes you can fix it with the --filter option which allows you to exclude episodes from matching.

e.g.

Code: Select all

--filter "y > 2000"
(only match with shows that aired in and after 2001)

Code: Select all

--filter "!(n =~ 'The League of Gentlemen')"
(specifically exclude that show specifically)
:idea: Please read the FAQ and How to Request Help.
doctorzoidberg
Posts: 3
Joined: 23 Aug 2012, 16:35

Re: Name matching to wrong show using command line

Post by doctorzoidberg »

Thanks for the reply! I ill give that a shot and post the results.

One quick question on what you suggest, does the --filter option exclude shows from the set of episodes being matched to or does it ignore the input files matching the exclude expression?

Thanks again!
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Name matching to wrong show using command line

Post by rednoah »

The filter works on episode data being matched to. Normally it'll consider all episodes for all found shows as possible matches and try to find the best combination. With --filter you can exclude certain episodes before any matching as if they were not in the database at all.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Name matching to wrong show using command line

Post by rednoah »

Tested. Works fine for me.

Code: Select all

E:\testdata>filebot -rename The.League.1x01.avi --action test -non-strict
Filename pattern: [1,00] SxE, [0,00] CWS
Rename episodes using [TheTVDB]
Auto-detected query: [The League]
Fetching episode data for [The League]
Fetching episode data for [The League Of Pan]
Fetching episode data for [The League of Gentlemen]
[TEST] Rename [E:\testdata\The.League.1x01.avi] to [The League - 1x01 - The Draft.avi]
Processed 1 files
If there is lots of clutter in the filename it might throw off the fuzzy logic a bit. Send me your exact file paths so I can try with those.
:idea: Please read the FAQ and How to Request Help.
munch9000
Posts: 7
Joined: 19 Jul 2012, 16:59

Re: Fully Automated Media Center

Post by munch9000 »

I noticed the previous version of this script had stopped working for me, so I just upgraded to filebot 3.0 and switched to this new slightly different syntax in uTorrent. It works great, but one problem I'm having now that I didn't experience before is a terminal/command window poping up each time the script runs. If I'm watching something in XMBC at the time, it will minimize XMBC automatically and show the terminal window. Is there a reason this has changed? Is there any way around that?
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

No, nothing has changed. FileBot has no control over the cmd window. Maybe there is a way to tell uTorrent not to spawn a new console window?
:idea: Please read the FAQ and How to Request Help.
munch9000
Posts: 7
Joined: 19 Jul 2012, 16:59

Re: Fully Automated Media Center

Post by munch9000 »

Hmmm...very strange. When you run the script, does a new console window pop up for you? This definitely didn't happen for me before with filebot. I'd tried a few other options (therenamer, etc.) before and DID have that problem with them...so I was happy when filebot didn't interrupt anything. I guess there's a chance an automatic uTorrent update broke it at around the same time.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

I don't know about focus, but utorrent definitely spawns a cmd window to run the given command. Also there is people that have complained about this issue long before 3.0, but really only the utorrent people can do anything about that since it's the utorrent that runs a cmd window that runs filebot, not the other way around.
:idea: Please read the FAQ and How to Request Help.
gmcclelland
Posts: 2
Joined: 26 Aug 2012, 14:17

Re: Fully Automated Media Center

Post by gmcclelland »

Hi, firstly, running Windows 7 x64, Latest FileBot installed as of this date.

I was having some issues with this script so I traced my steps backwards. I was testing just running filebot from Command Prompt and it wasn't recognising "filebot" as a command.

It turns out that when FileBot added itself to the "Path" System Variable, it added a '\' to the end of the file. Removing this fixed everything up so "filebot" was now recognised as a command. Unsure if this was the correct location to post this, but I thought I'd let someone know. May have just been a problem on my end?

Either way, to resolve the issue I have explained here:

Right click "My Computer" and go to properties.
Click "Advanced System Settings"
Down the bottom of that window will be a button that says "Environment Variables...", open that.
In the second box that says "System Variables" scroll down to select "Path" and click "Edit"
At the end of the box labelled "Variable Value" it should have "C:\Program Files (x86)\FileBot\".
Remove the '\' from the end of the string and click OK.
FileBot will now work as a command.

If this is an issue that isn't just me, I'm just putting this to alert the developer and let others know how to fix the problem.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

PATH is automatically adjusted by msi so basically Windows itself updating the %PATH%. With or without \ both works. The reason cmd didn't recognize filebot at first is that it's reading PATH on startup. So if you first start cmd and then install filebot it will use the old PATH and not find anything until you restart cmd.
:idea: Please read the FAQ and How to Request Help.
gmcclelland
Posts: 2
Joined: 26 Aug 2012, 14:17

Re: Fully Automated Media Center

Post by gmcclelland »

Well, fancy that. I must have just not realised that. Thanks for that though.

I can't seem to get uTorrent to run a script after the torrent finishes either. No luck. :P
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

I donno. What's it doing? In the utorrent log it'll show you exactly what command it's calling, just try pasting that into the cmd and see what happens.
:idea: Please read the FAQ and How to Request Help.
doctorzoidberg
Posts: 3
Joined: 23 Aug 2012, 16:35

Re: Name matching to wrong show using command line

Post by doctorzoidberg »

Hey again,

Your earlier suggestion worked for me and as it turns out the problem was caused by files that had already been renamed. I was running it against a set of folders that I had used another renaming program on previously so most of the episodes had already been renamed to the correct standard. I think the spaces that were added to the file name (ie :The League instead of the.league like when it was originally downloaded) caused the match to the TVdb to choose the wrong show.

I am still in experimental mode with this at the moment but all signs are looking positive. Thanks again for all your hard work on this great application!
trucker
Posts: 4
Joined: 01 Sep 2012, 02:22

Re: Fully Automated Media Center

Post by trucker »

Since updating to the new version the script no longer seems to fetch artwork and info. What could to check to find out why ?
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

Run it manually in the console and see what happens. Make sure you're running the latest version of filebot with the latest version of this script.
:idea: Please read the FAQ and How to Request Help.
trucker
Posts: 4
Joined: 01 Sep 2012, 02:22

Re: Fully Automated Media Center

Post by trucker »

downloaded the latest version of filebot yesterday and it is using your online script so it should be the latest?
the manual version in the cmd shell behaves the same. also what do I need to add to update the xbmc library running on the same machine. the old version was working perfectly for me until i believe the script was updated for the new filebot version
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

1. Then it should both be the latest. Send me the console output and I'll have a look what's happening.

2. Just add the XBMC host like like it says in the options docs, i.e. --def xbmc=localhost
:idea: Please read the FAQ and How to Request Help.
trucker
Posts: 4
Joined: 01 Sep 2012, 02:22

Re: Fully Automated Media Center

Post by trucker »

this is the output i get when run manually

Code: Select all

G:\PortableApps\ConsolePortable>filebot -script fn:utorrent-postprocess "K:\Downloads\Movies\Tinker Tailor Soldier Spy 2011 R5 DVDRip XviD AC3-26K/" --output "L:/Public/Video" --action copy --conflict skip -non-strict
Input: K:\Downloads\Movies\Tinker Tailor Soldier Spy 2011 R5 DVDRip XviD AC3-26K\Tinker Tailor Soldier Spy.avi
Tinker Tailor Soldier Spy.avi [series: null, movie: Tinker Tailor Soldier Spy (2011)]
Group: [tvs:null, mov:Tinker Tailor Soldier Spy (2011), anime:null] => [Tinker Tailor Soldier Spy.avi]
Rename movies using [TheMovieDB]
Looking up movie by filehash via [TheMovieDB]
TheMovieDB: Hash lookup not supported
[COPY] Rename [K:\Downloads\Movies\Tinker Tailor Soldier Spy 2011 R5 DVDRip XviD AC3-26K\Tinker Tailor Soldier Spy.avi] to [L:\Public\Video\Movies\Tinker Tailor Soldier Spy (2011)\Tinker Tailor Soldier Spy (2011).avi]
Processed 1 files
Done ?(?????)?
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

Sorry, it's disabled by default in the script. I forgot to add the options to enable it in the CLI usage:

Code: Select all

--def subtitles=y artwork=y
:idea: Please read the FAQ and How to Request Help.
trucker
Posts: 4
Joined: 01 Sep 2012, 02:22

Re: Fully Automated Media Center

Post by trucker »

thanks it is all working perfectly again now
User avatar
ashfallen0
Power User
Posts: 32
Joined: 14 Jan 2012, 10:44

Re: Fully Automated Media Center

Post 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?
bixtool
Posts: 11
Joined: 08 Sep 2012, 16:03

Re: Fully Automated Media Center

Post 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
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post 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.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post 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/...
:idea: Please read the FAQ and How to Request Help.
bixtool
Posts: 11
Joined: 08 Sep 2012, 16:03

Re: Fully Automated Media Center

Post 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
sam829
Posts: 22
Joined: 04 Sep 2012, 04:02

Re: Fully Automated Media Center

Post by sam829 »

Code: Select all

filebot -script "C:\Program Files\Filebot\watcher.groovy"
Just add the full path to 'watcher.groovy'.
Last edited by sam829 on 09 Sep 2012, 00:23, edited 1 time in total.
bixtool
Posts: 11
Joined: 08 Sep 2012, 16:03

Re: Fully Automated Media Center

Post 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.
sam829
Posts: 22
Joined: 04 Sep 2012, 04:02

Re: Fully Automated Media Center

Post 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
bixtool
Posts: 11
Joined: 08 Sep 2012, 16:03

Re: Fully Automated Media Center

Post 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!
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post 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.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post 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.
:idea: Please read the FAQ and How to Request Help.
greenythebeast
Posts: 9
Joined: 14 Sep 2012, 02:49

Re: Fully Automated Media Center

Post by greenythebeast »

Is there anyway to make this work with Serviio?
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post 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.
:idea: Please read the FAQ and How to Request Help.
bawng
Posts: 6
Joined: 14 Sep 2012, 18:32

Re: Fully Automated Media Center

Post 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
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

Looks like it can't find any archives or video files. What files are in that folder?
:idea: Please read the FAQ and How to Request Help.
bawng
Posts: 6
Joined: 14 Sep 2012, 18:32

Re: Fully Automated Media Center

Post by bawng »

Rar files from .rar, r00, r01 ... r93 as well as an .nfo and an .sfv
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post 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.
:idea: Please read the FAQ and How to Request Help.
bawng
Posts: 6
Joined: 14 Sep 2012, 18:32

Re: Fully Automated Media Center

Post 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?
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post 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)
:idea: Please read the FAQ and How to Request Help.
mikzr
Posts: 1
Joined: 18 Sep 2012, 01:37

Re: Fully Automated Media Center

Post 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
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post 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?
:idea: Please read the FAQ and How to Request Help.
bawng
Posts: 6
Joined: 14 Sep 2012, 18:32

Re: POSTBUCKET - where random posts in unrelated topics go

Post 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!
bawng
Posts: 6
Joined: 14 Sep 2012, 18:32

Re: POSTBUCKET - where random posts in unrelated topics go

Post 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
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post 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.
:idea: Please read the FAQ and How to Request Help.
fbuser123
Posts: 2
Joined: 06 Aug 2012, 15:04

Re: [MANUAL] Configure Sublight login

Post by fbuser123 »

Where are the configured username and password stored?

Answer: On linux: ~/java/.userPrefs/
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [MANUAL] Configure Sublight login

Post by rednoah »

It's using Java Preferences. On Windows it'll save stuff to the registry, Linux & Mac it'll be managed in properties files. The portable version will always use a properties file.

@see
http://docs.oracle.com/javase/7/docs/ap ... ences.html

* In anycase it's in clear text and easily readable.
:idea: Please read the FAQ and How to Request Help.
bawng
Posts: 6
Joined: 14 Sep 2012, 18:32

Re: POSTBUCKET - where random posts in unrelated topics go

Post by bawng »

Yeah, like I said it has worked perfectly well with all other films and series. Since this is the only problem I've had, it doesn't really matter. Thank you for the help anyway!
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Prevent cmd from stealing the focus

Post by rednoah »

If you're using this script with µTorrent on Windows you might find it annoying that it'll popup a cmd window stealing the focus each time. You can fix this by calling programs like this: cmd.exe /c start /min ... ^& exit

Code: Select all

cmd.exe /c start /min filebot -script fn:utorrent-postprocess --output "X:/path/to/media" --action copy --conflict override -non-strict --def subtitles=y artwork=y "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S" ^& exit
:idea: Please read the FAQ and How to Request Help.
bixtool
Posts: 11
Joined: 08 Sep 2012, 16:03

Re: Fully Automated Media Center

Post by bixtool »

Hi,
I have been using your script successfully now for several week, but recently problems have developed.
Now:
Utorrent appears to execute the my code on download completion but no files are processed (a window flashes too quickly to read).
However:
When I execute the code copied from Utorrent's logger screen at the command prompt, the script executes perfectly. All files are processed.

Here is my code:

Code: Select all

filebot -script "c:/tv/test.groovy" --output "j:" --action copy --conflict override -non-strict --def subtitles=y artwork=y  [email protected]:pass123  [email protected] "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S"
Any ideas?

How can I setup a detailed log for Filebot so I can determine why the script fails?

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

Re: Fully Automated Media Center

Post by rednoah »

Try redirecting the output into by using a cmd like this:

Code: Select all

filebot -version 2>&1 >> log.txt
:idea: Please read the FAQ and How to Request Help.
bixtool
Posts: 11
Joined: 08 Sep 2012, 16:03

Re: Fully Automated Media Center

Post by bixtool »

Hi,
The script fails from utorrent, but works from the command line. The Filebot directory is added to my path statement. I even ran utorrent as an Administrator. I see the cmd window pop up when a download completes and the script is executed but it closes too quickly to see any errors.

Any reason why the script fails from utorrent, but when the logger line is pasted to a command window it works every time?

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

Re: Fully Automated Media Center

Post by rednoah »

Until we manage to see that console output I also wouldn't know what's going wrong.

Redirect console output into a file like I should you in my last post. That way the console output gets written to file instead of the console window. Then you can check that file to see the error messages.
:idea: Please read the FAQ and How to Request Help.
d33g
Posts: 2
Joined: 01 Oct 2012, 03:02

Re: Fully Automated Media Center

Post by d33g »

Hi all,

sorry i've been trying to get my head around this and not having a whole lot of success...

Below is the exact line that I have pasted into uTorrent;
filebot -script fn:utorrent-postprocess --output "R:/-=To Sort=-/_Renamed" --action copy --conflict override -non-strict --def subtitles=y artwork=y "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S"

And I downloaded and copied the utorrent-postprocess.groovy script and pasted into the filebot install dir changing the first line to match the above specifying my "R:/-=To Sort=-/_Renamed" which is where i want everything to be extracted and renamed then dumped into.

NOTE// I currently have everything set to download to a "_Downloading" folder which then moves to a "_Completed" folder once the download is complete, if that is causing any problems...

I tried deleting my "R:/**" path and replacing it with log.txt but I could never find any log file being generated to find the issue...

Any help is GREATLY appreciated.

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

Re: Fully Automated Media Center

Post by rednoah »

1. You don't need to download anything, -script fn:name means it'll download/update the script automatically. No need to change the script.

2. --output <folder> is where files go to. Standard output is written to the console, you can pipe that into a file if you want.

3. You literally ONLY need to follow the steps. Most importantly that filebot is installed properly and that it'll run in console.

4. You can debug things by manually running the command from the console and see what happens. uTorrent somewhere has a log what commands it calls with exactly what arguments. You can copy that and try it.
:idea: Please read the FAQ and How to Request Help.
d33g
Posts: 2
Joined: 01 Oct 2012, 03:02

Re: Fully Automated Media Center

Post by d33g »

Thanks for such a quick reply.

Ok thanks for letting me know that.

If i run manually from console specifying an input folder it will work, when I run from uTorrent only removing the input information as it states that the command will interpret the input directly from uTorrent the console opens but closes before I can see whats its doing and it doesn't complete any task.

Sorry to be such a pain.

Many thanks for your help already.

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

Re: Fully Automated Media Center

Post by rednoah »

That's why you have to >> REDIRECT OUTPUT INTO A FILE <<

Try this. See what happens. It's the very basics of using the cmdline. You can do this with any command.
filebot -version 2>&1 >> log.txt

YOU CAN PRINT CONSOLE OUTPUT TO A FILE INSTEAD OF THE CONSOLE VERY EASILY.
:idea: Please read the FAQ and How to Request Help.
warioguy64
Posts: 4
Joined: 01 Oct 2012, 11:19

Re: Fully Automated Media Center

Post by warioguy64 »

Hi,

Everything works perfectly for me but my xbmc window still minimizes when the command prompt is in use. This is after I added the fix by calling programs like this: cmd.exe /c start /min ... ^& exit
The command prompt window does start minimized but my xbmc minimizes too.
I want to add that if i use my remote for itunes to play music that xbmc also minimizes when I do this.

I use Windows 7 64x
xbmc Eden v11

Great scipt and thanks in advance.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

On the utorrent forums I read that you can make this work by running a .vbs script from utorrent and then kicking off the filebot call from the .vbs script. If anybody gets that working please share. ;)
:idea: Please read the FAQ and How to Request Help.
sam829
Posts: 22
Joined: 04 Sep 2012, 04:02

Re: Fully Automated Media Center

Post by sam829 »

First bit of code is a VB script, .vbs extension. You ONLY need to modify the location of your batch file.

Ex.) C:\Program Files\Filebot\tvdirwatcher.bat <-- Change this to the location of your batch file

Code: Select all

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\Program Files\Filebot\tvdirwatcher.bat" & Chr(34), 0
Set WshShell = Nothing
Second bit of code is a .bat file. Only being displayed as an example.

Code: Select all

filebot -rename M:/TVComplete --output \\ds212/TV --format "{n}/Season {s}/{n} {sxe} {t}" -non-strict --db TheTVDB
Very simple and works perfectly. If you have any questions at all please feel free to ask away! :D

One more thing, consider supporting RedNoah ;) I wouldn't have been so motivated to figure out the above problem if it wasn't for him.
bixtool
Posts: 11
Joined: 08 Sep 2012, 16:03

Re: Fully Automated Media Center

Post by bixtool »

hi rednoah,

When I add

Code: Select all

>>c:/log.log 
to my utorrent Run Program command and a download completes, I get an empty log file.

But when I run the same command, pasted from utorrents logger tab, I get all the info as it is processed

Code: Select all

Parameter: subtitles = y
Parameter: artwork = y
Parameter: gmail = [email protected]:pass123
Parameter: mailto = [email protected]
Parameter: ut_dir = C:\TV\Incomplete\[ www.Speed.Cd ] - Dexter.S07E01.720p.HDTV.x264-EVOLVE
Parameter: ut_file = dexter.s07e01.720p.hdtv.x264-evolve.nfo
Parameter: ut_kind = multi
Parameter: ut_title = [ www.Speed.Cd ] - Dexter.S07E01.720p.HDTV.x264-EVOLVE
Parameter: ut_label = 
Parameter: ut_state = 5
Read archive [dexter.s07e01.720p.hdtv.x264-evolve.rar] to [C:\TV\Incomplete\[ www.Speed.Cd ] - Dexter.S07E01.720p.HDTV.x264-EVOLVE\dexter.s07e01.720p.hdtv.x264-evolve]
Extracting files [C:\TV\Incomplete\[ www.Speed.Cd ] - Dexter.S07E01.720p.HDTV.x264-EVOLVE\dexter.s07e01.720p.hdtv.x264-evolve\Dexter.S07E01.720p.HDTV.x264-EVOLVE.mkv]
Input: C:\TV\Incomplete\[ www.Speed.Cd ] - Dexter.S07E01.720p.HDTV.x264-EVOLVE\dexter.s07e01.720p.hdtv.x264-evolve\Dexter.S07E01.720p.HDTV.x264-EVOLVE.mkv
Group: [tvs:Dexter] => [Dexter.S07E01.720p.HDTV.x264-EVOLVE.mkv]
Missing subtitles for 1 video files
Looking up subtitles by filehash via OpenSubtitles
Looking up subtitles by filehash via Sublight
Searching for [Dexter] at [OpenSubtitles]
Searching for [Dexter] at [Sublight]
Searching for [Dexter] at [Subscene]
Matched [Dexter.S07E01.720p.HDTV.x264-EVOLVE.mkv] to [Dexter.S07E01.720p.HDTV.x264-EVOLVE] via filename
Fetching [Dexter.S07E01.720p.HDTV.x264-EVOLVE]
Export [Dexter.S07E01.720p.HDTV.x264-EVOLVE.srt] as: SubRip / UTF-8
Writing [Dexter.S07E01.720p.HDTV.x264-EVOLVE.srt] to [Dexter.S07E01.720p.HDTV.x264-EVOLVE.eng.srt]
Rename episodes using [TheTVDB]
Auto-detected query: [Dexter]
Fetching episode data for [Dexter]
Auto-detected query: [Dexter]
Fetching episode data for [Dexter]
Stripping invalid characters from new path: Dexter/Season 7/Dexter.S07E01.Are You...?
Stripping invalid characters from new path: Dexter/Season 7/Dexter.S07E01.Are You...?
[COPY] Rename [C:\TV\Incomplete\[ www.Speed.Cd ] - Dexter.S07E01.720p.HDTV.x264-EVOLVE\dexter.s07e01.720p.hdtv.x264-evolve\Dexter.S07E01.720p.HDTV.x264-EVOLVE.mkv] to [j:\Dexter\Season 7\Dexter.S07E01.Are You....mkv]
[COPY] Rename [C:\TV\Incomplete\[ www.Speed.Cd ] - Dexter.S07E01.720p.HDTV.x264-EVOLVE\dexter.s07e01.720p.hdtv.x264-evolve\Dexter.S07E01.720p.HDTV.x264-EVOLVE.eng.srt] to [j:\Dexter\Season 7\Dexter.S07E01.Are You....srt]
Processed 2 files
Fetching artwork for j:\Dexter\Season 7 from TheTVDB
Fetching j:\Dexter\poster.jpg => {id=919566, BannerMirror=http://thetvdb.com/banners/, BannerPath=posters/79349-24.jpg, BannerType=poster, BannerType2=680x1000, Language=en, Rating=10.0000, RatingCount=1}
Fetching j:\Dexter\banner.jpg => {id=18143, BannerMirror=http://thetvdb.com/banners/, BannerPath=graphical/79349-g7.jpg, BannerType=series, BannerType2=graphical, Language=en, Rating=7.0303, RatingCount=33}
Fetching j:\Dexter\fanart.jpg => {id=30362, BannerMirror=http://thetvdb.com/banners/, BannerPath=fanart/original/79349-16.jpg, BannerType=fanart, BannerType2=1920x1080, Colors=|149,111,92|169,68,82|196,73,66|, Language=en, Rating=7.3488, RatingCount=43, SeriesName=false, ThumbnailPath=_cache/fanart/original/79349-16.jpg, VignettePath=fanart/vignette/79349-16.jpg}
Fetching j:\Dexter\Season 7\poster.jpg => {id=919409, BannerMirror=http://thetvdb.com/banners/, BannerPath=seasons/79349-7-4.jpg, BannerType=season, BannerType2=season, Season=7, Language=en, Rating=8.0000, RatingCount=2}
Banner not found: j:\Dexter\Season 7\banner.jpg / season:seasonwide
Fetching j:\Dexter\clearart.png => {type=clearart, id=4980, url=http://fanart.tv/fanart/tv/79349/clearart/4980/D_79349 (3).png, lang=en, likes=4}
Fetching j:\Dexter\logo.png => {type=clearlogo, id=20958, url=http://fanart.tv/fanart/tv/79349/clearlogo/20958/dexter-5057573260826.png, lang=en, likes=5}
Fetching j:\Dexter\landscape.jpg => {type=tvthumb, id=5012, url=http://fanart.tv/fanart/tv/79349/tvthumb/5012/D_79349 (10).jpg, lang=en, likes=1}
Fetching j:\Dexter\Season 7\landscape.jpg => {type=seasonthumb, id=18514, url=http://fanart.tv/fanart/tv/79349/seasonthumb/18514/dexter-4fc8e9fa79bf8.jpg, lang=en, likes=0, season=7}
     [mail] Sending email: [FileBot] [ www.Speed.Cd ] - Dexter.S07E01.720p.HDTV.x264-EVOLVE
     [mail] Sent email with 0 attachments
Done ?(?????)?

Is there a switch for filebot.cmd to leave the command prompt open when the script completes?

B
RekiM
Posts: 2
Joined: 01 Oct 2012, 23:13

Re: Fully Automated Media Center

Post by RekiM »

This script (and app) is awesome.

Is there any way this can output to different paths (or drives) for Movies and TV shows?

something like this:

Code: Select all

filebot -script fn:utorrent-postprocess --outputMovie "X:/Movies" --outputTV "Y:/TV" ... 
bixtool
Posts: 11
Joined: 08 Sep 2012, 16:03

Re: Fully Automated Media Center

Post by bixtool »

hi Rednoah,
I discovered my problem was windows 7 64bit related.

I added a "pause" to filebot.cmd and discovered java was not invoking at the command line for 32bit applications.

I only had 64bit java installed. I installed the 32bit java jre as well and now everything works as advertised.

Sorry for all the confusion

B
bixtool
Posts: 11
Joined: 08 Sep 2012, 16:03

Re: Fully Automated Media Center

Post by bixtool »

RekiM wrote:This script (and app) is awesome.

Is there any way this can output to different paths (or drives) for Movies and TV shows?

something like this:

Code: Select all

filebot -script fn:utorrent-postprocess --outputMovie "X:/Movies" --outputTV "Y:/TV" ... 
I'm not sure about the script, but you can run two instances of utorrent: one for movie downloads and one for tv downloads. You can specify different Run Program strings for each application.
I've used it in the past.

I have this from my notes... not sure of the source:
Create a shortcut and add /RECOVER with a space at the end for the target....

ex: "C:\Program Files\uTorrent\uTorrent 3.2\uTorrent\uTorrent.exe" /RECOVER

For each instance you must have a different port specified in uTorrent and forwarded in the router...

You will also need to check or manually add firewall rules for each version.

Run the shortcut and you should be good to go.
I believe I even ran each as a different user to keep things separated in windows.

B
bixtool
Posts: 11
Joined: 08 Sep 2012, 16:03

Re: Fully Automated Media Center

Post by bixtool »

gmcclelland wrote:Well, fancy that. I must have just not realised that. Thanks for that though.

I can't seem to get uTorrent to run a script after the torrent finishes either. No luck. :P
Do you have 32bit as well as 64bit java installed?

utorrent only uses the 32bit java runtime.
RekiM
Posts: 2
Joined: 01 Oct 2012, 23:13

Re: Fully Automated Media Center

Post by RekiM »

bixtool wrote: I'm not sure about the script, but you can run two instances of utorrent: one for movie downloads and one for tv downloads. You can specify different Run Program strings for each application.
I've used it in the past.
Thanks for the tip. I'll look into that if there's no other option within the script.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

You should be able to quite easily modify the script with those updated. Just look for the rename(...) calls and override the output:"...", format:"..." values the way you want.
:idea: Please read the FAQ and How to Request Help.
warioguy64
Posts: 4
Joined: 01 Oct 2012, 11:19

Re: Fully Automated Media Center

Post by warioguy64 »

Hi rednoah,

I have been using your script (with the vbscript) for a couple of days now and its been working like a dream. But I have one last teensy problem.
It seems that some torrents like to abbreviate the downloaded RAR files that come with the torrent. (for example; torrent name:The Hangover Part 2, extracted file name TH2.mkv) which results in the movie being extracted in the utorrent Downloads folder and not in the TV/Movie folders. The same happens with talk shows (like Conan, David Letterman, Daily Show etc.)
Do you know how to fix this?

Thanks in advance.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

Run the cmd manually with those parameters. Unpacking always extracts to its current location. It should extract to rar-parent-folder/rar-filename/*, it'll only be moved/copied as part of the renaming. Maybe that last part failed because of not being able to make sense of the input?
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

1. If you specify the standard --lang ja argument it'll carry into the script, for subtitles and renaming. If you only want japanese subs but english episode titles you'll need to hard-code it in the script.

2. Nope, because you really should seed your stuff. :P Anyway, doesn't utorrent have something for that, like auto-remove if it's finished seeding?

3. Haha!! What's the filename? Just "Bolt"? I've got no idea how it'll get from here to "A Complete History Of My Sexual Failures (2008)" :D

-non-strict should make the strict more lenient = makes things work in much more cases, but risk of mismatches is higher as well

--conflict skip|override is for what should happen if the move/copy-destination file already exists, i.e. you downloaded the same episode twice (maybe HD the second time around)

* since that movie got completely messed up I suppose it's hash mismatch in the OpenSubtitles database. Usually it helps identify movies regardless of the filename... you can try what happens if you run the script on an empty file with the exact same name as your Bolt movie file, that way we can see if it's really the moviehash that's messing things up.

EDIT: With future releases I'm gonna try and throw out OpenSubtitles moviehash lookup for movie detection.
:idea: Please read the FAQ and How to Request Help.
ramsundaram
Posts: 24
Joined: 13 Oct 2012, 18:32

Re: Fully Automated Media Center

Post by ramsundaram »

sam829 wrote:

Code: Select all

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

filebot -script "[fullpath & script file name]" fn:[filename] [...other options]

What I am asking is what goes into "fn:"

Ram

EDIT: Sorry, I found the answer to this in another post on the forums. It's either "-script [local filename] or fn:[online script name]"

Thanks.
Last edited by ramsundaram on 14 Oct 2012, 04:48, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

@see here:
http://filebot.sourceforge.net/forums/v ... f=4&t=5#p5

fn:name is just an easy way to access the scripts online, with svn:name you'll get the latest script directly from the SVN. You can specify a filepath or an url as well. Then there is -script g:{expression} for inline groovy and -script system:in for reading the script from stdin.
:idea: Please read the FAQ and How to Request Help.
hhholmes
Posts: 9
Joined: 14 Oct 2012, 20:44

Re: Fully Automated Media Center

Post by hhholmes »

This is very promising! It looks like this simple bit of code can replace the need for multiple programs, like SCRU (to unpack files), theRenamer (to rename them), and EventGhost (to tie it all together in a single macro). But it doesn't replace the need for a scraper, like MediaCompanion or Ember Media Manager, correct?

I'm new to scripting so I have some (possibly silly) questions:

1. My media folders are currently at the root. For example:

E:\Movies
E:\TV Shows
E:\etc.

Do I replace "X:/path/to/media" with simply "E:/"?

2. What part of the filebot script determines if the torrent is a movie, a TV show, a basket of apples, etc.? Just curious.

3. What part of the filebot script determines how the files will be organized and renamed (e.g., ... /Name - S00E00 - Title). I don't see any syntax that would suggest this. (I'd like to know in case I want to tweak how things are named.)

4. in UTorrent, should I change my "Save In" path (where torrents are saved) to E:\? Or does the script pretty much override whatever I put there?

Thank you!
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

0. It'll replace everything. If you run the script with --def artwork=y it'll fetch artwork and generate nfo files using TheTVDB and TheMovieDB data respectively.

1. Yep, --output "E:" will do.

2. That's complicated and is based on various heuristics, filename patterns, number of files with similar patterns, knowledge about movie/series names, etc. So if you can tell what it is just by looking at the filename, the script will probably get it right as well. The label in utorrent can be used to disable auto-detection and force one of the TV Show/Anime/Movie/Ignore modes if you want.

Note: It'll only enter Anime mode if it is forced via utorrent label, otherwise Anime will fall into the TV Show category and renamed using TheTVDB data.

3. Those are the 3 formats used for the 3 respective modes, TV Series, Anime and Movie.

Code: Select all

def format = [
	tvs:   '''TV Shows/{n}/{episode.special ? "Special" : "Season "+s}/{n} - {episode.special ? "S00E"+special.pad(2) : s00e00} - {t}''',
	anime: '''Anime/{n}/{n} - {sxe} - {t}''',
	mov:   '''Movies/{n} ({y})/{n} ({y}){" CD$pi"}{".$lang"}'''
]
4. The script doesn't care about he original torrent files, utorrent will just pass in a few variables and the paths to the downloaded files and this script will take it from there. There's no magic happening, it's all in that cmdline call.
:idea: Please read the FAQ and How to Request Help.
hhholmes
Posts: 9
Joined: 14 Oct 2012, 20:44

Re: Fully Automated Media Center

Post by hhholmes »

Thank you for the reply.

I've tried several torrents but none of them are getting processed with the script. When the torrent is done downloading, I do see the cmd screen pop up with some lines of code run but it disappears before I can see what it says.

The torrents download as usual, but they don't get moved to the output location. For the output I've tried both "E:", "E:\Movies", and various other examples.

Any suggestions?
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

It's a command, just open the cmd and just run it manually and see what happens. You can copy the exact cmdline uTorrent is calling from utorrents log tab.
:idea: Please read the FAQ and How to Request Help.
bixtool
Posts: 11
Joined: 08 Sep 2012, 16:03

Re: Fully Automated Media Center

Post by bixtool »

Rednoah,
Your script works fantastic. Thank you for sharing.

Now, if only I could remove completed downloads from utorrent with a script I could clean things up nicely. Have you attempted this?

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

Re: Fully Automated Media Center

Post by rednoah »

And what happens to seeding? I guess uTorrent must have a function somewhere to make it auto-remove a torrent once it's got enough ration.

I'm not gonna add uTorrent controls to the script, but you can play with it if you want. It's definitly possible using utorrents http/json api.
:idea: Please read the FAQ and How to Request Help.
hhholmes
Posts: 9
Joined: 14 Oct 2012, 20:44

Re: Fully Automated Media Center

Post by hhholmes »

rednoah wrote:It's a command, just open the cmd and just run it manually and see what happens. You can copy the exact cmdline uTorrent is calling from utorrents log tab.
Ah! Thanks. A lot of output, but I suspect all of it stems from this error which occurs right away (I replaced the actual user name with "MyUserName"):

"...
FileNotFoundException: C:\Users\MyUserName\%D
java.io.FileNotFoundException: C:\Users\MyUserName\%D
..."

uTorrent is installed on the C drive (which is where the default user folder is), and I'm trying to export the torrents to the E drive. Perhaps that's the problem?
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

µTorrent wrote:You can use the following parameters:

%F - Name of downloaded file (for single file torrents)
%D - Directory where files are saved
%N - Title of torrent
%P - Previous state of torrent
%L - Label
%T - Tracker
%M - Status message string (same as status column)
%I - hex encoded info-hash
%S - State of torrent
%K - kind of torrent (single|multi)
Well, obviously %D won't work. If you run it manually you have to replace the variables that utorrent would have set otherwise. Just copy the exact cmdline utorrent is executing from utorrent logger tab like I said.
:idea: Please read the FAQ and How to Request Help.
hhholmes
Posts: 9
Joined: 14 Oct 2012, 20:44

Re: Fully Automated Media Center

Post by hhholmes »

The script is working for movies (they get moved to E:\Movies are are appropriately renamed, etc.) but it's not working with TV shows. They are not getting moved to "E:\TV Shows", not getting renamed, etc.

Below is what the uTorrent command log showed for a recent example:

Code: Select all

filebot -script fn:utorrent-postprocess --output "E:" --action copy --conflict override -non-strict --def subtitles=y artwork=y "ut_dir=E:\Torrents" "ut_file=The.Daily.Show.2012.10.18.President.Barack.Obama.HDTV.x264-LMAO.[VTV].mp4" "ut_kind=single" "ut_title=The.Daily.Show.2012.10.18.President.Barack.Obama.HDTV.x264-LMAO.[VTV].mp4" "ut_label=showRSS personal feed" "ut_state=5"
Any suggestions? Thank you.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

So what's the cmdline output if you run that command?
:idea: Please read the FAQ and How to Request Help.
hhholmes
Posts: 9
Joined: 14 Oct 2012, 20:44

Re: Fully Automated Media Center

Post by hhholmes »

rednoah wrote:So what's the cmdline output if you run that command?
The full output is below, but you'll see this error occurs about six times:

Code: Select all

Lookup by hash failed: Error configuring from jar:file:/C:/Program%20Files/FileB
ot/FileBot.jar!/ehcache.xml. Initial cause was Error configuring from input stre
am. Initial cause was The reference to entity "Sarah" must end with the ';' deli
miter.
"Sarah" is part of the active user name, so I suspect that's where it's coming from.

Code: Select all

E:\>filebot -script fn:utorrent-postprocess --output "E:" --action copy --confli
ct override -non-strict --def subtitles=y artwork=y "ut_dir=E:\Torrents" "ut_fil
e=The.Daily.Show.2012.10.18.President.Barack.Obama.HDTV.x264-LMAO.[VTV].mp4" "ut
_kind=single" "ut_title=The.Daily.Show.2012.10.18.President.Barack.Obama.HDTV.x2
64-LMAO.[VTV].mp4" "ut_label=showRSS personal feed" "ut_state=5"
Parameter: subtitles = y
Parameter: artwork = y
Parameter: ut_dir = E:\Torrents
Parameter: ut_file = The.Daily.Show.2012.10.18.President.Barack.Obama.HDTV.x264-
LMAO.[VTV].mp4
Parameter: ut_kind = single
Parameter: ut_title = The.Daily.Show.2012.10.18.President.Barack.Obama.HDTV.x264
-LMAO.[VTV].mp4
Parameter: ut_label = showRSS personal feed
Parameter: ut_state = 5
Input: E:\Torrents\The.Daily.Show.2012.10.18.President.Barack.Obama.HDTV.x264-LM
AO.[VTV].mp4
Group: [tvs:The Daily Show] => [The.Daily.Show.2012.10.18.President.Barack.Obama
.HDTV.x264-LMAO.[VTV].mp4]
Missing subtitles for 1 video files
Looking up subtitles by filehash via OpenSubtitles
Lookup by hash failed: Error configuring from jar:file:/C:/Program%20Files/FileB
ot/FileBot.jar!/ehcache.xml. Initial cause was Error configuring from input stre
am. Initial cause was The reference to entity "Sarah" must end with the ';' deli
miter.
Looking up subtitles by filehash via Sublight
Lookup by hash failed: java.lang.IllegalStateException: Sublight login has not b
een configured
Searching for [The Daily Show] at [OpenSubtitles]
Search for [The Daily Show] failed: Error configuring from jar:file:/C:/Program%
20Files/FileBot/FileBot.jar!/ehcache.xml. Initial cause was Error configuring fr
om input stream. Initial cause was The reference to entity "Sarah" must end with
 the ';' delimiter.
Searching for [The Daily Show] at [Sublight]
Search for [The Daily Show] failed: Sublight login has not been configured
Searching for [The Daily Show] at [Subscene]
Search for [The Daily Show] failed: Error configuring from jar:file:/C:/Program%
20Files/FileBot/FileBot.jar!/ehcache.xml. Initial cause was Error configuring fr
om input stream. Initial cause was The reference to entity "Sarah" must end with
 the ';' delimiter.
No matching subtitles found: E:\Torrents\The.Daily.Show.2012.10.18.President.Bar
ack.Obama.HDTV.x264-LMAO.[VTV].mp4
Rename episodes using [TheTVDB]
Auto-detected query: [The Daily Show]
Error configuring from jar:file:/C:/Program%20Files/FileBot/FileBot.jar!/ehcache
.xml. Initial cause was Error configuring from input stream. Initial cause was T
he reference to entity "Sarah" must end with the ';' delimiter.
Failed to fetch episode data: [The Daily Show]
Exception: Unable to match files to episode data
Done ?(?????)?
Exception in thread "Thread-0" net.sf.ehcache.CacheException: Error configuring
from jar:file:/C:/Program%20Files/FileBot/FileBot.jar!/ehcache.xml. Initial caus
e was Error configuring from input stream. Initial cause was The reference to en
tity "Sarah" must end with the ';' delimiter.
        at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(Configu
rationFactory.java:103)
        at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(Configu
rationFactory.java:138)
        at net.sf.ehcache.CacheManager.parseConfiguration(CacheManager.java:555)

        at net.sf.ehcache.CacheManager.init(CacheManager.java:310)
        at net.sf.ehcache.CacheManager.<init>(CacheManager.java:300)
        at net.sf.ehcache.CacheManager.create(CacheManager.java:698)
        at net.sf.ehcache.CacheManager.getInstance(CacheManager.java:718)
        at net.sourceforge.filebot.Main$6.run(Unknown Source)
Caused by: net.sf.ehcache.CacheException: Error configuring from input stream. I
nitial cause was The reference to entity "Sarah" must end with the ';' delimiter
.
        at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(Configu
rationFactory.java:157)
        at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(Configu
rationFactory.java:101)
        ... 7 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 38; The r
eference to entity "Sarah" must end with the ';' delimiter.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue
(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanAttribute(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanStartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown S
ource)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(Configu
rationFactory.java:155)
        ... 8 more
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

That is an odd one. Do you use some wierd username or something? Something causing ehcache to crash when it's initializing. I guess for some reason it can't store it's cache in your home folder.

You could either just use a normal username or set filebot up to not work in your home folder. See the configs of the portable version for how to do that.
:idea: Please read the FAQ and How to Request Help.
hhholmes
Posts: 9
Joined: 14 Oct 2012, 20:44

Re: Fully Automated Media Center

Post by hhholmes »

rednoah wrote:That is an odd one. Do you use some wierd username or something?
The username does have an ampersand (&) in it, and it seems this will produce this kind of error. (For example, http://www.dailytechnologytips.com/2009 ... ce-to.html.)

I will try to change the username, but from what I've gathered so far this is no simple task.

Thank you for the help and the great program.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

I'll submit a bug report ehcache regarding this issue. In the meantime why don't you use FileBot portable? You can still use the filebot command. Just specify the full path to the filebot.cmd

EDIT: Found a workaround in ehcache so special characters in the username shouldn't be a problem anymore with next release.
:idea: Please read the FAQ and How to Request Help.
hhholmes
Posts: 9
Joined: 14 Oct 2012, 20:44

Re: Fully Automated Media Center

Post by hhholmes »

It appears that the replies to this original post keep getting deleted (are they being moved elsewhere in the forum?).

I was having trouble getting filebot to process torrented TV shows because my username includes an "&" symbol. You suggested I use filebot portable, but I can't find that thread for the details.

Is it as simple as uninstalling filebot, installing filebot portable, and telling uTorrent to use the same script as above ("filebot -script fn:utorrent-postprocess --output "X:/path/to/me)?
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Try the latest b2 release from here. That should fix it:
https://sourceforge.net/projects/filebo ... ebot/HEAD/

You need to copy the whole command line with options and arguments into uTorrent as described and shown on the screenshot. ;)

If you use portable you need to give uTorrent the full path to filebot.cmd, you can try running filebot -version in a cmd window first to figure out how it works.
:idea: Please read the FAQ and How to Request Help.
Morf
Posts: 14
Joined: 02 Nov 2012, 21:01

Re: Metadata >> Extended Attributes && Airdate >> Creation T

Post by Morf »

I've started having a problem in release 3.1 which I suspect is due to this change.

Once I've renamed my files I copy them all to a NAS which is not NTFS, now I've started using 3.1 every time I copy the file I get a message saying...

"Property loss: Are you sure you want to copy this file without its properties...."

It's going to get very wearing very fast having to answer this question every time... to the extent that I may revert to an older version of FileBot or stop using it.

I'm presuming this is because of the extended attributes being applied to the file.

If so, is it possible to disable it? There's something about disabling it in the post above but I'm afraid it makes no sense to me, I'm not a programmer just a dumb (l)user...

Windows 7 x64 and Jave 7 update 1, if that helps.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Metadata >> Extended Attributes && Airdate >> Creation T

Post by rednoah »

Erm, didn't know windows would annoy you about that... Do you have to confirm for each file or just once for all?

You can do 2 things:
-DuseNativeShell=false
(to use Java move/copy instead of Windows Shell)

-DuseExtendedFileAtrributes=false
(to disable EAs)

It's all in the *.l4f.ini files, you can edit these settings in those config files. Those settings are default if you use FileBot (platform) shortcut to run it.

EDIT:
I might be able to suppress those notifications but still allow you to use the windows move/copy dialog for progress indication. I'll send u an update tomorrow.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Metadata >> Extended Attributes && Airdate >> Creation T

Post by rednoah »

:: UPDATE ::

Please try r1288 and see if move/copy will still make you confirm these "Property loss" things:
http://sourceforge.net/projects/filebot ... ebot/HEAD/

(just override the FileBot.jar in your install folder with the one here to update everything)
:idea: Please read the FAQ and How to Request Help.
Morf
Posts: 14
Joined: 02 Nov 2012, 21:01

Re: Metadata >> Extended Attributes && Airdate >> Creation T

Post by Morf »

Thanks for the quick response!

To take your questions in order:

1) I have to confirm on every move/copy operation. If I copy several files at once I do get prompted for each file (so several times during the copy), although there is the usual Windows "do this for all current items" checkbox. Even if I check this, I will be asked again on the next copy.

2) -DuseExtendedFileAtrributes=false made the problem go away, both for the platform version and the normal version (I prefer the look and feel of the normal version).

3) -DuseNativeShell=false is already set for the platform version, and that didn't help (until I set -DuseExtendedFileAtrributes=false). I'm renaming the files in their existing folder, then copying outside FileBot - not sure if this makes a difference.

4) r1288 - I tried this first, without setting -DuseExtendedFileAtrributes=false, and it didn't help.

So, I'm now using the ship version of 3.1 (not r1288) with -DuseExtendedFileAtrributes=false set, and the normal version works fine for me.

Problem solved as far as I am concerned, but if you'd like me to be a guinea pig for testing that would be fine.





For the benefit of anybody else who has this problem, you need to edit either filebot.platform.launcher.l4j.ini or filebot.launcher.l4j.ini depending upon whether you use the Filebot or Filebot (Platform) shortcut and change the highlighted line. If you're using Windows 7 with User Access Control enabled and Filebot is installed in C:\Program Files, you won't be able to save the file directly if you edit it with notepad: save it somewhere else and then copy it across manually.

filebot.platform.launcher.l4j.ini
# FileBot launch4j runtime config
-Dapplication.deployment=msi
-Dapplication.dir="%APPDATA%\FileBot"

# FileBot system properties
-DthreadPool=8
-Dunixfs=false

# proxy settings
# -Dhttp.proxyHost=localhost
# -Dhttp.proxyPort=8888

# disable analytics
# -no-analytics

# do not use native shell for move/copy operations
-DuseNativeShell=false

# use NTFS extended attributes for storing metadata
-DuseExtendedFileAttributes=false

# memory settings
-Xms64m
-Xmx512m

# http connection timeouts
-Dsun.net.client.defaultConnectTimeout=10000
-Dsun.net.client.defaultReadTimeout=60000

# look for native libs here
-Djna.library.path="%EXEDIR%"
-Djava.library.path="%EXEDIR%"

# force english locale
-Dfile.encoding=UTF-8
-Duser.country=US
-Duser.country.format=US
-Duser.language=en
-Duser.language.format=en

# disable HW acceleration
-Dsun.java2d.d3d=false

# force platform L&F
-Dswing.systemlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel


filebot.launcher.l4j.ini
# FileBot launch4j runtime config
-Dapplication.deployment=msi
-Dapplication.dir="%APPDATA%\FileBot"

# proxy settings
# -Dhttp.proxyHost=localhost
# -Dhttp.proxyPort=8888

# disable analytics
# -no-analytics

# use native shell for move/copy operations
-DuseNativeShell=true

# use NTFS extended attributes for storing metadata
-DuseExtendedFileAttributes=false

# memory settings
-Xmx256m

# http connection timeouts
-Dsun.net.client.defaultConnectTimeout=10000
-Dsun.net.client.defaultReadTimeout=60000

# look for native libs here
-Djna.library.path="%EXEDIR%"
-Djava.library.path="%EXEDIR%"
User avatar
rednoah
The Source
Posts: 24645
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Metadata >> Extended Attributes && Airdate >> Creation T

Post by rednoah »

Oh, so you first rename files in place, and only later move them to that other non-NTFS drive? Then you need -DuseExtendedFileAttributes=false to make FileBot not set EAs in the first place. EAs are set as files are renamed and it looks like the normal windows move/copy dialog is a bit stupid about handling those.

Can you try with r1288, but move-renaming files directly to their final destination, you know with absolute path as format? If FileBot is invoking the move/copy operations it should suppress these messages, should work with both -DuseNativeShell=false and -DuseNativeShell=true.
:idea: Please read the FAQ and How to Request Help.
Morf
Posts: 14
Joined: 02 Nov 2012, 21:01

Re: Metadata >> Extended Attributes && Airdate >> Creation T

Post by Morf »

OK, copying within Filebot with version 3.1 and -DuseNativeShell=true, I got the error. With the new version, I don't, regardless of -DuseNativeShell. So you're successfully suppressing the messages. :D

In my circumstances, this isn't much of a help because I could be copying the file to any of a number of different locations or even drives depending upon the particular program, so I'll stick to my existing way of working (rename in place and copy later) but with -DuseExtendedFileAttributes=false set.

Many thanks for your help!
ehmtwo
Posts: 5
Joined: 05 Nov 2012, 05:59

Re: Common Naming Schemes

Post by ehmtwo »

I'm trying to modify:

D:/TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}

I'm trying to replace "s00e00" with "s{s.pad(2)}e{e.pad(2)}"

but I cannot do that because they're within a {}, and reflect as the season and episode numbers instead of text. I'm not familiar with groovy, but is there a way I can replace the "S" and "E" with lower case? I'm not a fan of capitols because I find it hard to scan by eye, the lower case makes it easier to divide
ehmtwo
Posts: 5
Joined: 05 Nov 2012, 05:59

Re: How about sharing our format expressions?

Post by ehmtwo »

I have managed to figure how to replace "S"

s00e00.replaceFirst(/^S/, "s")

i'm messing with how to change the "E"
Post Reply