[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1515] cache new album query
From: |
Clint Adams |
Subject: |
[Librefm-commits] [1515] cache new album query |
Date: |
Tue, 12 May 2009 01:54:34 +0000 |
Revision: 1515
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1515
Author: clint
Date: 2009-05-12 01:54:33 +0000 (Tue, 12 May 2009)
Log Message:
-----------
cache new album query
Modified Paths:
--------------
trunk/gnukebox/scrobble-utils.php
Modified: trunk/gnukebox/scrobble-utils.php
===================================================================
--- trunk/gnukebox/scrobble-utils.php 2009-05-12 01:47:31 UTC (rev 1514)
+++ trunk/gnukebox/scrobble-utils.php 2009-05-12 01:54:33 UTC (rev 1515)
@@ -77,13 +77,13 @@
global $adodb;
try {
- $res = $adodb->Execute("SELECT name FROM Album WHERE name = " .
($album) . " AND artist_name = " . ($artist));
+ $name = $adodb->CacheGetOne(600, "SELECT name FROM Album WHERE
name = " . ($album) . " AND artist_name = " . ($artist));
}
catch (exception $e) {
die("FAILED alb " . $e->getMessage() . "\n");
}
- if(!$res) {
+ if(!$name) {
// Album doesn't exist, so create it
$art = $adodb->qstr(getAlbumArt($artist, $album));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1515] cache new album query,
Clint Adams <=