aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2016-09-20 18:51:29 +0100
committerRemita Amine <remitamine@gmail.com>2016-09-20 18:52:00 +0100
commit1ae0ae5db0bc9c388de970c71880e2f3dc400cc3 (patch)
tree7225f8840ed01e1fe01f47a6402d3d187e8ab5df
parentf62a77b99a73ed3acf8406efaa34d08c73682be3 (diff)
[cartoonnetwork] add support Adobe Pass auth
-rw-r--r--youtube_dl/extractor/cartoonnetwork.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/cartoonnetwork.py b/youtube_dl/extractor/cartoonnetwork.py
index 688a6375e..086ec90c9 100644
--- a/youtube_dl/extractor/cartoonnetwork.py
+++ b/youtube_dl/extractor/cartoonnetwork.py
@@ -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',
})