Jump to content

Wrong language metadata detection for episodes of one of my tv shows


solutionsnut
Go to solution Solved by Happy2Play,

Recommended Posts

solutionsnut

For one of my tv shows (case closed, in german: detektiv conan), the episodes receive the wrong language for the metadata. The series itself is shown in german. The server metadata language is: German/Germany and there aren't any library or episode specific overrides for the metadata. The target metadata provider is thetvdb.org. I investigated now almost a day, to get rid of that issue but without success 😅, it's kind of a special use case. Because I tried other tv shows (even japanese ones) but I could not reproduce the issues for them. What I did:

  1. Refreshed the Metadata several times
  2. I tried to scan the library several times
  3. I deleted the complete tv show from the library folder -> Did the above 2 steps -> Added the tv show to the library -> Did the above 2 steps again
  4. Used the newly added feature "Remove Identification" -> Did the above 2 steps
  5. I switched to different language e.g. french or english
  6. I restarted the server several times at least after each of above steps

but nothing helped. What is kind of important, the issue raised only since today in the morning, when I wanted to add new episodes. For example at the beginning of the month (the last time, where I added new episodes)  it did as expected.

The structure of my library is like:

/pathToLibrary/detektiv-conan/season-01/01x01 - Episode.avi

tv-show.png

season.png

embyserver.txt

Link to comment
Share on other sites

Hello solutionsnut,

** This is an auto reply **

Please wait for someone from staff support or our members to reply to you.

It's recommended to provide more info, as it explain in this thread:


Thank you.

Emby Team

Link to comment
Share on other sites

jaycedk

In your Library settings, under Episode Metadata Downloader.

See if unticking TheTVDB helps.

I think there is a bug in Episode handeling in the "TheTVDB plugin".

image.png.3fe56795ca848fe950b0e1d6c7d06701.png

 

Edited by jaycedk
Link to comment
Share on other sites

solutionsnut

Thanks for the hint 🙂, unfortunately this will not work for me. The reason is: detektiv conan is structurely differently in TheMovieDb. Because there are all episodes (> 1000) in one season. For the thetvdb provider there is one season almost yearly so in total about 32 seasons. Which is in my opinion much more better structured. But at least for the very first season, the episodes are detected correctly, you are right. They would be german.

Link to comment
Share on other sites

jaycedk

ok then you will need for a dev to show up 😉

Link to comment
Share on other sites

  • Solution
Happy2Play

As discussed in other topics TVDB is not returning Language episode data correctly

	Line 72371: 2024-04-10 09:31:20.614 Info HttpClient: GET https://api4.thetvdb.com/v4/series/72454/extended?meta=translations
	Line 72394: 2024-04-10 09:31:22.257 Info HttpClient: GET https://webservice.fanart.tv/v3/tv/72454?api_key=‌5c6b04c68e904cfed1e6cbc9a9e683d4‌
	Line 72396: 2024-04-10 09:31:22.956 Info HttpClient: GET https://assets.fanart.tv/fanart/tv/72454/hdclearart/detective-conan-5fb12ad044315.png
	Line 72404: 2024-04-10 09:31:23.783 Info HttpClient: GET https://assets.fanart.tv/fanart/tv/72454/tvbanner/detective-conan-5c6f607bf3d93.jpg
	Line 72406: 2024-04-10 09:31:23.901 Info HttpClient: GET https://assets.fanart.tv/fanart/tv/72454/tvthumb/detective-conan-61ad15a0edff9.png
	Line 72408: 2024-04-10 09:31:24.002 Info HttpClient: GET https://assets.fanart.tv/fanart/tv/72454/showbackground/detective-conan-5c6ecdc1d0f39.jpg
	Line 72455: 2024-04-10 09:31:26.100 Info HttpClient: GET https://assets.fanart.tv/fanart/tv/72454/seasonbanner/detective-conan-5c7f1767d57f4.jpg
	Line 72654: 2024-04-10 09:31:53.040 Info HttpClient: GET https://api4.thetvdb.com/v4/series/72454/episodes/official?page=0
	Line 72655: 2024-04-10 09:31:53.172 Info HttpClient: GET https://api4.thetvdb.com/v4/series/72454/episodes/official?page=1
	Line 72656: 2024-04-10 09:31:53.307 Info HttpClient: GET https://api4.thetvdb.com/v4/series/72454/episodes/official?page=2
	Line 72657: 2024-04-10 09:31:53.413 Info HttpClient: GET https://api4.thetvdb.com/v4/series/72454/episodes/official/eng?page=0

