Skip to content

Commit

Permalink
config.vocadb_tag.py: large update
Browse files Browse the repository at this point in the history
  • Loading branch information
szc126 committed Sep 20, 2021
1 parent 491b03f commit 5eeaa8e
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions config.vocadb_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,39 @@

language = 'Default' # Default, Japanese, Romaji, English

tags_output_file = '.vocadb_tag.log'
tags_output_file_tag_delimiter = ' #~~# '
tags_output_file = '/tmp/vocadb_tag.log'
tags_output_file_tag_delimiter = ''
bom = False # mp3tag
formatstring_output_file = '.vocadb_tag.formatstring.log'
formatstring_output_file = '/tmp/vocadb_tag.formatstring.log'

metadata_tags = {
'__filename_ext': '$x_filename_ext', # mp3tag
'x_title': lambda x: x['title'] + (' (feat. ' + ' ,'.join(x['vocalists_support']) + ')' if x['vocalists_support'] else ''),
'x_artist': '$vocalists',
'x_composer': '$composers',
'title': lambda x: x['title'] + (' (feat. ' + ', '.join(x['vocalists_support']) + ')' if x['vocalists_support'] else ''),
'artist': '$vocalists',
'composer': lambda x: '' + ';'.join(
[s for s in [
('カバー' if x['song_type'] == 'Cover' and not 'Utaite' in x['x_vocalist_types'] else None),
('歌ってみた' if x['song_type'] == 'Cover' and 'Utaite' in x['x_vocalist_types'] else None),
] if s] +
x['composers']
),
'date': '$year',
'genre': '$x_vocalist_types',
'genre': lambda x: ';'.join(
[s for s in [
('S:Re' if x['x_is_reprint'] else None),
'V' + ('アレンジ' if x['song_type'] == 'Remix' else ''),
] if s] +
list(x['x_vocalist_types'].keys())
)
.replace('Producer', 'ヒト')
.replace('Utaite', 'ヒト')
.replace('OtherVocalist', 'ヒト')
.replace('Vocaloid', 'VOCALOID')
,
'url': '$url',
'x_comment': '$x_is_reprint | $x_detection_method | $song_type song | $x_db_id@$x_db_name',
'comment': '$song_type song | $x_db_id@$x_db_name',
}
metadata_multi_value_delimiter = '#' # as in "初音ミク; GUMI"
metadata_multi_value_delimiter = ';' # as in "初音ミク; GUMI"
metadata_empty_placeholder = '-' # foobar2000

ffprobe = True # True, False, r"D:\bin\ffmpeg\ffprobe.exe"

0 comments on commit 5eeaa8e

Please sign in to comment.