Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
librespot: update to a4e0f58
- Loading branch information
Showing
16 changed files
with
375 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/addons/service/librespot/patches/librespot-04_status_instead_of_spawn.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From abcd8697b46924f8a18d733fc9d2bf884e901a46 Mon Sep 17 00:00:00 2001 | ||
From: leszekb <leszek@control-by.net> | ||
Date: Mon, 14 May 2018 22:42:34 +0200 | ||
Subject: [PATCH] Update player_event_handler.rs | ||
|
||
--- | ||
src/player_event_handler.rs | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/player_event_handler.rs b/src/player_event_handler.rs | ||
index b6a653d..6064bc0 100644 | ||
--- a/src/player_event_handler.rs | ||
+++ b/src/player_event_handler.rs | ||
@@ -8,7 +8,7 @@ fn run_program(program: &str, env_vars: HashMap<&str, String>) { | ||
Command::new(&v.remove(0)) | ||
.args(&v) | ||
.envs(env_vars.iter()) | ||
- .spawn() | ||
+ .status() | ||
.expect("program failed to start"); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv) | ||
|
||
import alsaaudio as alsa | ||
import alsaaudio | ||
import xbmcaddon | ||
import xbmcgui | ||
|
||
|
||
dialog = xbmcgui.Dialog() | ||
strings = xbmcaddon.Addon().getLocalizedString | ||
dialog = xbmcgui.Dialog() | ||
strings = xbmcaddon.Addon().getLocalizedString | ||
while True: | ||
pcms = alsa.pcms()[1:] | ||
if len(pcms) == 0: | ||
dialog.ok(xbmcaddon.Addon().getAddonInfo('name'), strings(30210)) | ||
break | ||
pcmx = dialog.select(strings(30115), pcms) | ||
if pcmx == -1: | ||
break | ||
pcm = pcms[pcmx] | ||
xbmcaddon.Addon().setSetting('ls_o', pcm) | ||
break | ||
pcms = alsaaudio.pcms()[1:] | ||
if len(pcms) == 0: | ||
dialog.ok(xbmcaddon.Addon().getAddonInfo('name'), strings(30210)) | ||
break | ||
pcmx = dialog.select(strings(30115), pcms) | ||
if pcmx == -1: | ||
break | ||
pcm = pcms[pcmx] | ||
xbmcaddon.Addon().setSetting('ls_o', pcm) | ||
break | ||
del dialog | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/sh | ||
echo -e "$STATE\n$ARTIST\n$TITLE" > "$LS_FIFO" | ||
echo -e "$STATE\n$TRACK_ID" > "$LS_FIFO" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.