diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-03-08 03:54:04 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-03-08 03:54:04 +0000 |
commit | 2799c89f58d389ac659c0bc414a86cb1454afd75 (patch) | |
tree | 16392f16aec13dafb97768f894312974d83e87f2 /lib/class/stream.class.php | |
parent | 059f6d4d5cde3a66b3c1a998ce123e7eb88e7a98 (diff) | |
download | ampache-2799c89f58d389ac659c0bc414a86cb1454afd75.tar.gz ampache-2799c89f58d389ac659c0bc414a86cb1454afd75.tar.bz2 ampache-2799c89f58d389ac659c0bc414a86cb1454afd75.zip |
add length to the video browse, put in some stuff for the now playing table up the config version in prep for another alpha
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r-- | lib/class/stream.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php index 0c16dd4e..505bda49 100644 --- a/lib/class/stream.class.php +++ b/lib/class/stream.class.php @@ -719,15 +719,15 @@ class Stream { * This fucntion is used by the /play/index.php song * primarily, but could be used by other people */ - public static function insert_now_playing($song_id,$uid,$song_length,$sid) { + public static function insert_now_playing($song_id,$uid,$length,$sid,$type) { - $time = time()+$song_length; + $time = time()+$length; $session_id = Dba::escape($sid); // Do a replace into ensuring that this client always only has a single row $sql = "REPLACE INTO `now_playing` (`id`,`song_id`, `user`, `expire`)" . " VALUES ('$session_id','$song_id', '$uid', '$time')"; - $db_result = Dba::query($sql); + $db_result = Dba::write($sql); } // insert_now_playing |