Possible fix for album art permissions not being updated

This commit is contained in:
rembo10
2014-03-28 18:26:19 -07:00
parent e293302bfe
commit dbe644aee2
+6 -6
View File
@@ -500,11 +500,11 @@ def addAlbumArt(artwork, albumpath, release):
if album_art_name.startswith('.'):
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.write(artwork)
file.close()
os.umask(prev)
#os.umask(prev)
def cleanupFiles(albumpath):
logger.info('Cleaning up files')
@@ -799,10 +799,10 @@ def embedLyrics(downloaded_track_list):
logger.debug('Adding lyrics to: %s' % downloaded_track.decode(headphones.SYS_ENCODING, 'replace'))
f.lyrics = metalyrics
try:
f.save()
except:
logger.error('Cannot save lyrics to: %s. Skipping' % downloaded_track.decode(headphones.SYS_ENCODING, 'replace'))
continue
f.save()
except:
logger.error('Cannot save lyrics to: %s. Skipping' % downloaded_track.decode(headphones.SYS_ENCODING, 'replace'))
continue
def renameFiles(albumpath, downloaded_track_list, release):
logger.info('Renaming files')