mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 05:25:02 +03:00
Forgot to handle query parameters when parsing new bilibili site code
This commit is contained in:
parent
9b306bee13
commit
e443642b81
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user