intro-skipper icon indicating copy to clipboard operation
intro-skipper copied to clipboard

Shows with Same Name Don't All Appear in Manage Fingerprints[Bug]:

Open ethaldeman opened this issue 1 year ago • 22 comments

Describe the bug

I have the original Cowboy Bebop anime and the Netflix live action remake in my Jellyfin library. In Jellyfin both shows are unique series, but are both known as "Cowboy Bebop". They are stored locally in directories with the release year in the name. Both have intro data and I have skipped the intro on both using the "Skip Intro" button. However under Manage Fingerprints, I only see one listing for "Cowboy Bebop", and it appears to contain data for the anime. I have no way to edit finger prints for the live action version.

Jellyfin installation method

Ubuntu

Container image and tag

jellyfin 10.9.2

Operating System

Ubuntu 22.04.4

IMDb ID of that TV Series

tt0213338 and tt1267295

Support Bundle

* Jellyfin version: 10.9.2
* Plugin version: 0.2.0+46f280f0afae
* Queue contents: 4918 episodes, 266 seasons
* Warnings: `None`
* FFmpeg: `okay`

FFmpeg version:

ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil      58.  2.100 / 58.  2.100
libavcodec     60.  3.100 / 60.  3.100
libavformat    60.  3.100 / 60.  3.100
libavdevice    60.  1.100 / 60.  1.100
libavfilter     9.  3.100 /  9.  3.100
libswscale      7.  1.100 /  7.  1.100
libswresample   4. 10.100 /  4. 10.100
libpostproc    57.  1.100 / 57.  1.100


### Jellyfin logs

_No response_

ethaldeman avatar May 24 '24 14:05 ethaldeman

I have a feeling this is the fontend portion causing the issue because behind the scenes, everything is given an ID. Is it putting all of the seasons from both into the one or only displaying the one and nothing else?

AbandonedCart avatar May 24 '24 15:05 AbandonedCart

Only displaying the one and nothing else.

ethaldeman avatar May 24 '24 16:05 ethaldeman

I'm still trying to figure out why exactly it wouldn't work. Based on the code, it should at least end up throwing everything under one heading because it adds the shows, not put or set (in code terms, that means it's not targeting the name, but simply throwing it on the list). If anything, you should be ending up with a duplicate.

AbandonedCart avatar May 26 '24 01:05 AbandonedCart

Okay, so they both have the same name, Cowboy Bebop, but you have 2 different TV series in your library?

jumoog avatar May 26 '24 10:05 jumoog

(Yes) It seems the issue is only in the configuration page, so everything else works.

https://github.com/jumoog/intro-skipper/blob/9974e840bbe6d82799d70fa6364b84ba84940796/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html#L753

AbandonedCart avatar May 26 '24 14:05 AbandonedCart

Okay, so they both have the same name, Cowboy Bebop, but you have 2 different TV series in your library?

Yes, below are the two series in Jellyfin.

image

Below is the the single listing in the finger print editor.

image

ethaldeman avatar May 26 '24 21:05 ethaldeman

the key is identical and is therefore overwritten again. May be we have to add the year to the key.

https://github.com/jumoog/intro-skipper/blob/9974e840bbe6d82799d70fa6364b84ba84940796/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs#L68

jumoog avatar May 27 '24 09:05 jumoog

Okay, so they both have the same name, Cowboy Bebop, but you have 2 different TV series in your library?

Yes, below are the two series in Jellyfin.

image

Below is the the single listing in the finger print editor.

image

As a workaround, you can rename the one TV series to Cowboy Bebop (2021) in the Metadata.

jumoog avatar May 27 '24 10:05 jumoog

We may need to add key value pairs to everything with how many shows Netflix adapts. One piece is another one it will trip over.

AbandonedCart avatar May 27 '24 15:05 AbandonedCart

Some shows I have as 1080p and 4K. To do it right, we would even have to separate the library.

jumoog avatar May 27 '24 15:05 jumoog

Depends if you mean that they are different lengths at different resolutions.

AbandonedCart avatar May 28 '24 14:05 AbandonedCart

Depends if you mean that they are different lengths at different resolutions.

Theoretically, they could be different. I haven't had any problems so far.

jumoog avatar May 28 '24 14:05 jumoog

But that also means it's not really something you have to handle. Saying that it's not compatible with multiple resolutions that have different lengths makes sense. Saying you can't have two series that have the same name doesn't.

The problem is being stuck between the single reference preventing unintentional duplicates, but at the same time also preventing intentional ones.

AbandonedCart avatar May 28 '24 14:05 AbandonedCart

I will test this later. I'm sure I can only change the time of one programme. The other remains unchanged.

jumoog avatar May 28 '24 14:05 jumoog

Isn't the issue that one Cowboy Bebop doesn't come up at all? Everything works fine, except the editor.

Seems like the simple solution would be to assign the series ID to the key alongside the name.

AbandonedCart avatar May 28 '24 14:05 AbandonedCart

Cowboy Bebop is shown in the list, but only one of the two.

jumoog avatar May 28 '24 14:05 jumoog

Yes, so that has nothing to do with multiple resolutions. The issue is that the key is the series name and there are two that are identical.

AbandonedCart avatar May 28 '24 14:05 AbandonedCart

Yes, so that has nothing to do with multiple resolutions. The issue is that the key is the series name and there are two that are identical.

It is similar. I also have two identical series names.

jumoog avatar May 28 '24 14:05 jumoog

I'm not sure where you are going with all of this, but the solution seems to be the same.

AbandonedCart avatar May 28 '24 14:05 AbandonedCart

There are a few minor roadblocks.

By default, folders aren't really given any sort of universally unique identification beyond the path. The identification they get as part of Jellyfin is based on the scrapers used, which could vary user to user and are no more reliable than the final name they decide. This means that folder 1 and folder 2 are technically indistinguishable in code as anything more than folder 1 and folder 2 without intervention.

That leaves us at the only real way to separate the two when collecting names would be to also assign the path alongside it. That just seems like it will end up in disaster since the premise of libraries is that the same item with a single path can exist in multiple libraries. The time should be the same for all of them, sure, but moving a file collapses the whole thing.

It seems like the most rational solution may be the original workaround. When two series have the same name, something like (2019) in the folder name would create a clear separation that doesn't rely on every identification being perfect.

TL;DR I think if we try to address it on this end, it will end up being a source of problems.

AbandonedCart avatar May 30 '24 22:05 AbandonedCart

TL;DR I think if we try to address it on this end, it will end up being a source of problems.

So does that mean you won't be fixing the problem within the addon, and rely on the end-user to uniquely name their series within Jellyfin?

When two series have the same name, something like (2019) in the folder name would create a clear separation that doesn't rely on every identification being perfect.

Or do you plan on implementing the above logic, or something similar, within the addon in some future update?

ethaldeman avatar Jun 04 '24 21:06 ethaldeman

The logic you quoted was actually referring to user intervention. The irony of the situation is almost any solution the plugin could offer relies on there first being some action taken or at least verified. At that point, it's not really any more automated.

AbandonedCart avatar Jun 04 '24 22:06 AbandonedCart