Show "Tidal Hifi" as application name for notify-send notifications (#75)

This commit is contained in:
Kevin Yuan 2021-12-04 10:21:14 +00:00 committed by GitHub
parent 5ef6074015
commit ae25d88e94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,6 +292,7 @@ setInterval(function () {
const artists = elements.getArtists(); const artists = elements.getArtists();
const current = elements.getText("current"); const current = elements.getText("current");
const duration = elements.getText("duration"); const duration = elements.getText("duration");
const appName = "Tidal Hifi";
const progressBarcurrentTime = elements.get("bar").getAttribute("aria-valuenow"); const progressBarcurrentTime = elements.get("bar").getAttribute("aria-valuenow");
const songDashArtistTitle = `${title} - ${artists}`; const songDashArtistTitle = `${title} - ${artists}`;
const currentStatus = getCurrentlyPlayingStatus(); const currentStatus = getCurrentlyPlayingStatus();
@ -302,6 +303,7 @@ setInterval(function () {
url: currentURL, url: currentURL,
current: current, current: current,
duration: duration, duration: duration,
'app-name': appName,
}; };
const playStatusChanged = currentStatus !== currentPlayStatus; const playStatusChanged = currentStatus !== currentPlayStatus;