mirror of
https://github.com/rembo10/headphones.git
synced 2026-04-19 03:19:26 +01:00
Fixed the if/else block when writing info files - before it was writing the info file even if it existed and was current
This commit is contained in:
@@ -309,7 +309,7 @@ class Cache(object):
|
||||
|
||||
# If there is no info, we should either write an empty file, or make an older file current
|
||||
# just so it doesn't check it every time
|
||||
else:
|
||||
elif not info and not (self.info_files and self._is_current(self.info_files[0])):
|
||||
|
||||
new_info_file_path = os.path.join(self.path_to_info_cache, self.id + '.' + helpers.today() + '.txt')
|
||||
|
||||
@@ -335,7 +335,7 @@ class Cache(object):
|
||||
f = open(new_info_file_path, 'w')
|
||||
f.close()
|
||||
|
||||
# Should we grab the artwork here if we're just grabbing thumbs or info??
|
||||
# Should we grab the artwork here if we're just grabbing thumbs or info?? Probably not since the files can be quite big
|
||||
if image_url and self.query_type == 'artwork':
|
||||
|
||||
myDB = db.DBConnection()
|
||||
|
||||
Reference in New Issue
Block a user