From f7f9c27896da2cb6d2fa95ebab7ef4e4265ebb0a Mon Sep 17 00:00:00 2001 From: Thomas Tsiakalakis Date: Thu, 25 Apr 2019 10:48:39 +0200 Subject: [PATCH] [intldropout] display device limit error message --- youtube_dl/extractor/intldropout.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/intldropout.py b/youtube_dl/extractor/intldropout.py index 531906bba..070998883 100644 --- a/youtube_dl/extractor/intldropout.py +++ b/youtube_dl/extractor/intldropout.py @@ -66,7 +66,7 @@ class IntlDropoutIE(VHXEmbedIE): if login_page is False: return - if "You are now signed in" in login_page: + if "You are now signed in." in login_page: return login_form = self._hidden_inputs(login_page) @@ -84,6 +84,8 @@ class IntlDropoutIE(VHXEmbedIE): def _real_extract(self, url): webpage = self._download_webpage(url, None) + if "The device limit for your account has been reached" in webpage: + raise ExtractorError('Device Limit reached', expected=True) video = self._html_search_regex(r']*"(?Phttps://embed.vhx.tv/videos/[0-9]+[^"]*)"[^>]*>', webpage, 'embed') video_id = self._search_regex(r'https://embed.vhx.tv/videos/(?P[0-9]+)', video, 'id') video_title = self._html_search_regex(r'

]*>(?P[^<]+)<', webpage, 'title', fatal=False)