projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51290d8
)
[hitbox] Skip subscribe only formats (Closes #8217)
author
Sergey M․
<dstftw@gmail.com>
Thu, 21 Jan 2016 17:28:22 +0000
(23:28 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 21 Jan 2016 17:28:22 +0000
(23:28 +0600)
youtube_dl/extractor/hitbox.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/hitbox.py
b/youtube_dl/extractor/hitbox.py
index 421f55bbeaed2c1249833e5136ff479557c1bccc..ff797438dec12303aab55af0e29aac8bd35229c5 100644
(file)
--- a/
youtube_dl/extractor/hitbox.py
+++ b/
youtube_dl/extractor/hitbox.py
@@
-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: