mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-06-10 02:40:52 +00:00
[ie/Boosty] don't fail if hasAccess is not set but videos are available
This commit is contained in:
parent
6bb3679217
commit
7027b79160
|
@ -216,9 +216,9 @@ class BoostyIE(InfoExtractor):
|
||||||
'thumbnail': (('previewUrl', 'defaultPreview'), {url_or_none}),
|
'thumbnail': (('previewUrl', 'defaultPreview'), {url_or_none}),
|
||||||
}, get_all=False)})
|
}, get_all=False)})
|
||||||
|
|
||||||
if not post.get('hasAccess'):
|
if not entries and not post.get('hasAccess'):
|
||||||
self.raise_login_required('This post requires a subscription', True, method='cookies')
|
self.raise_login_required('This post requires a subscription', metadata_available=True, method='cookies')
|
||||||
if not entries:
|
elif not entries:
|
||||||
raise ExtractorError('No videos found', expected=True)
|
raise ExtractorError('No videos found', expected=True)
|
||||||
if len(entries) == 1:
|
if len(entries) == 1:
|
||||||
return entries[0]
|
return entries[0]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user