Kodi Community Forum
Broken handling of TV shows in form of BDMV folders - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Broken handling of TV shows in form of BDMV folders (/showthread.php?tid=374806)



Broken handling of TV shows in form of BDMV folders - intelfx - 2023-10-23

I'm setting up my media library in Kodi and I might have come across broken behavior.

I have a bunch of TV shows ripped from Blu-ray disks in form of file-level copies. That is, for each episode, I have a BDMV folder with all containing files:

Code:

Show Name S01E01
Show Name S01E01/BDMV
Show Name S01E01/BDMV/STREAM
Show Name S01E01/BDMV/STREAM/00000.m2ts
Show Name S01E01/BDMV/BACKUP
Show Name S01E01/BDMV/BACKUP/CLIPINF
Show Name S01E01/BDMV/BACKUP/CLIPINF/00000.clpi
Show Name S01E01/BDMV/BACKUP/PLAYLIST
Show Name S01E01/BDMV/BACKUP/PLAYLIST/00000.mpls
Show Name S01E01/BDMV/BACKUP/MovieObject.bdmv
Show Name S01E01/BDMV/BACKUP/index.bdmv
Show Name S01E01/BDMV/CLIPINF
Show Name S01E01/BDMV/CLIPINF/00000.clpi
Show Name S01E01/BDMV/PLAYLIST
Show Name S01E01/BDMV/PLAYLIST/00000.mpls
Show Name S01E01/BDMV/MovieObject.bdmv
Show Name S01E01/BDMV/index.bdmv

On the surface, it scrapes correctly (the show is detected, and an episode for each is scraped into the library). However, if I navigate into the episode list, each episode is actually added in duplicate:

Image

If I go into Information, it turns out that every first duplicate is the index.bdmv file, and every second duplicate is the MovieObject.bdmv file.

What is my mistake here, and how do I get rid of duplication?



Additionally, if I mess around with advancedsettings.xml and add a tvshowmatching regex without the end-of-string anchor, I get every episode seven(!) times (one for each *.bdmv/*.mpls/*.m2ts file in the rip):

Image

Now, this is a broken configuration and I won't be keeping this change, but in this configuration one of the duplicate entries actually shows the file information at the bottom (true length, file codec, resolution, aspect ratio and soundtrack format). How do I make Kodi show the right metadata without breaking everything?


RE: Broken handling of TV shows in form of BDMV folders - Karellen - 2023-10-23

(2023-10-23, 01:33)intelfx Wrote: I have a bunch of TV shows ripped from Blu-ray disks in form of file-level copies. That is, for each episode, I have a BDMV folder with all containing files:
That is not the best way to rip your bluray disks. There is no need for that type of antiquated and complicated file and folder structure outside of a bluray disk.
I strongly urge you to rip each episode into an mkv file. Have a read of this thread and in particular my post here... https://forum.kodi.tv/showthread.php?tid=373986&pid=3162808#pid3162808

Try adding this to your advancedsettings.xml file to fix the duplication issue...
xml:
<excludetvshowsfromscan action="append">
<regexp>[\\/](auxdata|backup|clipinf|playlist|stream|certificate)[\\/]</regexp>
<regexp>movieobject\.bdmv</regexp>
<regexp>/extras/</regexp>
<regexp>[\\/]extras[\\/]</regexp>
</excludetvshowsfromscan>