mirror of
https://github.com/beetbox/beets.git
synced 2026-01-15 04:34:23 +01:00
fix bs1770gain for windows and exceptionally big albums
This commit is contained in:
parent
7ac6ba53ff
commit
51cfde4e9d
1 changed files with 4 additions and 3 deletions
|
|
@ -208,9 +208,10 @@ class Bs1770gainBackend(Backend):
|
|||
"""
|
||||
out = []
|
||||
data = text.decode('utf8', errors='ignore')
|
||||
regex = re.compile(ur'(\s{2,2}\[\d+\/\d+\].*?|\[ALBUM\].*?)'
|
||||
'(?=\s{2,2}\[\d+\/\d+\]|\s{2,2}\[ALBUM\]:|done\.\s)'
|
||||
', re.DOTALL | re.UNICODE')
|
||||
regex = re.compile(
|
||||
ur'(\s{2,2}\[\d+\/\d+\].*?|\[ALBUM\].*?\
|
||||
)(?=\s{2,2}\[\d+\/\d+\]|\s{2,2}\[ALBUM\]:|done\.\s\
|
||||
)', re.DOTALL | re.UNICODE)
|
||||
results = re.findall(regex, data)
|
||||
for parts in results[0:num_lines]:
|
||||
part = parts.split(b'\n')
|
||||
|
|
|
|||
Loading…
Reference in a new issue