mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 11:11:23 +01:00
Compare commits
No commits in common. "4b9d7217100452a92e8463d8c5f81ad7df88e74c" and "84b90ec378a266f7375eaca8b00bc3aee1407fd3" have entirely different histories.
4b9d721710
...
84b90ec378
|
@ -109,7 +109,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
|
|||
_VALID_URL = [
|
||||
rf'''{_VALID_URL_PREFIX}
|
||||
(?:
|
||||
(?:crawler/)?video/|
|
||||
video/|
|
||||
swf(?:/(?!video)|/video/)
|
||||
)(?P<id>[^/?_&#]+)(?:.+?\bplaylist=(?P<playlist_id>x[0-9a-z]+))?
|
||||
''',
|
||||
|
@ -261,24 +261,6 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
|
|||
'id': 'x7wdsj',
|
||||
},
|
||||
'playlist_mincount': 50,
|
||||
}, {
|
||||
'url': 'https://www.leparisien.fr/environnement/video-le-veloto-la-voiture-a-pedales-qui-aimerait-se-faire-une-place-sur-les-routes-09-03-2024-KCYMCPM4WFHJXMSKBUI66UNFPU.php',
|
||||
'info_dict': {
|
||||
'id': 'x8u4owg',
|
||||
'ext': 'mp4',
|
||||
'like_count': int,
|
||||
'uploader': 'Le Parisien',
|
||||
'thumbnail': 'https://www.leparisien.fr/resizer/ho_GwveeYftNkLwg_cEta--5Bv4=/1200x675/cloudfront-eu-central-1.images.arcpublishing.com/leparisien/BFXJNEBN75EUNHGYJLORUC3TX4.jpg',
|
||||
'upload_date': '20240309',
|
||||
'view_count': int,
|
||||
'timestamp': 1709997866,
|
||||
'age_limit': 0,
|
||||
'uploader_id': 'x32f7b',
|
||||
'title': 'VIDÉO. Le « véloto », la voiture à pédales qui aimerait se faire une place sur les routes',
|
||||
'duration': 428.0,
|
||||
'description': 'À bord du « véloto », l’alternative à la voiture pour la campagne',
|
||||
'tags': ['biclou', 'vélo', 'véloto', 'campagne', 'voiture', 'environnement', 'véhicules intermédiaires'],
|
||||
},
|
||||
}]
|
||||
_GEO_BYPASS = False
|
||||
_COMMON_MEDIA_FIELDS = '''description
|
||||
|
@ -372,7 +354,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
|
|||
fmt, subs = self._extract_m3u8_formats_and_subtitles(
|
||||
media_url, video_id, 'mp4', live=is_live, m3u8_id='hls', fatal=False)
|
||||
formats.extend(fmt)
|
||||
self._merge_subtitles(subs, target=subtitles)
|
||||
subtitles.update(subs)
|
||||
else:
|
||||
f = {
|
||||
'url': media_url,
|
||||
|
@ -528,7 +510,7 @@ class DailymotionSearchIE(DailymotionPlaylistBaseIE):
|
|||
|
||||
class DailymotionUserIE(DailymotionPlaylistBaseIE):
|
||||
IE_NAME = 'dailymotion:user'
|
||||
_VALID_URL = r'https?://(?:www\.)?dailymotion\.[a-z]{2,3}/(?!(?:embed|swf|#|video|playlist|search|crawler)/)(?:(?:old/)?user/)?(?P<id>[^/?#]+)'
|
||||
_VALID_URL = r'https?://(?:www\.)?dailymotion\.[a-z]{2,3}/(?!(?:embed|swf|#|video|playlist|search)/)(?:(?:old/)?user/)?(?P<id>[^/?#]+)'
|
||||
_TESTS = [{
|
||||
'url': 'https://www.dailymotion.com/user/nqtv',
|
||||
'info_dict': {
|
||||
|
|
Loading…
Reference in New Issue
Block a user