From 3903434dc264c8153e213705c59416f1457e8340 Mon Sep 17 00:00:00 2001 From: TheDaChicken Date: Fri, 7 Sep 2018 15:07:21 -0700 Subject: [PATCH] Update cartoonnetwork.py --- youtube_dl/extractor/cartoonnetwork.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/cartoonnetwork.py b/youtube_dl/extractor/cartoonnetwork.py index ed035b1df..89af448cd 100644 --- a/youtube_dl/extractor/cartoonnetwork.py +++ b/youtube_dl/extractor/cartoonnetwork.py @@ -27,11 +27,12 @@ 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 = self._html_search_regex(r'[^>]+.authType = "(.+?)"', webpage, 'authType') + auth = self._html_search_regex(r'[^>]+currentVideo.authType = "(.+?)"', webpage, 'authType') if "auth" in auth: auth_required = '' if "unauth" in auth: auth_required = 'true' #Auth needs to be first due to Auth being in unauth. :/ + //print(auth_required) videoType = self._html_search_regex(r'[^>]+.videoType = "(.+?)"', webpage, 'videoType') if 'short' in videoType: description = ''