Possible bug with TMDB API

Server Version#: 1.18.1.1973
Player Version#: 4.8.3

I’m using TMDB as my default metadata provider. German is the default language. After testing several steps its clear now. The API answers for this tv show with the English title and description. It works if I choose French or Italian. So my conclusion is that something is wrong with the API.

XML of the TV Show (GUI contains “?lang=de”, but content is still English):

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="3" librarySectionTitle="Serien" librarySectionUUID="a89c1e49-2f06-45d4-afb9-29969aa61efa" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1571305071">
<Directory ratingKey="5016" key="/library/metadata/5016/children" guid="com.plexapp.agents.themoviedb://32676?lang=de" studio="TMS Entertainment" type="show" title="Rose of Versailles" librarySectionTitle="Serien" librarySectionID="3" librarySectionKey="/library/sections/3" summary="Raised from birth as a man, the Lady Oscar commands the palace guards at Versailles in the years before the French Revolution. Her beauty and noble spirit make her a shining figure in the eyes of both men and women but she is torn between her chosen life of service and duty to class and country and her own heart and desires. She lives as a noble amidst the opulence of Versailles but her keen senses and compassion are not blinded to the poverty of the French people." index="1" rating="8.6" lastViewedAt="1572258229" year="1979" thumb="/library/metadata/5016/thumb/1572259020" art="/library/metadata/5016/art/1572259020" duration="1800000" originallyAvailableAt="1979-10-10" leafCount="40" viewedLeafCount="0" childCount="1" addedAt="1572197140" updatedAt="1572259020">
<Genre id="89" filter="genre=89" tag="Drama" />
<Genre id="263" filter="genre=263" tag="Animation" />
<Role id="11241" filter="actor=11241" tag="Nachi Nozawa" role="" thumb="http://image.tmdb.org/t/p/original/9BHT8x9Wl3en0rLjFD0Ag0uMHog.jpg" />
<Role id="11242" filter="actor=11242" tag="Keaton Yamada" role="" thumb="http://image.tmdb.org/t/p/original/mKZtD7eheiVpOnnlLZIkG4FwdIJ.jpg" />
<Role id="11243" filter="actor=11243" tag="Yoshito Yasuhara" role="" thumb="http://image.tmdb.org/t/p/original/9b2jdsbc815AQuttDtwkhhXFg7p.jpg" />
<Role id="11244" filter="actor=11244" tag="Rihoko Yoshida" role="" thumb="http://image.tmdb.org/t/p/original/qnb5bWs7wdiVCLpTggIZId5Pj2q.jpg" />
<Role id="11245" filter="actor=11245" tag="Reiko Tajima" role="" thumb="http://image.tmdb.org/t/p/original/pb2IazlHd7aIftO4p4eX99G3YQT.jpg" />
<Location path="/volume1/video/Serien/Lady Oscar (1979)" />
<Extras size="0">
</Extras>
</Directory>
</MediaContainer>

