This commit is contained in:
deathbybandaid 2020-11-28 12:48:27 -05:00
parent cde29a30b7
commit 47c8863be2

View File

@ -115,10 +115,11 @@ class Direct_Stream():
if not chunk: if not chunk:
break break
# raise TunerError("807 - No Video Data") # raise TunerError("807 - No Video Data")
if key and key["url"]: if key:
keyfile = self.fhdhr.web.session.get(key["url"]).content if key["url"]:
cryptor = AES.new(keyfile, AES.MODE_CBC, keyfile) keyfile = self.fhdhr.web.session.get(key["url"]).content
chunk = cryptor.decrypt(chunk) cryptor = AES.new(keyfile, AES.MODE_CBC, keyfile)
chunk = cryptor.decrypt(chunk)
self.fhdhr.logger.info("Passing Through Chunk: %s" % chunkurl) self.fhdhr.logger.info("Passing Through Chunk: %s" % chunkurl)
yield chunk yield chunk