]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[hitbox] Skip subscribe only formats (Closes #8217)
authorSergey M․ <dstftw@gmail.com>
Thu, 21 Jan 2016 17:28:22 +0000 (23:28 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 21 Jan 2016 17:28:22 +0000 (23:28 +0600)
youtube_dl/extractor/hitbox.py

index 421f55bbeaed2c1249833e5136ff479557c1bccc..ff797438dec12303aab55af0e29aac8bd35229c5 100644 (file)
@@ -159,6 +159,9 @@ class HitboxLiveIE(HitboxIE):
         cdns = player_config.get('cdns')
         servers = []
         for cdn in cdns:
+            # Subscribe URLs are not playable
+            if cdn.get('rtmpSubscribe') is True:
+                continue
             base_url = cdn.get('netConnectionUrl')
             host = re.search('.+\.([^\.]+\.[^\./]+)/.+', base_url).group(1)
             if base_url not in servers: