Skip to content

Commit

Permalink
bug fix for local m3u8
Browse files Browse the repository at this point in the history
  • Loading branch information
xhlove committed Mar 19, 2022
1 parent b31ea5d commit 50e7ea8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions XstreamDL_CLI/extractors/hls/ext/xkey.py
Expand Up @@ -73,6 +73,8 @@ def gen_hls_key_uri(self, home_url: str, base_url: str):
data:text/plain;base64,AAAASnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAACoSEKg079lX5xeK9g/zZPwXENESEKg079lX5xeK9g/zZPwXENFI88aJmwY=
skd://a834efd957e7178af60ff364fc1710d1
'''
if self.uri is None:
return '', self.uri
if self.uri.startswith('data:text/plain;base64,'):
return 'base64', self.uri.split(',', maxsplit=1)[-1]
elif self.uri.startswith('skd://'):
Expand Down

0 comments on commit 50e7ea8

Please sign in to comment.