Added support for replaygain option

This commit is contained in:
Sumner Evans
2020-03-18 10:53:24 -06:00
parent 19d616fa13
commit 45ab5c0852
7 changed files with 91 additions and 18 deletions

View File

@@ -348,6 +348,7 @@ class CacheManager(metaclass=Singleton):
logging.info('Migrating cache to version 1.')
cover_art_re = re.compile(r'(\d+)_(\d+)')
abs_path = self.calculate_abs_path('cover_art/')
abs_path.mkdir(parents=True, exist_ok=True)
for cover_art_file in Path(abs_path).iterdir():
match = cover_art_re.match(cover_art_file.name)
if match: