diff options
author | i6t <62123048+i6t@users.noreply.github.com> | 2022-02-22 23:24:36 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 06:24:36 -0800 |
commit | 971c4847d7834421e6752dc9999f59296a1f62e6 (patch) | |
tree | 16736096725af58737a655de66d098d9361bfacc | |
parent | 7a34b5d628ad3b92a14ee7f51daa1cab9e326615 (diff) | |
download | hypervideo-pre-971c4847d7834421e6752dc9999f59296a1f62e6.tar.lz hypervideo-pre-971c4847d7834421e6752dc9999f59296a1f62e6.tar.xz hypervideo-pre-971c4847d7834421e6752dc9999f59296a1f62e6.zip |
[Gettr] Fix formats order (#2832)
Closes #2557
Authored by: i6t
-rw-r--r-- | yt_dlp/extractor/gettr.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/gettr.py b/yt_dlp/extractor/gettr.py index 179bd7c47..9842edd81 100644 --- a/yt_dlp/extractor/gettr.py +++ b/yt_dlp/extractor/gettr.py @@ -39,6 +39,7 @@ class GettrIE(GettrBaseIE): 'thumbnail': r're:^https?://.+/out\.jpg', 'timestamp': 1632782451058, 'duration': 58.5585, + 'tags': ['hornofafrica', 'explorations'], } }, { 'url': 'https://gettr.com/post/p4iahp', @@ -52,6 +53,7 @@ class GettrIE(GettrBaseIE): 'thumbnail': r're:^https?://.+/out\.jpg', 'timestamp': 1626594455017, 'duration': 23, + 'tags': 'count:12', } }] @@ -84,7 +86,7 @@ class GettrIE(GettrBaseIE): formats = self._extract_m3u8_formats( 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: formats.append({ @@ -93,8 +95,6 @@ class GettrIE(GettrBaseIE): 'ext': 'mp4', 'width': int_or_none(post_data.get('vid_wid')), 'height': int_or_none(post_data.get('vid_hgt')), - 'source_preference': 1, - 'quality': 1, }) self._sort_formats(formats) |