1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 01:39:28 +02:00

Remove scrobbling from stream and add Scrobble method support in SubSonic API

This commit is contained in:
Afterster 2014-12-12 23:36:01 +01:00
parent e988741988
commit 4fd3a636be
6 changed files with 61 additions and 37 deletions

View file

@ -585,11 +585,11 @@ if (!isset($_REQUEST['segment'])) {
} else {
if (!$share_id) {
if ($_SERVER['REQUEST_METHOD'] != 'HEAD') {
debug_event('play', 'Registering stream stats for {'.$media->get_stream_name() .'}...', '5');
debug_event('play', 'Registering stream stats for {'.$media->get_stream_name() .'}...', 5);
$sessionkey = $sid ?: Stream::get_session();
$agent = Session::agent($sessionkey);
$location = Session::get_geolocation($sessionkey);
$GLOBALS['user']->update_stats($type, $media->id, $agent, $location);
$GLOBALS['user']->update_stats($type, $media->id, $agent, $location, isset($_REQUEST['noscrobble']));
}
}
}