Jump to content

Get all played movies in a specific folder?


Glueckstiger

Recommended Posts

Glueckstiger

Hi,

I have different folders for movies. One for movies I want to keep after watching. One for movies I only want to watch once. 

Is there an easy way to get via API all watched movies within a specific path?

I dont want to get all movies with IsPlayed via /Users/<id>/Items and then check each item via /Users/<id>/Items/<id> -> MediaSources -> Path -> str_starts_with(...)

Link to comment
Share on other sites

Glueckstiger

Ok, but ParentId is in /Users/<id>/Items/<id>, too. And I want to avoid retrieving the item information for all my movies over and over and over again. I have many movies that I want to keep, and I don't want to search all the movies for the one I've seen recently and then delete that one.

 

[EDIT] Ok, there is a ParentId under /Users/<id>/Items too. Nice :)

Edited by Glueckstiger
Link to comment
Share on other sites

Happy2Play
6 hours ago, Glueckstiger said:

And which route can I use to get the ParentId for different locations?

Have you looked at LibraryService?

Link to comment
Share on other sites

5 hours ago, Glueckstiger said:

Yes, but I overlooked /Library/SelectableMediaFolders. Until just now. :)

That's for library setup. I would use the userviews API.

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