Solved v12.2 & local TV episode NFO files
#31
(2013-05-10, 08:41)scudlee Wrote: The issue was fixed yesterday: PR2709.

It should already be in the latest nightly, and if there's a v12.3, it will be part of it.

In trying to fix a bug that affected barely anyone, I accidentally broke something that affected quite a few. Sorry about that.

(Kudos to the author of MCM for reacting so quickly.)

Hi,

could this bug that you fixed, also have been resposible for duplicate show entries, when scraping with local nfo present.

I have this issue only with 12.2 (eden is fine, 12.1 is fine)

My episode files are named s01e01_20130513_blabla

My files are all tv recordings and if prefer to keep the recording date in the filename. This helped me a lot in the past to track down quality issues (satellite signal, sat driver issues etc.). So i'm able to quickly find other files during this recording period and if they have problems reschedule them again.

I wrote that, because i know the first answer will be - rename your files.

But because it worked wonderful in the past few years, i thought i might be a bug.

Regards,
Maikl
win7x64, eden pvr / frodo 12.1, mysql, aeon mq4, boblight
Reply
#32
Are the duplicate entries showing up with an episode number of (e.g.) "20120513"?

One way around it (without renaming your files) would be to just remove the underscore from the multi-episode matching pattern. That way it won't interpret the date as a second episode number.

Create an advancedsettings.xml (wiki) in your userdata folder (wiki) containing:
Code:
<advancedsettings>
  <tvmultipartmatching>^[-EeXx]+([0-9]+)</tvmultipartmatching>
