Compare commits
No commits in common. "main" and "v1.3.1" have entirely different histories.
16
src/main.cpp
16
src/main.cpp
|
@ -93,6 +93,14 @@ void handleMediaTasks() {
|
|||
if (shouldContinue)
|
||||
continue;
|
||||
|
||||
if (lastPlayingSong.find(mediaInformation->songTitle + mediaInformation->songArtist +
|
||||
mediaInformation->songAlbum) == std::string::npos &&
|
||||
lastfm)
|
||||
lastfm->scrobble(mediaInformation->songArtist, mediaInformation->songTitle);
|
||||
|
||||
lastPlayingSong = currentlyPlayingSong;
|
||||
currentSongTitle = mediaInformation->songArtist + " - " + mediaInformation->songTitle;
|
||||
|
||||
std::string currentMediaSource = mediaInformation->playbackSource;
|
||||
|
||||
if (currentMediaSource != lastMediaSource) {
|
||||
|
@ -102,14 +110,6 @@ void handleMediaTasks() {
|
|||
|
||||
auto app = utils::getApp(lastMediaSource);
|
||||
|
||||
if (lastPlayingSong.find(mediaInformation->songTitle + mediaInformation->songArtist +
|
||||
mediaInformation->songAlbum) == std::string::npos &&
|
||||
lastfm && app.enabled)
|
||||
lastfm->scrobble(mediaInformation->songArtist, mediaInformation->songTitle);
|
||||
|
||||
lastPlayingSong = currentlyPlayingSong;
|
||||
currentSongTitle = mediaInformation->songArtist + " - " + mediaInformation->songTitle;
|
||||
|
||||
if (!app.enabled) {
|
||||
Discord_ClearPresence();
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue