mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-06 03:49:56 +02:00
fix for the httpq player so that it works with songs that have spaces in the name
This commit is contained in:
parent
46d87d6bf4
commit
dced24f2c5
2 changed files with 3 additions and 3 deletions
|
@ -213,7 +213,7 @@ class Album {
|
||||||
/* If it's not set */
|
/* If it's not set */
|
||||||
if (empty($config_value)) {
|
if (empty($config_value)) {
|
||||||
// They don't want art!
|
// They don't want art!
|
||||||
return false;
|
return array();
|
||||||
}
|
}
|
||||||
elseif (!is_array($config_value)) {
|
elseif (!is_array($config_value)) {
|
||||||
$config_value = array($config_value);
|
$config_value = array($config_value);
|
||||||
|
|
|
@ -54,8 +54,8 @@ class HttpQPlayer {
|
||||||
*/
|
*/
|
||||||
function add($name, $url) {
|
function add($name, $url) {
|
||||||
|
|
||||||
$args['name'] = $name;
|
$args['name'] = urlencode($name);
|
||||||
$args['url'] = str_replace("&","%26",$url);
|
$args['url'] = urlencode($url);
|
||||||
|
|
||||||
$results = $this->sendCommand('playurl', $args);
|
$results = $this->sendCommand('playurl', $args);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue