diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-03-31 02:11:21 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-03-31 02:11:21 +0800 |
commit | 3ae6f8fec1381df41dc05272bfe3ab03654ac4af (patch) | |
tree | 2390d5ed642b68e5dfb71bfec862fbf82e387a9a /youtube_dl/extractor/kuwo.py | |
parent | 597d52fadbf32af4f2dcc7b9e236c318145f536b (diff) |
[kwuo] Remove _sort_formats() from KuwoBaseIE._get_formats()
Following the idea proposed in 19dbaeece321c51fa336ef142507adf440e22e22
Diffstat (limited to 'youtube_dl/extractor/kuwo.py')
-rw-r--r-- | youtube_dl/extractor/kuwo.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/youtube_dl/extractor/kuwo.py b/youtube_dl/extractor/kuwo.py index 84c0f363d..f09436332 100644 --- a/youtube_dl/extractor/kuwo.py +++ b/youtube_dl/extractor/kuwo.py @@ -44,11 +44,6 @@ class KuwoBaseIE(InfoExtractor): 'abr': file_format.get('abr'), }) - # XXX _sort_formats fails if there are not formats, while it's not the - # desired behavior if 'IPDeny' is ignored - # This check can be removed if https://github.com/rg3/youtube-dl/pull/8051 is merged - if not tolerate_ip_deny: - self._sort_formats(formats) return formats @@ -103,6 +98,7 @@ class KuwoIE(KuwoBaseIE): lrc_content = None formats = self._get_formats(song_id) + self._sort_formats(formats) album_id = self._html_search_regex( r'<p[^>]+class="album"[^<]+<a[^>]+href="http://www\.kuwo\.cn/album/(\d+)/"', |