Private GIT

Skip to content
Snippets Groups Projects
Commit 41a7fe1b authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Whoops.

parent d0592cf2
Branches
Tags
No related merge requests found
...@@ -437,7 +437,7 @@ class AddSizeAndSceneNameFields(FixAirByDateSetting): ...@@ -437,7 +437,7 @@ class AddSizeAndSceneNameFields(FixAirByDateSetting):
continue continue
# if there is no size yet then populate it for us # 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"]) 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"])]) self.connection.action("UPDATE tv_episodes SET file_size = ? WHERE episode_id = ?", [cur_size, int(cur_ep["episode_id"])])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment