[orf] Use new extraction method (Fixes #2057)

This commit is contained in:
Philipp Hagemeister 2014-01-06 17:15:27 +01:00
parent c11a0611d9
commit 5d73273f6f
3 changed files with 86 additions and 36 deletions

View file

@ -73,6 +73,10 @@ class InfoExtractor(object):
by this field.
-1 for default (order by other properties),
-2 or smaller for less than default.
* quality Order number of the video quality of this
format, irrespective of the file format.
-1 for default (order by other properties),
-2 or smaller for less than default.
url: Final video URL.
ext: Video filename extension.
format: The video format, defaults to ext (used for --get-format)
@ -483,6 +487,7 @@ class InfoExtractor(object):
return (
preference,
f.get('quality') if f.get('quality') is not None else -1,
f.get('height') if f.get('height') is not None else -1,
f.get('width') if f.get('width') is not None else -1,
ext_preference,