]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[cartoonnetwork] add support Adobe Pass auth
authorRemita Amine <remitamine@gmail.com>
Tue, 20 Sep 2016 17:51:29 +0000 (18:51 +0100)
committerRemita Amine <remitamine@gmail.com>
Tue, 20 Sep 2016 17:52:00 +0000 (18:52 +0100)
youtube_dl/extractor/cartoonnetwork.py

index 688a6375e2d66f490a0c3e2d9f706c44bd889e2f..086ec90c9bc8a606968e5f56d2bada8602ed1f35 100644 (file)
@@ -33,4 +33,10 @@ class CartoonNetworkIE(TurnerBaseIE):
                     'media_src': 'http://androidhls-secure.cdn.turner.com/toon/big',
                     'tokenizer_src': 'http://www.cartoonnetwork.com/cntv/mvpd/processors/services/token_ipadAdobe.do',
                 },
+            }, {
+                'url': url,
+                'site_name': 'CartoonNetwork',
+                'auth_required': self._search_regex(
+                    r'_cnglobal\.cvpFullOrPreviewAuth\s*=\s*(true|false);',
+                    webpage, 'auth required', default='false') == 'true',
             })