Jump to content

Users/id/Items returns featurettes/specials not just episodes


HawkXP71

Recommended Posts

HawkXP71

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

seanbuff

Curious, how does it compare when you just filter on the Episodes tab for Missing TVDB id?

image.png.ae0cd4d0591f0681cb1a9a56510aa943.png

image.png.c0cb0c5e69fd405911a6e623de308897.png

Same results?

Link to comment
Share on other sites

HawkXP71
5 minutes ago, seanbuff said:

Curious, how does it compare when you just filter on the Episodes tab for Missing TVDB id?

image.png.ae0cd4d0591f0681cb1a9a56510aa943.png

image.png.c0cb0c5e69fd405911a6e623de308897.png

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

HawkXP71
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

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

HawkXP71
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

Happy2Play

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

HawkXP71
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

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