Note: It refers only to the tv show itself. Seasons and episodes are correct (in German). Example XML of the first episode:

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="3" librarySectionTitle="Serien" librarySectionUUID="a89c1e49-2f06-45d4-afb9-29969aa61efa" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1571305071">
<Video ratingKey="5018" key="/library/metadata/5018" parentRatingKey="5017" grandparentRatingKey="5016" guid="com.plexapp.agents.themoviedb://32676/1/1?lang=de" parentGuid="com.plexapp.agents.themoviedb://32676/1?lang=de" grandparentGuid="com.plexapp.agents.themoviedb://32676?lang=de" type="episode" title="Das Duell" titleSort="Duell" grandparentKey="/library/metadata/5016" parentKey="/library/metadata/5017" librarySectionTitle="Serien" librarySectionID="3" librarySectionKey="/library/sections/3" grandparentTitle="Rose of Versailles" parentTitle="Staffel 1" summary="Alles beginnt in einer st&#252;rmischen Nacht in der Oscar Francoise de Jarjayes als sechste Tochter eines angesehenen Generals zur Welt kommt. Da er sich sehnlichst einen Jungen w&#252;nschte und ihm dieser Wunsch auch diesmal nicht erf&#252;llt wurde, beschliesst er das Neugeborene als Jungen gross zuziehen. Wir schreiben das Jahr 1770 inzwischen sind 14 Jahre seit der Geburt von Oscar vergangen. W&#228;hrend das gemeine Volk immer tiefer im Elend versinkt wird jede Nacht im k&#246;niglichen Schloss von Versailles ein pr&#228;chtiges Fest gefeiert. Es werden Unsummen ausgegeben um die G&#228;ste des K&#246;nigs zu unterhalten. Der K&#246;nig bittet eines Tages Oscars Vater darum das sich Graf Girodel und Oscar duellieren, der Sieger soll den Posten als Kommandant der K&#246;niglichengarde bekommen. General de Jarjayes will unbedingt das Oscar den Posten antritt da sie dann im Dienste von Marie Antoinette stehen w&#252;rde. Er verlangt von ihr das sie die Uniform anzieht, doch Oscar hat keine Lust auf eine Frau aufzupassen und bekommt daf&#252;r Schl&#228;ge von ihrem Vater. Sp&#228;ter f&#228;ngt sie Girodel vor dem Duell das vor dem K&#246;nig statt finden soll im Wald ab und duelliert sich mit ihm. Oscar gewinnt das Duell und entschliesst sich am Ende doch noch die Uniform anzuziehen. An diesem Tag beschloss Oscar das Leben eines Mannes zu f&#252;hren und das Leben einer Frau aufzugeben. Sie begab sich nach Versailles um den Posten im k&#246;niglichen Garderegiment anzutreten. Dies alles geschah im Fr&#252;hling ihres vierzehnten  Lebensjahres." index="1" parentIndex="1" lastViewedAt="1572258229" year="1979" thumb="/library/metadata/5018/thumb/1572218680" art="/library/metadata/5016/art/1572218682" grandparentThumb="/library/metadata/5016/thumb/1572218682" grandparentArt="/library/metadata/5016/art/1572218682" duration="1412840" originallyAvailableAt="1979-10-10" addedAt="1572197140" updatedAt="1572218680">
<Media id="6434" duration="1412840" bitrate="5748" width="1920" height="1080" aspectRatio="1.78" audioChannels="2" audioCodec="ac3" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="PAL" videoProfile="high">
<Part accessible="1" exists="1" id="6693" key="/library/parts/6693/1572195121/file.mkv" duration="1412840" file="/volume1/video/Serien/Lady Oscar (1979)/e01 Das Duell.mkv" size="1015816273" container="mkv" deepAnalysisVersion="4" hasThumbnail="1" requiredBandwidths="2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647" videoProfile="high">
<Stream id="20203" streamType="1" codec="h264" index="0" bitrate="5524" language="English" languageCode="eng" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" frameRate="25.000" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="3" requiredBandwidths="8567,6845,6082,6082,6082,6082,6082,6082" scanType="interlaced" width="1920" displayTitle="1080i (H.264)" />
<Stream id="20204" streamType="2" selected="1" default="1" codec="ac3" index="1" channels="2" bitrate="224" language="Deutsch" languageCode="ger" audioChannelLayout="stereo" requiredBandwidths="224,224,224,224,224,224,224,224" samplingRate="48000" title="Stereo" displayTitle="Deutsch (AC3 Stereo)" />
</Part>
</Media>
<Extras size="0">
</Extras>
</Video>
</MediaContainer>

After deleting the agents cache and re-assign the tv show, the result is now correct.

But it must be still a bug or similar, because I added three new tv shows to my collection and only “Lady Oscar” was not displayed with its German title.

Attached you find the related log file. It starts at “2019-10-27 18:25:50,516” and in line “2019-10-27 18:25:57,633” it misses the “de” at the end of the URL:

Maybe something is wrong in the plex server code if multiple new entries are updated (race condition)?!

Log file:
com.plexapp.agents.themoviedb.log.zip (16.1 KB)