mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-18 13:20:46 +02:00
[youtube:search] Mark "no results found" error as expected
This commit is contained in:
parent
b53466e168
commit
07ad22b8af
@ -1694,7 +1694,8 @@ def _get_n_results(self, query, n):
|
||||
api_response = data['data']
|
||||
|
||||
if 'items' not in api_response:
|
||||
raise ExtractorError(u'[youtube] No video results')
|
||||
raise ExtractorError(
|
||||
u'[youtube] No video results', expected=True)
|
||||
|
||||
new_ids = list(video['id'] for video in api_response['items'])
|
||||
video_ids += new_ids
|
||||
|
Loading…
Reference in New Issue
Block a user