mirror of
https://github.com/beetbox/beets.git
synced 2026-02-16 12:24:53 +01:00
fix building of lyrics file paths
This commit is contained in:
parent
edbbadaf4f
commit
4600727e17
1 changed files with 1 additions and 2 deletions
|
|
@ -163,8 +163,7 @@ class MockFetchUrl(object):
|
|||
url = url.replace('http://', '').replace('www.', '')
|
||||
fn = "".join(x for x in url if (x.isalnum() or x == '/'))
|
||||
fn = fn.split('/')
|
||||
fn = os.path.join('rsrc', 'lyrics', fn[0], fn[-1]) + '.txt'
|
||||
|
||||
fn = os.path.join(_common.RSRC, 'lyrics', fn[0], fn[-1]) + '.txt'
|
||||
with open(fn, 'r') as f:
|
||||
content = f.read()
|
||||
return content
|
||||
|
|
|
|||
Loading…
Reference in a new issue