mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-20 16:03:59 +01:00
Possible fix for album art permissions not being updated
This commit is contained in:
@@ -500,11 +500,11 @@ def addAlbumArt(artwork, albumpath, release):
|
|||||||
if album_art_name.startswith('.'):
|
if album_art_name.startswith('.'):
|
||||||
album_art_name = album_art_name.replace(0, '_')
|
album_art_name = album_art_name.replace(0, '_')
|
||||||
|
|
||||||
prev = os.umask(headphones.UMASK)
|
#prev = os.umask(headphones.UMASK)
|
||||||
file = open(os.path.join(albumpath, album_art_name), 'wb')
|
file = open(os.path.join(albumpath, album_art_name), 'wb')
|
||||||
file.write(artwork)
|
file.write(artwork)
|
||||||
file.close()
|
file.close()
|
||||||
os.umask(prev)
|
#os.umask(prev)
|
||||||
|
|
||||||
def cleanupFiles(albumpath):
|
def cleanupFiles(albumpath):
|
||||||
logger.info('Cleaning up files')
|
logger.info('Cleaning up files')
|
||||||
|
|||||||
Reference in New Issue
Block a user