This commit is contained in:
Gunther Schmidl 2020-07-25 20:14:43 +02:00
parent a2f66a0427
commit 6febcf1190
2 changed files with 4 additions and 0 deletions

View file

@ -44,6 +44,7 @@ replace:
'^\s+': ''
'^-': _
path_sep_replace: _
drive_sep_replace: _
asciify_paths: false
art_filename: cover
max_filename_length: 0

View file

@ -19,6 +19,7 @@ from __future__ import division, absolute_import, print_function
import time
import os
import re
from collections import defaultdict
import threading
import sqlite3
@ -83,6 +84,8 @@ class FormattedMapping(Mapping):
value = value.decode('utf-8', 'ignore')
if self.for_path:
if re.match(r'^\w:', value):
value = value.replace(':', beets.config['drive_sep_replace'].as_str())
sep_repl = beets.config['path_sep_replace'].as_str()
for sep in (os.path.sep, os.path.altsep):
if sep: