From 60736850af0bdea4067ac57002b67ebbe0e5e760 Mon Sep 17 00:00:00 2001 From: Andreas <andreasv@fsmpi.rwth-aachen.de> Date: Fri, 14 Oct 2016 12:59:25 +0200 Subject: [PATCH] fixed format always beeing none in sorter --- sorter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sorter.py b/sorter.py index b41213e..f7473b1 100644 --- a/sorter.py +++ b/sorter.py @@ -139,7 +139,7 @@ def sort_now(): if not 'format' in data: data['format'] = 0 # insert the video into videos_data and log - insert_video( matches[0]['id'], dbfilepath, filepath, fileformatid) + insert_video( matches[0]['id'], dbfilepath, filepath, data['format']) else: # if we couldn't match the video on exactly one lecture, log an error matches_id = [] -- GitLab