[arte.tv:+7] Make quality optional (Closes #4583)

This commit is contained in:
Sergey M․ 2014-12-28 15:41:52 +06:00
parent 23cfa4ae45
commit 1b7b1d6eac

View file

@ -133,7 +133,7 @@ def _extract_from_json_url(self, json_url, video_id, lang):
'width': int_or_none(f.get('width')),
'height': int_or_none(f.get('height')),
'tbr': int_or_none(f.get('bitrate')),
'quality': qfunc(f['quality']),
'quality': qfunc(f.get('quality')),
'source_preference': source_pref,
}