mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 10:16:58 -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):
|
for segment, key in zip(segments, keys):
|
||||||
chunkurl = segment.absolute_uri
|
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)
|
played_chunk_urls.append(chunkurl)
|
||||||
|
|
||||||
if (not self.stream_args["duration"] == 0 and
|
if (not self.stream_args["duration"] == 0 and
|
||||||
@ -116,6 +116,7 @@ class Direct_Stream():
|
|||||||
break
|
break
|
||||||
# raise TunerError("807 - No Video Data")
|
# raise TunerError("807 - No Video Data")
|
||||||
if key:
|
if key:
|
||||||
|
if key["url"]:
|
||||||
keyfile = self.fhdhr.web.session.get(key["url"]).content
|
keyfile = self.fhdhr.web.session.get(key["url"]).content
|
||||||
cryptor = AES.new(keyfile, AES.MODE_CBC, keyfile)
|
cryptor = AES.new(keyfile, AES.MODE_CBC, keyfile)
|
||||||
chunk = cryptor.decrypt(chunk)
|
chunk = cryptor.decrypt(chunk)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user