mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-23 16:26:40 +00:00
[cartoonnetwork] make extraction work for more videos in the website
some videos require `networkName=CN2` to be present in the feed url
This commit is contained in:
parent
b3eaeded12
commit
5bc8a73af6
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class CartoonNetworkIE(TurnerBaseIE):
|
||||||
id_type, video_id = re.search(r"_cnglobal\.cvp(Video|Title)Id\s*=\s*'([^']+)';", webpage).groups()
|
id_type, video_id = re.search(r"_cnglobal\.cvp(Video|Title)Id\s*=\s*'([^']+)';", webpage).groups()
|
||||||
query = ('id' if id_type == 'Video' else 'titleId') + '=' + video_id
|
query = ('id' if id_type == 'Video' else 'titleId') + '=' + video_id
|
||||||
return self._extract_cvp_info(
|
return self._extract_cvp_info(
|
||||||
'http://www.cartoonnetwork.com/video-seo-svc/episodeservices/getCvpPlaylist?' + query, video_id, {
|
'http://www.cartoonnetwork.com/video-seo-svc/episodeservices/getCvpPlaylist?networkName=CN2&' + query, video_id, {
|
||||||
'secure': {
|
'secure': {
|
||||||
'media_src': 'http://apple-secure.cdn.turner.com/toon/big',
|
'media_src': 'http://apple-secure.cdn.turner.com/toon/big',
|
||||||
'tokenizer_src': 'http://www.cartoonnetwork.com/cntv/mvpd/processors/services/token_ipadAdobe.do',
|
'tokenizer_src': 'http://www.cartoonnetwork.com/cntv/mvpd/processors/services/token_ipadAdobe.do',
|
||||||
|
|
Loading…
Reference in a new issue