mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-21 10:14:33 +00:00
Compare commits
No commits in common. "3a84be9d1660ef798ea28f929a20391bef6afda4" and "ade876efb31d55d3394185ffc56942fdc8d325cc" have entirely different histories.
3a84be9d16
...
ade876efb3
@ -2092,7 +2092,6 @@ from .theguardian import (
|
|||||||
TheGuardianPodcastIE,
|
TheGuardianPodcastIE,
|
||||||
TheGuardianPodcastPlaylistIE,
|
TheGuardianPodcastPlaylistIE,
|
||||||
)
|
)
|
||||||
from .thehighwire import TheHighWireIE
|
|
||||||
from .theholetv import TheHoleTvIE
|
from .theholetv import TheHoleTvIE
|
||||||
from .theintercept import TheInterceptIE
|
from .theintercept import TheInterceptIE
|
||||||
from .theplatform import (
|
from .theplatform import (
|
||||||
|
|||||||
@ -16,7 +16,6 @@ from ..utils import (
|
|||||||
dict_get,
|
dict_get,
|
||||||
extract_attributes,
|
extract_attributes,
|
||||||
get_element_by_id,
|
get_element_by_id,
|
||||||
get_element_text_and_html_by_tag,
|
|
||||||
int_or_none,
|
int_or_none,
|
||||||
join_nonempty,
|
join_nonempty,
|
||||||
js_to_json,
|
js_to_json,
|
||||||
@ -73,7 +72,6 @@ class ArchiveOrgIE(InfoExtractor):
|
|||||||
'display_id': 'Cops-v2.mp4',
|
'display_id': 'Cops-v2.mp4',
|
||||||
'thumbnail': r're:https://archive\.org/download/.*\.jpg',
|
'thumbnail': r're:https://archive\.org/download/.*\.jpg',
|
||||||
'duration': 1091.96,
|
'duration': 1091.96,
|
||||||
'track': 'Cops-v2',
|
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
'url': 'http://archive.org/embed/XD300-23_68HighlightsAResearchCntAugHumanIntellect',
|
'url': 'http://archive.org/embed/XD300-23_68HighlightsAResearchCntAugHumanIntellect',
|
||||||
@ -88,7 +86,6 @@ class ArchiveOrgIE(InfoExtractor):
|
|||||||
'thumbnail': r're:https://archive\.org/download/.*\.jpg',
|
'thumbnail': r're:https://archive\.org/download/.*\.jpg',
|
||||||
'duration': 59.77,
|
'duration': 59.77,
|
||||||
'display_id': 'Commercial-JFK1960ElectionAdCampaignJingle.mpg',
|
'display_id': 'Commercial-JFK1960ElectionAdCampaignJingle.mpg',
|
||||||
'track': 'Commercial-JFK1960ElectionAdCampaignJingle',
|
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://archive.org/details/Election_Ads/Commercial-Nixon1960ElectionAdToughonDefense.mpg',
|
'url': 'https://archive.org/details/Election_Ads/Commercial-Nixon1960ElectionAdToughonDefense.mpg',
|
||||||
@ -105,7 +102,6 @@ class ArchiveOrgIE(InfoExtractor):
|
|||||||
'duration': 59.51,
|
'duration': 59.51,
|
||||||
'license': 'http://creativecommons.org/licenses/publicdomain/',
|
'license': 'http://creativecommons.org/licenses/publicdomain/',
|
||||||
'thumbnail': r're:https://archive\.org/download/.*\.jpg',
|
'thumbnail': r're:https://archive\.org/download/.*\.jpg',
|
||||||
'track': 'Commercial-Nixon1960ElectionAdToughonDefense',
|
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://archive.org/details/gd1977-05-08.shure57.stevenson.29303.flac16',
|
'url': 'https://archive.org/details/gd1977-05-08.shure57.stevenson.29303.flac16',
|
||||||
@ -186,7 +182,6 @@ class ArchiveOrgIE(InfoExtractor):
|
|||||||
'duration': 130.46,
|
'duration': 130.46,
|
||||||
'thumbnail': 'https://archive.org/download/irelandthemakingofarepublic/irelandthemakingofarepublic.thumbs/irelandthemakingofarepublicreel1_01_000117.jpg',
|
'thumbnail': 'https://archive.org/download/irelandthemakingofarepublic/irelandthemakingofarepublic.thumbs/irelandthemakingofarepublicreel1_01_000117.jpg',
|
||||||
'display_id': 'irelandthemakingofarepublicreel1_01.mov',
|
'display_id': 'irelandthemakingofarepublicreel1_01.mov',
|
||||||
'track': 'irelandthemakingofarepublicreel1 01',
|
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
'md5': '67335ee3b23a0da930841981c1e79b02',
|
'md5': '67335ee3b23a0da930841981c1e79b02',
|
||||||
@ -197,7 +192,6 @@ class ArchiveOrgIE(InfoExtractor):
|
|||||||
'title': 'irelandthemakingofarepublicreel1_02.mov',
|
'title': 'irelandthemakingofarepublicreel1_02.mov',
|
||||||
'display_id': 'irelandthemakingofarepublicreel1_02.mov',
|
'display_id': 'irelandthemakingofarepublicreel1_02.mov',
|
||||||
'thumbnail': 'https://archive.org/download/irelandthemakingofarepublic/irelandthemakingofarepublic.thumbs/irelandthemakingofarepublicreel1_02_001374.jpg',
|
'thumbnail': 'https://archive.org/download/irelandthemakingofarepublic/irelandthemakingofarepublic.thumbs/irelandthemakingofarepublicreel1_02_001374.jpg',
|
||||||
'track': 'irelandthemakingofarepublicreel1 02',
|
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
'md5': 'e470e86787893603f4a341a16c281eb5',
|
'md5': 'e470e86787893603f4a341a16c281eb5',
|
||||||
@ -208,7 +202,6 @@ class ArchiveOrgIE(InfoExtractor):
|
|||||||
'title': 'irelandthemakingofarepublicreel2.mov',
|
'title': 'irelandthemakingofarepublicreel2.mov',
|
||||||
'thumbnail': 'https://archive.org/download/irelandthemakingofarepublic/irelandthemakingofarepublic.thumbs/irelandthemakingofarepublicreel2_001554.jpg',
|
'thumbnail': 'https://archive.org/download/irelandthemakingofarepublic/irelandthemakingofarepublic.thumbs/irelandthemakingofarepublicreel2_001554.jpg',
|
||||||
'display_id': 'irelandthemakingofarepublicreel2.mov',
|
'display_id': 'irelandthemakingofarepublicreel2.mov',
|
||||||
'track': 'irelandthemakingofarepublicreel2',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -236,8 +229,15 @@ class ArchiveOrgIE(InfoExtractor):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _playlist_data(webpage):
|
def _playlist_data(webpage):
|
||||||
element = get_element_text_and_html_by_tag('play-av', webpage)[1]
|
element = re.findall(r'''(?xs)
|
||||||
return json.loads(extract_attributes(element)['playlist'])
|
<input
|
||||||
|
(?:\s+[a-zA-Z0-9:._-]+(?:=[a-zA-Z0-9:._-]*|="[^"]*"|='[^']*'|))*?
|
||||||
|
\s+class=['"]?js-play8-playlist['"]?
|
||||||
|
(?:\s+[a-zA-Z0-9:._-]+(?:=[a-zA-Z0-9:._-]*|="[^"]*"|='[^']*'|))*?
|
||||||
|
\s*/>
|
||||||
|
''', webpage)[0]
|
||||||
|
|
||||||
|
return json.loads(extract_attributes(element)['value'])
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = urllib.parse.unquote_plus(self._match_id(url))
|
video_id = urllib.parse.unquote_plus(self._match_id(url))
|
||||||
|
|||||||
@ -1,43 +0,0 @@
|
|||||||
from .common import InfoExtractor
|
|
||||||
from ..utils import (
|
|
||||||
clean_html,
|
|
||||||
extract_attributes,
|
|
||||||
url_or_none,
|
|
||||||
)
|
|
||||||
from ..utils.traversal import (
|
|
||||||
find_element,
|
|
||||||
require,
|
|
||||||
traverse_obj,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class TheHighWireIE(InfoExtractor):
|
|
||||||
_VALID_URL = r'https?://(?:www\.)?thehighwire\.com/ark-videos/(?P<id>[^/?#]+)'
|
|
||||||
_TESTS = [{
|
|
||||||
'url': 'https://thehighwire.com/ark-videos/the-deposition-of-stanley-plotkin/',
|
|
||||||
'info_dict': {
|
|
||||||
'id': 'the-deposition-of-stanley-plotkin',
|
|
||||||
'ext': 'mp4',
|
|
||||||
'title': 'THE DEPOSITION OF STANLEY PLOTKIN',
|
|
||||||
'description': 'md5:6d0be4f1181daaa10430fd8b945a5e54',
|
|
||||||
'thumbnail': r're:https?://static\.arkengine\.com/video/.+\.jpg',
|
|
||||||
},
|
|
||||||
}]
|
|
||||||
|
|
||||||
def _real_extract(self, url):
|
|
||||||
display_id = self._match_id(url)
|
|
||||||
webpage = self._download_webpage(url, display_id)
|
|
||||||
|
|
||||||
embed_url = traverse_obj(webpage, (
|
|
||||||
{find_element(cls='ark-video-embed', html=True)},
|
|
||||||
{extract_attributes}, 'src', {url_or_none}, {require('embed URL')}))
|
|
||||||
embed_page = self._download_webpage(embed_url, display_id)
|
|
||||||
|
|
||||||
return {
|
|
||||||
'id': display_id,
|
|
||||||
**traverse_obj(webpage, {
|
|
||||||
'title': ({find_element(cls='section-header')}, {clean_html}),
|
|
||||||
'description': ({find_element(cls='episode-description__copy')}, {clean_html}),
|
|
||||||
}),
|
|
||||||
**self._parse_html5_media_entries(embed_url, embed_page, display_id, m3u8_id='hls')[0],
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user