From e5f2e6d37bb5fc888013f19f4900babc0b500607 Mon Sep 17 00:00:00 2001 From: Andrew Rogl Date: Sun, 26 Mar 2023 18:35:29 +1000 Subject: [PATCH] Updated comments to attempt to be more self contained --- beets/importer.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/beets/importer.py b/beets/importer.py index 5c65b57c1..c8542ba82 100644 --- a/beets/importer.py +++ b/beets/importer.py @@ -1095,11 +1095,10 @@ class ArchiveImportTask(SentinelImportTask): # https://stackoverflow.com/q/9813243 for f in archive.infolist(): - # still need to adjust the dt o/w item will have the current dt - # update date_time - # Can you give a clarification why you add (0, 0, -1) to the date_time? - # Is the current a second off? - # (0, 0, -1) is added because time.mktime expects a 9-element tuple. + # The date_time will need to adjusted otherwise + # the item will have the current date_time of extraction. + # The (0, 0, -1) is added to date_time because the + # function time.mktime expects a 9-element tuple. # The -1 indicates that the DST flag is unknown. date_time = time.mktime(f.date_time + (0, 0, -1))