aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/pbs.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/pbs.py')
-rw-r--r--hypervideo_dl/extractor/pbs.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/hypervideo_dl/extractor/pbs.py b/hypervideo_dl/extractor/pbs.py
index 0eabf9b..e48a2b8 100644
--- a/hypervideo_dl/extractor/pbs.py
+++ b/hypervideo_dl/extractor/pbs.py
@@ -193,7 +193,7 @@ class PBSIE(InfoExtractor):
# Article with embedded player (or direct video)
(?:www\.)?pbs\.org/(?:[^/]+/){1,5}(?P<presumptive_id>[^/]+?)(?:\.html)?/?(?:$|[?\#]) |
# Player
- (?:video|player)\.pbs\.org/(?:widget/)?partnerplayer/(?P<player_id>[^/]+)/
+ (?:video|player)\.pbs\.org/(?:widget/)?partnerplayer/(?P<player_id>[^/]+)
)
''' % '|'.join(list(zip(*_STATIONS))[0])
@@ -545,7 +545,7 @@ class PBSIE(InfoExtractor):
for vid_id in video_id]
return self.playlist_result(entries, display_id)
- info = None
+ info = {}
redirects = []
redirect_urls = set()
@@ -660,6 +660,9 @@ class PBSIE(InfoExtractor):
'protocol': 'http',
})
formats.append(f)
+ for f in formats:
+ if (f.get('format_note') or '').endswith(' AD'): # Audio description
+ f['language_preference'] = -10
self._sort_formats(formats)
rating_str = info.get('rating')