diff options
author | forDream <[email protected]> | 2017-08-02 12:20:53 +0800 |
---|---|---|
committer | forDream <[email protected]> | 2017-08-15 13:14:34 +0800 |
commit | 5d1bd3b907d22eab7c47b8b408c07a26dbc358ea (patch) | |
tree | c2b02922c25eb8ca601c5b6e5abeade48e34e0be /youtube_dl/extractor/qqmusic.py | |
parent | 19ada898dc80a04ae1a2590c8886c9ec13958b03 (diff) | |
download | youtube-dl-5d1bd3b907d22eab7c47b8b408c07a26dbc358ea.tar.gz youtube-dl-5d1bd3b907d22eab7c47b8b408c07a26dbc358ea.zip |
[qqmusic]update valid url
Diffstat (limited to 'youtube_dl/extractor/qqmusic.py')
-rw-r--r-- | youtube_dl/extractor/qqmusic.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/qqmusic.py b/youtube_dl/extractor/qqmusic.py index 6bff6baa8..7513acba9 100644 --- a/youtube_dl/extractor/qqmusic.py +++ b/youtube_dl/extractor/qqmusic.py @@ -261,7 +261,7 @@ class QQMusicAlbumIE(QQPlaylistBaseIE): class QQMusicToplistIE(QQPlaylistBaseIE): IE_NAME = 'qqmusic:toplist' IE_DESC = 'QQ音乐 - 排行榜' - _VALID_URL = r'https?://y\.qq\.com/n/yqq/toplist/(?P<id>(top|global)_[0-9]+)\.html' + _VALID_URL = r'https?://y\.qq\.com/n/yqq/toplist/(?P<id>[0-9]+)\.html' _TESTS = [{ 'url': 'https://y.qq.com/n/yqq/toplist/123.html', @@ -293,7 +293,9 @@ class QQMusicToplistIE(QQPlaylistBaseIE): def _real_extract(self, url): list_id = self._match_id(url) - list_type, num_id = list_id.split("_") + # list_type, num_id = list_id.split("_") + list_type = "toplist" + num_id = list_id toplist_json = self._download_json( 'http://i.y.qq.com/v8/fcg-bin/fcg_v8_toplist_cp.fcg?type=%s&topid=%s&format=json' |