From c21a1faee89b19d4efbf3332dc67cf196730434e Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Tue, 11 Aug 2015 18:49:55 +0300 Subject: [PATCH] downloads fix --- .idea/workspace.xml | 501 ++++++++++++++++++++++++++++++++++---------- functions.py | 1 + 2 files changed, 386 insertions(+), 116 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index dadc768..43beee1 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,7 @@ - + @@ -33,13 +33,144 @@ - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -90,14 +221,12 @@ - + - - - - - + + + @@ -106,11 +235,11 @@ - + - - + + @@ -118,21 +247,31 @@ - + - + + + + + + + + + + + - - + + @@ -206,14 +345,10 @@ @@ -494,36 +633,6 @@ \ No newline at end of file diff --git a/functions.py b/functions.py index b6c6c36..ba8474e 100644 --- a/functions.py +++ b/functions.py @@ -1546,6 +1546,7 @@ class DownloadDB: self.db.commit() self.cur.close() except: + self.cur.close() self.db.close() os.remove(self.filename) first = True