mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 01:25:11 +00:00
[ondemandkorea] add extractor error for odk premium content
This commit is contained in:
parent
efef17148f
commit
abb41d6430
1 changed files with 5 additions and 0 deletions
|
@ -60,6 +60,11 @@ def _real_extract(self, url):
|
||||||
'This video is only available to ODK PLUS members.',
|
'This video is only available to ODK PLUS members.',
|
||||||
expected=True)
|
expected=True)
|
||||||
|
|
||||||
|
if 'ODK PREMIUM Members Only' in webpage:
|
||||||
|
raise ExtractorError(
|
||||||
|
'This video is only available to ODK PREMIUM members.',
|
||||||
|
expected=True)
|
||||||
|
|
||||||
title = self._search_regex(
|
title = self._search_regex(
|
||||||
r'class=["\']episode_title["\'][^>]*>([^<]+)',
|
r'class=["\']episode_title["\'][^>]*>([^<]+)',
|
||||||
webpage, 'episode_title', fatal=False) or self._og_search_title(webpage)
|
webpage, 'episode_title', fatal=False) or self._og_search_title(webpage)
|
||||||
|
|
Loading…
Reference in a new issue