diff --git a/sickbeard/databases/mainDB.py b/sickbeard/databases/mainDB.py index 63e03dff9ba84d636ec08dad26da7c26bad6ec8d..12d25ba337b92a8bd5f9cd9721cdf1815e62700f 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"])])