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:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user