We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 00e7b5f8 authored by clint's avatar clint

actually really allow multiple albums with the same track

parent 7acadb7b
...@@ -93,7 +93,7 @@ function createTrackIfNew($artist, $album, $track, $mbid) { ...@@ -93,7 +93,7 @@ function createTrackIfNew($artist, $album, $track, $mbid) {
$track = NoSpamTracks($track); $track = NoSpamTracks($track);
$artist = NoSpamTracks($artist); $artist = NoSpamTracks($artist);
$res = $mdb2->query("SELECT name FROM Track WHERE lower(name) = " . (strtolower($track)) . " AND lower(artist) = " . (strtolower($artist))); $res = $mdb2->query("SELECT name FROM Track WHERE lower(name) = " . (strtolower($track)) . " AND lower(artist) = " . (strtolower($artist)) . " AND lower(track) = " . strtolower($track));
if(PEAR::isError($res)) { if(PEAR::isError($res)) {
die("FAILED " . $res->getMessage() . "\n"); die("FAILED " . $res->getMessage() . "\n");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment