From 775c8a3591263f4de687e4efb0b1f643cfaad5e0 Mon Sep 17 00:00:00 2001
From: Andreas <andreasv@fsmpi.rwth-aachen.de>
Date: Thu, 8 Jun 2017 10:20:09 +0200
Subject: [PATCH] removed test for thumbnails if a thumbnail does already exist

---
 sorter.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sorter.py b/sorter.py
index 1e0f80b..720c6d3 100644
--- a/sorter.py
+++ b/sorter.py
@@ -36,9 +36,6 @@ def insert_video(lectureid,dbfilepath,filepath,fileformatid):
 	schedule_thumbnail(lectureid)
 
 def schedule_thumbnail(lectureid):
-	exists = query('SELECT * FROM jobs WHERE data LIKE ?','%"lectureid": "'+str(lectureid)+'"%' )
-	if exists:
-		return
 	path = query('SELECT path FROM videos WHERE lecture_id')
 	videos = query('''
 			SELECT videos.path
-- 
GitLab