Forgot to handle query parameters when parsing new bilibili site code

This commit is contained in:
Johannes Wong 2023-03-12 09:46:57 -07:00
parent 9b306bee13
commit e443642b81

View File

@ -368,7 +368,15 @@ class Bilibili(VideoExtractor):
initial_state = {}
for dic in pinitial_state:
if dic['link'] == self.url.rstrip('/'):
query_start = self.url.find('?')
url = ""
if query_start > 0:
url = self.url[0:query_start].rstrip('/')
else:
url = self.url.rstrip('/')
if dic['link'] == url:
initial_state = dic
break