mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 07:56:57 -05:00
Improve direct stream chunk key url methods
This commit is contained in:
parent
b5e425e6d1
commit
3b766f380e
@ -103,7 +103,7 @@ class Direct_Stream():
|
||||
for segment, key in zip(segments, keys):
|
||||
chunkurl = segment.absolute_uri
|
||||
|
||||
if chunkurl not in played_chunk_urls:
|
||||
if chunkurl and chunkurl not in played_chunk_urls:
|
||||
played_chunk_urls.append(chunkurl)
|
||||
|
||||
if (not self.stream_args["duration"] == 0 and
|
||||
@ -116,6 +116,7 @@ class Direct_Stream():
|
||||
break
|
||||
# raise TunerError("807 - No Video Data")
|
||||
if key:
|
||||
if key["url"]:
|
||||
keyfile = self.fhdhr.web.session.get(key["url"]).content
|
||||
cryptor = AES.new(keyfile, AES.MODE_CBC, keyfile)
|
||||
chunk = cryptor.decrypt(chunk)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user