Questions regarding CLI

Any questions? Need some help?
Post Reply
chris41g
Posts: 4
Joined: 13 Dec 2013, 22:59

Questions regarding CLI

Post by chris41g »

I had a couple of questions regarding the CLI

Using non-strict matching, I get this:

Code: Select all

"C:\Program Files\FileBot\filebot.exe" -rename "law.and.order.svu.s11e02.dvdrip.xvid-reward.avi" -non-strict --log all 

Filename pattern: [1.00] SxE, [0.00] CWS
Rename episodes using [TheTVDB]
Auto-detected query: [Law & Order: Special Victims Unit, Law and Order, Law and Order SVU]
Fetching episode data for [Law & Order: Special Victims Unit]
Fetching episode data for [Law and Order (1978)]
Fetching episode data for [Law and Disorder]
Fetching episode data for [Law & Order]
[MOVE] Rename [C:\Users\chris41g\Downloads\Law and Order SVU S11E02 DVDRip XviD-REWARD\law.and.order.svu.s11e02.dvdrip.xvid-reward.avi] to [Law & Order - 11x02 - Turnstile Justice.avi]
Processed 1 files
Done ?(?????)?
Which is, of course wrong.. so I tried it with the default strict matching, where I get this:

Code: Select all

 "C:\Program Files\FileBot\filebot.exe" -rename "law.and.order.svu.s11e02.dvdrip.xvid-reward.sample.avi" --log all 

Deleted file - C:\Users\chris41g\Downloads\Law and Order SVU S11E02 DVDRip XviD-REWARD\law.and.order.svu.s11e02.dvdrip.xvid-reward.sample.avi
Filename pattern: [1.00] SxE, [0.00] CWS
Rename episodes using [TheTVDB]
Auto-detected query: [Law & Order: Special Victims Unit, Law and Order, Law and Order SVU]
Exception: Handling multiple shows requires non-strict matching
Failure (~_~)
Launch4j: Failed to run the given command.
As you can see, that doesn't work either.. Now I could use non-strict with -q or something else, but this is in a script that processes all my movies and tv shows, so I can't really do that, I'm just wondering why it can't process Law & Order SVU, even though it obviously know's thats what it is?


2nd question, of a little less importance, how can I change the default Episode Formatting of the CLI with specifying it on the command line? If I specify it, the filebot assumes TV mode.. If I don't specify, it will detect Movie or TV show.. If it's not currently possible, then that's ok, I'll just have to continue to rely on python for Episode format..

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

Re: Questions regarding CLI

Post by rednoah »

Not it doesn't:

Code: Select all

Fetching episode data for [Law & Order: Special Victims Unit]
Fetching episode data for [Law and Order (1978)]
Fetching episode data for [Law and Disorder]
Fetching episode data for [Law & Order]
Could be any one of those. It only knows it's one of those four and filebot picks the "most likely" (i.e. the most similar) one.

strict-mode is doing exactly what it should, fail in any case of ambiguity, so anything that does get processed is assured to be correct.

2.

Code: Select all

--format
Example #3
http://www.filebot.net/cli.html
:idea: Please read the FAQ and How to Request Help.
chris41g
Posts: 4
Joined: 13 Dec 2013, 22:59

Re: Questions regarding CLI

Post by chris41g »

rednoah wrote:Not it doesn't:

Code: Select all

Fetching episode data for [Law & Order: Special Victims Unit]
Fetching episode data for [Law and Order (1978)]
Fetching episode data for [Law and Disorder]
Fetching episode data for [Law & Order]
Could be any one of those. It only knows it's one of those four and filebot picks the "most likely" (i.e. the most similar) one.

strict-mode is doing exactly what it should, fail in any case of ambiguity, so anything that does get processed is assured to be correct.
yes but in non strict, it auto detects as the correct show, and still renames to the wrong one?

Code: Select all

Auto-detected query: [Law & Order: Special Victims Unit, Law and Order, Law and Order SVU]
rednoah wrote: 2.

Code: Select all

--format
Example #3
http://www.filebot.net/cli.html
yes, i know about that, I asked for a way without specifically implying it on the command line... because when you do you imply either movie mode OR tv mode.. so then I can't name both tv shows or movies with one command line...
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Questions regarding CLI

Post by rednoah »

1.
We have 3 options:
Law & Order: Special Victims Unit, Law and Order, Law and Order SVU

1. Law and Order SVU => no show of that name
2. Law & Order: Special Victims Unit VS Law and Order => Law and Order WINS because it's more similar (because only 1 "word" is doesn't match)

The file just doesn't match how things are called on TheTVDB.

Fix it with custom scripts:
http://www.filebot.net/forums/viewtopic ... =280#p1135

2.
You shouldn't rename TV Shows and Movies with one command-line, not with simple -rename anyway. Use the AMC script instead.
:idea: Please read the FAQ and How to Request Help.
chris41g
Posts: 4
Joined: 13 Dec 2013, 22:59

Re: Questions regarding CLI

Post by chris41g »

rednoah wrote:1.
We have 3 options:
Law & Order: Special Victims Unit, Law and Order, Law and Order SVU

1. Law and Order SVU => no show of that name
2. Law & Order: Special Victims Unit VS Law and Order => Law and Order WINS because it's more similar (because only 1 "word" is doesn't match)

The file just doesn't match how things are called on TheTVDB.

Fix it with custom scripts:
http://www.filebot.net/forums/viewtopic ... =280#p1135

2.
You shouldn't rename TV Shows and Movies with one command-line, not with simple -rename anyway. Use the AMC script instead.
hmm ok, well i thought since you added:

Code: Select all

law.and.order.svu	Law & Order: Special Victims Unit
to your series mappings, then it would be able to correctly ID it.. if not, seems to be pointless mapping it.

and I've been using the same command to rename them both for a very long time, using filebot and pheonix rename, no problems until this one. before I start with more scripts to add to apps I use in my scripts, Ill just fix it myself.

speaking of, is this open source, or no?
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Questions regarding CLI

Post by rednoah »

Yes, the mapping means it'll add "Law & Order: Special Victims Unit" as query, thus getting back a perfect match from the database. Without that mapping "Law & Order: Special Victims Unit" wouldn't even be an option.

* Thanks to the mapping GUI users will get "Law & Order: Special Victims Unit" as Option #1.
* CLI will at least consider it as a potential match, so you can do --filter "n != 'Law & Order'" which leaves SVU as second-best option

That reminds me, just use the --filter option. That option gives you full control of what episode data should be considered for matching. So you can just exclude the false positive show names.
http://www.youtube.com/watch?v=b-8Z1kzFLv8


Bonus Question: How many non-OS projects are there on SourceForge?
:idea: Please read the FAQ and How to Request Help.
chris41g
Posts: 4
Joined: 13 Dec 2013, 22:59

Re: Questions regarding CLI

Post by chris41g »

rednoah wrote:Yes, the mapping means it'll add "Law & Order: Special Victims Unit" as query, thus getting back a perfect match from the database. Without that mapping "Law & Order: Special Victims Unit" wouldn't even be an option.

* Thanks to the mapping GUI users will get "Law & Order: Special Victims Unit" as Option #1.
* CLI will at least consider it as a potential match, so you can do --filter "n != 'Law & Order'" which leaves SVU as second-best option

That reminds me, just use the --filter option. That option gives you full control of what episode data should be considered for matching. So you can just exclude the false positive show names.
http://www.youtube.com/watch?v=b-8Z1kzFLv8


Bonus Question: How many non-OS projects are there on SourceForge?
I wasn't aware it was on sourceforge, this forum and the main site aren't and I see no links to it, nor the source.. thats why I asked.

the reason I'm reluctant to add filters and what not, is because its part of a post processing script. I'm trying to make it work for that script. rather than changing my setup around filebot, i would have the change filebot around my setup, or seek an alternative. i have thousands of hours of python and bash scripting, not to mention the C coding invested in my setup. Not trying to be a pain in the ass, it is what it is, and im trying to get to the simplest course of action.

thanks for your help
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Questions regarding CLI

Post by rednoah »

I don't understand the issue... what's so complicated about --filter?

You mean the law.and.order.svu is not matched correctly? This is the solution:

Code: Select all

--filter "n != 'Law & Order'"
Unless you also download Law & Order this solution is perfect.
:idea: Please read the FAQ and How to Request Help.
Post Reply