[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1076] Allow more scrobbles to be fetched.
From: |
Toby Inkster |
Subject: |
[Librefm-commits] [1076] Allow more scrobbles to be fetched. |
Date: |
Thu, 30 Apr 2009 18:44:04 +0000 |
Revision: 1076
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1076
Author: tobyink
Date: 2009-04-30 18:44:04 +0000 (Thu, 30 Apr 2009)
Log Message:
-----------
Allow more scrobbles to be fetched.
Modified Paths:
--------------
trunk/nixtape/.htaccess
trunk/nixtape/user-recent-tracks.php
Modified: trunk/nixtape/.htaccess
===================================================================
--- trunk/nixtape/.htaccess 2009-04-30 18:29:30 UTC (rev 1075)
+++ trunk/nixtape/.htaccess 2009-04-30 18:44:04 UTC (rev 1076)
@@ -4,7 +4,7 @@
RewriteRule ^user/([^/]+)/?$
user-profile.php?user=$1 [B,NC]
RewriteRule ^user/([^/]+)/journal/?$
user-journal.php?user=$1 [B,NC]
RewriteRule ^user/([^/]+)/groups/?$
user-groups.php?user=$1 [B,NC]
-RewriteRule ^user/([^/]+)/recent-tracks/?$
user-recent-tracks.php?user=$1 [B,NC]
+RewriteRule ^user/([^/]+)/recent-tracks/?$
user-recent-tracks.php?user=$1 [B,NC,QSA]
RewriteRule ^user/([^/]+)/stats/?$
user-stats.php?user=$1 [B,NC]
RewriteRule ^artist/([^/]+)/track/([^/]+)/?$
track.php?artist=$1&track=$2 [B,NC]
RewriteRule ^artist/([^/]+)/album/([^/]+)/track/([^/]+)/?$
track.php?artist=$1&album=$2&track=$3 [B,NC]
Modified: trunk/nixtape/user-recent-tracks.php
===================================================================
--- trunk/nixtape/user-recent-tracks.php 2009-04-30 18:29:30 UTC (rev
1075)
+++ trunk/nixtape/user-recent-tracks.php 2009-04-30 18:44:04 UTC (rev
1076)
@@ -33,11 +33,14 @@
}
$user = new User($_GET['user']);
+$scrobbleCount = (int)$_GET['count'];
+if (!$scrobbleCount)
+ $scrobbleCount = 100;
if(isset($user->name)) {
$smarty->assign('geo', Server::getLocationDetails($user->location_uri));
- $aUserScrobbles = $user->getScrobbles(100);
+ $aUserScrobbles = $user->getScrobbles( $scrobbleCount );
if (!PEAR::isError ($aUserScrobbles)) {
$smarty->assign('scrobbles', $aUserScrobbles);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1076] Allow more scrobbles to be fetched.,
Toby Inkster <=