Jump to content

Incorrectly identified season and how to correct this


Go to solution Solved by Happy2Play,

Recommended Posts

brothom
Posted (edited)

Hello there,

I'm having some issues adding meta data to the show Bleach (2004).

The reason for this is that Bleach (2004) Season 02 keeps being identified as Bleach (2021) Season 02 which is a renewal.

I've tried (among other things) the following:

Bleach (2004) [tvdbid=74796] / Season 02  / Bleach (2004) - s02e001
Bleach (2004) [tvdbid=74796] / Season 02 [tvdbid=16472] / Bleach (2004) - s02e001
Bleach (2004) [tvdbid=74796] / Season 02 [tvdbid=16472] / Bleach (2004) [tvdbid=74796] - s02e001

But still only season 02 keeps being wrongly identified. Is there a way to "hard identify" a season or specific episode? 

Thanks in advance.

Edited by brothom
Correction
Neminem
Posted

Try naming the file s02e01

you have a extra 0 s02e001

Not sure thats it.

Is tvdb enabled in you library settings ?

brothom
Posted

@Neminem

Quote

Try naming the file s02e01

you have a extra 0 s02e001

Not sure thats it.

The extra zeroes don't matter and are there because this show has hundres of episodes and I'm trimming them into seasons.

Quote

Is tvdb enabled in you library settings ?

Yes it is. All other seasons are correctly identied except season 2. image.thumb.png.53180fc11c50f029cefe93c2c6cad0ec.png

The image is from season 17 and the metadata of all underlying episodes is also set to season 17 (which is actually season 2 in the rebooted show, it's named season 17 because the show never officially ended).

Neminem
Posted

Guess dev's will need logs, to see the issue.

 

brothom
Posted

Yup, but it's probably not going to help because it just logs fetching the wrong data. After wiping the meta and refreshing it only the following happened:

2025-06-05 16:36:02.197 Info App: Removing item from database, Type: Episode, Name: Aflevering 1, Path: I:\Media\Series\Bleach (2004) [tvdbid=74796]\Season 02 - The Entry (021-041)\Bleach (2004) - s02e01.mkv, Id: 48311
2025-06-05 16:36:02.238 Info App: Deleting path C:\Users\User\AppData\Roaming\Emby-Server\programdata\metadata\library\d6\d6acff2cbf6d56b60db2b887150bf986
2025-06-05 16:36:02.734 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: C:\Users\User\AppData\Roaming\Emby-Server\system\ffprobe.exe -i file:"I:\Media\Series\Bleach (2004) [tvdbid=74796]\Season 02\Bleach (2004) - s02e01.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2025-06-05 16:36:03.098 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code 0 - Succeeded
2025-06-05 16:36:03.198 Info HttpClient: GET https://api4.thetvdb.com/v4/episodes/9340509/extended?meta=translations

It says it fetched https://www.thetvdb.com/series/bleach/episodes/9340509 but I'm expecting it to fetch https://www.thetvdb.com/series/bleach/episodes/155091.

Perhaps it has something to due with absolute aired episodes. I'll try that brb.

Lessaj
Posted

Try editing the metadata for Season 2 and change the TVDB ID to 16472, then refresh metadata and replace images from the season level.

Neminem
Posted

What is the metadata file order set to for that shaow ?

image.png.b2aefe5089682fc77208c1bf18572ec9.png

brothom
Posted

@Lessaj

Quote

Try editing the metadata for Season 2 and change the TVDB ID to 16472, then refresh metadata and replace images from the season level.

 

If I change the id -> refresh the metadata the id gets reverted back to the old one.

@Neminem

Quote

What is the metadata file order set to for that shaow ?

The same as in your screenshot: Aired. According to the aired order the episode should be season 02 episode 01. 

Neminem
Posted

Do you have NFO files in your library ?

brothom
Posted

@Neminem

Quote

Do you have NFO files in your library ?

I'm only using the NFO storage method and I've disabled thel loaders so I have a backup with each file without them interfering with updated meta.

So yes but they're not being read.

  • Like 1
Neminem
Posted

Currently out of ideas, sorry.

Will need dev's to commend.

Lessaj
Posted

Yea I'm able to replicate it linking season 2 to season 17 with the ID, but it does say Season number is 2 in the metadata, and the episode I added for season 2 episode 1 is correct. I looked at the json in the cache and it correctly shows season 2 with the correct ID, I'm not sure why it would take the ID from season 17. Try changing the ID for the season and then lock the whole season, then you can manually search for images for the season and it will show the season 2 images.

brothom
Posted

@LessajThat sounds plausible. How would I go about "locking a season"? Is there a checkbox somewhere in the season settings?

Lessaj
Posted
5 minutes ago, brothom said:

@LessajThat sounds plausible. How would I go about "locking a season"? Is there a checkbox somewhere in the season settings?

Yup, all the way at the bottom.

image.png.b18be9acb930891ca9e622ae52a61227.png

  • Like 1
brothom
Posted (edited)

@Lessajlocking the season automatically also locks all the underlying episodes.

It's true this is a way to fix my issue, but as you also said; it's really strange the data for a (completely) different season is associated.
It looks like I'll have to look the entire season and the episodes and manually correct all of them.

This does seem like something that should land with the devs so they can try to figure out what's actually happening.

Reproduction is super easy:

1. Create the following structure:

Bleach (2004) / Season 02 / Bleach (2004) - s02e01.mkv
Bleach (2004) / Season 02 / Bleach (2004) - s02e02.mkv

2. Run metadata refresh

3. The metadata for Season 17 is applied to Season 02. 

I have a gut feeling someone at one of the providers has linked Season 17 wrongfully (somehow). I've got an account with both thetvdb and themoviedb but can't seem to find any old / strange relations so it looks like it can't be fixed via their interfaces.

---

UPDATE

I was just fixing the meta data when I noticed that recommended images are also from both seasons:image.thumb.png.22286c92b516d5b37d0552ed1e2c4d9a.png

The first image is from Season 17. The last image is from Season 2. Something weird is up with the agent data I think.

Edited by brothom
Happy2Play
Posted (edited)
15 minutes ago, brothom said:

@Lessajlocking the season automatically also locks all the underlying episodes.

It's true this is a way to fix my issue, but as you also said; it's really strange the data for a (completely) different season is associated.
It looks like I'll have to look the entire season and the episodes and manually correct all of them.

This does seem like something that should land with the devs so they can try to figure out what's actually happening.

Reproduction is super easy:

1. Create the following structure:

Bleach (2004) / Season 02 / Bleach (2004) - s02e01.mkv
Bleach (2004) / Season 02 / Bleach (2004) - s02e02.mkv

2. Run metadata refresh

3. The metadata for Season 17 is applied to Season 02. 

I have a gut feeling someone at one of the providers has linked Season 17 wrongfully (somehow). I've got an account with both thetvdb and themoviedb but can't seem to find any old / strange relations so it looks like it can't be fixed via their interfaces.

 

Guess these steps don't work for me as it looks correct here default library setting minus changing nfo saver and images with media.

image.png.17d3d05e1937adcf729e6baf0f40b89d.png

image.png.0ec78531e59f95cbb058087216fb691e.png

image.thumb.png.e231e13ef078c055505b6d4703a9348b.png

Edited by Happy2Play
added image
GrimReaper
Posted (edited)

Don't have access to my installation atm, but if you could:

1. Remove Season 2 folder our of Bleach TV show folder

2. Run Scan media library task to clean the db

3. Use this naming convention

14 minutes ago, brothom said:

Season 02 /

and not

3 hours ago, brothom said:
\Season 02 - The Entry (021-041)

3. Delete any existing NFOs from Season 2 folder

4. Run Rotate log file task

5. Move Season 2 folder with single episode only back to your Bleach TV show folder

6. Run Scan media library task

7. Download and attach server log to your post here so all queries made can be seen

 

Edited by GrimReaper
Happy2Play
Posted (edited)

Also I don't think it should be an issue but what language are you using as it could be a language api issue on the provider?

Edited by Happy2Play
brothom
Posted

@GrimReaper

Quote

Don't have access to my installation atm, but if you could:

Hm, I just corrected all meta data so if there's no other way really.

Quote

3. Use this naming convention

Yes I can see how that's confusing. I've tried (any) naming convention. Originally I used Season 02 (from-to) and did the same with Naruto which worked beautifully.

I tried:

Bleach (2004)
Bleach (2004) [tvdbid=74796]
Bleach [tvdbid=74796]
[tvdbid=74796]
.. also per season
...also per episode

I still have my old log however and I might see where it's going wrong:

Quote

2025-06-05 14:57:18.952 Info Server: http/2 POST https://XXXXXXXXXX‌‌/emby/Items/34982/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false&X-Emby-Client=Emby Web&X-Emby-Device-Name=Google Chrome Windows&X-Emby-Device-Id=52931313-5600-4af5-bf73-f64589075fe8&X-Emby-Client-Version=4.9.1.1&X-Emby-Token=‌f095aee7856248958cb884882d721b46‌&X-Emby-Language=nl. Source Ip: ‌‍‍86.86.172.19‌, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
2025-06-05 14:57:18.954 Info App: Refresh metadata requested on 34982
2025-06-05 14:57:18.955 Info Server: http/2 Response 204 to ‌‍‍86.86.172.19‌. Time: 3ms. POST https://XXXXXXXXXX‌/emby/Items/34982/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false&X-Emby-Client=Emby Web&X-Emby-Device-Name=Google Chrome Windows&X-Emby-Device-Id=52931313-5600-4af5-bf73-f64589075fe8&X-Emby-Client-Version=4.9.1.1&X-Emby-Token=‌f095aee7856248958cb884882d721b46‌&X-Emby-Language=nl
2025-06-05 14:57:19.066 Info App: Removing item from database, Type: Episode, Name: Enter! The World of the Shinigami, Path: I:\Media\Series\Bleach (2004)\Season 01\Season 02 - The Entry (021-041)\Bleach (2004) - s01e021.mkv, Id: 42538
2025-06-05 14:57:19.145 Info App: Deleting path C:\Users\User\AppData\Roaming\Emby-Server\programdata\metadata\library\4b\4b5f17bcf993b56c1c90eeb41f534f59
2025-06-05 14:57:19.276 Info HttpClient: GET https://api.themoviedb.org/3/tv/30984/season/2?api_key=‌f6bd687ffa63cd282b6ff2c6877f2669‌&append_to_response=images,keywords,external_ids,credits,videos&language=nl-NL&include_image_language=nl-NL,null
2025-06-05 14:57:19.553 Info HttpClient: GET https://api.themoviedb.org/3/tv/30984/season/2?api_key=‌f6bd687ffa63cd282b6ff2c6877f2669‌&append_to_response=images,keywords,external_ids,credits,videos&language=en-US&include_image_language=en-US,null
2025-06-05 14:57:19.606 Info HttpClient: GET https://api4.thetvdb.com/v4/series/74796/extended?meta=translations&short=false
2025-06-05 14:57:20.266 Info HttpClient: GET https://api4.thetvdb.com/v4/seasons/2008655/extended?meta=translations&short=false
2025-06-05 14:57:20.448 Info HttpClient: GET https://api.themoviedb.org/3/tv/30984/season/2?api_key=‌f6bd687ffa63cd282b6ff2c6877f2669‌&append_to_response=images,keywords,external_ids,credits,videos
2025-06-05 14:57:20.697 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: C:\Users\User\AppData\Roaming\Emby-Server\system\ffprobe.exe -i file:"I:\Media\Series\Bleach (2004)\Season 02 - Entry\Bleach (2004) - s02e001.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2025-06-05 14:57:21.179 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code 0 - Succeeded
2025-06-05 14:57:21.189 Info HttpClient: GET https://api.themoviedb.org/3/tv/30984/season/2/episode/1?api_key=‌f6bd687ffa63cd282b6ff2c6877f2669‌&append_to_response=images,external_ids,credits,videos&language=nl-NL&include_image_language=nl-NL,null
2025-06-05 14:57:21.293 Info HttpClient: GET https://api.themoviedb.org/3/tv/30984/season/2/episode/1?api_key=‌f6bd687ffa63cd282b6ff2c6877f2669‌&append_to_response=images,external_ids,credits,videos&language=en-US&include_image_language=en-US,null
2025-06-05 14:57:21.304 Info HttpClient: GET https://api4.thetvdb.com/v4/series/74796/episodes/official?page=0
2025-06-05 14:57:22.188 Info HttpClient: GET https://api4.thetvdb.com/v4/series/74796/episodes/official/nld?page=0
2025-06-05 14:57:22.713 Info SessionManager: Reissuing access token: ‌f095aee7856248958cb884882d721b46‌

It fetches the correct series:

2025-06-05 14:57:19.606 Info HttpClient: GET https://api4.thetvdb.com/v4/series/74796/extended?meta=translations&short=false

But the wrong season:

2025-06-05 14:57:20.266 Info HttpClient: GET https://api4.thetvdb.com/v4/seasons/2008655/extended?meta=translations&short=false

That's caused by themoviedb having season 17 listed as season 2 here

2025-06-05 14:57:19.276 Info HttpClient: GET https://api.themoviedb.org/3/tv/30984/season/2?api_key=‌f6bd687ffa63cd282b6ff2c6877f2669‌&append_to_response=images,keywords,external_ids,credits,videos&language=nl-NL&include_image_language=nl-NL,null
2025-06-05 14:57:19.553 Info HttpClient: GET https://api.themoviedb.org/3/tv/30984/season/2?api_key=‌f6bd687ffa63cd282b6ff2c6877f2669‌&append_to_response=images,keywords,external_ids,credits,videos&language=en-US&include_image_language=en-US,null

 

Which makes sense because my providers are:

1. TheMovieDB
2. TheTVDB

It grabs the wrong season from the movie db and uses that as the basis, causing the wrong season to be used it seems.

Lessaj
Posted

I used this pathing, brand new into my test system because I don't have this show. I created files for episode 1 of both seasons:

/mnt/raid/tvset/Bleach (2004)/Season 1/Bleach (2004) - S01E01 - The Day I Became a Shinigami.mkv

/mnt/raid/tvset/Bleach (2004)/Season 2/Bleach (2004) - S02E01 - Enter! The World of the Shinigami.mkv

I had no NFO files at all, I simply let Emby handle it. Season 2 is incorrectly using the metadata of Season 17 based on the TVDB ID, but it still correctly set the season number to 2. I'm not able to explain this. Additionally, the details for S02E01 are correct.

image.png.a7ebe636cb44bdc175db55989691f20c.png

image.png.09f470d7a65dd910c717af5f8f80d3fb.png

image.thumb.png.072f421e01207e7795e5f5272a3c7c3d.png

Per the JSON in the cache directory for the show this is the ID for season 2:

    {
      "id": 16472,
      "seriesId": 74796,
      "type": {
        "id": 1,
        "name": "Aired Order",
        "type": "official"
      },
      "name": "尸魂界潜入篇",
      "number": 2,
      "nameTranslations": [
        "spa,rus,tha,kor,fra,eng,jpn,cat,pt,deu,ita,nld"
      ],
      "overviewTranslations": [
        "spa,fra,eng,jpn,cat,pt"
      ],
      "image": "https://artworks.thetvdb.com/banners/v4/season/16472/posters/628323519dc88.jpg",
      "imageType": 7,
      "companies": [
        {
          "id": 0,
          "primaryCompanyType": 0
        }
      ]
    }

And this is for season 17:

    {
      "id": 2008655,
      "seriesId": 74796,
      "type": {
        "id": 1,
        "name": "Aired Order",
        "type": "official"
      },
      "name": "千年血戦篇",
      "number": 17,
      "nameTranslations": [
        "eng,jpn,fra,pt,kor,zho,por,deu,ita,rus,spa"
      ],
      "overviewTranslations": [
        "eng,fra,pt,zho,por,deu,ita,rus"
      ],
      "image": "https://artworks.thetvdb.com/banners/v4/season/2008655/posters/62ee9d21a6161.jpg",
      "imageType": 7,
      "companies": [
        {
          "id": 0,
          "primaryCompanyType": 0
        }
      ]
    }

 

Happy2Play
Posted
2 minutes ago, brothom said:

Which makes sense because my providers are:

1. TheMovieDB
2. TheTVDB

Since TMDB and TVDB are not organized the same by default I can see issues as your primary provider it TMDB but would need to see all library settings as I can not replicate with TVDB as provider.

  • Solution
Happy2Play
Posted (edited)

So the issue become the miss-match from TMDB to TVDB.

TMDB only has 2 seasons

image.png.dafee5520f09f6d1b182619d804b13d1.png

image.thumb.png.c1152e5f75784c2d7b40f2100601c52f.png

image.thumb.png.8b4592e6ca8570e487afc2a4f6395b09.png

image.png.c8b782508a9f197aca3d2529d112d98e.png

Edited by Happy2Play
added images
brothom
Posted (edited)

Yep. I've just logged back into TheMovieDB and guess what; they're having a hard time convincing the admins there their data is wrong.

For now I've manually set all the season data so that won't be lost anyway.

Maybe it's an idea to note that "lock this item for changes" switch because I've never noticed it before and is very useful in cases like these where the datasource is misleading for only a single season/episode or so.

This issue is resolved because my question has been answered. :D 

Edited by brothom
Close
  • Agree 1
Happy2Play
Posted (edited)

In this scenario one can not use both providers.  And @Lukeneeds to implement alternate provider orders to make them match.

image.png.c49097ea7782c03434ffbd15f35819b0.png

or per provider limits per show.

Edited by Happy2Play
Happy2Play
Posted

Added more images above to show miss-match using TMDB here since everything will primarily come from first provider.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...