feat: add Last.fm URL support and improve track search accuracy

- Add Last.fm URL parsing to %play command (e.g. %play https://last.fm/music/Drake/_/Make+Them+Cry)
- Add freeform Last.fm search via %play lastfm:<query> (e.g. %play lastfm:soda pop)
- Pass trackMeta through Player.play() for accurate scrobbling from Last.fm results
- Improve searchTrack() scoring to penalize non-song results (lyric videos, official videos, covers, remixes)
- Penalize label/production company artists (e.g. "Sony Pictures Animation") in search results
- Penalize quoted track names (e.g. "Soda Pop" Official Lyric Video)
- Prefer clean /music/Artist/_/Track URL format in Last.fm search ranking
This commit is contained in:
NoLogicAlan committed 2026-05-19 18:40:49 +03:00
1 parent c3f1bd3089
commit dc0184b0c0
5 files changed
+327 -6

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ export const command = new CommandBuilder()
.setDescription("The search provider. Default: YouTube Music.", "options.playnext.provider")
.addFlagAliases("p", "u", "use")
.addChoices(...PROVIDER_CHOICES)
.setDefault("yt")
.setDefault("ytm")
, true)
.addAlias("pn");