projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
878563c
)
[rtve.es:alacarta] Fix for python 3.2
author
Sergey M․
<dstftw@gmail.com>
Thu, 21 May 2015 18:09:15 +0000
(
00:09
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 21 May 2015 18:09:15 +0000
(
00:09
+0600)
youtube_dl/extractor/rtve.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/rtve.py
b/youtube_dl/extractor/rtve.py
index 849300140ecbf598874d22b090262eabec1e7ea5..82cd98ac742bf436b24fbbc77cac9a6fb8a44ff6 100644
(file)
--- a/
youtube_dl/extractor/rtve.py
+++ b/
youtube_dl/extractor/rtve.py
@@
-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]