diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-01-23 22:23:12 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-01-23 22:23:12 +0700 |
commit | cf2820710d61742818a906af07f6d6c9669d58a9 (patch) | |
tree | 49da7e89124bcbfd9d297906d8436ff1cd107820 /youtube_dl/extractor/leeco.py | |
parent | 5d7d805ca90992cac1cdffbe5d3df3d894d2b979 (diff) |
Switch codebase to use compat_b64decode
Diffstat (limited to 'youtube_dl/extractor/leeco.py')
-rw-r--r-- | youtube_dl/extractor/leeco.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/leeco.py b/youtube_dl/extractor/leeco.py index 0a07c1320..ffe10154b 100644 --- a/youtube_dl/extractor/leeco.py +++ b/youtube_dl/extractor/leeco.py @@ -1,7 +1,6 @@ # coding: utf-8 from __future__ import unicode_literals -import base64 import datetime import hashlib import re @@ -9,6 +8,7 @@ import time from .common import InfoExtractor from ..compat import ( + compat_b64decode, compat_ord, compat_str, compat_urllib_parse_urlencode, @@ -329,7 +329,7 @@ class LetvCloudIE(InfoExtractor): raise ExtractorError('Letv cloud returned an unknwon error') def b64decode(s): - return base64.b64decode(s.encode('utf-8')).decode('utf-8') + return compat_b64decode(s).decode('utf-8') formats = [] for media in play_json['data']['video_info']['media'].values(): |