diff options
author | Remita Amine <remitamine@gmail.com> | 2016-08-28 17:08:26 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2016-08-28 17:08:26 +0100 |
commit | 5bc8a73af69f4aac8b2df6f7c23ecfb4ee72e518 (patch) | |
tree | a63611ba96ed38533770de09dc11f7a89e8ee969 /youtube_dl/extractor/cartoonnetwork.py | |
parent | b3eaeded12f470afd6f0cb851e6b7dd2ee78b7c5 (diff) |
[cartoonnetwork] make extraction work for more videos in the website
some videos require `networkName=CN2` to be present in the feed url
Diffstat (limited to 'youtube_dl/extractor/cartoonnetwork.py')
-rw-r--r-- | youtube_dl/extractor/cartoonnetwork.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/cartoonnetwork.py b/youtube_dl/extractor/cartoonnetwork.py index 813f53644..b3f30b1ca 100644 --- a/youtube_dl/extractor/cartoonnetwork.py +++ b/youtube_dl/extractor/cartoonnetwork.py @@ -28,7 +28,7 @@ class CartoonNetworkIE(TurnerBaseIE): 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 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': { 'media_src': 'http://apple-secure.cdn.turner.com/toon/big', 'tokenizer_src': 'http://www.cartoonnetwork.com/cntv/mvpd/processors/services/token_ipadAdobe.do', |