Jump to content

Get all played movies in a specific folder?


Recommended Posts

Glueckstiger
Posted

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

Posted

Hi.  Find the ID of the folder and then use ParentID=xxxx.

Glueckstiger
Posted (edited)

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
Glueckstiger
Posted

Is there a way to get the ParentId via API and not via the URL in a browser?

Posted

You'll have to use the API.

Glueckstiger
Posted

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

Happy2Play
Posted
6 hours ago, Glueckstiger said:

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

Have you looked at LibraryService?

Glueckstiger
Posted

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

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

Glueckstiger
Posted

Thats not what I need.

I need the Id of the subfolders:

Bildschirmfoto 2022-02-25 um 15.27.57.png

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