]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/dumpert.py
debian/changelog: Reword for better consumption of users.
[youtubedl] / youtube_dl / extractor / dumpert.py
index c9fc9b5a9df65cd8681ce8e0933473ea9658202d..be2e3d37841b48ce7cf187b01ddd5236f85d7683 100644 (file)
@@ -1,10 +1,10 @@
 # coding: utf-8
 from __future__ import unicode_literals
 
-import base64
 import re
 
 from .common import InfoExtractor
+from ..compat import compat_b64decode
 from ..utils import (
     qualities,
     sanitized_Request,
@@ -42,7 +42,7 @@ class DumpertIE(InfoExtractor):
             r'data-files="([^"]+)"', webpage, 'data files')
 
         files = self._parse_json(
-            base64.b64decode(files_base64.encode('utf-8')).decode('utf-8'),
+            compat_b64decode(files_base64).decode('utf-8'),
             video_id)
 
         quality = qualities(['flv', 'mobile', 'tablet', '720p'])