mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-12 14:27:16 +08:00
[zingmp3] Update extractor
This commit is contained in:
parent
35a7618ad5
commit
d626eb6fc0
@ -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,9 +136,8 @@ 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')
|
||||||
|
|
||||||
return self._extract_player_json(player_json_url, page_id, page_type, playlist_title)
|
return self._extract_player_json(player_json_url, page_id, page_type, playlist_title)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user