Merge pull request #2840 from thyttan/podcast-addict

podadrem: Issue newline before GB commands
pull/2842/head
Gordon Williams 2023-06-26 08:46:11 +01:00 committed by GitHub
commit 1eda4cb0bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -7,3 +7,4 @@ Addict.
0.06: Add compatibility with Fastload Utils. 0.06: Add compatibility with Fastload Utils.
0.07: Remove just the specific listeners to not interfere with Quick Launch 0.07: Remove just the specific listeners to not interfere with Quick Launch
when fastloading. when fastloading.
0.08: Issue newline before GB commands (solves issue with console.log and ignored commands)

View File

@ -144,6 +144,7 @@ let simpleSearchTerm = function() { // input a simple search term without tags,
let searchPlayWOTags = function() { //make a search and play using entered terms let searchPlayWOTags = function() { //make a search and play using entered terms
searchString = simpleSearch; searchString = simpleSearch;
Bluetooth.println("");
Bluetooth.println(JSON.stringify({ Bluetooth.println(JSON.stringify({
t: "intent", t: "intent",
action: "android.media.action.MEDIA_PLAY_FROM_SEARCH", action: "android.media.action.MEDIA_PLAY_FROM_SEARCH",
@ -157,6 +158,7 @@ let searchPlayWOTags = function() { //make a search and play using entered terms
}; };
let gadgetbridgeWake = function() { let gadgetbridgeWake = function() {
Bluetooth.println("");
Bluetooth.println(JSON.stringify({ Bluetooth.println(JSON.stringify({
t: "intent", t: "intent",
target: "activity", target: "activity",
@ -174,6 +176,7 @@ let actFn = function(actName, activOrServ) {
// Send the intent message to Gadgetbridge // Send the intent message to Gadgetbridge
let btMsg = function(activOrServ, cls, actName, xtra) { let btMsg = function(activOrServ, cls, actName, xtra) {
Bluetooth.println("");
Bluetooth.println(JSON.stringify({ Bluetooth.println(JSON.stringify({
t: "intent", t: "intent",
action: actFn(actName, activOrServ), action: actFn(actName, activOrServ),

View File

@ -2,7 +2,7 @@
"id": "podadrem", "id": "podadrem",
"name": "Podcast Addict Remote", "name": "Podcast Addict Remote",
"shortName": "PA Remote", "shortName": "PA Remote",
"version": "0.07", "version": "0.08",
"description": "Control Podcast Addict on your android device.", "description": "Control Podcast Addict on your android device.",
"readme": "README.md", "readme": "README.md",
"type": "app", "type": "app",