Duplicate TV Shows for one episode
#1
Can any one see why this filename creates two TV Show entries for one episode. The episode does have the proper info from the NFO file.

Code:
09:10:08 T:3576  NOTICE: VideoInfoScanner: Starting scan ..
09:10:08 T:3576   DEBUG: VideoInfoScanner: Found episode match k:\the simpsons\the simpsons_20111211_00000000.ts (s201112e11) [[\\/\._ -]([0-9]+)([0-9][0-9](?:(?:[a-i]|\.[1-9])(?![0-9]))?)([\._ -][^\\/]*)$]
09:10:08 T:3576   DEBUG: VideoInfoScanner: Adding new season 0, multipart episode 0 [^[-_EeXx]+([0-9]+(?:(?:[a-i]|\.[1-9])(?![0-9]))?)]
09:10:08 T:3576   DEBUG: CVideoDatabase::GetEpisodeId (K:\The Simpsons\The Simpsons_20111211_00000000.ts), query = select idEpisode from episode where idFile=483
09:10:08 T:3576   DEBUG: VideoInfoScanner: Found matching Full NFO file: K:\The Simpsons\The Simpsons_20111211_00000000.nfo
09:10:08 T:3576   DEBUG: VideoInfoScanner: Adding new item to tvshows:K:\The Simpsons\The Simpsons_20111211_00000000.ts
09:10:08 T:3576   DEBUG: CVideoDatabase::GetEpisodeId (K:\The Simpsons\The Simpsons_20111211_00000000.ts), query = select idEpisode from episode where idFile=483
09:10:08 T:3576   DEBUG: VideoInfoScanner: Found matching Full NFO file: K:\The Simpsons\The Simpsons_20111211_00000000.nfo
09:10:08 T:3576   DEBUG: VideoInfoScanner: Adding new item to tvshows:K:\The Simpsons\The Simpsons_20111211_00000000.ts

The filename can't be changed it comes from a PVR but I want to import it into the TV Shows database, I really don't like the PVR UI.

Martin
Reply
#2
Looking into the source, the logic on this file name is really stupid, it thinks it is a multi-episode file The first one it takes as s201112 e11 and the second as s00 e00. There really should be limits put into the parser to avoid ridiculous situations. The NFO file does provide the correct information on the episodes.

Martin
Reply
#3
Is there anyway to turn off multi-part scanning entirely?

Martin
Reply
#4
Perhaps take 2 minutes to read how Xbmc works Smile

http://wiki.xbmc.org/index.php?title=Adv...atching.3E

The nfo is attached to the files Xbmc find and not files are attached to nfo found. So this is perfectly normal that if your naming is bad according to Xbmc standard you got 2 episodes detected.
Reply
#5
If it had only been two minutes I would be happening. It was confusing at first because the wiki doesn't show the production regex's and the matches were so unrealistic, I had to read the code to see what was going on. I can't control the way the program writes that filename name but I have asked.

After all the reading I actually did come up with a partial solution and that is a

Code:
<tvshowmatching action="prepend">
  <regexp>[\\/\._ -](20[0-9]{6})_.+\.ts</regexp>  <!-- Match NextPVR date as a season/episode -->
</tvshowmatching>

but I think an option to turn off multi-episode matching makes more sense.

Martin
Reply
#6
If you have an idea to improve the regexp, please let us know (e.g. restricting the season hit to 4 digits might do the trick).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
I don't necessarily think it should filter out weird numbering but I think that if the multi-part episode regex in <tvmultipartmatching./> fails, it simply should create a single entry. I am pretty sure I tried using a restrictive regex and I still had two.

Martin
Reply
#8
I can see the argument for ignoring the multipart episode if episode == 0. It's that the regex doesn't fail which is causing the second item to show.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Duplicate TV Shows for one episode0