Multiple operation

Any questions? Need some help?
Post Reply
Con7e
Posts: 5
Joined: 13 Nov 2013, 15:33

Multiple operation

Post by Con7e »

Hello :)

I need a command line string for filebot to do this:

- First, search a video folder of my choosing and get italian subtitles. If italian subtitles are not available, get english ones.
- Second, rename all the files in the video folder
- Quit filebot

How can I achive this?
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Multiple operation

Post by rednoah »

1.
http://www.filebot.net/cli.html

2.
Just get English AND Italian subs...

3.
The "Quit FileBot" part makes me wonder if you know what cmdline means... but here goes:

e.g. this is a start, but you wanna look into all the other options to fine-tunes things:

Code: Select all

filebot -get-missing-subtitles --lang it .
filebot -get-missing-subtitles --lang en .
filebot -rename -non-strict .
@see
http://snag.gy/qdnxS.jpg
:idea: Please read the FAQ and How to Request Help.
Con7e
Posts: 5
Joined: 13 Nov 2013, 15:33

Re: Multiple operation

Post by Con7e »

I know what a command line is. I wrote that point because I will be implementing these commands in one of my python scripts :) Thank you.

EDIT:

I have a prob. Everything works fine, but the thing is, I really only need 1 pair of subs. Italian or english if italian is not available. Filebot gets me both so I have 2 subtitles for each video file. Isn't there a way for it to check if a subtitle is already present, to skip searching for it?
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Multiple operation

Post by rednoah »

You can check that with python. You can call filebot with multiple file arguments instead of a folder so it should be really easy to filter out the files that already have subs after the --lang it run.

You can rename the .ita.srt part to .eng.srt :P That'll make filebot think English subs are already available and skip it :P
:idea: Please read the FAQ and How to Request Help.
Con7e
Posts: 5
Joined: 13 Nov 2013, 15:33

Re: Multiple operation

Post by Con7e »

Ok, i created myself a little script to do that. I have a problem though... Why Filebot gets the wrong subs for the shows?

It doesn't happen every time, but on 20 files, at least 4 didn't match my tv show. I mean, I had, for example, and episode of "Person of Interest" and the subtitle got with Filebot was of an episode of "Criminal Minds" D: . This happens way too often then expected.
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Multiple operation

Post by rednoah »

Is it hash lookup or text lookup?

It's probably some idiots linking moviehash with the wrong subtitles. You could check with OpenSubtitles on that one, there's little I can do, I get back what I get back.

If you don't set -non-strict it'll be more reliable but also fetch less subtitles. If you send me the logs I can have a looks.
:idea: Please read the FAQ and How to Request Help.
Con7e
Posts: 5
Joined: 13 Nov 2013, 15:33

Re: Multiple operation

Post by Con7e »

It's via hash lookup and I need the -non-strict parameter. Well, it's not a big deal in the end... just was curious why it happens :). Thanks!
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Multiple operation

Post by rednoah »

there maybe be chance of hash collision but it's much more likely that some person just uploaded a bad moviehash/subtitle pair


EDIT: Had a quick look and i just use the first result from the options i get back from OpenSubtitles. Fixed that with r1844 by doing my own relevance sorting to pick the best match.
:idea: Please read the FAQ and How to Request Help.
Con7e
Posts: 5
Joined: 13 Nov 2013, 15:33

Re: Multiple operation

Post by Con7e »

I've just updated. I'll se how it goes, thanks.
Post Reply