[extractor/BiliBiliSearch] Fix infinite loop

Closes #4682
This commit is contained in:
pukkandan 2022-08-21 05:17:22 +05:30
parent b25cac650f
commit 2d1019542a
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39
1 changed files with 3 additions and 1 deletions

View File

@ -627,7 +627,9 @@ class BiliBiliSearchIE(SearchInfoExtractor):
'search_type': 'video', 'search_type': 'video',
'tids': 0, 'tids': 0,
'highlight': 1, 'highlight': 1,
})['data'].get('result') or [] })['data'].get('result')
if not videos:
break
for video in videos: for video in videos:
yield self.url_result(video['arcurl'], 'BiliBili', str(video['aid'])) yield self.url_result(video['arcurl'], 'BiliBili', str(video['aid']))