mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-20 06:34:05 +00:00
%musicbrainz_albumid% not working in file renaming. (#2543)
This commit is contained in:
1
NEWS.txt
1
NEWS.txt
@@ -2,6 +2,7 @@ Version 0.9.0alpha6 - 2007-03-XX
|
||||
* Bug Fixes:
|
||||
* Artist names from ARs should be translated, too.
|
||||
* Freeze after answering no to "download the new version" prompt. (#2542)
|
||||
* %musicbrainz_albumid% not working in file renaming. (#2543)
|
||||
* Internals:
|
||||
* The browser integration HTTP server rewritten using QTcpServer.
|
||||
|
||||
|
||||
@@ -41,7 +41,9 @@ class ScriptVariable(object):
|
||||
return '<ScriptVariable %%%s%%>' % self.name
|
||||
|
||||
def eval(self, state):
|
||||
name = self.name.replace("_", "~")
|
||||
name = self.name
|
||||
if name.startswith(u"_"):
|
||||
name = u"~" + name[1:]
|
||||
return state.context.get(name, u"")
|
||||
|
||||
|
||||
|
||||
@@ -144,6 +144,10 @@ class NamingOptionsPage(OptionsPage):
|
||||
file.metadata['releasetype'] = 'Album'
|
||||
file.metadata['releasestatus'] = 'Official'
|
||||
file.metadata['~extension'] = 'mp3'
|
||||
file.metadata['musicbrainz_albumid'] = '2c053984-4645-4699-9474-d2c35c227028'
|
||||
file.metadata['musicbrainz_albumartistid'] = 'b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d'
|
||||
file.metadata['musicbrainz_artistid'] = 'b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d'
|
||||
file.metadata['musicbrainz_trackid'] = '898a2916-f64d-48d3-ab1a-3446fb450448'
|
||||
filename = file.make_filename(settings=settings)
|
||||
self.ui.example_filename.setText(filename)
|
||||
|
||||
@@ -161,6 +165,10 @@ class NamingOptionsPage(OptionsPage):
|
||||
file.metadata['releasestatus'] = 'Official'
|
||||
file.metadata['compilation'] = '1'
|
||||
file.metadata['~extension'] = 'mp3'
|
||||
file.metadata['musicbrainz_albumid'] = 'bcc97e8a-2055-400b-a6ed-83288285c6fc'
|
||||
file.metadata['musicbrainz_albumartistid'] = '89ad4ac3-39f7-470e-963a-56509c546377'
|
||||
file.metadata['musicbrainz_artistid'] = '06704773-aafe-4aca-8833-b449e0a6467f'
|
||||
file.metadata['musicbrainz_trackid'] = 'd92837ee-b1e4-4649-935f-e433c3e5e429'
|
||||
filename = file.make_filename(settings=settings)
|
||||
self.ui.example_va_filename.setText(filename)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user