[arte] "quality" key test

When the "quality" key does not exist, it crashes the application.
So the existence of "quality" key must be tested before requesting it.
You can test with this command, with the current version youtube-dl crashes
youtube-dl -F http://www.arte.tv/guide/fr/052414-003/repas-de-fete
This commit is contained in:
WassimAttar 2014-12-27 21:35:58 +01:00
parent 23cfa4ae45
commit a337fce21c

View File

@ -106,6 +106,7 @@ class ArteTVPlus7IE(InfoExtractor):
formats = []
for format_id, format_dict in player_info['VSR'].items():
f = dict(format_dict)
if 'quality' in f :
versionCode = f.get('versionCode')
langcode = {