diff options
author | pukkandan <pukkandan@gmail.com> | 2021-02-18 23:52:28 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-02-18 23:52:28 +0530 |
commit | 54f37eeabda3b38098231e8bd7feccfce27380c0 (patch) | |
tree | e35aa48d6757a8ab406ae9c8f1b86354363d0903 /youtube_dlc/extractor/linkedin.py | |
parent | 9ba5705ac04d8bd8bb520b4f1a9466e142b41417 (diff) | |
download | hypervideo-pre-54f37eeabda3b38098231e8bd7feccfce27380c0.tar.lz hypervideo-pre-54f37eeabda3b38098231e8bd7feccfce27380c0.tar.xz hypervideo-pre-54f37eeabda3b38098231e8bd7feccfce27380c0.zip |
[formatsort] Remove unnecessary `field_preference` from extractors
These were written with the old format sorting in mind and is no longer needed
Diffstat (limited to 'youtube_dlc/extractor/linkedin.py')
-rw-r--r-- | youtube_dlc/extractor/linkedin.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dlc/extractor/linkedin.py b/youtube_dlc/extractor/linkedin.py index 26fc703d1..e1dca4899 100644 --- a/youtube_dlc/extractor/linkedin.py +++ b/youtube_dlc/extractor/linkedin.py @@ -124,7 +124,10 @@ class LinkedInLearningIE(LinkedInLearningBaseIE): streaming_url, video_slug, 'mp4', 'm3u8_native', m3u8_id='hls', fatal=False)) - self._sort_formats(formats, ('width', 'height', 'source_preference', 'tbr', 'abr')) + # It seems like this would be correctly handled by default + # However, unless someone can confirm this, the old + # behaviour is being kept as-is + self._sort_formats(formats, ('res', 'source_preference')) return { 'id': self._get_video_id(video_data, course_slug, video_slug), |