diff options
author | Jesús <heckyel@hyperbola.info> | 2021-10-18 15:24:21 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-10-18 15:24:21 -0500 |
commit | 5122028a4bcac4ae577ef7fbd55ccad5cb34ef5e (patch) | |
tree | 65209bc739db35e31f1c9b5b868eb5df4fe12ae3 /hypervideo_dl/extractor/aol.py | |
parent | 27fe903c511691c078942bef5ee9a05a43b15c8f (diff) | |
download | hypervideo-5122028a4bcac4ae577ef7fbd55ccad5cb34ef5e.tar.lz hypervideo-5122028a4bcac4ae577ef7fbd55ccad5cb34ef5e.tar.xz hypervideo-5122028a4bcac4ae577ef7fbd55ccad5cb34ef5e.zip |
update from upstream
Diffstat (limited to 'hypervideo_dl/extractor/aol.py')
-rw-r--r-- | hypervideo_dl/extractor/aol.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/hypervideo_dl/extractor/aol.py b/hypervideo_dl/extractor/aol.py index f6ecb84..4766a2c 100644 --- a/hypervideo_dl/extractor/aol.py +++ b/hypervideo_dl/extractor/aol.py @@ -4,13 +4,10 @@ from __future__ import unicode_literals import re from .yahoo import YahooIE -from ..compat import ( - compat_parse_qs, - compat_urllib_parse_urlparse, -) from ..utils import ( ExtractorError, int_or_none, + parse_qs, url_or_none, ) @@ -119,13 +116,13 @@ class AolIE(YahooIE): 'height': int(mobj.group(2)), }) else: - qs = compat_parse_qs(compat_urllib_parse_urlparse(video_url).query) + qs = parse_qs(video_url) f.update({ 'width': int_or_none(qs.get('w', [None])[0]), 'height': int_or_none(qs.get('h', [None])[0]), }) formats.append(f) - self._sort_formats(formats, ('width', 'height', 'tbr', 'format_id')) + self._sort_formats(formats) return { 'id': video_id, |