timecodes can have milliseconds

This commit is contained in:
j 2012-02-14 15:26:28 +05:30
parent ab33af301e
commit 4f609f6090

View file

@ -54,8 +54,7 @@ def padma_video(request, url):
url = '/%s' % alias.new url = '/%s' % alias.new
timecodes = re.compile('(\d{2}:\d{2}:\d{2}\.\d{3})-(\d{2}:\d{2}:\d{2}\.\d{3})').findall(view) timecodes = re.compile('(\d{2}:\d{2}:\d{2}\.\d{3})-(\d{2}:\d{2}:\d{2}\.\d{3})').findall(view)
if timecodes: if timecodes:
timecodes = [t[:-4] for t in timecodes[0]] view = ','.join(timecodes[0])
view = ','.join(timecodes)
if view: if view:
url += '/' + { url += '/' + {
'editor': 'timeline', 'editor': 'timeline',