Fix: Set media and part indexes when generating stream url (#1428)

Fixes #1427
This commit is contained in:
Thomas Montague 2024-06-22 13:13:55 -05:00 committed by GitHub
parent a4e6ec67ef
commit f1c3d3adff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')