From 41a7fe1bc69bf80c66ead9b86c373c212f289496 Mon Sep 17 00:00:00 2001
From: Nic Wolfe <nic@wolfeden.ca>
Date: Thu, 6 Sep 2012 22:01:37 -0600
Subject: [PATCH] Whoops.

---
 sickbeard/databases/mainDB.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sickbeard/databases/mainDB.py b/sickbeard/databases/mainDB.py
index 63e03dff9..12d25ba33 100644
--- a/sickbeard/databases/mainDB.py
+++ b/sickbeard/databases/mainDB.py
@@ -437,7 +437,7 @@ class AddSizeAndSceneNameFields(FixAirByDateSetting):
                 continue
             
             # if there is no size yet then populate it for us
-            if (not cur_ep["file_size"] or not int(cur_ep["file_size"]) and ek.ek(os.path.isfile, cur_ep["location"]):
+            if (not cur_ep["file_size"] or not int(cur_ep["file_size"])) and ek.ek(os.path.isfile, cur_ep["location"]):
                 cur_size = ek.ek(os.path.getsize, cur_ep["location"])
                 self.connection.action("UPDATE tv_episodes SET file_size = ? WHERE episode_id = ?", [cur_size, int(cur_ep["episode_id"])])
 
-- 
GitLab