Depending on exactly what you’re looking to do, it could be easier to use one of the unofficial wrappers around Plex’s web API, e.g. Python-PlexAPI:
from plexapi.server import PlexServer
server = PlexServer('http://host:port', 'plexToken')
for session in server.sessions():
print(session.media[0].parts[0].file)
thanks for the hint, i prefered to avoid python as way too massive for such a small task … but looks like a simple curl wont do it.
i ll take a look but i guess i drop plex support here rather as way too much effort for such a simple task, would be just “nice to have” to get a side by side function with the “other” mediaservers for a plugin im writing to fetch simple playbacked item path like this sample
Edit: It looks like the file might only be included for music tracks. You’d have to grab the key/ratingKey for video items, then grab the file path from /library/metadata/{ratingKey}: