projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start moving to ytdl-org
[youtube-dl]
/
youtube_dl
/
extractor
/
kuwo.py
diff --git
a/youtube_dl/extractor/kuwo.py
b/youtube_dl/extractor/kuwo.py
index 081af86f64fd8cd4b086a6a96bfc313d1db086e1..cc5b2a1c177addf3465f2e9b2f65569f7617053b 100644
(file)
--- a/
youtube_dl/extractor/kuwo.py
+++ b/
youtube_dl/extractor/kuwo.py
@@
-91,10
+91,10
@@
class KuwoIE(KuwoBaseIE):
def _real_extract(self, url):
song_id = self._match_id(url)
def _real_extract(self, url):
song_id = self._match_id(url)
- webpage
= self._download_webpag
e(
+ webpage
, urlh = self._download_webpage_handl
e(
url, song_id, note='Download song detail info',
errnote='Unable to get song detail info')
url, song_id, note='Download song detail info',
errnote='Unable to get song detail info')
- if '对不起,该歌曲由于版权问题已被下线,将返回网站首页' in webpage:
+ if
song_id not in urlh.geturl() or
'对不起,该歌曲由于版权问题已被下线,将返回网站首页' in webpage:
raise ExtractorError('this song has been offline because of copyright issues', expected=True)
song_name = self._html_search_regex(
raise ExtractorError('this song has been offline because of copyright issues', expected=True)
song_name = self._html_search_regex(
@@
-215,7
+215,7
@@
class KuwoSingerIE(InfoExtractor):
'title': 'Ali',
},
'playlist_mincount': 95,
'title': 'Ali',
},
'playlist_mincount': 95,
- 'skip': 'Regularly stalls travis build', # See https://travis-ci.org/
rg3
/youtube-dl/jobs/78878540
+ 'skip': 'Regularly stalls travis build', # See https://travis-ci.org/
ytdl-org
/youtube-dl/jobs/78878540
}]
PAGE_SIZE = 15
}]
PAGE_SIZE = 15