cleanup pylint errors and py2/3 issues

This commit is contained in:
j 2016-06-08 15:32:46 +02:00
commit 77f8876fca
20 changed files with 232 additions and 197 deletions

View file

@ -27,15 +27,15 @@ def video_url(youtubeId, format='mp4', timeout=cache_timeout):
"""
fmt = None
if format == '4k':
fmt=38
fmt = 38
elif format == '1080p':
fmt=37
fmt = 37
elif format == '720p':
fmt=22
fmt = 22
elif format == 'mp4':
fmt=18
fmt = 18
elif format == 'high':
fmt=35
fmt = 35
elif format == 'webm':
streams = videos(youtubeId, 'webm')
return streams[max(streams.keys())]['url']