Skip to content

Commit

Permalink
Fixed playback/volume controls
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomDebugGuy committed Sep 29, 2024
1 parent a723cec commit c3d942a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/server/linuxplayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class linuxPlayer {
return JSON.stringify(obj, (key, value) =>
typeof value === 'bigint' ? value.toString() : value
);

}

async returnSongData(DeskThing, isRefresh) {
Expand All @@ -25,7 +24,6 @@ class linuxPlayer {

const processedThumbnail = await this.processThumbnail(result['thumbnail'], DeskThing);

// Construct the data object using object literal
const data = {
album: result['album'],
artist: result['artist'],
Expand All @@ -48,19 +46,15 @@ class linuxPlayer {
track_progress: Number(result['track_progress']),
track_duration: Number(result['track_length'])
};
console.log(result['track_length'], 'is the duration')

console.log('executing to here ---------------------------------------------------------------------');

resolve(data);
});
});

if (isRefresh) {
DeskThing.sendDataToClient({ app: 'client', type: 'song', payload: data });
console.log('sent refresh');
} else {
DeskThing.sendDataToClient({ app: 'client', type: 'song', payload: data });
console.log('sent song');
}

} catch (error) {
Expand Down

0 comments on commit c3d942a

Please sign in to comment.