[bilibili] warn when target URL is a playlist

This commit is contained in:
Mort Yao 2018-03-24 23:56:38 +01:00
parent 821e639e02
commit d3719ed4b6
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -167,8 +167,8 @@ class Bilibili(VideoExtractor):
qq_download_by_vid(tc_flashvars, self.title, output_dir=kwargs['output_dir'], merge=kwargs['merge'], info_only=kwargs['info_only'])
return
has_plist = re.search(r'<option', self.page)
if has_plist and r1('index_(\d+).html', self.url) is None:
has_plist = re.search(r'"page":2', self.page)
if has_plist:
log.w('This page contains a playlist. (use --playlist to download all videos.)')
try: