Spotify generated playlists
parent
6f80f87537
commit
2a55ebbfca
|
|
@ -190,6 +190,38 @@ function spotifyPlaylistDW() {
|
||||||
Bluetooth.println(JSON.stringify({t:"intent", action:"android.intent.action.VIEW", categories:["android.intent.category.DEFAULT"], package:"com.spotify.music", data:"spotify:user:spotify:playlist:37i9dQZEVXcRfaeEbxXIgb:play", target:"activity" , flags:["FLAG_ACTIVITY_NEW_TASK", "FLAG_ACTIVITY_NO_ANIMATION"/*, "FLAG_ACTIVITY_CLEAR_TOP", "FLAG_ACTIVITY_PREVIOUS_IS_TOP"*/]}));
|
Bluetooth.println(JSON.stringify({t:"intent", action:"android.intent.action.VIEW", categories:["android.intent.category.DEFAULT"], package:"com.spotify.music", data:"spotify:user:spotify:playlist:37i9dQZEVXcRfaeEbxXIgb:play", target:"activity" , flags:["FLAG_ACTIVITY_NEW_TASK", "FLAG_ACTIVITY_NO_ANIMATION"/*, "FLAG_ACTIVITY_CLEAR_TOP", "FLAG_ACTIVITY_PREVIOUS_IS_TOP"*/]}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function spotifyPlaylistDM1() {
|
||||||
|
Bluetooth.println(JSON.stringify({t:"intent", action:"android.intent.action.VIEW", categories:["android.intent.category.DEFAULT"], package:"com.spotify.music", data:"spotify:user:spotify:playlist:37i9dQZEVXcRfaeEbxXIgb:play", target:"activity" , flags:["FLAG_ACTIVITY_NEW_TASK", "FLAG_ACTIVITY_NO_ANIMATION"/*, "FLAG_ACTIVITY_CLEAR_TOP", "FLAG_ACTIVITY_PREVIOUS_IS_TOP"*/]}));
|
||||||
|
}
|
||||||
|
|
||||||
|
function spotifyPlaylistDM2() {
|
||||||
|
Bluetooth.println(JSON.stringify({t:"intent", action:"android.intent.action.VIEW", categories:["android.intent.category.DEFAULT"], package:"com.spotify.music", data:"spotify:user:spotify:playlist:37i9dQZEVXcRfaeEbxXIgb:play", target:"activity" , flags:["FLAG_ACTIVITY_NEW_TASK", "FLAG_ACTIVITY_NO_ANIMATION"/*, "FLAG_ACTIVITY_CLEAR_TOP", "FLAG_ACTIVITY_PREVIOUS_IS_TOP"*/]}));
|
||||||
|
}
|
||||||
|
|
||||||
|
function spotifyPlaylistDM3() {
|
||||||
|
Bluetooth.println(JSON.stringify({t:"intent", action:"android.intent.action.VIEW", categories:["android.intent.category.DEFAULT"], package:"com.spotify.music", data:"spotify:user:spotify:playlist:37i9dQZEVXcRfaeEbxXIgb:play", target:"activity" , flags:["FLAG_ACTIVITY_NEW_TASK", "FLAG_ACTIVITY_NO_ANIMATION"/*, "FLAG_ACTIVITY_CLEAR_TOP", "FLAG_ACTIVITY_PREVIOUS_IS_TOP"*/]}));
|
||||||
|
}
|
||||||
|
|
||||||
|
function spotifyPlaylistDM4() {
|
||||||
|
Bluetooth.println(JSON.stringify({t:"intent", action:"android.intent.action.VIEW", categories:["android.intent.category.DEFAULT"], package:"com.spotify.music", data:"spotify:user:spotify:playlist:37i9dQZEVXcRfaeEbxXIgb:play", target:"activity" , flags:["FLAG_ACTIVITY_NEW_TASK", "FLAG_ACTIVITY_NO_ANIMATION"/*, "FLAG_ACTIVITY_CLEAR_TOP", "FLAG_ACTIVITY_PREVIOUS_IS_TOP"*/]}));
|
||||||
|
}
|
||||||
|
|
||||||
|
function spotifyPlaylistDM5() {
|
||||||
|
Bluetooth.println(JSON.stringify({t:"intent", action:"android.intent.action.VIEW", categories:["android.intent.category.DEFAULT"], package:"com.spotify.music", data:"spotify:user:spotify:playlist:37i9dQZEVXcRfaeEbxXIgb:play", target:"activity" , flags:["FLAG_ACTIVITY_NEW_TASK", "FLAG_ACTIVITY_NO_ANIMATION"/*, "FLAG_ACTIVITY_CLEAR_TOP", "FLAG_ACTIVITY_PREVIOUS_IS_TOP"*/]}));
|
||||||
|
}
|
||||||
|
|
||||||
|
function spotifyPlaylistDM6() {
|
||||||
|
Bluetooth.println(JSON.stringify({t:"intent", action:"android.intent.action.VIEW", categories:["android.intent.category.DEFAULT"], package:"com.spotify.music", data:"spotify:user:spotify:playlist:37i9dQZEVXcRfaeEbxXIgb:play", target:"activity" , flags:["FLAG_ACTIVITY_NEW_TASK", "FLAG_ACTIVITY_NO_ANIMATION"/*, "FLAG_ACTIVITY_CLEAR_TOP", "FLAG_ACTIVITY_PREVIOUS_IS_TOP"*/]}));
|
||||||
|
}
|
||||||
|
|
||||||
|
function spotifyPlaylistDD() {
|
||||||
|
Bluetooth.println(JSON.stringify({t:"intent", action:"android.intent.action.VIEW", categories:["android.intent.category.DEFAULT"], package:"com.spotify.music", data:"spotify:user:spotify:playlist:37i9dQZEVXcRfaeEbxXIgb:play", target:"activity" , flags:["FLAG_ACTIVITY_NEW_TASK", "FLAG_ACTIVITY_NO_ANIMATION"/*, "FLAG_ACTIVITY_CLEAR_TOP", "FLAG_ACTIVITY_PREVIOUS_IS_TOP"*/]}));
|
||||||
|
}
|
||||||
|
|
||||||
|
function spotifyPlaylistRR() {
|
||||||
|
Bluetooth.println(JSON.stringify({t:"intent", action:"android.intent.action.VIEW", categories:["android.intent.category.DEFAULT"], package:"com.spotify.music", data:"spotify:user:spotify:playlist:37i9dQZEVXcRfaeEbxXIgb:play", target:"activity" , flags:["FLAG_ACTIVITY_NEW_TASK", "FLAG_ACTIVITY_NO_ANIMATION"/*, "FLAG_ACTIVITY_CLEAR_TOP", "FLAG_ACTIVITY_PREVIOUS_IS_TOP"*/]}));
|
||||||
|
}
|
||||||
|
|
||||||
// Spotify Remote Menu
|
// Spotify Remote Menu
|
||||||
var spotifyMenu = {
|
var spotifyMenu = {
|
||||||
"" : { title : " ",
|
"" : { title : " ",
|
||||||
|
|
@ -235,10 +267,18 @@ var savedMenu = {
|
||||||
"" : { title : " ",
|
"" : { title : " ",
|
||||||
back: () => {if (backToMenu) E.showMenu(spotifyMenu);
|
back: () => {if (backToMenu) E.showMenu(spotifyMenu);
|
||||||
if (!backToMenu) backToGfx();} },
|
if (!backToMenu) backToGfx();} },
|
||||||
|
"Play playlist Discover Weekly" : ()=>{spotifyPlaylistDW();},
|
||||||
|
"Play Daily Mix 1" : ()=>{spotifyPlaylistDM1();},
|
||||||
|
"Play Daily Mix 2" : ()=>{spotifyPlaylistDM2();},
|
||||||
|
"Play Daily Mix 3" : ()=>{spotifyPlaylistDM3();},
|
||||||
|
"Play Daily Mix 4" : ()=>{spotifyPlaylistDM4();},
|
||||||
|
"Play Daily Mix 5" : ()=>{spotifyPlaylistDM5();},
|
||||||
|
"Play Daily Mix 6" : ()=>{spotifyPlaylistDM6();},
|
||||||
|
"Play Daily Drive" : ()=>{spotifyPlaylistDD();},
|
||||||
|
"Play Release Radar" : ()=>{spotifyPlaylistRR();},
|
||||||
"Play \"Vreden\" by Sara Parkman via uri-link" : ()=>{playVreden();},
|
"Play \"Vreden\" by Sara Parkman via uri-link" : ()=>{playVreden();},
|
||||||
"Open \"The Blue Room\" EP (no autoplay)" : ()=>{openAlbum();},
|
"Open \"The Blue Room\" EP (no autoplay)" : ()=>{openAlbum();},
|
||||||
"Play \"The Blue Room\" EP via search&play" : ()=>{searchPlayAlbum();},
|
"Play \"The Blue Room\" EP via search&play" : ()=>{searchPlayAlbum();},
|
||||||
"Play playlist Discover Weekly" : ()=>{spotifyPlaylistDW();},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue