mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 09:49:30 +02:00
Add missing slash in album batch download link
Add log entry on Plex api stream
This commit is contained in:
parent
c2db9a2e03
commit
e231533080
2 changed files with 5 additions and 2 deletions
|
@ -1065,7 +1065,6 @@ class Plex_Api
|
|||
|
||||
protected static function stream_url($url)
|
||||
{
|
||||
// header("Location: " . $url);
|
||||
set_time_limit(0);
|
||||
ob_end_clean();
|
||||
|
||||
|
@ -1075,6 +1074,10 @@ class Plex_Api
|
|||
$reqheaders[] = "Range: " . $headers['Range'];
|
||||
}
|
||||
|
||||
// Curl support, we stream transparently to avoid redirect. Redirect can fail on few clients
|
||||
debug_event('plex-api', 'Stream proxy: ' . $url, 5);
|
||||
// header("Location: " . $url);
|
||||
|
||||
$ch = curl_init($url);
|
||||
curl_setopt_array($ch, array(
|
||||
CURLOPT_HTTPHEADER => $reqheaders,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue