Jump to content

Populate Media Info for strm files


Recommended Posts

Posted

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. 
image.png.8f95af7f2253ff9a9050dbc3c4cee54a.png


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? 

 

Posted

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.

Posted

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. 

Posted

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

  • Thanks 1
Posted

Any chance you know of an API call I could make to query for all content that has no media info detected? 

Posted

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.

  • Thanks 1
Posted

Ok, I'll dig into this a bit, thanks for pointing me in the right direction!

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