Ichika 5 Posted June 13, 2020 Share Posted June 13, 2020 (edited) Hello, We use in our plugin such fields from the BaseItemDto class for the TV Shows: SeriesName ProductionYear ProviderIds and if user has enabled Episode metadata downloaders -> theTVDB then BaseItemDto has these values for Blacklist(2013) serie: SeriesName - The Blacklist ProductionYear - 2020(year of the watched episode) ProviderIds - "tvdb":7372892,"imdb":"tt10799662" imdb - it's episode ID on imdb, tvdb is episode id on the TVDB 1. Is it possible to get TVDB id productionYear of the serie not an episode? 2. How to detect if TVDB is the serie ID or episode ID? Thank you Edited June 13, 2020 by Ichika Link to comment Share on other sites More sharing options...
ebr 14910 Posted June 13, 2020 Share Posted June 13, 2020 3 hours ago, Ichika said: Is it possible to get TVDB id productionYear of the serie not an episode? There should be a Series ID. You could retrieve the Series and then have that. 3 hours ago, Ichika said: How to detect if TVDB is the serie ID or episode ID? Can you not infer this from the type of item you are looking at (Episode vs. Series)? Link to comment Share on other sites More sharing options...
Ichika 5 Posted June 16, 2020 Author Share Posted June 16, 2020 { "Name": "Brothers", "ServerId": "93bcc5619bcd443ab70ad3610510f783", "Id": "305", "DateCreated": "2020-05-05T20:06:27.0000000+00:00", "PresentationUniqueKey": "266189-en-6c2a057148b4d7c20a207c789aba6d07-007 - 0017", "Container": "avi", "PremiereDate": "2020-04-30T21:00:00.0000000+00:00", "ExternalUrls": [{ "Name": "IMDb", "Url": "https://www.imdb.com/title/tt11861036" }, { "Name": "TheTVDB", "Url": "https://thetvdb.com/?tab=episode&id=7665498" }], "Path": "C:\\Films\\The Blacklist (Season 05) LOST\\The.Blacklist.S07E17.rus.LostFilm.TV.avi", "Overview": "Ressler is forced to confront past trauma and family secrets when his brother takes him back home for a risky job.", "Taglines": [], "Genres": [], "RunTimeTicks": 26003477500, "ProductionYear": 2020, "IndexNumber": 17, "ParentIndexNumber": 7, "ProviderIds": { "Tvdb": "7665498", "Imdb": "tt11861036" }, "IsFolder": false, "ParentId": "383", "Type": "Episode", "Studios": [], "GenreItems": [], "ParentLogoItemId": "304", "ParentBackdropItemId": "304", "ParentBackdropImageTags": ["3934aa4a81514651397679e571427963"], "SeriesName": "The Blacklist", "SeriesId": "304", "SeasonId": "383", "PrimaryImageAspectRatio": 1.7777777777777777, "SeriesPrimaryImageTag": "d72c45c87e36c7440af76df9de376ad3", "SeasonName": "Сезон 7", "MediaStreams": [{ "Codec": "mpeg4", "CodecTag": "XVID", "TimeBase": "1001/24000", "CodecTimeBase": "1001/24000", "VideoRange": "SDR", "DisplayTitle": "480p MPEG4", "IsInterlaced": false, "BitRate": 1899575, "BitDepth": 8, "RefFrames": 1, "IsDefault": false, "IsForced": false, "Height": 400, "Width": 720, "AverageFrameRate": 23.976025, "RealFrameRate": 23.976025, "Profile": "Advanced Simple Profile", "Type": "Video", "AspectRatio": "9:5", "Index": 0, "IsExternal": false, "IsTextSubtitleStream": false, "SupportsExternalStream": false, "Protocol": "File", "PixelFormat": "yuv420p", "Level": 5, "IsAnamorphic": false }, { "Codec": "mp3", "TimeBase": "3/125", "CodecTimeBase": "1/48000", "DisplayTitle": "MP3 stereo", "IsInterlaced": false, "ChannelLayout": "stereo", "BitRate": 186352, "Channels": 2, "SampleRate": 48000, "IsDefault": false, "IsForced": false, "Type": "Audio", "Index": 1, "IsExternal": false, "IsTextSubtitleStream": false, "SupportsExternalStream": false, "Protocol": "File" }], "ImageTags": { "Primary": "60f277595809f23c6cf5e16f578d463b" }, "BackdropImageTags": [], "ParentLogoImageTag": "3498f9ba9a6fc263eb14e58c7ca590b5", "ParentThumbItemId": "304", "ParentThumbImageTag": "a139bd0e4f9dc5ced0ecb50e90a7cdb8", "Chapters": [{ "StartPositionTicks": 0, "Name": "Сцена 1" }, { "StartPositionTicks": 3000000000, "Name": "Сцена 2" }, { "StartPositionTicks": 6000000000, "Name": "Сцена 3" }, { "StartPositionTicks": 9000000000, "Name": "Сцена 4" }, { "StartPositionTicks": 12000000000, "Name": "Сцена 5" }, { "StartPositionTicks": 15000000000, "Name": "Сцена 6" }, { "StartPositionTicks": 18000000000, "Name": "Сцена 7" }, { "StartPositionTicks": 21000000000, "Name": "Сцена 8" }, { "StartPositionTicks": 24000000000, "Name": "Сцена 9" }], "MediaType": "Video", "Width": 720, "Height": 400 } 1. My mediaObject from the PlaybackProgressEventArgs variable, the serieId is 266189. The only field where it is in ""PresentationUniqueKey": "266189-en-6c2a057148b4d7c20a207c789aba6d07-007 - 0017" field. Should I substr it from there? 2. Yeah, you were right, but where I can find tvdb SerieId? Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted June 16, 2020 Share Posted June 16, 2020 in the above you have the Emby Id for the series - 304 in your case query emby using that id for a series and it will return the tvdb id - i.e. the providerIds for the series which you can specify Link to comment Share on other sites More sharing options...
Ichika 5 Posted June 17, 2020 Author Share Posted June 17, 2020 thank you, I’m doing something wrong as I cannot see how to make this parent request from the plugin, it’s not the api http(http://localhost:8096/emby/Items?Ids=304&api_key=***api_key***&fields=ProviderIds) because it needs its own user token auth\api_key and my plugin doesn't use it, can’t find any documentation about it Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now