[CartoonNetwork] Cleaned up some of the code.
This commit is contained in:
parent
ea41ca2336
commit
f4dde36bf9
@ -32,12 +32,8 @@ class CartoonNetworkIE(TurnerBaseIE):
|
|||||||
auth_required = 'true'
|
auth_required = 'true'
|
||||||
if "unauth" in auth:
|
if "unauth" in auth:
|
||||||
auth_required = '' #Auth needs to be first due to Auth being in unauth. :/
|
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')
|
videoType = self._html_search_regex(r'[^>]+.videoType = "(.+?)"', webpage, 'videoType')
|
||||||
if 'short' in videoType:
|
description = self._html_search_regex(r'id="[^>]+description[^>]*>(.+?)</div>', webpage, 'description', default=None)
|
||||||
description = ''
|
|
||||||
else:
|
|
||||||
description = self._html_search_regex(r'id="[^>]+description[^>]*>(.+?)</div>', webpage, 'description')
|
|
||||||
info = self._extract_ngtv_info(
|
info = self._extract_ngtv_info(
|
||||||
video_id,
|
video_id,
|
||||||
{'networkId': 'cartoonnetwork'},
|
{'networkId': 'cartoonnetwork'},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user