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/chilloutzone.py | |
parent | 5d7d805ca90992cac1cdffbe5d3df3d894d2b979 (diff) |
Switch codebase to use compat_b64decode
Diffstat (limited to 'youtube_dl/extractor/chilloutzone.py')
-rw-r--r-- | youtube_dl/extractor/chilloutzone.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/chilloutzone.py b/youtube_dl/extractor/chilloutzone.py index d4769da75..5aac21299 100644 --- a/youtube_dl/extractor/chilloutzone.py +++ b/youtube_dl/extractor/chilloutzone.py @@ -1,11 +1,11 @@ from __future__ import unicode_literals import re -import base64 import json from .common import InfoExtractor from .youtube import YoutubeIE +from ..compat import compat_b64decode from ..utils import ( clean_html, ExtractorError @@ -58,7 +58,7 @@ class ChilloutzoneIE(InfoExtractor): base64_video_info = self._html_search_regex( r'var cozVidData = "(.+?)";', webpage, 'video data') - decoded_video_info = base64.b64decode(base64_video_info.encode('utf-8')).decode('utf-8') + decoded_video_info = compat_b64decode(base64_video_info).decode('utf-8') video_info_dict = json.loads(decoded_video_info) # get video information from dict |