1
0
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:
ping
2016-09-27 13:47:23 +08:00
Unverified
parent cd9c62d1ca
commit 75b6ee6f97
+3
View File
@@ -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)