diff --git a/yt_dlp/extractor/gamedevtv.py b/yt_dlp/extractor/gamedevtv.py index dfc2639a6e..cafb525d04 100644 --- a/yt_dlp/extractor/gamedevtv.py +++ b/yt_dlp/extractor/gamedevtv.py @@ -32,6 +32,11 @@ def _perform_login(self, username, password): }).encode()) self._API_HEADERS['Authorization'] = f'{response["token_type"]} {response["access_token"]}' + def _real_initialize(self): + if not self._API_HEADERS.get('Authorization'): + self.raise_login_required( + 'This content is only available with purchase', method='password') + def _entries(self, data, course_id): course_list = [] for section in data['data']['sections']: