aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/cspan.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/cspan.py')
-rw-r--r--hypervideo_dl/extractor/cspan.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/hypervideo_dl/extractor/cspan.py b/hypervideo_dl/extractor/cspan.py
index f51159b..0075680 100644
--- a/hypervideo_dl/extractor/cspan.py
+++ b/hypervideo_dl/extractor/cspan.py
@@ -1,5 +1,3 @@
-from __future__ import unicode_literals
-
import re
from .common import InfoExtractor
@@ -165,7 +163,7 @@ class CSpanIE(InfoExtractor):
video_id = m.group('id')
video_type = 'program' if m.group('type') == 'prog' else 'clip'
else:
- senate_isvp_url = SenateISVPIE._search_iframe_url(webpage)
+ senate_isvp_url = SenateISVPIE._extract_url(webpage)
if senate_isvp_url:
title = self._og_search_title(webpage)
surl = smuggle_url(senate_isvp_url, {'force_title': title})
@@ -220,7 +218,6 @@ class CSpanIE(InfoExtractor):
path, video_id, 'mp4', entry_protocol='m3u8_native',
m3u8_id='hls') if determine_ext(path) == 'm3u8' else [{'url': path, }]
add_referer(formats)
- self._sort_formats(formats)
entries.append({
'id': '%s_%d' % (video_id, partnum + 1),
'title': (
@@ -277,8 +274,7 @@ class CSpanCongressIE(InfoExtractor):
self._search_regex(r'jwsetup\s*=\s*({(?:.|\n)[^;]+});', webpage, 'player config'),
video_id, transform_source=js_to_json)
- title = (self._og_search_title(webpage, default=None)
- or self._html_extract_title(webpage, 'video title'))
+ title = self._generic_title('', webpage)
description = (self._og_search_description(webpage, default=None)
or self._html_search_meta('description', webpage, 'description', default=None))