From b8b3f69a1a7691d9df025bb0e548fb891cd98e23 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Wed, 13 Jan 2010 13:28:06 +0000 Subject: fix missing filename in content disposition for non-transcoded/downloaded streams --- play/index.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'play/index.php') diff --git a/play/index.php b/play/index.php index 0f2a2efa..191492a6 100644 --- a/play/index.php +++ b/play/index.php @@ -313,6 +313,8 @@ if ((Config::get('transcode') == 'always' || !$media->native_stream() || $not_lo else { // Send file, possible at a byte offset $fp = fopen($media->file, 'rb'); + + $song_name = $media->f_artist_full . " - " . $media->title . "." . $media->type; if (!is_resource($fp)) { debug_event('Play',"Error: Unable to open $media->file for reading",'2'); -- cgit