This commit is contained in:
Erik 2024-04-14 11:43:22 +03:00
parent 52028d86f5
commit f71358fd50

View File

@ -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');