0
0
Fork 0

[rtve.es:alacarta] Fix for python 3.2

main
Sergey M․ 2015-05-22 00:09:15 +06:00
parent 878563c847
commit afe8b594be
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ from ..utils import (
def _decrypt_url(png):
encrypted_data = base64.b64decode(png)
encrypted_data = base64.b64decode(png.encode('utf-8'))
text_index = encrypted_data.find(b'tEXt')
text_chunk = encrypted_data[text_index - 4:]
length = struct_unpack('!I', text_chunk[:4])[0]