Just removed some code that is not needed

This commit is contained in:
GoNotCougsWA 2018-08-18 18:28:53 -07:00 committed by GitHub
parent 091e3cc417
commit fbe332d8a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,8 +25,6 @@ class CartoonNetworkIE(TurnerBaseIE):
def _real_extract(self, url):
display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id)
#id_type, video_id = re.search(r"_cnglobal\.cvp(Video|Title)Id\s*=\s*'([^']+)';", webpage).groups()
#video_id = 'a182d531dab41469af2f3101e1d52ef09465e338'
for line in webpage.splitlines():
if "_cnglobal.currentVideo.mediaId" in line:
simpleid = line.split('mediaId = "',1)[1]
@ -36,8 +34,6 @@ class CartoonNetworkIE(TurnerBaseIE):
title = simpletitle.replace('";', '')
print(title)
description = ''
#query = ('id' if id_type == 'Video' else 'titleId') + '=' + video_id
info = self._extract_ngtv_info(
video_id,
{'networkId': 'cartoonnetwork'},