1
0
Fork 0
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:
Afterster 2016-02-16 06:22:39 +01:00
parent c2db9a2e03
commit e231533080
2 changed files with 5 additions and 2 deletions

View file

@ -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,