Jzsky 3 Posted January 24, 2025 Posted January 24, 2025 There is a problem now that emby does not enter the library in real time after I generate the strm video directory, it will take about a minute to successfully enter the library, so I want to send a request to notify emby to enter the library scan. I now have three media libraries, which api should I use when I add a file under one of them? I found an api: "/Library/Refresh", is this api to refresh all media scans? Or what should I do better?
Solution Luke 42077 Posted January 24, 2025 Solution Posted January 24, 2025 Hi, I would do the equivalent of "Scan library files" on the parent folder. The easiest way to learn what this is would be to open the browser debugger and monitor the network request after clicking the context menu option.
Jzsky 3 Posted January 24, 2025 Author Posted January 24, 2025 (edited) @Luke It's a good idea to call this api based on a network request: "/Items/{Id}/Refresh". The three library ids are 577,3,1959, Why the big difference? Edited January 24, 2025 by Jzsky
Jzsky 3 Posted January 24, 2025 Author Posted January 24, 2025 Thank you, the notification scan more successful! I mean the id values of the three libraries are so different that it doesn't matter. 1
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