bugfix
This commit is contained in:
parent
52028d86f5
commit
f71358fd50
@ -188,7 +188,7 @@ class SpotifyDownloader extends Downloader
|
||||
|
||||
#parseFilename (fileName: string)
|
||||
{
|
||||
const match = fileName.match(/(?<artist>.+)\W---\W(?<song>.+)\W---\W(?<album>.+)(?<ext>\.\w+)$/u);
|
||||
const match = fileName.match(/(?<artist>.+)\W---\W(?<song>.+)\W---\W(?<album>.+)\.(?<ext>\w+)$/u);
|
||||
if (!match || !match.groups)
|
||||
throw new Error('Unknown file name format');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user