filter out empty artist/album names
[id3fs.git] / lib / ID3FS / DB.pm
index d598fe7..aa9eaf1 100644 (file)
@@ -492,6 +492,13 @@ sub last_insert_id
     }
 }
 
+sub lookup_id
+{
+    my($self, $table, $name)=@_;
+    my($id)=$self->cmd_onerow("SELECT id FROM $table where name=?", $name);
+    return $id;
+}
+
 __DATA__
 
 CREATE TABLE id3fs (