mirror of
https://github.com/beetbox/beets.git
synced 2026-02-26 09:11:32 +01:00
fix #3685
This commit is contained in:
parent
a2f66a0427
commit
6febcf1190
2 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ replace:
|
|||
'^\s+': ''
|
||||
'^-': _
|
||||
path_sep_replace: _
|
||||
drive_sep_replace: _
|
||||
asciify_paths: false
|
||||
art_filename: cover
|
||||
max_filename_length: 0
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue