mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 09:33:46 +01:00
Updated comments to attempt to be more self contained
This commit is contained in:
parent
4338ef3e35
commit
e5f2e6d37b
1 changed files with 4 additions and 5 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue