]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[cartoonnetwork] make extraction work for more videos in the website
authorRemita Amine <remitamine@gmail.com>
Sun, 28 Aug 2016 16:08:26 +0000 (17:08 +0100)
committerRemita Amine <remitamine@gmail.com>
Sun, 28 Aug 2016 16:08:26 +0000 (17:08 +0100)
some videos require `networkName=CN2` to be present in the feed url

youtube_dl/extractor/cartoonnetwork.py

index 813f5364428c1049c5d765384a692a6a5ad54395..b3f30b1ca81667b83e5f697b19d44d89157afe98 100644 (file)
@@ -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',