feat: Allow scrobbling using alternative song titles (#3093)

This commit is contained in:
Yumeo
2025-03-15 18:42:58 +01:00
committed by GitHub
parent 2d86d26701
commit bcdd24d74b
6 changed files with 38 additions and 5 deletions

View File

@ -127,8 +127,13 @@ export class LastFmScrobbler extends ScrobblerBase {
await this.createSession(config, setConfig);
}
const title =
config.alternativeTitles && songInfo.alternativeTitle !== undefined
? songInfo.alternativeTitle
: songInfo.title;
const postData: LastFmSongData = {
track: songInfo.title,
track: title,
duration: songInfo.songDuration,
artist: songInfo.artist,
...(songInfo.album ? { album: songInfo.album } : undefined), // Will be undefined if current song is a video