From ebf3487819b4d88b10677d827b262d93b3903594 Mon Sep 17 00:00:00 2001 From: TheDaChicken Date: Tue, 4 Sep 2018 16:12:28 -0700 Subject: [PATCH] Fixed Adobe Pass thinking it's needs TV logins --- youtube_dl/extractor/cartoonnetwork.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/cartoonnetwork.py b/youtube_dl/extractor/cartoonnetwork.py index a2f711563..5fb20c45e 100644 --- a/youtube_dl/extractor/cartoonnetwork.py +++ b/youtube_dl/extractor/cartoonnetwork.py @@ -27,12 +27,16 @@ class CartoonNetworkIE(TurnerBaseIE): webpage = self._download_webpage(url, display_id) video_id = self._html_search_regex(r'[^>]+.mediaId = "(.+?)"', webpage, 'video_id') title = self._html_search_regex(r'[^>]+.episodeTitle = "(.+?)"', webpage, 'title') - auth_required = self._html_search_regex(r'[^>]+.authType = "(.+?)"', webpage, 'authType') + auth = self._html_search_regex(r'[^>]+.authType = "(.+?)"', webpage, 'authType') + if "unauth" in auth: + auth_required = 'false' + if "auth" in auth: + auth_required = 'true' videoType = self._html_search_regex(r'[^>]+.videoType = "(.+?)"', webpage, 'videoType') if 'short' in videoType: description = '' else: - description = self._html_search_regex(r'
]+description[^>]*>(.+?)
', webpage, 'description') info = self._extract_ngtv_info( video_id, {'networkId': 'cartoonnetwork'},