In this case the English (eng) query is invalid, same with German (deu)

{
  "status": "failure",
  "message": "NotFoundException: error fetching ",
  "data": null
}

So Emby falls back to no language query (episodes-official)

{
            "id": 86047,
            "seriesId": 72454,
            "name": "ジェットコースター殺人事件",
            "aired": "1996-01-08",
            "runtime": 25,
            "overview": "数々の難事件を解決する高校生探偵の工藤新一は、ガールフレンドの毛利蘭と遊園地でデート中、ジェットコースターで殺人事件にまき込まれた。ズバ抜けた推理力で事件を解決したが乗客の中にいた怪しげな黒服の男たちが現金受け渡しする犯罪現場に遭遇。現場の証拠を押さえようとするが背後から襲われ気を失ってしまい…。",
            "image": "https://artworks.thetvdb.com/banners/episodes/72454/86047.jpg",
            "imageType": 12,
            "isMovie": 0,
            "number": 1,
            "seasonNumber": 1,
            "lastUpdated": "2023-10-22 13:16:50"
        }

So currently TVDB is causing the issue.

  • Like 2
Link to comment
Share on other sites

Ninja_Gundam
On 4/10/2024 at 2:33 PM, solutionsnut said:

For one of my tv shows (case closed, in german: detektiv conan), the episodes receive the wrong language for the metadata. The series itself is shown in german. The server metadata language is: German/Germany and there aren't any library or episode specific overrides for the metadata. The target metadata provider is thetvdb.org. I investigated now almost a day, to get rid of that issue but without success 😅, it's kind of a special use case. Because I tried other tv shows (even japanese ones) but I could not reproduce the issues for them. What I did:

  1. Refreshed the Metadata several times
  2. I tried to scan the library several times
  3. I deleted the complete tv show from the library folder -> Did the above 2 steps -> Added the tv show to the library -> Did the above 2 steps again
  4. Used the newly added feature "Remove Identification" -> Did the above 2 steps
  5. I switched to different language e.g. french or english
  6. I restarted the server several times at least after each of above steps

but nothing helped. What is kind of important, the issue raised only since today in the morning, when I wanted to add new episodes. For example at the beginning of the month (the last time, where I added new episodes)  it did as expected.

The structure of my library is like:

/pathToLibrary/detektiv-conan/season-01/01x01 - Episode.avi

tv-show.png

season.png

embyserver.txt 166.95 kB · 0 downloads

Hi, I was about to write the same thing;
I too, with many series having Italian as the main language, the series description is correct in Italian but then the episodes in Japanese.

I've tried to check on Plex too to see for curiosity and there all ok, dunno where it get the episodes info.

 

Chooo

Link to comment
Share on other sites

Happy2Play
8 hours ago, Ninja_Gundam said:

I've tried to check on Plex too to see for curiosity and there all ok, dunno where it get the episodes info

Don't know the method they use to get metadata as there are several different ways per different api endpoints.  The the method Emby use is the same as the open issue in issue tracker for TVDB linked above.  As the api states "NotFoundException: error fetching" even thought they do exist.  

Worst case if TVDB does not fix their problem the dev will have to rewrite the plug and do calls per episode instead of one call for the entire show.

Link to comment
Share on other sites

Happy2Play

Appears the TVDB ticket above has been closed.  

image.thumb.png.344213a24b37257c5bc974f2df283aa8.png

Can everyone verify they can now get correct data.

If not please provide specific examples.

Edited by Happy2Play
  • Thanks 2
Link to comment
Share on other sites

Ninja_Gundam

Mmm I've tried to put tvdb as first source, deleted association, restarted emby server, re identify the serie but I get the same result still.

 

Chooo

Screenshot_1.png

Link to comment
Share on other sites

1 minute ago, Ninja_Gundam said:

Mmm I've tried to put tvdb as first source, deleted association, restarted emby server, re identify the serie but I get the same result still.

 

Chooo

Screenshot_1.png

What did you enter into the Identify dialog?

Link to comment
Share on other sites

Happy2Play
4 minutes ago, Ninja_Gundam said:

Mmm I've tried to put tvdb as first source, deleted association, restarted emby server, re identify the serie but I get the same result still.

 

Chooo

Screenshot_1.png

There are/where two totally different issues going on and sounds like yours is related to the other topic.

As language queries work now again where they did not before.  And now due to specific language issues dev need to do secondary query for eng instead of relying on official no language query.  @Luke

Link to comment
Share on other sites

Ninja_Gundam

Granblue and it is the cover that show on tvdb..

i check on tvdb site, maybe it's only avaible in jap there ?

 

Chooo

Screenshot_2.png

Screenshot_3.png

Link to comment
Share on other sites

Happy2Play
5 minutes ago, Ninja_Gundam said:

Granblue and it is the cover that show on tvdb..

i check on tvdb site, maybe it's only avaible in jap there ?

 

Chooo

Screenshot_2.png

Screenshot_3.png

Correct you have Show level metatadata

image.thumb.png.f9a383cba35d901eebd4cd9322a2cd4f.png

but not episode no italian

image.thumb.png.563aa24d1fb84624768788d3fe135372.png

But currently Emby is not doing a third query for specifically English as the majority of shows the Official query is usually English but when the show is actually foreign Official is the shows native language per the other topic.

So in the end as all the metadata providers translations are community driven it would be upon some to logging and translate.  

We would need to see the server log to see what queries where sent and to where.

 

Link to comment
Share on other sites

12 minutes ago, Ninja_Gundam said:

Granblue and it is the cover that show on tvdb..

i check on tvdb site, maybe it's only avaible in jap there ?

 

Chooo

Screenshot_2.png

Screenshot_3.png

Can you try this version of the plugin?

 

Thanks.

Tvdb.zip

Link to comment
Share on other sites

Happy2Play

So this little disclaimer is basically what Emby is currently doing also when it falls back to original.

image.png.e87ece72fae9d068d57f99a241770198.png

Link to comment
Share on other sites

Happy2Play
5 minutes ago, Luke said:

Can you try this version of the plugin?

 

Thanks.

Tvdb.zip 56.44 kB · 0 downloads

Looks like a winner.

Using my test example from other topic got English overviews.

2024-04-17 14:08:03.422 Info HttpClient: GET https://api4.thetvdb.com/v4/series/74796/episodes/official?page=0
2024-04-17 14:08:03.601 Info HttpClient: GET https://api4.thetvdb.com/v4/series/74796/episodes/official/rus?page=0
2024-04-17 14:08:03.755 Info HttpClient: GET https://api4.thetvdb.com/v4/episodes/318428/extended?meta=translations

 

 

Before

image.png

After test plugin above as there was no Russian translation

image.thumb.png.478cfe9be0b2b7c9ec3aa4d8600caefa.png

  • Thanks 1
Link to comment
Share on other sites

5 minutes ago, Happy2Play said:

Looks like a winner.

Using my test example from other topic got English overviews.

2024-04-17 14:08:03.422 Info HttpClient: GET https://api4.thetvdb.com/v4/series/74796/episodes/official?page=0
2024-04-17 14:08:03.601 Info HttpClient: GET https://api4.thetvdb.com/v4/series/74796/episodes/official/rus?page=0
2024-04-17 14:08:03.755 Info HttpClient: GET https://api4.thetvdb.com/v4/episodes/318428/extended?meta=translations

 

 

Before

image.png

After test plugin above as there was no Russian translation

image.thumb.png.478cfe9be0b2b7c9ec3aa4d8600caefa.png

Correct me if I'm wrong, but I believe Upcoming and View Missing Episodes will not have the correct language, right?

Link to comment
Share on other sites

Happy2Play
1 minute ago, Luke said:

Correct me if I'm wrong, but I believe Upcoming and View Missing Episodes will not have the correct language, right?

In this scenario I don't believe they will, will see if I can test on something that has upcoming and see.

 

Link to comment
Share on other sites

1 minute ago, Happy2Play said:

In this scenario I don't believe they will, will see if I can test on something that has upcoming and see.

 

Yea the fix needs some adjustment. Thanks.

Link to comment
Share on other sites

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...