From f4dde36bf93f37f39e85a4279714ee87a8e4fa9c Mon Sep 17 00:00:00 2001 From: TheDaChicken Date: Sun, 9 Sep 2018 13:26:10 -0700 Subject: [PATCH] [CartoonNetwork] Cleaned up some of the code. --- youtube_dl/extractor/cartoonnetwork.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/youtube_dl/extractor/cartoonnetwork.py b/youtube_dl/extractor/cartoonnetwork.py index e4e16b3cb..2b098c68f 100644 --- a/youtube_dl/extractor/cartoonnetwork.py +++ b/youtube_dl/extractor/cartoonnetwork.py @@ -32,12 +32,8 @@ class CartoonNetworkIE(TurnerBaseIE): auth_required = 'true' if "unauth" in auth: auth_required = '' #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 = '' - else: - description = self._html_search_regex(r'id="[^>]+description[^>]*>(.+?)', webpage, 'description') + description = self._html_search_regex(r'id="[^>]+description[^>]*>(.+?)', webpage, 'description', default=None) info = self._extract_ngtv_info( video_id, {'networkId': 'cartoonnetwork'},