[zdf] Use centralized sorting

This commit is contained in:
Philipp Hagemeister 2013-12-24 23:32:04 +01:00
parent e6812ac99d
commit c7deaa4c74
3 changed files with 18 additions and 22 deletions

View file

@ -1014,6 +1014,8 @@ class YoutubeDL(object):
def list_formats(self, info_dict):
def format_note(fdict):
res = u''
if f.get('ext') in ['f4f', 'f4m']:
res += u'(unsupported) '
if fdict.get('format_note') is not None:
res += fdict['format_note'] + u' '
if (fdict.get('vcodec') is not None and