Jump to content

[TMDB] Use Alternative title when title is empty


Recommended Posts

Posted

Hello vankyjgykhbizaj,

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

Happy2Play
Posted
9 minutes ago, vankyjgykhbizaj said:

eg: https://www.themoviedb.org/tv/95396-severance

the zh-CN title is empty

Yes it is but what should Emby do about it?  But you could create a TMDB account and fill it in.

image.png.cadd184555f85d432f4408dbdfcc7e47.png

Happy2Play
Posted (edited)

Doesn't Emby show an English title in this case?

Or are you asking to show

image.thumb.png.b815ce3fa3230ed61cbe3fc88eb82296.png

But will have to look at the api call to actually see what is returned.

Edited by Happy2Play
Happy2Play
Posted
1 minute ago, vankyjgykhbizaj said:

the title can't be edited.

I see that as the image shows unlocked but entering it then shows locked. Per their discussion of no release in mainland China it can not have a translated name.

But testing now to see what the api returns.

Happy2Play
Posted

Was just looking at that as dev would have to do an additional query to get the info as it is not part of any existing query.

Happy2Play
Posted

Actually, looks like it is already done.  As I got alternate title changing language on the show.

api.themoviedb.org/3/tv/95396?api_key=apikey&append_to_response=alternative_titles,reviews,credits,images,keywords,external_ids,videos,content_ratings,episode_groups&language=zh-CN&include_image_language=zh-CN,null

 "alternative_titles": {
        "results": [
            {
                "iso_3166_1": "CN",
                "title": "人生切割术",
                "type": ""
            },
            {
                "iso_3166_1": "IL",
                "title": "ניתוק",
                "type": ""
            },
            {
                "iso_3166_1": "IR",
                "title": "جدایی",
                "type": ""
            },
            {
                "iso_3166_1": "IR",
                "title": "جداسازی",
                "type": ""
            },
            {
                "iso_3166_1": "KR",
                "title": "세브란스: 단절",
                "type": ""
            },
            {
                "iso_3166_1": "MO",
                "title": "生活割離術",
                "type": ""
            },
            {
                "iso_3166_1": "UA",
                "title": "Поділ",
                "type": ""
            },
            {
                "iso_3166_1": "UA",
                "title": "Розділення",
                "type": ""
            }
        ]
    },

image.png.8d131168668680d2831bbd496baf67d0.png

image.png.bd5c9cc898874f97147b891ffab6b524.png

Happy2Play
Posted (edited)

@Lukeshould these alternate_titles be cached also?

Edited by Happy2Play
Posted
14 hours ago, Happy2Play said:

@Lukeshould these alternate_titles be cached also?

What do you mean by caching?

Happy2Play
Posted
52 minutes ago, Luke said:

What do you mean by caching?

The cached json metadata as alternate titles are no saved anywhere.

C:\Users\Media\AppData\Roaming\Emby-Server\programdata\cache\tmdb-tv\95396

Posted

But you’re saying the server is using the values?

vankyjgykhbizaj
Posted

`name == original_name` instead of `name == ""` ?

Posted
5 hours ago, vankyjgykhbizaj said:

`name == original_name` instead of `name == ""` ?

Hi, what do you mean by this?

Happy2Play
Posted (edited)
On 8/8/2024 at 3:47 PM, Luke said:

But you’re saying the server is using the values?

The server uses the alternate name yes even thought cache does not know it.

image.png.2bc341dda5a7c86bde8bb4d327354408.png

But will say I get different result if I do not write NFO files as it maintains the English name in my tests.  Writing nfo file uses alternate name.  So this may need looking at from a DB only standpoint.

image.thumb.png.51d0b831c2da0be4d5284218a50c728a.png

 

This test was done in 4.8.8.0

 

Not sure by I get different result here but must be something in the cache as it is hit and miss testing.

Edited by Happy2Play
Happy2Play
Posted (edited)

But testing this clearing cache on each attempt TMDB over TVDB I get English title.  TVDB over TMDB I get alternate title testing DB only data.

 

Testing with TMDB only does not use alternate title either.

 

So there is an unexplainable condition here.

Edited by Happy2Play
Posted
On 8/12/2024 at 3:56 PM, Happy2Play said:

The server uses the alternate name yes even thought cache does not know it.

image.png.2bc341dda5a7c86bde8bb4d327354408.png

But will say I get different result if I do not write NFO files as it maintains the English name in my tests.  Writing nfo file uses alternate name.  So this may need looking at from a DB only standpoint.

image.thumb.png.51d0b831c2da0be4d5284218a50c728a.png

 

This test was done in 4.8.8.0

 

Not sure by I get different result here but must be something in the cache as it is hit and miss testing.

But it shows original_name: Severance, so are you sure the cache doesn't know it?

Posted

And yes, internally the Tmdb plugin does have a fallback. If the record contains no name, it will use original_title.

Posted
On 8/12/2024 at 4:04 PM, Happy2Play said:

So there is an unexplainable condition here.

Between tmdb and tvdb, which is unexplainable?

Happy2Play
Posted
24 minutes ago, Luke said:

Between tmdb and tvdb, which is unexplainable?

If TVDB then TMDB alternate title is used.

If TMDB then TVDB alternate title is not used.

If TMDB only alternate title is not used.

  • 2 weeks later...
Posted
On 8/15/2024 at 10:20 PM, Happy2Play said:

If TVDB then TMDB alternate title is used.

If TMDB then TVDB alternate title is not used.

If TMDB only alternate title is not used.

Does this build of the moviedb plugin resolve it for you?

MovieDb.zip

Happy2Play
Posted (edited)
11 minutes ago, Luke said:
On 8/15/2024 at 7:20 PM, Happy2Play said:

If TVDB then TMDB alternate title is used.

If TMDB then TVDB alternate title is not used.

If TMDB only alternate title is not used.

Does this build of the moviedb plugin resolve it for you?

I see no change retesting those provider scenerios.

Only retested in beta if that makes a difference.

Edited by Happy2Play
Posted

Did you try deleting the cached data?

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