</advancedsettings>
(If you've already made an advancedsettings.xml, just add the tvmultipartmatching line inside the existing advancedsettings tags.)
Reply
#33
(2013-05-13, 23:26)scudlee Wrote: Are the duplicate entries showing up with an episode number of (e.g.) "20120513"?
yes


Quote:One way around it (without renaming your files) would be to just remove the underscore from the multi-episode matching pattern. That way it won't interpret the date as a second episode number.

Create an advancedsettings.xml (wiki) in your userdata folder (wiki) containing:
Code:
<advancedsettings>
  <tvmultipartmatching>^[-EeXx]+([0-9]+)</tvmultipartmatching>
</advancedsettings>
(If you've already made an advancedsettings.xml, just add the tvmultipartmatching line inside the existing advancedsettings tags.)

Great,
thx for the fast response. I have to try that tomorrow evening. Nearly 0:00 clock here Smile

Any idea why it started with 12.2?

Regards,
Maikl
win7x64, eden pvr / frodo 12.1, mysql, aeon mq4, boblight
Reply
#34
thx, it worked
win7x64, eden pvr / frodo 12.1, mysql, aeon mq4, boblight
Reply
#35
(2013-05-10, 08:41)scudlee Wrote: The issue was fixed yesterday: PR2709.

It should already be in the latest nightly, and if there's a v12.3, it will be part of it.

In trying to fix a bug that affected barely anyone, I accidentally broke something that affected quite a few. Sorry about that.

(Kudos to the author of MCM for reacting so quickly.)

Hi,
i have another issue that feels like it's linked to this category.
In 12.2 when i refresh a tv-show with local nfo present, the metadata vanishes (only for the show, not for the episodes) and the title of the show in the list view is empty(blank line), but it still shows the count for the episodes and i can navigate into the episode view.

This only happens when refreshing a show, not on initial import with local nfos.

Here are some details of the test setup and the findings.

XBMC 12.2 - Testimport
-----------------------

fresh XBMC 12.2 Installation
Mode: Portable
No PVR
Language: English
Skin: Default Confluence
no additional Add-Ons/Skins/Languages installed
no default Settings changed beside Source to Testfolder
OS: Win7 x64 SP1
Test-Source: local HDD-Folder
local DB, no MySQL
Debug: on

advancedsettings.xml
--------------------
http://www.xbmclogs.com/show.php?id=19729

sources.xml
-----------
http://www.xbmclogs.com/show.php?id=19730

Test-Source:
-------------
D:\Test\The Walking Dead (only 1 Episode)
D:\Test -> set content
-> set to TV Shows (TVDB)
-> selected folder contains a single TV show: no
-> exclude path from library updates: no

Folder-Structure:
----------------
D:\Test\The Walking Dead
-> .actors (present after Export from Test1)
-> Season01
--> .actors (present after Export from Test1)
--> s01e01_Days Gone Bye.mp4
--> s01e01_Days Gone Bye.nfo (present after Export from Test1)
--> s01e01_Days Gone Bye-thumb.jpg (present after Export from Test1)
-> banner.jpg (present after Export from Test1)
-> fanart.jpg (present after Export from Test1)
-> poster.jpg (present after Export from Test1)
-> season01-banner.jpg (present after Export from Test1)
-> season01-poster.jpg (present after Export from Test1)
-> season02-banner.jpg (present after Export from Test1)
-> season02-poster.jpg (present after Export from Test1)
-> season03-banner.jpg (present after Export from Test1)
-> season-all-poster.jpg (present after Export from Test1)
-> season-specials-poster.jpg (present after Export from Test1)
-> tvshow.nfo (present after Export from Test1)

Test 1:
-------
- fresh install
- scrape source using tvdb scraper
- select preferred banner
- select preferred poster
- select preferred fanart
- check metadata (everything is fine, all metadata for tvshow and custom art present)
- export to separate files
-> thumbnails and fanart: yes
-> actor thumbs: yes
-> overwrite old files: yes
- quit xbmc
- see debug log -> http://www.xbmclogs.com/show.php?id=19733

Test 2:
-------
- fresh install
- scrape source using previously exported files (local nfo, jpg, etc.)
- check metadata (everything is fine, all metadata for tvshow and custom art present)
- quit xbmc
- see debug log -> http://www.xbmclogs.com/show.php?id=19735

Test 3:
-------
- same install from Test2
- refresh TV-Show
-- refresh info for all epsiodes: yes
-- locally stored information found, ignore and refresh from internet: no
- check metadata
-> all metadata for the tv show is gone
-> the TV-Show title "The Walking Dead" is deleted from the List view, its a blank entry now with 1 episode
-> episode info is still present and accurate
- quit xbmc
- see debug log -> http://www.xbmclogs.com/show.php?id=19736

Fixes tried:
-----------
Case 1: delete TV-Show from library
-> not possible (simply doesn't get removed, can't find a hint in the log that a removal was even tried)
-> see debug log -> http://www.xbmclogs.com/show.php?id=19737

Case 2: refresh --> locally stored information found, ignore and refresh from internet: yes
-> works, but watched states and custom art are resetted (no solution)

Case 3: change content source to "None" and back to "TV Show" -> refresh: yes
-> works, but takes a long time for big collections
-> downside: watchedstates which haven't been exported yet, are lost

Case 4: tried the latest nightly
-> new scraper mode: "Local information only" (couldn't see any difference in the behaviour, same results as with TVDB, see below)
-> refresh --> now doesn't ask to use local nfo at all, it gets the show from tvdb (resetting metadata for the show, instead of using local tvshow.nfo[what if i modified the plot or genres?])
-> local art is preserved as well as info from local episode.nfos


Findings:
---------
A snippet from the debug log when projecting the test cases to my prod environment with mysql:
----------------------------------------------------------------------------------------------
I left out the fields that where equal for both queries and partly replaced the values with "ok" or "miss" due to readability.
I can setup a clean test case with mysql and debug logs as well, but before doing that, maybe you already have a suggestion or are aware of the problem.

Test2: working scan:
update tvshow set c00='Plot_ok' ,c05='2012-09-19',c06='thumb_ok',c08='Genre_ok',c11='fanart_ok',c12='261970',c14='TNT Serie' where idShow=7
Test3: non working refresh:
update tvshow set c00='Plot_miss',c05='1601-01-01',c06='thumb_miss',c08='Genre_miss',c11='fanart_miss',c12='',c14='' where idShow=99

If I manually run the query from Test2 again, everything is fine again. TV-Show Metainfo shows up.
It seems these queries are not included in the debug log when "not" using mysql. So it's harder to find.

Kind regards,
Maikl
win7x64, eden pvr / frodo 12.1, mysql, aeon mq4, boblight
Reply
#36
(2013-05-17, 12:33)dreamkp Wrote:
(2013-05-10, 08:41)scudlee Wrote: The issue was fixed yesterday: PR2709.

It should already be in the latest nightly, and if there's a v12.3, it will be part of it.

In trying to fix a bug that affected barely anyone, I accidentally broke something that affected quite a few. Sorry about that.

(Kudos to the author of MCM for reacting so quickly.)

Hi,
i have another issue that feels like it's linked to this category.
In 12.2 when i refresh a tv-show with local nfo present, the metadata vanishes (only for the show, not for the episodes) and the title of the show in the list view is empty(blank line), but it still shows the count for the episodes and i can navigate into the episode view.

This only happens when refreshing a show, not on initial import with local nfos.

Here are some details of the test setup and the findings.

XBMC 12.2 - Testimport
-----------------------

fresh XBMC 12.2 Installation
Mode: Portable
No PVR
Language: English
Skin: Default Confluence
no additional Add-Ons/Skins/Languages installed
no default Settings changed beside Source to Testfolder
OS: Win7 x64 SP1
Test-Source: local HDD-Folder
local DB, no MySQL
Debug: on

advancedsettings.xml
--------------------
http://www.xbmclogs.com/show.php?id=19729

sources.xml
-----------
http://www.xbmclogs.com/show.php?id=19730

Test-Source:
-------------
D:\Test\The Walking Dead (only 1 Episode)
D:\Test -> set content
-> set to TV Shows (TVDB)
-> selected folder contains a single TV show: no
-> exclude path from library updates: no

Folder-Structure:
----------------
D:\Test\The Walking Dead
-> .actors (present after Export from Test1)
-> Season01
--> .actors (present after Export from Test1)
--> s01e01_Days Gone Bye.mp4
--> s01e01_Days Gone Bye.nfo (present after Export from Test1)
--> s01e01_Days Gone Bye-thumb.jpg (present after Export from Test1)
-> banner.jpg (present after Export from Test1)
-> fanart.jpg (present after Export from Test1)
-> poster.jpg (present after Export from Test1)
-> season01-banner.jpg (present after Export from Test1)
-> season01-poster.jpg (present after Export from Test1)
-> season02-banner.jpg (present after Export from Test1)
-> season02-poster.jpg (present after Export from Test1)
-> season03-banner.jpg (present after Export from Test1)
-> season-all-poster.jpg (present after Export from Test1)
-> season-specials-poster.jpg (present after Export from Test1)
-> tvshow.nfo (present after Export from Test1)

Test 1:
-------
- fresh install
- scrape source using tvdb scraper
- select preferred banner
- select preferred poster
- select preferred fanart
- check metadata (everything is fine, all metadata for tvshow and custom art present)
- export to separate files
-> thumbnails and fanart: yes
-> actor thumbs: yes
-> overwrite old files: yes
- quit xbmc
- see debug log -> http://www.xbmclogs.com/show.php?id=19733

Test 2:
-------
- fresh install
- scrape source using previously exported files (local nfo, jpg, etc.)
- check metadata (everything is fine, all metadata for tvshow and custom art present)
- quit xbmc
- see debug log -> http://www.xbmclogs.com/show.php?id=19735

Test 3:
-------
- same install from Test2
- refresh TV-Show
-- refresh info for all epsiodes: yes
-- locally stored information found, ignore and refresh from internet: no
- check metadata
-> all metadata for the tv show is gone
-> the TV-Show title "The Walking Dead" is deleted from the List view, its a blank entry now with 1 episode
-> episode info is still present and accurate
- quit xbmc
- see debug log -> http://www.xbmclogs.com/show.php?id=19736

Fixes tried:
-----------
Case 1: delete TV-Show from library
-> not possible (simply doesn't get removed, can't find a hint in the log that a removal was even tried)
-> see debug log -> http://www.xbmclogs.com/show.php?id=19737

Case 2: refresh --> locally stored information found, ignore and refresh from internet: yes
-> works, but watched states and custom art are resetted (no solution)

Case 3: change content source to "None" and back to "TV Show" -> refresh: yes
-> works, but takes a long time for big collections
-> downside: watchedstates which haven't been exported yet, are lost

Case 4: tried the latest nightly
-> new scraper mode: "Local information only" (couldn't see any difference in the behaviour, same results as with TVDB, see below)
-> refresh --> now doesn't ask to use local nfo at all, it gets the show from tvdb (resetting metadata for the show, instead of using local tvshow.nfo[what if i modified the plot or genres?])
-> local art is preserved as well as info from local episode.nfos


Findings:
---------
A snippet from the debug log when projecting the test cases to my prod environment with mysql:
----------------------------------------------------------------------------------------------
I left out the fields that where equal for both queries and partly replaced the values with "ok" or "miss" due to readability.
I can setup a clean test case with mysql and debug logs as well, but before doing that, maybe you already have a suggestion or are aware of the problem.

Test2: working scan:
update tvshow set c00='Plot_ok' ,c05='2012-09-19',c06='thumb_ok',c08='Genre_ok',c11='fanart_ok',c12='261970',c14='TNT Serie' where idShow=7
Test3: non working refresh:
update tvshow set c00='Plot_miss',c05='1601-01-01',c06='thumb_miss',c08='Genre_miss',c11='fanart_miss',c12='',c14='' where idShow=99

If I manually run the query from Test2 again, everything is fine again. TV-Show Metainfo shows up.
It seems these queries are not included in the debug log when "not" using mysql. So it's harder to find.

Kind regards,
Maikl

no one? scudlee maybe
win7x64, eden pvr / frodo 12.1, mysql, aeon mq4, boblight
Reply
#37
(2013-05-06, 09:43)jmarshall Wrote: Looks like we'll need the .nfo file (episode + tvshow please) to reproduce.

I too am having issues with tvshow.nfo files
** this is only when refreshing from TV Infomation Screen **
otherwise on inital scan it get read correctly

started a thread here with info.
http://forum.xbmc.org/showthread.php?tid=169153

can any XBMC Dev advise there is an issue with 12.2 Frodo reading these files

I have mentioned a fix that seems to work.

If anyone wants more info then pls advise
Reply

Logout Mark Read Team Forum Stats Members Help
v12.2 & local TV episode NFO files1