]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[byutv] add support for geo restricted videos
authorRemita Amine <remitamine@gmail.com>
Wed, 13 Dec 2017 16:51:24 +0000 (17:51 +0100)
committerRemita Amine <remitamine@gmail.com>
Wed, 13 Dec 2017 16:51:56 +0000 (17:51 +0100)
youtube_dl/extractor/byutv.py

index dd7d2f858ab4026a4af4bc0f4c1c94b412fd4836..4bf4efe1f3c662dbec1414c8004c904b12412551 100644 (file)
@@ -39,10 +39,10 @@ class BYUtvIE(InfoExtractor):
             'https://api.byutv.org/api3/catalog/getvideosforcontent', video_id,
             query={
                 'contentid': video_id,
-                'channel': 'byutv_global',
-                'x-byutv-context': 'web$Global',
+                'channel': 'byutv',
+                'x-byutv-context': 'web$US',
             }, headers={
-                'x-byutv-context': 'web$Global',
+                'x-byutv-context': 'web$US',
                 'x-byutv-platformkey': 'xsaaw9c7y5',
             })['ooyalaVOD']