You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a bunch of decryption errors when watching crunchyroll streams lately; I'm not sure what is causing them, but they happen arbitrarily so I don't think it can be easily debugged:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/dist-packages/livestreamer-1.8.0-py2.7.egg/livestreamer/stream/segmented.py", line 114, in run
self.write(segment)
File "/usr/local/lib/python2.7/dist-packages/livestreamer-1.8.0-py2.7.egg/livestreamer/stream/hls.py", line 103, in write
chunk = decryptor.decrypt(chunk)
File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py", line 295, in decrypt
return self._cipher.decrypt(ciphertext)
ValueError: Input strings must be a multiple of 16 in length
Anyway, I was wondering if there's some way to get around this errors and ignore or retry the failed segment or something like that, without having to start the stream from scratch.
The text was updated successfully, but these errors were encountered:
This is very strange. Nothing is decrypted until the segment has been fully downloaded so partial segments should not be possible. I've pushed a workaround that in case we get a segment that is not correct size we cut it down to the nearest multiple of 16.
So far it have been working alright, it seems to be handling the dangling bytes correctly.
The video glitches around the problematic segment but at least it doesn't stop and it isn't that noticeable. Thanks again!
I'm getting a bunch of decryption errors when watching crunchyroll streams lately; I'm not sure what is causing them, but they happen arbitrarily so I don't think it can be easily debugged:
Anyway, I was wondering if there's some way to get around this errors and ignore or retry the failed segment or something like that, without having to start the stream from scratch.
The text was updated successfully, but these errors were encountered: