Make albumart-files world readable

This commit is contained in:
Michel Wilson
2013-02-18 15:18:41 +01:00
parent 263272c9c7
commit a3b764d3d5

View File

@@ -448,9 +448,11 @@ def addAlbumArt(artwork, albumpath, release):
if album_art_name.startswith('.'):
album_art_name = album_art_name.replace(0, '_')
prev = os.umask(0002)
file = open(os.path.join(albumpath, album_art_name), 'wb')
file.write(artwork)
file.close()
os.umask(prev)
def cleanupFiles(albumpath):
logger.info('Cleaning up files')