mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-06 13:34:05 +00:00
Merge pull request #380 from phw/PICARD-661
PICARD-661: evaluate tagger script for album art filename
This commit is contained in:
@@ -30,6 +30,7 @@ from hashlib import md5
|
||||
from PyQt4.QtCore import QUrl, QObject, QMutex
|
||||
from picard import config, log
|
||||
from picard.coverart.utils import translate_caa_type
|
||||
from picard.script import ScriptParser
|
||||
from picard.util import (
|
||||
encode_filename,
|
||||
replace_win32_incompat,
|
||||
@@ -231,6 +232,7 @@ class CoverArtImage:
|
||||
return self.types[0]
|
||||
|
||||
def _make_image_filename(self, filename, dirname, metadata):
|
||||
filename = ScriptParser().eval(filename, metadata)
|
||||
if config.setting["ascii_filenames"]:
|
||||
if isinstance(filename, unicode):
|
||||
filename = unaccent(filename)
|
||||
|
||||
Reference in New Issue
Block a user