mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
feat: Allow scrobbling using alternative song titles (#3093)
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user