1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-12 21:07:16 +08:00

[zingmp3] Update extractor

This commit is contained in:
Võ Văn Khoa 2017-09-24 23:07:08 +07:00
parent 35a7618ad5
commit d626eb6fc0

View File

@ -116,7 +116,7 @@ class ZingMp3IE(ZingMp3BaseInfoExtractor):
'info_dict': { 'info_dict': {
'_type': 'playlist', '_type': 'playlist',
'id': 'ZO6976C0', 'id': 'ZO6976C0',
'title': 'I Lab You (Single)', 'title': 'I Lab You (Single) - Tiên Tiên | Zing MP3',
}, },
'playlist_count': 2, 'playlist_count': 2,
}, { }, {
@ -136,8 +136,7 @@ class ZingMp3IE(ZingMp3BaseInfoExtractor):
r'&xmlURL=([^&]+)&' r'&xmlURL=([^&]+)&'
], webpage, 'player xml url') ], webpage, 'player xml url')
playlist_title = self._html_search_regex(r'<h1 class="txt-primary">([^>]+)</h1>', webpage, 'title') #playlist_title = self._html_search_regex(r'<h1 class="txt-primary">([^>]+)</h1>', webpage, 'title')
if not playlist_title:
playlist_title = self._og_search_title(webpage) playlist_title = self._og_search_title(webpage)
page_type = self._search_regex(r'type=([^&]+)', player_json_url, 'page type') page_type = self._search_regex(r'type=([^&]+)', player_json_url, 'page type')