Change dict iteritems to items for HTML templates

This commit is contained in:
JonnyWong16 2019-12-12 08:58:34 -08:00
parent 411d88d798
commit 70f7fd2de9
3 changed files with 9 additions and 9 deletions

View file

@ -43,14 +43,14 @@ DOCUMENTATION :: END
# Get audio codec file
def af(codec):
for pattern, file_type in MEDIA_FLAGS_AUDIO.iteritems():
for pattern, file_type in MEDIA_FLAGS_AUDIO.items():
if re.match(pattern, codec):
return file_type
return codec
# Get audio codec file
def vf(codec):
for pattern, file_type in MEDIA_FLAGS_VIDEO.iteritems():
for pattern, file_type in MEDIA_FLAGS_VIDEO.items():
if re.match(pattern, codec):
return file_type
return codec