mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[hitbox] Skip subscribe only formats (Closes #8217)
This commit is contained in:
parent
51290d8457
commit
1e10d02fec
1 changed files with 3 additions and 0 deletions
|
@ -159,6 +159,9 @@ def _real_extract(self, url):
|
|||
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:
|
||||
|
|
Loading…
Reference in a new issue