lots of progress on apple music integration

This commit is contained in:
2023-11-14 20:19:36 +01:00
parent 83303be8e9
commit 2b3af0de24
10 changed files with 119 additions and 54 deletions

View File

@@ -29,6 +29,7 @@
<div v-else class="no-songs">
<h3>No songs loaded</h3>
<button @click="loadSongs()">Load songs</button>
<button @click="useAppleMusic()">Use AppleMusic (opens a web-browser)</button>
</div>
</div>
</template>
@@ -379,6 +380,9 @@
this.update( { 'type': 'playback', 'status': false } );
this.$emit( 'com', { 'type': 'pause', 'song': song } );
},
useAppleMusic() {
fetch( 'http://localhost:8081/useAppleMusic' );
}
}
}
</script>