[extractor/crunchyroll] Fix incorrect premium-only error

Closes #6234

Authored by: Grub4K
This commit is contained in:
Simon Sawicki 2023-02-16 15:54:11 +01:00 committed by GitHub
parent 149eb0bbf3
commit c9d14bd22a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,7 @@ def _real_extract(self, url):
episode_response = self._download_json(
f'{api_domain}/cms/v2{bucket}/episodes/{internal_id}', display_id,
note='Retrieving episode metadata', query=params)
if episode_response.get('is_premium_only') and not episode_response.get('playback'):
if episode_response.get('is_premium_only') and not bucket.endswith('crunchyroll'):
if self.is_logged_in:
raise ExtractorError('This video is for premium members only', expected=True)
else: