1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-30 10:22:55 +01:00

[pbs] Fix extraction (closes #17109)

This commit is contained in:
Sergey M․ 2018-07-30 23:10:40 +07:00
parent 7ff129d3ea
commit 6f2d82a5a0
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -15,6 +15,7 @@ from ..utils import (
strip_jsonp, strip_jsonp,
strip_or_none, strip_or_none,
unified_strdate, unified_strdate,
url_or_none,
US_RATINGS, US_RATINGS,
) )
@ -557,6 +558,13 @@ class PBSIE(InfoExtractor):
if redirect_url and redirect_url not in redirect_urls: if redirect_url and redirect_url not in redirect_urls:
redirects.append(redirect) redirects.append(redirect)
redirect_urls.add(redirect_url) redirect_urls.add(redirect_url)
encodings = info.get('encodings')
if isinstance(encodings, list):
for encoding in encodings:
encoding_url = url_or_none(encoding)
if encoding_url and encoding_url not in redirect_urls:
redirects.append({'url': encoding_url})
redirect_urls.add(encoding_url)
chapters = [] chapters = []
# Player pages may also serve different qualities # Player pages may also serve different qualities