mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-27 07:38:30 +00:00
VideoPressIE
This commit is contained in:
parent
5939e57e04
commit
0f7f5da9b4
@ -1501,21 +1501,6 @@ class GenericIE(InfoExtractor):
|
|||||||
},
|
},
|
||||||
'playlist_mincount': 2,
|
'playlist_mincount': 2,
|
||||||
'skip': 'IE fix required; embed detection',
|
'skip': 'IE fix required; embed detection',
|
||||||
}, {
|
|
||||||
# ✅113
|
|
||||||
# VideoPressIE
|
|
||||||
'url': 'https://wordpress.com/support/videopress/',
|
|
||||||
'info_dict': {
|
|
||||||
'id': 'BZHMfMfN',
|
|
||||||
'ext': 'mp4',
|
|
||||||
'title': 'videopress example',
|
|
||||||
'age_limit': 0,
|
|
||||||
'description': '',
|
|
||||||
'duration': 19.796,
|
|
||||||
'thumbnail': r're:https?://videos\.files\.wordpress\.com/.+\.jpg',
|
|
||||||
'timestamp': 1748969554,
|
|
||||||
'upload_date': '20250603',
|
|
||||||
},
|
|
||||||
}, {
|
}, {
|
||||||
# ✅124
|
# ✅124
|
||||||
# YoutubeIE
|
# YoutubeIE
|
||||||
|
@ -23,8 +23,9 @@ class VideoPressIE(InfoExtractor):
|
|||||||
'id': 'kUJmAcSf',
|
'id': 'kUJmAcSf',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'VideoPress Demo',
|
'title': 'VideoPress Demo',
|
||||||
'thumbnail': r're:^https?://.*\.jpg',
|
'description': '',
|
||||||
'duration': 634.6,
|
'duration': 635.0,
|
||||||
|
'thumbnail': r're:https?://videos\.files\.wordpress\.com/.+\.jpg',
|
||||||
'timestamp': 1434983935,
|
'timestamp': 1434983935,
|
||||||
'upload_date': '20150622',
|
'upload_date': '20150622',
|
||||||
'age_limit': 0,
|
'age_limit': 0,
|
||||||
@ -37,6 +38,20 @@ class VideoPressIE(InfoExtractor):
|
|||||||
'url': 'https://video.wordpress.com/embed/kUJmAcSf',
|
'url': 'https://video.wordpress.com/embed/kUJmAcSf',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
_WEBPAGE_TESTS = [{
|
||||||
|
'url': 'https://wordpress.com/support/videopress/',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'BZHMfMfN',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'videopress example',
|
||||||
|
'age_limit': 0,
|
||||||
|
'description': '',
|
||||||
|
'duration': 19.796,
|
||||||
|
'thumbnail': r're:https?://videos\.files\.wordpress\.com/.+\.jpg',
|
||||||
|
'timestamp': 1748969554,
|
||||||
|
'upload_date': '20250603',
|
||||||
|
},
|
||||||
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user