[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1536] whitespace
From: |
Clint Adams |
Subject: |
[Librefm-commits] [1536] whitespace |
Date: |
Wed, 13 May 2009 21:07:57 +0000 |
Revision: 1536
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1536
Author: clint
Date: 2009-05-13 21:07:57 +0000 (Wed, 13 May 2009)
Log Message:
-----------
whitespace
Modified Paths:
--------------
trunk/gnukebox/database.php
trunk/gnukebox/musicbrainz.php
Modified: trunk/gnukebox/database.php
===================================================================
--- trunk/gnukebox/database.php 2009-05-12 19:24:53 UTC (rev 1535)
+++ trunk/gnukebox/database.php 2009-05-13 21:07:57 UTC (rev 1536)
@@ -28,11 +28,11 @@
require_once('adodb/adodb-exceptions.inc.php');
require_once('adodb/adodb.inc.php');
-try {
+try {
$adodb =& NewADOConnection($adodb_connect_string);
-} catch (exception $e) {
- var_dump($e);
+} catch (exception $e) {
+ var_dump($e);
adodb_backtrace($e->gettrace());
-}
+}
?>
Modified: trunk/gnukebox/musicbrainz.php
===================================================================
--- trunk/gnukebox/musicbrainz.php 2009-05-12 19:24:53 UTC (rev 1535)
+++ trunk/gnukebox/musicbrainz.php 2009-05-13 21:07:57 UTC (rev 1536)
@@ -47,22 +47,22 @@
ob_implicit_flush(1) ;
}
-
+
function doABunchOfShit($artist, $track){
$album = ScrobbleLookup($artist, $track);
if ($album){
-
+
return $album;
} else {
$album = BrainzLookup ($artist, $track);
- return $album;}
-
+ return $album;}
+
}
function ScrobbleLookup($artist, $track){
@@ -86,7 +86,7 @@
global $adodb;
$sql = "select a.name as artist,l.name as album, t.name
as track,t.gid as mbid from brainz.track t left join brainz.artist a on
t.artist=a.id left join brainz.albumjoin j on j.track=t.id left join
brainz.album l on l.id=j.album where lower(t.name)=" .
$adodb->qstr(mb_strtolower($track, "UTF-8")) . " and lower(a.name)=" .
$adodb->qstr(mb_strtolower($artist, "UTF-8")) . " LIMIT 1;";
-
+
$adodb->SetFetchMode(ADODB_FETCH_ASSOC);
$albumData = $adodb->GetRow($sql);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1536] whitespace,
Clint Adams <=