+import base64
import re
+import urllib.parse
from .common import InfoExtractor
-from ..compat import (
- compat_b64decode,
- compat_urllib_parse_unquote,
-)
class BigflixIE(InfoExtractor):
},
'params': {
'skip_download': True,
- }
+ },
}, {
# multiple formats
'url': 'http://www.bigflix.com/Malayalam-movies/Drama-movies/Indian-Rupee/15967',
webpage, 'title')
def decode_url(quoted_b64_url):
- return compat_b64decode(compat_urllib_parse_unquote(
+ return base64.b64decode(urllib.parse.unquote(
quoted_b64_url)).decode('utf-8')
formats = []
video_url = decode_url(encoded_url)
f = {
'url': video_url,
- 'format_id': '%sp' % height,
+ 'format_id': f'{height}p',
'height': int(height),
}
if video_url.startswith('rtmp'):
'id': video_id,
'title': title,
'description': description,
- 'formats': formats
+ 'formats': formats,
}