aboutsummaryrefslogtreecommitdiff
path: root/youtube_dlc/extractor/leeco.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-02-18 23:52:28 +0530
committerpukkandan <pukkandan@gmail.com>2021-02-18 23:52:28 +0530
commit54f37eeabda3b38098231e8bd7feccfce27380c0 (patch)
treee35aa48d6757a8ab406ae9c8f1b86354363d0903 /youtube_dlc/extractor/leeco.py
parent9ba5705ac04d8bd8bb520b4f1a9466e142b41417 (diff)
[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/leeco.py')
-rw-r--r--youtube_dlc/extractor/leeco.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dlc/extractor/leeco.py b/youtube_dlc/extractor/leeco.py
index 7dc0ad794..d5e11423c 100644
--- a/youtube_dlc/extractor/leeco.py
+++ b/youtube_dlc/extractor/leeco.py
@@ -185,7 +185,7 @@ class LeIE(InfoExtractor):
f['height'] = int_or_none(format_id[:-1])
formats.append(f)
- self._sort_formats(formats, ('height', 'quality', 'format_id'))
+ self._sort_formats(formats, ('res', 'quality'))
publish_time = parse_iso8601(self._html_search_regex(
r'发布时间&nbsp;([^<>]+) ', page, 'publish time', default=None),