Add detection for premium videos

This commit is contained in:
ping 2016-09-27 13:47:23 +08:00
parent cd9c62d1ca
commit 75b6ee6f97

View File

@ -34,6 +34,9 @@ class OnDemandKoreaIE(InfoExtractor):
if 'msg_block_01.png' in webpage: if 'msg_block_01.png' in webpage:
raise ExtractorError('This content is not available in your region.', expected=True) 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) title = self._og_search_title(webpage)
thumbnail = self._og_search_thumbnail(webpage) thumbnail = self._og_search_thumbnail(webpage)