aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-12-10 11:52:10 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-12-10 11:52:10 +0100
commit5a3ea17c9470c93be27f4b177f2e4114bb06d0e3 (patch)
treee885c100e03d0dfb86c19609164e863d0d72ffa0 /youtube_dl/extractor
parent475700acfe3ee1604b884450c6a35c709b6410d5 (diff)
[zdf] Correct order of unknown formats (#1936)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/zdf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/zdf.py b/youtube_dl/extractor/zdf.py
index 689f19735..35ece354a 100644
--- a/youtube_dl/extractor/zdf.py
+++ b/youtube_dl/extractor/zdf.py
@@ -73,14 +73,14 @@ class ZDFIE(InfoExtractor):
try:
proto_pref = -PROTO_ORDER.index(format_m.group('proto'))
except ValueError:
- proto_pref = 999
+ proto_pref = -999
quality = fnode.find('./quality').text
QUALITY_ORDER = ['veryhigh', '300', 'high', 'med', 'low']
try:
quality_pref = -QUALITY_ORDER.index(quality)
except ValueError:
- quality_pref = 999
+ quality_pref = -999
abr = int(fnode.find('./audioBitrate').text) // 1000
vbr = int(fnode.find('./videoBitrate').text) // 1000