varietywalls / variety

Wallpaper downloader and manager for Linux systems
http://peterlevi.com/variety
GNU General Public License v3.0
1.21k stars 146 forks source link

Variety can't find metadata files because they get mislabled on downloaded #650

Open YoungerDryas89 opened 1 year ago

YoungerDryas89 commented 1 year ago

I noticed Variety would name image metadata files with the image's partial filename causing Variety to fail to find them later. So I thought the best solution is to rename the image to it's proper one before writing a metadata. I also had some code accommodating for this bug by checking if a 'partial.metadata.json' equivalent file exists in Util.read_metadata, but I didn't commit it because I was unsure if you'd prefer people just manually rename their metadata files.