mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-12 14:26:49 +01:00
parent
7a34b5d628
commit
971c4847d7
@ -39,6 +39,7 @@ class GettrIE(GettrBaseIE):
|
|||||||
'thumbnail': r're:^https?://.+/out\.jpg',
|
'thumbnail': r're:^https?://.+/out\.jpg',
|
||||||
'timestamp': 1632782451058,
|
'timestamp': 1632782451058,
|
||||||
'duration': 58.5585,
|
'duration': 58.5585,
|
||||||
|
'tags': ['hornofafrica', 'explorations'],
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://gettr.com/post/p4iahp',
|
'url': 'https://gettr.com/post/p4iahp',
|
||||||
@ -52,6 +53,7 @@ class GettrIE(GettrBaseIE):
|
|||||||
'thumbnail': r're:^https?://.+/out\.jpg',
|
'thumbnail': r're:^https?://.+/out\.jpg',
|
||||||
'timestamp': 1626594455017,
|
'timestamp': 1626594455017,
|
||||||
'duration': 23,
|
'duration': 23,
|
||||||
|
'tags': 'count:12',
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|
||||||
@ -84,7 +86,7 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
formats = self._extract_m3u8_formats(
|
formats = self._extract_m3u8_formats(
|
||||||
urljoin(self._MEDIA_BASE_URL, vid), post_id, 'mp4',
|
urljoin(self._MEDIA_BASE_URL, vid), post_id, 'mp4',
|
||||||
entry_protocol='m3u8_native', m3u8_id='hls') if vid else []
|
entry_protocol='m3u8_native', m3u8_id='hls', fatal=False) if vid else []
|
||||||
|
|
||||||
if ovid:
|
if ovid:
|
||||||
formats.append({
|
formats.append({
|
||||||
@ -93,8 +95,6 @@ def _real_extract(self, url):
|
|||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'width': int_or_none(post_data.get('vid_wid')),
|
'width': int_or_none(post_data.get('vid_wid')),
|
||||||
'height': int_or_none(post_data.get('vid_hgt')),
|
'height': int_or_none(post_data.get('vid_hgt')),
|
||||||
'source_preference': 1,
|
|
||||||
'quality': 1,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
Loading…
Reference in New Issue
Block a user