bruor 43 Posted November 1, 2023 Posted November 1, 2023 I'm using Jellyseerr with Emby, and have noticed that only the only .strm file movies in my library that are showing as available in Jellyseerr have had playback started so that Emby probes the URL and records information about the stream. If I look at the media info for a .strm file that has been played, the media info stored for it is miminal in the UI. Is there a way for me to programmatically set the media info for content that hasn't yet been played to a default value so that Jellyseerr can mark it as available? Also, if I were to do this would Emby still probe the .strm file on playback and update the mediainfo with correct values?
Luke 42081 Posted November 1, 2023 Posted November 1, 2023 Hi, there is no supported way to do this. If you were to somehow fake it via database edits, then know, Emby Server would probably not probe it and most likely all of this would lead to playback failures.
bruor 43 Posted November 1, 2023 Author Posted November 1, 2023 Is there any way that I could get emby to (slowly) probe the strm files with a script? Right now the only way I know of doing this is to start playback.
TeamB 2438 Posted November 1, 2023 Posted November 1, 2023 you can use the PlaybackInfo call to have the server query the unplayed item https://github.com/faush01/plugin.video.embycon/blob/dfa3d148be89a2aeee1dcd1bc23f6bec39bc60a5/resources/lib/downloadutils.py#L341 this will populate its details. You could script this up using python resonably easy with a api_key using the emby API 1. Query all items that dont have details 2. Call the above on each item to have the details filled in WARNING: This will be expensive and take a lot of time 1
bruor 43 Posted November 1, 2023 Author Posted November 1, 2023 Any chance you know of an API call I could make to query for all content that has no media info detected?
TeamB 2438 Posted November 1, 2023 Posted November 1, 2023 the best way I have found to find good ways to use the emby API is open the Web client and use the debug console (f12) then look at the network connections being made as you navigate to pages. the other way is check out the Swagger API docs at the bottom of the web client dahsboard. also in the above Git repo I linked are a number of examples of how to use the API. 1
bruor 43 Posted November 1, 2023 Author Posted November 1, 2023 Ok, I'll dig into this a bit, thanks for pointing me in the right direction!
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