summaryrefslogtreecommitdiffstats
path: root/play
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2010-01-13 13:28:06 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2010-01-13 13:28:06 +0000
commitb8b3f69a1a7691d9df025bb0e548fb891cd98e23 (patch)
tree38dcdfb8d96dc4c1f1d336f8aed70d61249c74d2 /play
parente06d22d2e1cc4961d63a3f85d47a3f0c1cb78a2a (diff)
downloadampache-b8b3f69a1a7691d9df025bb0e548fb891cd98e23.tar.gz
ampache-b8b3f69a1a7691d9df025bb0e548fb891cd98e23.tar.bz2
ampache-b8b3f69a1a7691d9df025bb0e548fb891cd98e23.zip
fix missing filename in content disposition for non-transcoded/downloaded streams
Diffstat (limited to 'play')
-rw-r--r--play/index.php2
1 files changed, 2 insertions, 0 deletions
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');