From abb41d6430eb525cdbe526d47ed072aee270a7f9 Mon Sep 17 00:00:00 2001 From: Julien Hadley Jack Date: Sun, 2 Aug 2020 20:59:18 +0200 Subject: [PATCH] [ondemandkorea] add extractor error for odk premium content --- youtube_dl/extractor/ondemandkorea.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/youtube_dl/extractor/ondemandkorea.py b/youtube_dl/extractor/ondemandkorea.py index 37e09bd18..cc3c587bc 100644 --- a/youtube_dl/extractor/ondemandkorea.py +++ b/youtube_dl/extractor/ondemandkorea.py @@ -60,6 +60,11 @@ class OnDemandKoreaIE(InfoExtractor): 'This video is only available to ODK PLUS members.', 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( r'class=["\']episode_title["\'][^>]*>([^<]+)', webpage, 'episode_title', fatal=False) or self._og_search_title(webpage)