Glueckstiger 2 Posted February 23, 2022 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(...)
ebr 16169 Posted February 23, 2022 Posted February 23, 2022 Hi. Find the ID of the folder and then use ParentID=xxxx.
Glueckstiger 2 Posted February 24, 2022 Author 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
Glueckstiger 2 Posted February 24, 2022 Author Posted February 24, 2022 Is there a way to get the ParentId via API and not via the URL in a browser?
Glueckstiger 2 Posted February 24, 2022 Author Posted February 24, 2022 And which route can I use to get the ParentId for different locations?
Happy2Play 9780 Posted February 24, 2022 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?
Glueckstiger 2 Posted February 25, 2022 Author Posted February 25, 2022 Yes, but I overlooked /Library/SelectableMediaFolders. Until just now.
Luke 42077 Posted February 25, 2022 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.
Glueckstiger 2 Posted February 25, 2022 Author Posted February 25, 2022 Thats not what I need. I need the Id of the subfolders:
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