Jump to content

How do you use AnyProviderIdEquals


Recommended Posts

bakes82

Whats the "key" for this dictionary thats used in AnyProviderIdEquals?

IE: I have a dictionary that has {"imdb", "TT1234x"}, {n.....}

Is the key IMDB, Imdb, imdb?

Link to post
Share on other sites
PenkethBoy

if its for a single item

then it will follow the providers listed in the metadata page for the item

just using the swagger http api as its easier to get an example

e.g. for a movie (tv, music and Music Videos will be different)

http://localhost:8096/emby/Items/342/ExternalIdInfos?api_key=3b889369b0eb49a8b506d366a8d16c2e

and result

[
  {
    "Name": "IMDb",
    "Key": "Imdb",
    "UrlFormatString": "https://www.imdb.com/title/{0}"
  },
  {
    "Name": "TheMovieDb",
    "Key": "Tmdb",
    "UrlFormatString": "https://www.themoviedb.org/movie/{0}"
  },
  {
    "Name": "TheMovieDb Collection",
    "Key": "TmdbCollection",
    "UrlFormatString": "https://www.themoviedb.org/collection/{0}"
  }
]

and to get the numbers

http://localhost:8096/emby/Items?Recursive=true&Fields=ProviderIds&Ids=342&api_key=3b889369b0eb49a8b506d366a8d16c2e

and result

{
  "Items": [
    {
      "Name": "Star Wars: Episode I - The Phantom Menace",
      "ServerId": "393d783c30484015a24645f7844060b4",
      "Id": "342",
      "RunTimeTicks": 81709430000,
      "ProviderIds": {
        "TmdbCollection": "10",
        "Imdb": "tt0120915",
        "Tmdb": "1893"
      },
      "IsFolder": false,
      "Type": "Movie",
      "ImageTags": {
        "Primary": "b5c05f7fb1e07588c1f74edec548e4d0",
        "Art": "b2a27f41a6fbfc971c19e328a8db7a4a",
        "Banner": "a5587127a4b8550767bc5b5c524cb243",
        "Disc": "0d101a8110956f2ef6494a068b18f52d",
        "Logo": "f43dd853aff4fa05a71a3bba9ae75308",
        "Thumb": "739e4fa4cbbd4cdaf7090d8240949a0f"
      },
      "BackdropImageTags": [
        "4c0209f7215f717db7a69f4d8f19248b",
        "8eea1c83ebab482bb0d9a9c3be8cbcdf",
        "d402acf0a6af40483737ffda12f48e8d",
        "f08c6b2712c5dbc5f7c7187e1b06d7a0",
        "f795e851d869ce6e4989b3089a94948b",
        "b769c1c16e1b264009cf3c7941633346",
        "f93f6622f1ddda013dd87acc37dfe921",
        "ebd8b416a5559a6626d6e809883a75cb",
        "e350b1b2e6f0a6c98ee07ecd08a66cde",
        "7b7c457cfd12fb4ebcca5ba4a263c898"
      ],
      "MediaType": "Video"
    }
  ],
  "TotalRecordCount": 1
}

 

Have Fun

Link to post
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...