pkkid / python-plexapi

Python bindings for the Plex API.
BSD 3-Clause "New" or "Revised" License
1.15k stars 199 forks source link

client.playMedia's offset parameter is ineffective #1460

Open louis-pre opened 3 months ago

louis-pre commented 3 months ago

Describe the Bug

After calling client.playMedia(movie, offset=10000, the movie starts at its beginning.

Code Snippets

plex = plexapi.server.PlexServer(baseurl, token)
movie = plex.library.section("Movies").get("The Terminator")
client = plex.client("MyClientName")
client.playMedia(movie, offset=10000)

Expected Behavior

The movie should start at the 10s mark.

Additional Context

Calling client.seekTo(10000) shortly after the movie starts works as intended.

I have tested with both the LG WebOS app as client and the macOS HTPC app.

Operating System and Version

Ubuntu 22.04

Plex Media Server Version

1.40.5.8897

Python Version

3.12.5

PlexAPI Version

4.15.16