Skip to content

Commit 2f490c6

Browse files
Fix adding external subtitles to player (#45)
1 parent 6d3b808 commit 2f490c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/lib/play/content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def get_stream(self, uuid: str, content_type: str) -> ResolvedStream:
382382
license_url=self.LICENSE_URL,
383383
license_headers=license_headers,
384384
license_keys=license_keys,
385-
subtitles=[subtitle_url],
385+
subtitles=[subtitle_url] if subtitle_url else [],
386386
)
387387

388388
def extract_subtitle_from_manifest(self, manifest_url):

0 commit comments

Comments
 (0)