Update for jukebox extension readme
removed the profit column showing 0
This commit is contained in:
parent
1e0367a451
commit
2da68bf974
2 changed files with 88 additions and 59 deletions
|
|
@ -1,5 +1,36 @@
|
||||||
# Jukebox
|
# Jukebox
|
||||||
|
|
||||||
To use this extension you need a Spotify client ID and client secret. You get these by creating an app in the Spotify developers dashboard here https://developer.spotify.com/dashboard/applications
|
## An actual Jukebox where users pay sats to play their favourite music from your playlists
|
||||||
|
|
||||||
Select the playlists you want people to be able to pay for, share the frontend page, profit :)
|
**Note:** To use this extension you need a Premium Spotify subscription.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
1. Click on "ADD SPOTIFY JUKEBOX"\
|
||||||
|

|
||||||
|
2. Follow the steps required on the form\
|
||||||
|
|
||||||
|
- give your jukebox a name
|
||||||
|
- select a wallet to receive payment
|
||||||
|
- define the price a user must pay to select a song\
|
||||||
|

|
||||||
|
- follow the steps to get your Spotify App and get the client ID and secret key\
|
||||||
|

|
||||||
|
- paste the codes in the form\
|
||||||
|

|
||||||
|
- copy the _Redirect URL_ presented on the form\
|
||||||
|

|
||||||
|
- on Spotify click the "EDIT SETTINGS" button and paste the copied link in the _Redirect URI's_ prompt
|
||||||
|

|
||||||
|
- back on LNBits, click "AUTORIZE ACCESS" and "Agree" on the page that will open
|
||||||
|
- choose on which device the LNBits Jukebox extensions will stream to, you may have to be logged in in order to select the device (browser, smartphone app, etc...)
|
||||||
|
- and select what playlist will be available for users to choose songs (you need to have already playlist on Spotify)\
|
||||||
|

|
||||||
|
|
||||||
|
3. After Jukebox is created, click the icon to open the dialog with the shareable QR, open the Jukebox page, etc...\
|
||||||
|

|
||||||
|
4. The users will see the Jukebox page and choose a song from the selected playlist\
|
||||||
|

|
||||||
|
5. After selecting a song they'd like to hear next a dialog will show presenting the music\
|
||||||
|

|
||||||
|
6. After payment, the song will automatically start playing on the device selected or enter the queue if some other music is already playing
|
||||||
|
|
|
||||||
|
|
@ -46,12 +46,6 @@ new Vue({
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: 'Price',
|
label: 'Price',
|
||||||
field: 'price'
|
field: 'price'
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'profit',
|
|
||||||
align: 'left',
|
|
||||||
label: 'Profit',
|
|
||||||
field: 'profit'
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
pagination: {
|
pagination: {
|
||||||
|
|
@ -93,7 +87,11 @@ new Vue({
|
||||||
getJukeboxes() {
|
getJukeboxes() {
|
||||||
self = this
|
self = this
|
||||||
LNbits.api
|
LNbits.api
|
||||||
.request('GET', '/jukebox/api/v1/jukebox', self.g.user.wallets[0].adminkey)
|
.request(
|
||||||
|
'GET',
|
||||||
|
'/jukebox/api/v1/jukebox',
|
||||||
|
self.g.user.wallets[0].adminkey
|
||||||
|
)
|
||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
self.JukeboxLinks = response.data.map(mapJukebox)
|
self.JukeboxLinks = response.data.map(mapJukebox)
|
||||||
})
|
})
|
||||||
|
|
@ -195,9 +193,9 @@ new Vue({
|
||||||
if (self.jukeboxDialog.data.sp_access_token) {
|
if (self.jukeboxDialog.data.sp_access_token) {
|
||||||
self.refreshPlaylists()
|
self.refreshPlaylists()
|
||||||
self.refreshDevices()
|
self.refreshDevices()
|
||||||
console.log("this.devices")
|
console.log('this.devices')
|
||||||
console.log(self.devices)
|
console.log(self.devices)
|
||||||
console.log("this.devices")
|
console.log('this.devices')
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
if (self.devices.length < 1 || self.playlists.length < 1) {
|
if (self.devices.length < 1 || self.playlists.length < 1) {
|
||||||
self.$q.notify({
|
self.$q.notify({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue