replace '// 1000' with '/ 1000' for timestamp conversions

regular division is slightly faster than floor division
and a float timestamp value is treated the same as an integer one
This commit is contained in:
Mike Fährmann
2026-01-04 16:51:31 +01:00
parent 2cfe2b3b04
commit 8e855bd810
6 changed files with 11 additions and 11 deletions

View File

@@ -62,7 +62,7 @@ class VscoExtractor(Extractor):
"grid" : img["grid_name"],
"meta" : img.get("image_meta") or {},
"tags" : [tag["text"] for tag in img.get("tags") or ()],
"date" : self.parse_timestamp(img["upload_date"] // 1000),
"date" : self.parse_timestamp(img["upload_date"] / 1000),
"video" : img["is_video"],
"width" : img["width"],
"height": img["height"],