varietywalls / variety

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

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

Open YoungerDryas89 opened 8 months ago

YoungerDryas89 commented 8 months 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.