horstepipe 377 Posted September 20, 2022 Posted September 20, 2022 Hello I tried finding it via the api interface, but didn't find what I need there. I'm having a series id, how can I get all season ids of that show? There is the ChildCound value but this just shows the number of seasons, but I need the IDs for further api calls. Best regards
Cheesegeezer 3102 Posted September 20, 2022 Posted September 20, 2022 (edited) use parentId=seriesId and then choose type of season to retrieve all the season data standby let me get you one Edited September 20, 2022 by Cheesegeezer
Cheesegeezer 3102 Posted September 20, 2022 Posted September 20, 2022 (edited) http://localhost:8096/emby/Users/{userId}/Items?Recursive=true&ParentId=287662&IncludeItemTypes=Season&api_key={authToken} this will return the JSON where you can interrogate the items. I only have 1 season for each show on my dev laptop. but it should retrieve all seasons for each show { "Items": [ { "Name": "Season 1", "ServerId": "8da294d223d1427983f791b4cdb051e5", "Id": "287663", "IndexNumber": 1, "IsFolder": true, "Type": "Season", "ParentLogoItemId": "287662", "UserData": { "UnplayedItemCount": 22, "PlaybackPositionTicks": 0, "PlayCount": 0, "IsFavorite": false, "Played": false }, "SeriesName": "House", "SeriesId": "287662", "SeriesPrimaryImageTag": "d3b1479be47a92fbc446447778bc3b82", "ImageTags": { "Primary": "30c5a6e140316066ca6a5415e8dd00c0" }, "BackdropImageTags": [ "d803dcd4a2bb4a36ae26b891324b6f67" ], "ParentLogoImageTag": "ce5c6096e921a0f15c55c3ab4f021de3", "ParentThumbItemId": "287662", "ParentThumbImageTag": "884b27d7068f5a390cf04ed3127e2095" } ], "TotalRecordCount": 1 } Edited September 20, 2022 by Cheesegeezer 1
horstepipe 377 Posted September 21, 2022 Author Posted September 21, 2022 @Cheesegeezer would you please mind help me once again? Your command works, but I need to fetch / see the season tags for each season. Unfortunately this is not included in the response. Best regards
Cheesegeezer 3102 Posted September 21, 2022 Posted September 21, 2022 Hey there gimme a second let me see what i can do
Cheesegeezer 3102 Posted September 21, 2022 Posted September 21, 2022 6 minutes ago, horstepipe said: @Cheesegeezer would you please mind help me once again? Your command works, but I need to fetch / see the season tags for each season. Unfortunately this is not included in the response. Best regards How do you mean Season Tags? as in Item Tags
Cheesegeezer 3102 Posted September 21, 2022 Posted September 21, 2022 (edited) 16 minutes ago, horstepipe said: @Cheesegeezer would you please mind help me once again? Your command works, but I need to fetch / see the season tags for each season. Unfortunately this is not included in the response. Best regards Here you go http://localhost:8096/emby/Users/{UserId}/Items?Recursive=true&ParentId=429&Fields=Tags&IncludeItemTypes=Season&api_key={AuthToken} which will return JSON { "Items": [ { "Name": "Season 1", "ServerId": "8da294d223d1427983f791b4cdb051e5", "Id": "432", "IndexNumber": 1, "IsFolder": true, "Type": "Season", "TagItems": [ { "Name": "Horstepipe Tag Test", "Id": 473459 } ], "ParentLogoItemId": "429", "ParentBackdropItemId": "429", "ParentBackdropImageTags": [ "9f3b76486ba922f75fb7aac995afd3a0", "5277ed4c1d0632b8331e82df096c7ab9", "7835dcfdaba850e5ac60955ea461aa30" ], "UserData": { "UnplayedItemCount": 5, "PlaybackPositionTicks": 0, "PlayCount": 0, "IsFavorite": false, "Played": false }, "SeriesName": "Westworld", "SeriesId": "429", "SeriesPrimaryImageTag": "db1b3fc06d34ebd93842bd78ba8205cd", "ImageTags": { "Primary": "76d16db538f56d733decd144b8f38d6e" }, "BackdropImageTags": [], "ParentLogoImageTag": "a39eea0c596a9368530bdbde0b7d85a9", "ParentThumbItemId": "429", "ParentThumbImageTag": "aadd4916ac86330d353ddffddb4e2256" } ], "TotalRecordCount": 1 } Edited September 21, 2022 by Cheesegeezer 1
horstepipe 377 Posted September 21, 2022 Author Posted September 21, 2022 yes exactly. If an episode is english, it gets a tag "english". If all episodes of a season are english, I'm giving the season the tag "english". Now I want to check all seasons and give the whole tv show the tag "english" if all seasons are english
Cheesegeezer 3102 Posted September 21, 2022 Posted September 21, 2022 2 minutes ago, horstepipe said: yes exactly. If an episode is english, it gets a tag "english". If all episodes of a season are english, I'm giving the season the tag "english". Now I want to check all seasons and give the whole tv show the tag "english" if all seasons are english Cool, so i think you have what you need. You just need to remember that the API will return the basic information for a request, if you need additional information then you need to request this in addition to the basic info returned. 2
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