mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
add support for BVID of bilibili
This commit is contained in:
parent
50318b1e4d
commit
b4ea5976fb
@ -159,7 +159,7 @@ class Bilibili(VideoExtractor):
|
||||
sort = 'live'
|
||||
elif re.match(r'https?://vc\.bilibili\.com/video/(\d+)', self.url):
|
||||
sort = 'vc'
|
||||
elif re.match(r'https?://(www\.)?bilibili\.com/video/av(\d+)', self.url):
|
||||
elif re.match(r'https?://(www\.)?bilibili\.com/video/(av(\d+)|(BV(\S+)))', self.url):
|
||||
sort = 'video'
|
||||
else:
|
||||
self.download_playlist_by_url(self.url, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user