diff --git a/data/interfaces/default/album.html b/data/interfaces/default/album.html index bf52cc56..4da9323a 100644 --- a/data/interfaces/default/album.html +++ b/data/interfaces/default/album.html @@ -51,7 +51,7 @@
- +

${album['AlbumTitle']}

diff --git a/data/interfaces/default/artist.html b/data/interfaces/default/artist.html index ba40cb49..e891b1fa 100644 --- a/data/interfaces/default/artist.html +++ b/data/interfaces/default/artist.html @@ -122,7 +122,7 @@ %> - + ${album['AlbumTitle']} ${album['ReleaseDate']} ${album['Type']} diff --git a/data/interfaces/default/index.html b/data/interfaces/default/index.html index 9148e578..d31d94c7 100644 --- a/data/interfaces/default/index.html +++ b/data/interfaces/default/index.html @@ -35,7 +35,7 @@ "aTargets": [ 0 ], "mData":"ArtistID", "mRender": function ( data, type, full ) { - return '
'; + return '
'; } }, { diff --git a/data/interfaces/default/logs.html b/data/interfaces/default/logs.html index ca45712c..0f3fb8e5 100644 --- a/data/interfaces/default/logs.html +++ b/data/interfaces/default/logs.html @@ -45,6 +45,8 @@ $(document).ready(function() { "bServerSide": true, "sAjaxSource": 'getLog', "sPaginationType": "full_numbers", + "aaSorting": [[0, 'desc']], + "iDisplayLength": 25, "bStateSave": true, "oLanguage": { "sSearch":"", @@ -93,4 +95,4 @@ $(document).ready(function() { } } - \ No newline at end of file + diff --git a/data/interfaces/default/manageartists.html b/data/interfaces/default/manageartists.html index d1956d3c..d447a2c2 100644 --- a/data/interfaces/default/manageartists.html +++ b/data/interfaces/default/manageartists.html @@ -66,7 +66,7 @@ %> -
+
${artist['ArtistName']} ${artist['Status']} ${albumdisplay} diff --git a/data/interfaces/default/upcoming.html b/data/interfaces/default/upcoming.html index 585ac39b..25841069 100644 --- a/data/interfaces/default/upcoming.html +++ b/data/interfaces/default/upcoming.html @@ -40,7 +40,7 @@ %for album in wanted: - + ${album['ArtistName']} ${album['AlbumTitle']} ${album['ReleaseDate']} @@ -70,7 +70,7 @@ %for album in upcoming: - + ${album['ArtistName']} ${album['AlbumTitle']} ${album['ReleaseDate']} diff --git a/headphones/db.py b/headphones/db.py index 985f6b72..871b7c99 100644 --- a/headphones/db.py +++ b/headphones/db.py @@ -33,6 +33,9 @@ db_lock = threading.Lock() def dbFilename(filename="headphones.db"): return os.path.join(headphones.DATA_DIR, filename) + +def getCacheSize(): + return int(headphones.CACHE_SIZEMB) class DBConnection: @@ -45,7 +48,7 @@ class DBConnection: #journal disabled since we never do rollbacks self.connection.execute("PRAGMA journal_mode = OFF") #64mb of cache memory,probably need to make it user configurable - self.connection.execute("PRAGMA cache_size=-%s" % (headphones.CACHE_SIZEMB*1024)) + self.connection.execute("PRAGMA cache_size=-%s" % (getCacheSize()*1024)) self.connection.row_factory = sqlite3.Row def action(self, query, args=None):