1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-22 15:57:23 +00:00

Merge pull request #2061 from rzhxeo/var

Correct variable name in YoutubeDL.list_formats
This commit is contained in:
Jaime Marquínez Ferrándiz 2014-01-01 03:33:34 -08:00
commit 241bce7aaf

View file

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