list/map py3

This commit is contained in:
j 2017-06-06 14:50:51 +02:00
parent 43f1d07dbe
commit c6638cef13

View file

@ -1006,7 +1006,7 @@ def video(request, id, resolution, format, index=None, track=None):
if ':' in s: if ':' in s:
s = ox.time2ms(s) / 1000 s = ox.time2ms(s) / 1000
return float(s) return float(s)
t = map(parse_timestamp, t.split(',')) t = list(map(parse_timestamp, t.split(',')))
ext = '.%s' % format ext = '.%s' % format
content_type = mimetypes.guess_type(path)[0] content_type = mimetypes.guess_type(path)[0]
if len(t) == 2 and t[1] > t[0] and stream.info['duration'] >= t[1]: if len(t) == 2 and t[1] > t[0] and stream.info['duration'] >= t[1]: