[BUG] Jeopardy Renaming

All your suggestions, requests and ideas for future development
Post Reply
sufreak
Posts: 7
Joined: 14 Sep 2016, 01:55

[BUG] Jeopardy Renaming

Post by sufreak »

Code: Select all

 filebot -script fn:sysinfo
FileBot 4.7 (r3923)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.1.0 (/usr/share/filebot/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.6
JRE: Java(TM) SE Runtime Environment 1.8.0_101 (headless)
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 20 MB Used Memory
OS: Linux (amd64)
Package: DEB
Data: /var/lib/plexmediaserver/.filebot
uname: Linux pluto 3.13.0-95-generic #142-Ubuntu SMP Fri Aug 12 17:00:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

--- UPDATE AVAILABLE: FileBot 4.7.2 (r4178) ---

Done ヾ(@⌒ー⌒@)ノ

I'm not sure what changed from one day to the next.... (other than a season folder, which shouldn't matter

Code: Select all

    <sequence date="2016-09-12T20:11:33.978-04:00">
        <rename dir="/dvrfiles/recordings/Jeopardy! (1984)" from="Jeopardy! (1984) - 2016-05-20.mkv" to="/dvrfiles/recordings/Jeopardy! (1984)/Jeopardy! - S2016E101.mkv"/>
    </sequence>
    <sequence date="2016-09-12T20:11:59.595-04:00">
        <rename dir="/dvrfiles/recordings/Jeopardy! (1984)" from="Jeopardy! (1984) - 2016-09-12.mkv" to="/dvrfiles/recordings/Jeopardy! (1984)/Jeopardy! - S2016E152.mkv"/>
    </sequence>
    <sequence date="2016-09-13T19:57:28.347-04:00">
        <rename dir="/dvrfiles/recordings/Jeopardy! (1984)/Season 33" from="Jeopardy_ (1984) - S33E02 - Episode 2.mkv" to="/dvrfiles/recordings/Jeopardy! (1984)/Season 33/Jeopardy (2002) - S01E02.mkv"/>
    </sequence>
    <sequence date="2016-09-13T20:29:04.626-04:00">
        <rename dir="/dvrfiles/recordings/Jeopardy! (1984)/Season 33" from="Jeopardy! (1984) - 2016-09-13.mkv" to="/dvrfiles/recordings/Jeopardy! (1984)/Season 33/Jeopardy (2002) - S00E02.mkv"/>
    </sequence>
    <sequence date="2016-09-13T21:25:39.010-04:00">
        <rename dir="/dvrfiles/recordings/Jeopardy! (1984)/Season 33" from="Jeopardy! (1984) - 2016-09-13.mkv" to="/dvrfiles/recordings/Jeopardy! (1984)/Season 33/Jeopardy (2002) - S00E02.mkv"/>
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [BUG] Jeopardy Renaming

Post by rednoah »

1.
What are you doing? GUI? Script? Logs?


2.
You are not using the latest version.


3.
Did you check if the data has been added to TheTVDB yet? If you're processing files within hours of release, the data may not have been added yet, so FileBot won't be able to match airdate with SxE numbers, and due to -non-strict mode it'll pick the next best option.

Based on this, I guess episode data isn't even added more than a day in advance, so FileBot may or may not work depending on when new data is added:
http://thetvdb.com/?tab=season&seriesid ... 7978&lid=7

Please update TheTVDB more than 1-2 days in advance, to ensure the data is available when FileBot is processing the files.


EDIT:

It seems to be working now:

Code: Select all

[COPY] Rename [Jeopardy! (1984) - 2016-09-13.mkv] to [TV Shows/Jeopardy/Season 2016/Jeopardy! - S2016E153 - Annie Busiek, AndrÉ Hereford, Elizabeth Troyer.mkv]
:idea: Please read the FAQ and How to Request Help.
sufreak
Posts: 7
Joined: 14 Sep 2016, 01:55

Re: [BUG] Jeopardy Renaming

Post by sufreak »

1. This is a CLI script in Linux

2. I updated to the most recent version and did it again


3. It's been in the TVDB for many days

<sequence date="2016-09-14T05:32:21.857-04:00">
<rename dir="/dvrfiles/recordings/Jeopardy! (1984)/Season 33" from="Jeopardy! (1984) - 2016-09-13.mkv" to="/dvrfiles/recordings/Jeopardy! (1984)/Season 33/Jeopardy (2002) - S00E02.mkv"/>
</sequence>
<sequence date="2016-09-14T05:36:49.831-04:00">
<rename dir="/dvrfiles/recordings/Jeopardy! (1984)/Season 33" from="Jeopardy! (1984) - 2016-09-13.mkv" to="/dvrfiles/recordings/Jeopardy! (1984)/Season 33/Jeopardy (2002) - S00E02.mkv"/>
</sequence>
Still not working.
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [BUG] Jeopardy Renaming

Post by rednoah »

What command are you calling? What is the command-line output?
:idea: Please read the FAQ and How to Request Help.
sufreak
Posts: 7
Joined: 14 Sep 2016, 01:55

Re: [BUG] Jeopardy Renaming

Post by sufreak »

Sorry, forgot to include that. The weird thing is that it worked the day before. Only thing that changed was it was added to a season folder.

Code: Select all

filebot -rename -non-strict "/dvrfiles/recordings/Jeopardy! (1984)/Season 33/Jeopardy! (1984) - 2016-09-13.mkv" --db TheTVDB --format "{n} - {s00e00}" 
and
Rename episodes using [TheTVDB]
Auto-detected query: [Jeopardy (2002)]
Fetching episode data for [Jeopardy (2002)]
Fetching episode data for [Jeopardy!]
[MOVE] Rename [/dvrfiles/recordings/Jeopardy! (1984)/Season 33/Jeopardy! (1984) - 2016-09-13.mkv] to [/dvrfiles/recordings/Jeopardy! (1984)/Season 33/Jeopardy (2002) - S00E02.mkv]
Processed 1 files
Filebot Errorlevel 0
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [BUG] Jeopardy Renaming

Post by rednoah »

sufreak wrote:The weird thing is that it worked the day before.
This means nothing, unless we're talking about the exact same file (path, data and xattr) and know that online data hasn't changed. ;)


