HawkXP71 99 Posted February 14, 2023 Share Posted February 14, 2023 In trying to clean up my library, where episodes that are missing TVDBid causes missing episodes to not appear, I wrote a a simple app to get every episode that is missing the TVDBid. Using the Query HastTVdbId=False works great. But it also features and specials. IncludeItemTypes=Episode is set. Is there anyway to tell if the returned media item is an actual Episode? Is a known "season 0" special, or in the "Featurettes" or any of the other known subdirectories in a seasons directory? Link to comment Share on other sites More sharing options...
seanbuff 840 Posted February 14, 2023 Share Posted February 14, 2023 Curious, how does it compare when you just filter on the Episodes tab for Missing TVDB id? Same results? Link to comment Share on other sites More sharing options...
HawkXP71 99 Posted February 14, 2023 Author Share Posted February 14, 2023 5 minutes ago, seanbuff said: Curious, how does it compare when you just filter on the Episodes tab for Missing TVDB id? Same results? Didn't even know that was possible, but it shows quite a bit less using the filter method. Link to comment Share on other sites More sharing options...
HawkXP71 99 Posted February 16, 2023 Author Share Posted February 16, 2023 @Lukeany thoughts on this? Link to comment Share on other sites More sharing options...
Luke 37095 Posted February 16, 2023 Share Posted February 16, 2023 Example? Link to comment Share on other sites More sharing options...
HawkXP71 99 Posted February 16, 2023 Author Share Posted February 16, 2023 1 hour ago, Luke said: Example? the request is http://mediabox:8096/Users/XXXX/Items?IncludeItemTypes=Episode&SortBy=Type,ProductionYear,PremiereDate,SortName&SortOrder=Ascending&Recursive=True&HasTvdbId=False&Fields=ProviderIds,ExternalUrls,Missing,ProductionYear,PremiereDate,DateCreated,EndDate,StartDate&api_key=YYYYY It returns tons of media items that are in TV Show/Season XXX/Extras Link to comment Share on other sites More sharing options...
Luke 37095 Posted February 16, 2023 Share Posted February 16, 2023 Well you're using the generic /items endpoint. There is a /seasons and /episodes endpoint you can use instead if you prefer that. Link to comment Share on other sites More sharing options...
HawkXP71 99 Posted February 17, 2023 Author Share Posted February 17, 2023 1 hour ago, Luke said: Well you're using the generic /items endpoint. There is a /seasons and /episodes endpoint you can use instead if you prefer that. I would like it to only return Episodes, which is what I asked for in the query. Why do featurettes/extras get returned? Note season 0 specials do not get returned. Link to comment Share on other sites More sharing options...
Happy2Play 8296 Posted February 17, 2023 Share Posted February 17, 2023 And if you set "HasSpecialFeature" to false? http://homeserver:8096/emby/Items?HasSpecialFeature=false&HasTvdbId=false&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&SortBy=Type%2CProductionYear%2CPremiereDate%2CSortName&api_key=APIKEY Link to comment Share on other sites More sharing options...
HawkXP71 99 Posted February 18, 2023 Author Share Posted February 18, 2023 On 2/16/2023 at 6:11 PM, Happy2Play said: And if you set "HasSpecialFeature" to false? http://homeserver:8096/emby/Items?HasSpecialFeature=false&HasTvdbId=false&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&SortBy=Type%2CProductionYear%2CPremiereDate%2CSortName&api_key=APIKEY I didnt, but tried it, and it made no difference Link to comment Share on other sites More sharing options...
Luke 37095 Posted February 20, 2023 Share Posted February 20, 2023 Try ParentIndexNumberNotEquals=0 1 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