1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

Add optional client name when playing

This commit is contained in:
Afterster 2013-12-07 09:41:20 +01:00
parent 51cff99ef6
commit f50d8a93a5
6 changed files with 47 additions and 37 deletions

View file

@ -287,7 +287,7 @@ class Plex_Api
$id = Plex_XML_Data::getAmpacheId($key);
$song = new Song($id);
if ($song->id) {
$url = Song::play_url($id);
$url = Song::play_url($id) . '&client=Plex';
header("Location: " . $url);
} else {
self::createError(404);