mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-24 20:53:09 +00:00
Fix: Set media and part indexes when generating stream url (#1428)
Fixes #1427
This commit is contained in:
parent
a4e6ec67ef
commit
f1c3d3adff
1 changed files with 2 additions and 0 deletions
|
@ -866,6 +866,8 @@ class Playable:
|
|||
|
||||
if kwargs:
|
||||
# So this seems to be a a lot slower but allows transcode.
|
||||
kwargs['mediaIndex'] = self.media.index(part._parent())
|
||||
kwargs['partIndex'] = part._parent().parts.index(part)
|
||||
download_url = self.getStreamURL(**kwargs)
|
||||
else:
|
||||
download_url = self._server.url(f'{part.key}?download=1')
|
||||
|
|
Loading…
Reference in a new issue