vlc-listenbrainz-plugin icon indicating copy to clipboard operation
vlc-listenbrainz-plugin copied to clipboard

Try to determine title / artist from filename if untagged

Open MaxEtMoritz opened this issue 2 years ago • 2 comments

First of all, thank you for creating this plugin!

Works great if the files have tags for title/artist(/MBIDs?). But if the file is not tagged the listens are not submitted.

There are some established naming conventions for music files, maybe the most common one being <artist> - <title>. It'd be nice if, as a fallback when no tags are found, the file name is examined to determine artist name and title, maybe with some builtin formats like the <artist> - <title> one or, taking it further, user-specified format string(s) like %artist% - %title% or similar syntax.

MaxEtMoritz avatar Jun 17 '23 15:06 MaxEtMoritz

As a workaround, i was able to parse the filename into artist and title using VLC's lua interface. I created a lua script and added it to vlc-dir/lua/meta/fetcher folder. i uploaded that script as a gist if it's helpful for others.

MaxEtMoritz avatar Nov 08 '23 11:11 MaxEtMoritz

Hi! I would recommend using MusicBrainz Picard to instead tag the files first. AFAIK, ListenBrainz submission plugins for other music players also do not try to guess the track and artist names so it would be nice to be consistent. And such a detection scheme would be easily fallible anyway.

amCap1712 avatar Apr 23 '24 20:04 amCap1712