Matching problem on TheTVDB

Any questions? Need some help?
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Matching problem on TheTVDB

Post by Sheldon »

But I didn't set the -non-strict option in my command.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Matching problem on TheTVDB

Post by rednoah »

Well there, can you guess what my next question will be then?
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Matching problem on TheTVDB

Post by Sheldon »

Nope! You know my command already but here you are.

java -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=portable -Dapplication.analytics=true "-Dapplication.dir=D:\Portable Applications\Platform\PortableApps\FileBot" "-Duser.home=D:\Portable Applications\Platform\PortableApps\FileBot" "-Djava.io.tmpdir=D:\Portable Applications\Platform\PortableApps\FileBot\Temp" "-Djna.library.path=D:\Portable Applications\Platform\PortableApps\FileBot\Lib" "-Djava.library.path=D:\Portable Applications\Platform\PortableApps\Filebot\Lib" -Dnet.filebot.AcoustID.fpcalc="D:\Portable Applications\Platform\PortableApps\FileBot\Lib\fpcalc.exe" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory "-Dnet.filebot.util.prefs.file=D:\Portable Applications\Platform\PortableApps\FileBot\prefs.properties" -jar "D:\Portable Applications\Platform\PortableApps\FileBot\FileBot.jar" -list --db %2 --q %3 --lang %4 --filter %5 --format %6 --log OFF > %7 %*
)
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Matching problem on TheTVDB

Post by rednoah »

You know your command. I absolutely do not. :lol:

Actually, I still don't know the command that was executed since I don't know your %1..9 parameters. More importantly, I also don't know the output.
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Matching problem on TheTVDB

Post by Sheldon »

Yes, you do because we did this already several times. But anyway.

-list --db %2 --q %3 --lang %4 --filter %5 --format %6 --log OFF > %7 %*

%2 = thetvdb
%3 = After the Black
%4 = en
%5 = "s=2 && s<=2 && e>= 5 && e <= 5"
%6 = "{n} - {s.pad(2)} - {e.pad(2)} - {t}"
%7 = output file name

result = After the Catch - 02 - 05 - Real Life
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Matching problem on TheTVDB

Post by rednoah »

1.
If you're doing all of that, then you might as well add another n == /After the Black/ to your filter.

2.
How does a -list call result in badly renamed files?
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Matching problem on TheTVDB

Post by Sheldon »

I thought the series is set by the -q option. Do I have to add it to the filter as well? What is the difference?

The result of the list command is redirected to the output file.
The renaming is not done via Filebot. I fetch the name from the output file
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Matching problem on TheTVDB

Post by rednoah »

Code: Select all

$ filebot -list --q "After the Black" --db TheTVDB
After the Black - 1x01 - Episode 1
After the Black - 1x02 - Episode 2
After the Black - 1x03 - Episode 3
...
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Matching problem on TheTVDB

Post by Sheldon »

Yes, that's right! But I mentioned already that this data at TheTVDB is wrong.
After the Black is currently in season 2. They defined it to be season 1.
So you have to search for season 2 and their episode numbers (see my example) to get the wrong result (After the Catch).
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Matching problem on TheTVDB

Post by kim »

this show ?
http://thetvdb.com/?tab=series&id=309608&lid=7

it's not locked = make account and update it yourself ;)

http://www.bbcamerica.com/shows/after-the-black
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Matching problem on TheTVDB

Post by Sheldon »

Yes, that's the right show. Thanks for your hint.
i know that the TheTVDB data can be modified. I did this already for other shows.
The problem is with FileBot. FileBot must not return wrong data in this case. But it does!
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Matching problem on TheTVDB

Post by kim »

looks like there is a problem with your filter?
Apply Filter: {s=2 && s<=2 && e>= 5 && e <= 5}
try: --filter "s==2 && s<=2 && e>= 5 && e <= 5"
or --filter "n != /After the Catch/"
filebot.exe -list --db thetvdb --q "After the Black" --filter "s=2 && s<=2 && e>= 5 && e <= 5" --format "{n} - {s.pad(2)} - {e.pad(2)} - {t}"
Using persistent disk cache C:\Program Files\FileBot\cache\1
Fetch resource: https://api.thetvdb.com/search/series?n ... +the+Black
Received 515 bytes
Rank [After the Black] => [After the Black, After the Catch, Project Runway, The First 48]
Rank [After the Black] => [After the Black, After the Catch]
Fetch resource: https://api.thetvdb.com/series/309608
Received 849 bytes
Fetch resource: https://api.thetvdb.com/series/309608/episodes?page=1
Received 3,626 bytes
Apply Filter: {s=2 && s<=2 && e>= 5 && e <= 5}
Include [After the Black - 1x05 - Episode 5]
After the Black - 01 - 05 - Episode 5
but I don't see the problem ?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Matching problem on TheTVDB

Post by rednoah »

'=' is the assignment operator. '==' is the equals operator.

@see http://groovy-lang.org/operators.html#_ ... _operators
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Matching problem on TheTVDB

Post by Sheldon »

Sorry, my post was wrong.
I use s>=2 && s <=2 && e>=5 && e<= 5.
and this leads to "After the Catch."
That's the problem.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Matching problem on TheTVDB

Post by rednoah »

It leads to no results because episode 2x05 doesn't exist:

Code: Select all

$ filebot -list --q "After the Black" --db TheTVDB --filter "s == 2 && e == 5"
Apply Filter: {s == 2 && e == 5}
$ 
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Matching problem on TheTVDB

Post by Sheldon »

It should lead to no result but it leads to the show "After the Catch". That's the issue!
I didn't change the data at TheTVDB so far to be able to show the bug to you.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Matching problem on TheTVDB

Post by rednoah »

If I give you an executable command with full output that proofs that it yields no results, then you need to provide equally strong proof (command + console output) if you want to convince me that it works differently for you. ;)
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Matching problem on TheTVDB

Post by Sheldon »

After some research i found the culprit that causes the problem and it's not FileBot in the first place.
So consider this to be solved! Sorry for bothering you!
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Matching problem on TheTVDB

Post by rednoah »

That's what I thought. :lol:
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Matching problem on TheTVDB

Post by Sheldon »

This is what happened. The command

Code: Select all


java -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=portable -Dapplication.analytics=true "-Dapplication.dir=D:\Portable Applications\Platform\PortableApps\FileBot" "-Duser.home=D:\Portable Applications\Platform\PortableApps\FileBot" "-Djava.io.tmpdir=D:\Portable Applications\Platform\PortableApps\FileBot\Temp" "-Djna.library.path=D:\Portable Applications\Platform\PortableApps\FileBot\Lib" "-Djava.library.path=D:\Portable Applications\Platform\PortableApps\Filebot\Lib" -Dnet.filebot.AcoustID.fpcalc="D:\Portable Applications\Platform\PortableApps\FileBot\Lib\fpcalc.exe" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory "-Dnet.filebot.util.prefs.file=D:\Portable Applications\Platform\PortableApps\FileBot\prefs.properties" -jar "D:\Portable Applications\Platform\PortableApps\FileBot\FileBot.jar" -list --db TheTVDB --q "After-the-Black"  --lang en --filter "s >= 2 && s <= 2 && e >= 5 && e <= 5" --format "{n} - {s.pad(2)} - {e.pad(2)} - {t}" >> test.txt

leads to this output

Code: Select all


Apply Filter: {s >= 2 && s <= 2 && e >= 5 && e <= 5}
Include [After the Catch - 2x05 - Real Life]
After the Catch - 02 - 05 - Real Life

This is some kind of bug because it returns a wrong result even if the input "After-the-Black" is incorrect.
There seems to be a problem with the dashes in the name.
Maybe this is of interest for you and you want to avoid such mismatches.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Matching problem on TheTVDB

Post by rednoah »

I guess if you pass in a query than that's exactly what will be passed on to the database and then you get what you get.

For FileBot that's not an issue because internally the query will always be normalised before a search request is sent.
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Matching problem on TheTVDB

Post by Sheldon »

But probably this normalization doesn't take place if the request is sent from the command line like above.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Matching problem on TheTVDB

Post by rednoah »

Of course not. FileBot will not mess with your query. ;)
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Matching problem on TheTVDB

Post by Sheldon »

I guess you changed something because with r4020 the mismatch is gone. Great! Thanks!
Post Reply