Glueckstiger 2 Posted February 23, 2022 Share Posted February 23, 2022 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 More sharing options...
ebr 14918 Posted February 23, 2022 Share Posted February 23, 2022 Hi. Find the ID of the folder and then use ParentID=xxxx. Link to comment Share on other sites More sharing options...
Glueckstiger 2 Posted February 24, 2022 Author Share Posted February 24, 2022 (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 February 24, 2022 by Glueckstiger Link to comment Share on other sites More sharing options...
Glueckstiger 2 Posted February 24, 2022 Author Share Posted February 24, 2022 Is there a way to get the ParentId via API and not via the URL in a browser? Link to comment Share on other sites More sharing options...
Luke 37091 Posted February 24, 2022 Share Posted February 24, 2022 You'll have to use the API. Link to comment Share on other sites More sharing options...
Glueckstiger 2 Posted February 24, 2022 Author Share Posted February 24, 2022 And which route can I use to get the ParentId for different locations? Link to comment Share on other sites More sharing options...
Happy2Play 8293 Posted February 24, 2022 Share Posted February 24, 2022 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 More sharing options...
Glueckstiger 2 Posted February 25, 2022 Author Share Posted February 25, 2022 Yes, but I overlooked /Library/SelectableMediaFolders. Until just now. Link to comment Share on other sites More sharing options...
Luke 37091 Posted February 25, 2022 Share Posted February 25, 2022 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 More sharing options...
Glueckstiger 2 Posted February 25, 2022 Author Share Posted February 25, 2022 Thats not what I need. I need the Id of the subfolders: 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