Make sure that files are not tagged, otherwise subsequent test cases will be meaningless:

Code: Select all

$ filebot -script fn:xattr . --action clear
Done ヾ(@⌒ー⌒@)ノ

Run test:

Code: Select all

$ filebot -rename . -non-strict --db TheTVDB --format "{n} - {s00e00} - {t}" --action test
Rename episodes using [TheTVDB]
Auto-detected query: [Jeopardy]
Fetching episode data for [Jeopardy!]
Fetching episode data for [Jeopardy (2002)]
Fetching episode data for [Super Jeopardy!]
Fetching episode data for [Sports Jeopardy]
Fetching episode data for [Jeopardy! Flashback]
[TEST] Rename [Jeopardy! (1984) - 2016-09-13.mkv] to [Jeopardy! - S2016E153 - Annie Busiek, AndrÉ Hereford, Elizabeth Troyer.mkv]
Processed 1 files
:idea: Please read the FAQ and How to Request Help.
sufreak
Posts: 7
Joined: 14 Sep 2016, 01:55

Re: [BUG] Jeopardy Renaming

Post by sufreak »

rednoah wrote:
sufreak wrote:The weird thing is that it worked the day before.
This means nothing, unless we're talking about the exact same file (path, data and xattr) and know that online data hasn't changed. ;)
Sorry, to give some context. I've been using this script for months with no issue. I was recording with MythTV and it was working perfect. I switched to PlexDVR, which recorded the first episode fine. The second episode, after a Plex update, went to a season folder, not just a Showname folder.

rednoah wrote: Make sure that files are not tagged, otherwise subsequent test cases will be meaningless:

Code: Select all

$ filebot -script fn:xattr . --action clear
Done ヾ(@⌒ー⌒@)ノ

Run test:

Code: Select all

$ filebot -rename . -non-strict --db TheTVDB --format "{n} - {s00e00} - {t}" --action test
Rename episodes using [TheTVDB]
Auto-detected query: [Jeopardy]
Fetching episode data for [Jeopardy!]
Fetching episode data for [Jeopardy (2002)]
Fetching episode data for [Super Jeopardy!]
Fetching episode data for [Sports Jeopardy]
Fetching episode data for [Jeopardy! Flashback]
[TEST] Rename [Jeopardy! (1984) - 2016-09-13.mkv] to [Jeopardy! - S2016E153 - Annie Busiek, AndrÉ Hereford, Elizabeth Troyer.mkv]
Processed 1 files
Can you expand on tagging?

Code: Select all

Season 33$ filebot -script fn:xattr . --action clear
/dvrfiles/recordings/Jeopardy! (1984)/Season 33/Jeopardy! (1984) - S33E02 - Episode 2.mkv
        net.filebot.filename: Jeopardy_ (1984) - S33E02 - Episode 2.mkv
        net.filebot.metadata: {"@type":"net.filebot.web.Episode","seriesName":"Jeopardy (2002)","season":0,"episode":null,"title":"Annie Busiek, AndrÉ Hereford, Elizabeth Troyer","absolute":null,"special":2,"airdate":{"year":2016,"month":9,"day":13},"seriesInfo":{"database":"TheTVDB","order":"Airdate","language":"en","id":72257,"name":"Jeopardy (2002)","aliasNames":[],"certification":"","startDate":{"year":2002,"month":4,"day":26},"genres":["Children","Fantasy"],"network":"BBC One","rating":null,"ratingCount":0,"runtime":25,"status":"Ended"}}
*** CLEARED ***
Done ヾ(@⌒ー⌒@)ノ
OK, so that did it

Code: Select all

filebot -rename -non-strict "/dvrfiles/recordings/Jeopardy! (1984)/Season 33/Jeopardy! (1984) - 2016-09-13.mkv" --db TheTVDB --format "{n} - {s00e00}"
Rename episodes using [TheTVDB]
Auto-detected query: [Jeopardy]
Fetching episode data for [Jeopardy!]
Fetching episode data for [Jeopardy (2002)]
Fetching episode data for [Super Jeopardy!]
Fetching episode data for [Sports Jeopardy]
Fetching episode data for [Jeopardy! Flashback]
[MOVE] Rename [/dvrfiles/recordings/Jeopardy! (1984)/Season 33/Jeopardy! (1984) - 2016-09-13.mkv] to [/dvrfiles/recordings/Jeopardy! (1984)/Season 33/Jeopardy! - S2016E153.mkv]

So what is tagging? Should I be clearing stuff in filebot before I run it each time?
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [BUG] Jeopardy Renaming

Post by rednoah »

When you process files, FileBot will store metadata as xattr so that FileBot and other tools can instantly identify files in the future regardless of how you name them.

If files are renamed (and thus tagged) with incorrect metadata, then you may need to clear that incorrect metadata so it doesn't nudge FileBot towards the incorrect result. The only reason we had to clear metadata in this case is because you were reusing your test files which (as we have now learnt) is generally bad idea. ;)

If you really wanted to force a certain TV series or episode you'd use the --q and --filter options:

Code: Select all

--q "Jeopardy! (1984)"
:idea: Please read the FAQ and How to Request Help.
Post Reply