diff --git a/lib/class/plex_api.class.php b/lib/class/plex_api.class.php index 920c8dee..9f3c4358 100644 --- a/lib/class/plex_api.class.php +++ b/lib/class/plex_api.class.php @@ -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, diff --git a/templates/show_album_row.inc.php b/templates/show_album_row.inc.php index 19222817..cf565f6c 100644 --- a/templates/show_album_row.inc.php +++ b/templates/show_album_row.inc.php @@ -124,7 +124,7 @@ if (Art::is_enabled()) { } if (Access::check_function('batch_download') && check_can_zip('album')) { ?> - +