aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/qqmusic.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-03-21 12:21:27 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-04-16 17:34:54 +0800
commitc9a779695da56c1f9561af8586ecc586103dc254 (patch)
tree10f9fa6d687b438cf74ee23747c713c51cb16f97 /youtube_dl/extractor/qqmusic.py
parenta685ae511a7f2148afb765d0a30bca42a75cf861 (diff)
[extractor/common] Add the encoding parameter
The QQMusic info extractor need forced encoding for correct working.
Diffstat (limited to 'youtube_dl/extractor/qqmusic.py')
-rw-r--r--youtube_dl/extractor/qqmusic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/qqmusic.py b/youtube_dl/extractor/qqmusic.py
index e8aacbc3d..174c8e0ae 100644
--- a/youtube_dl/extractor/qqmusic.py
+++ b/youtube_dl/extractor/qqmusic.py
@@ -24,7 +24,7 @@ class QQMusicIE(InfoExtractor):
'title': '可惜没如果',
'upload_date': '20141227',
'creator': '林俊杰',
- 'description': 'md5:242c97c2847e0495583b7b13764f7106',
+ 'description': 'md5:4348ff1dd24036906baa7b6f973f8d30',
}
}]
@@ -41,7 +41,7 @@ class QQMusicIE(InfoExtractor):
detail_info_page = self._download_webpage(
'http://s.plcloud.music.qq.com/fcgi-bin/fcg_yqq_song_detail_info.fcg?songmid=%s&play=0' % mid,
mid, note='Download song detail info',
- errnote='Unable to get song detail info')
+ errnote='Unable to get song detail info', encoding='gbk')
song_name = self._html_search_regex(
r"songname:\s*'([^']+)'", detail_info_page, 'song name')