mirror of
https://github.com/l1ving/youtube-dl
synced 2026-06-05 08:53:33 +08:00
Add detection for premium videos
This commit is contained in:
@@ -34,6 +34,9 @@ class OnDemandKoreaIE(InfoExtractor):
|
||||
if 'msg_block_01.png' in webpage:
|
||||
raise ExtractorError('This content is not available in your region.', expected=True)
|
||||
|
||||
if 'This video is only available to ODK PLUS members.' in webpage:
|
||||
raise ExtractorError('This video is only available to ODK PLUS members.', expected=True)
|
||||
|
||||
title = self._og_search_title(webpage)
|
||||
thumbnail = self._og_search_thumbnail(webpage)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user