diff --git a/src/you_get/extractors/bilibili.py b/src/you_get/extractors/bilibili.py index 4ac82a26..2d748b70 100644 --- a/src/you_get/extractors/bilibili.py +++ b/src/you_get/extractors/bilibili.py @@ -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