[zdf] Correct order of unknown formats (#1936)
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 10 Dec 2013 10:52:10 +0000 (11:52 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 10 Dec 2013 10:52:10 +0000 (11:52 +0100)
youtube_dl/extractor/zdf.py

index 689f19735456e2a05defe8f2eb49c5b2f4848580..35ece354a6ecdf7ba5705184d4ceff22d57eb3d4 100644 (file)
@@ -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