Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to determine title / artist from filename if untagged #4

Open
MaxEtMoritz opened this issue Jun 17, 2023 · 2 comments
Open

Try to determine title / artist from filename if untagged #4

MaxEtMoritz opened this issue Jun 17, 2023 · 2 comments

Comments

@MaxEtMoritz
Copy link
Contributor

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
Copy link
Contributor Author

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.

@amCap1712
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants