diff --git a/bin/initdb-mysql.pl b/bin/initdb-mysql.pl index eb66f22..d87b04b 100755 --- a/bin/initdb-mysql.pl +++ b/bin/initdb-mysql.pl @@ -16,6 +16,7 @@ $db->do("DROP TABLE IF EXISTS players"); $db->do("DROP TABLE IF EXISTS playlists"); $db->do("DROP TABLE IF EXISTS playlist_contents"); +$db->do("DROP TABLE IF EXISTS art_cache"); $db->do("CREATE TABLE songs (song_id INT UNSIGNED AUTO_INCREMENT, path VARCHAR(1024) NOT NULL, artist VARCHAR(256), albumartist VARCHAR(256), album VARCHAR(256), title @@ -37,3 +38,6 @@ $db->do("CREATE TABLE playlist_contents (playlist_id INT UNSIGNED, song_id INT UNSIGNED, priority INT, UNIQUE(playlist_id,song_id))"); + +$db->do("CREATE TABLE art_cache (artist VARCHAR(256), album VARCHAR(256), title VARCHAR(256), + image BLOB, url VARCHAR(512))"); diff --git a/bin/initdb-sqlite.pl b/bin/initdb-sqlite.pl index fca2b1d..e3fbf9f 100755 --- a/bin/initdb-sqlite.pl +++ b/bin/initdb-sqlite.pl @@ -16,6 +16,7 @@ $db->do("DROP TABLE IF EXISTS players"); $db->do("DROP TABLE IF EXISTS playlists"); $db->do("DROP TABLE IF EXISTS playlist_contents"); +$db->do("DROP TABLE IF EXISTS art_cache"); $db->do("CREATE TABLE songs (song_id INTEGER PRIMARY KEY AUTOINCREMENT, path VARCHAR(1024) NOT NULL, artist VARCHAR(256), albumartist VARCHAR(256), album VARCHAR(256), title @@ -35,5 +36,8 @@ $db->do("CREATE TABLE playlists (who VARCHAR(256) NOT NULL, playlist_id INTEGER PRIMARY KEY AUTOINCREMENT, title VARCHAR(256) NOT NULL)"); -$db->do("CREATE TABLE playlist_contents (playlist_id INT, song_id INT - , priority INT, UNIQUE(playlist_id,song_id))"); +$db->do("CREATE TABLE playlist_contents (playlist_id INT, song_id INT, + priority INT, UNIQUE(playlist_id,song_id))"); + +$db->do("CREATE TABLE art_cache (artist VARCHAR(256), album VARCHAR(256), title VARCHAR(256), + image BLOB, url VARCHAR(512))"); diff --git a/index2.html b/index2.html index 94be7a8..33f028e 100644 --- a/index2.html +++ b/index2.html @@ -12,8 +12,9 @@ - + +