Skip to content
Snippets Groups Projects
Commit 7549403c authored by Julian Rother's avatar Julian Rother
Browse files

Sort chapters before muxing them into video files

parent 9a7baf27
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ from server import * ...@@ -2,7 +2,7 @@ from server import *
import os.path import os.path
def set_metadata(dest, course, lecture): def set_metadata(dest, course, lecture):
chapters = query('SELECT text, time FROM chapters WHERE lecture_id = ? AND visible', lecture['id']) chapters = query('SELECT text, time FROM chapters WHERE lecture_id = ? AND visible ORDER BY time', lecture['id'])
metadata = {'title': lecture['title'], 'album': course['title'], metadata = {'title': lecture['title'], 'album': course['title'],
'description': lecture['comment'], 'description': lecture['comment'],
'date': lecture['time'].strftime('%m/%d/%Y'), 'date': lecture['time'].strftime('%m/%d/%Y'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment