From d626eb6fc05a6347636d91307d954b6350fb1612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=B5=20V=C4=83n=20Khoa?= Date: Sun, 24 Sep 2017 23:07:08 +0700 Subject: [PATCH] [zingmp3] Update extractor --- youtube_dl/extractor/zingmp3.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/zingmp3.py b/youtube_dl/extractor/zingmp3.py index 4be31f951..149326b7d 100644 --- a/youtube_dl/extractor/zingmp3.py +++ b/youtube_dl/extractor/zingmp3.py @@ -116,7 +116,7 @@ class ZingMp3IE(ZingMp3BaseInfoExtractor): 'info_dict': { '_type': 'playlist', 'id': 'ZO6976C0', - 'title': 'I Lab You (Single)', + 'title': 'I Lab You (Single) - Tiên Tiên | Zing MP3', }, 'playlist_count': 2, }, { @@ -136,9 +136,8 @@ class ZingMp3IE(ZingMp3BaseInfoExtractor): r'&xmlURL=([^&]+)&' ], webpage, 'player xml url') - playlist_title = self._html_search_regex(r'

([^>]+)

', webpage, 'title') - if not playlist_title: - playlist_title = self._og_search_title(webpage) + #playlist_title = self._html_search_regex(r'

([^>]+)

', webpage, 'title') + playlist_title = self._og_search_title(webpage) 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)