From a3b764d3d524f95238bc37839e28ef9934bb85f3 Mon Sep 17 00:00:00 2001 From: Michel Wilson Date: Mon, 18 Feb 2013 15:18:41 +0100 Subject: [PATCH] Make albumart-files world readable --- headphones/postprocessor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index c3f8ac18..afb4f35b 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -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')