Jump to content

How does 'Network' metadata get sorted?


Recommended Posts

podonnell
Posted

Hi,

I am using TVDB for metadata provider, and in one example, I see 4 results listed under 'network'. Within Emby, only the last listed network is showing up. Looking at the metadata of the item, it seems that one is listed first, but it's not by alpha sorting. Do we know what the priority of sorting is for this? I would love to be able to default to the first listed entry on TVDB, as that is usually the most accurate and primary studio.

Posted

Hi, it should be the same order as your highest priority series metadata fetcher.

podonnell
Posted
11 minutes ago, Luke said:

Hi, it should be the same order as your highest priority series metadata fetcher.

It looks like it's pulling in both the Studio section and the Production company section.
But I can't see how the sorting logic is working. For some items, it seems to be the last entry on TVDB under Studio, for others it is the first.

podonnell
Posted

Here is a fresh one:

https://thetvdb.com/series/the-last-of-us#general

Top network listed is 'Max'

But in Emby after a fresh metadata pull, YouTube is at the top and Max is at the bottom, even under Production companies that are pulled into Studios:

image.png.889200b2d7dc22ec344fec607983fad6.png

 

Finally, this appears to be the relevant call from the logs:

2025-04-14 17:23:53.559 Info Server: http/1.1 POST /emby/Items/6456/Refresh?Recursive=true&ImageRefreshMode=FullRefresh&MetadataRefreshMode=FullRefresh&ReplaceAllImages=false&ReplaceAllMetadata=true&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=72c7caf9-eb95-4cd7-b943-837cd666b2c3&X-Emby-Client-Version=4.8.11.0&X-Emby-Token=x_secret8_x&X-Emby-Language=en-us. Source Ip: host9, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

2025-04-14 17:23:53.560 Info App: Refresh metadata requested on 6456


2025-04-14 17:23:53.560 Info Server: http/1.1 Response 204 to host9. Time: 1ms. POST /emby/Items/6456/Refresh?Recursive=true&ImageRefreshMode=FullRefresh&MetadataRefreshMode=FullRefresh&ReplaceAllImages=false&ReplaceAllMetadata=true&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=72c7caf9-eb95-4cd7-b943-837cd666b2c3&X-Emby-Client-Version=4.8.11.0&X-Emby-Token=x_secret8_x&X-Emby-Language=en-us

2025-04-14 17:23:53.628 Info HttpClient: GET https://api4.thetvdb.com/v4/series/392256/extended?meta=translations&short=false

2025-04-14 17:23:53.880 Info HttpClient: GET https://api.themoviedb.org/3/tv/100088?api_key=x_secret3_x&append_to_response=alternative_titles,reviews,credits,images,keywords,external_ids,videos,content_ratings,episode_groups&language=en-US&include_image_language=en-US,null

Happy2Play
Posted
1 hour ago, podonnell said:

Here is a fresh one:

https://thetvdb.com/series/the-last-of-us#general

Top network listed is 'Max'

But in Emby after a fresh metadata pull, YouTube is at the top and Max is at the bottom, even under Production companies that are pulled into Studios:

image.png.889200b2d7dc22ec344fec607983fad6.png

 

Finally, this appears to be the relevant call from the logs:

2025-04-14 17:23:53.559 Info Server: http/1.1 POST /emby/Items/6456/Refresh?Recursive=true&ImageRefreshMode=FullRefresh&MetadataRefreshMode=FullRefresh&ReplaceAllImages=false&ReplaceAllMetadata=true&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=72c7caf9-eb95-4cd7-b943-837cd666b2c3&X-Emby-Client-Version=4.8.11.0&X-Emby-Token=x_secret8_x&X-Emby-Language=en-us. Source Ip: host9, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

2025-04-14 17:23:53.560 Info App: Refresh metadata requested on 6456


2025-04-14 17:23:53.560 Info Server: http/1.1 Response 204 to host9. Time: 1ms. POST /emby/Items/6456/Refresh?Recursive=true&ImageRefreshMode=FullRefresh&MetadataRefreshMode=FullRefresh&ReplaceAllImages=false&ReplaceAllMetadata=true&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=72c7caf9-eb95-4cd7-b943-837cd666b2c3&X-Emby-Client-Version=4.8.11.0&X-Emby-Token=x_secret8_x&X-Emby-Language=en-us

2025-04-14 17:23:53.628 Info HttpClient: GET https://api4.thetvdb.com/v4/series/392256/extended?meta=translations&short=false

2025-04-14 17:23:53.880 Info HttpClient: GET https://api.themoviedb.org/3/tv/100088?api_key=x_secret3_x&append_to_response=alternative_titles,reviews,credits,images,keywords,external_ids,videos,content_ratings,episode_groups&language=en-US&include_image_language=en-US,null

But that is how they come from the TVDB api or at least the order in the json.

   "companies": [{
            "id": 582,
            "name": "YouTube",
            "slug": "youtube",
            "nameTranslations": ["ara", "deu", "eng", "fra", "kor", "pt", "spa"],
            "overviewTranslations": ["deu", "fra", "pt", "spa"],
            "aliases": ["{language:ara,name:يوتيوب}"],
            "country": "usa",
            "primaryCompanyType": 1,
            "companyType": {
                "companyTypeId": 1,
                "companyTypeName": "Network"
            }
        }, {
            "id": 1401,
            "name": "Podcast (All Platforms)",
            "slug": "podcast",
            "nameTranslations": ["eng", "ita", "pt", "spa"],
            "overviewTranslations": [],
            "aliases": [],
            "country": "usa",
            "primaryCompanyType": 1,
            "companyType": {
                "companyTypeId": 1,
                "companyTypeName": "Network"
            }
        }, {
            "id": 328,
            "name": "HBO",
            "slug": "hbo",
            "nameTranslations": ["eng", "nld", "pt", "spa"],
            "overviewTranslations": ["pt", "spa"],
            "aliases": ["{language:eng,name:Home Box Office}"],
            "country": "usa",
            "primaryCompanyType": 1,
            "activeDate": "1972-11-08",
            "companyType": {
                "companyTypeId": 1,
                "companyTypeName": "Network"
            }
        }, {
            "id": 39667,
            "name": "Sony Pictures Television",
            "slug": "sony-pictures-television",
            "nameTranslations": ["eng"],
            "overviewTranslations": [],
            "aliases": [],
            "country": "usa",
            "primaryCompanyType": 2,
            "companyType": {
                "companyTypeId": 3,
                "companyTypeName": "Production Company"
            }
        }, {
            "id": 49054,
            "name": "PlayStation Productions",
            "slug": "playstation-productions",
            "nameTranslations": ["eng"],
            "overviewTranslations": [],
            "aliases": [],
            "country": "usa",
            "primaryCompanyType": 3,
            "companyType": {
                "companyTypeId": 3,
                "companyTypeName": "Production Company"
            }
        }, {
            "id": 49055,
            "name": "The Mighty Mint",
            "slug": "the-mighty-mint",
            "nameTranslations": ["eng"],
            "overviewTranslations": [],
            "aliases": [],
            "country": "usa",
            "primaryCompanyType": 3,
            "companyType": {
                "companyTypeId": 3,
                "companyTypeName": "Production Company"
            }
        }, {
            "id": 30276,
            "name": "Naughty Dog",
            "slug": "naughty-dog",
            "nameTranslations": ["eng"],
            "overviewTranslations": [],
            "aliases": [],
            "primaryCompanyType": 3,
            "companyType": {
                "companyTypeId": 3,
                "companyTypeName": "Production Company"
            }
        }, {
            "id": 49057,
            "name": "Word Games",
            "slug": "word-games",
            "nameTranslations": ["eng"],
            "overviewTranslations": [],
            "aliases": [],
            "country": "usa",
            "primaryCompanyType": 3,
            "companyType": {
                "companyTypeId": 3,
                "companyTypeName": "Production Company"
            }
        }, {
            "id": 49093,
            "name": "Max",
            "slug": "49093-max",
            "nameTranslations": ["eng", "pt"],
            "overviewTranslations": [],
            "aliases": [],
            "country": "usa",
            "primaryCompanyType": 1,
            "activeDate": "2023-05-23",
            "companyType": {
                "companyTypeId": 1,
                "companyTypeName": "Network"
            }
        }

 

So I have no idea how their website orders them or how Emby could order them differently.

podonnell
Posted

I guess my main gripe is that I would like to browse by studio sometimes, straight from clicking the studio listed on the series page. But the series page only shows a single studio, which is effectively random based on how these come in.

GrimReaper
Posted (edited)
4 minutes ago, podonnell said:

I would like to browse by studio sometimes, straight from clicking the studio listed on the series page. But the series page only shows a single studio, which is effectively random based on how these come in.

Scroll down on item/series Detail page to "About" section, you'll have all the Studios listed - you can click/follow any of them. 

Edited by GrimReaper
  • Thanks 1
podonnell
Posted
7 minutes ago, GrimReaper said:

Scroll down on item/series Detail page to "About" section, you'll have all the Studios listed - you can click/follow any of them. 

Wonderful, I see them! Will keep this noted.

And if I really wanted to change that primary one myself, would it 'lock' the series metadata from being updated, or just the studio section?

GrimReaper
Posted
Just now, podonnell said:

And if I really wanted to change that primary one myself, would it 'lock' the series metadata from being updated, or just the studio section?

You can lock either the Studio section only or an item altogether (notice the lock at the right of Studio header in Edit Metadata dialog). 

  • Agree 1

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