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/ooyala.py | |
parent | 5d7d805ca90992cac1cdffbe5d3df3d894d2b979 (diff) |
Switch codebase to use compat_b64decode
Diffstat (limited to 'youtube_dl/extractor/ooyala.py')
-rw-r--r-- | youtube_dl/extractor/ooyala.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/youtube_dl/extractor/ooyala.py b/youtube_dl/extractor/ooyala.py index 52580baed..ad8bf03f8 100644 --- a/youtube_dl/extractor/ooyala.py +++ b/youtube_dl/extractor/ooyala.py @@ -1,9 +1,13 @@ from __future__ import unicode_literals + import re -import base64 from .common import InfoExtractor -from ..compat import compat_str +from ..compat import ( + compat_b64decode, + compat_str, + compat_urllib_parse_urlencode, +) from ..utils import ( determine_ext, ExtractorError, @@ -12,7 +16,6 @@ from ..utils import ( try_get, unsmuggle_url, ) -from ..compat import compat_urllib_parse_urlencode class OoyalaBaseIE(InfoExtractor): @@ -44,7 +47,7 @@ class OoyalaBaseIE(InfoExtractor): url_data = try_get(stream, lambda x: x['url']['data'], compat_str) if not url_data: continue - s_url = base64.b64decode(url_data.encode('ascii')).decode('utf-8') + s_url = compat_b64decode(url_data).decode('utf-8') if not s_url or s_url in urls: continue urls.append(s_url) |