diff --git a/data/interfaces/default/album.html b/data/interfaces/default/album.html
index 7dde799d..6af0459d 100644
--- a/data/interfaces/default/album.html
+++ b/data/interfaces/default/album.html
@@ -1,5 +1,5 @@
<%inherit file="base.html" />
-<%!
+<%!
from headphones import db, helpers
myDB = db.DBConnection()
%>
@@ -16,7 +16,32 @@
%else:
- %endif
+ %endif
+
+
+
+ <%
+ alternate_albums = myDB.select("SELECT * from allalbums WHERE AlbumID=?", [album['AlbumID']])
+ %>
+ %if not alternate_albums:
+
No alternate releases found. Try refreshing the artist (if the artist is being refreshed, please wait until it's finished)
+
+ %else:
+ %for alternate_album in alternate_albums:
+ <%
+ track_count = len(myDB.select("SELECT * from alltracks WHERE ReleaseID=?", [alternate_album['ReleaseID']]))
+ have_track_count = len(myDB.select("SELECT * from alltracks WHERE ReleaseID=? AND Location IS NOT NULL", [alternate_album['ReleaseID']]))
+ if alternate_album['AlbumID'] == alternate_album['ReleaseID']:
+ alternate_album_name = "Headphones Default Release [" + str(have_track_count) + "/" + str(track_count) + " tracks]"
+ else:
+ alternate_album_name = alternate_album['AlbumTitle'] + " (" + alternate_album['ReleaseCountry'] + ", " + alternate_album['ReleaseFormat'] + ") [" + str(have_track_count) + "/" + str(track_count) + " tracks]"
+
+ %>
+
${alternate_album_name}
+ %endfor
+ %endif
+
+
« Back to ${album['ArtistName']}
@@ -82,7 +107,7 @@
trackduration = 'n/a'
if not track['Format']:
- format = 'Unknown'
+ format = ''
else:
format = track['Format']
%>
@@ -143,9 +168,14 @@
getInfo(elem,id,'album');
}
- $(document).ready(function() {
- getAlbumInfo();
- getAlbumArt();
+ function initThisPage() {
+ $('#album_chooser').click(function() {
+ $('#dialog').dialog();
+ return false;
+ });
+ $('#refresh_artist').click(function() {
+ $('#dialog').dialog("close");
+ });
initActions();
setTimeout(function(){
initFancybox();
@@ -155,8 +185,15 @@
"aaSorting": [],
"bFilter": false,
"bInfo": false,
- "bPaginate": false
- });
+ "bPaginate": false,
+ "bDestroy": true
+ });
+ };
+
+ $(document).ready(function() {
+ getAlbumInfo();
+ getAlbumArt();
+ initThisPage();
});
diff --git a/data/interfaces/default/artist.html b/data/interfaces/default/artist.html
index 1e00b281..b0d8af05 100644
--- a/data/interfaces/default/artist.html
+++ b/data/interfaces/default/artist.html
@@ -182,7 +182,6 @@
showMsg("Getting artist information",true);
%endif
getArtistArt();
- getArtistBio();
getAlbumArt();
$('#album_table').dataTable({
"bDestroy": true,
@@ -220,6 +219,7 @@
$(document).ready(function() {
initActions();
initThisPage();
+ getArtistBio();
});
diff --git a/data/interfaces/default/config.html b/data/interfaces/default/config.html
index 216e4eb6..3dfa2420 100644
--- a/data/interfaces/default/config.html
+++ b/data/interfaces/default/config.html
@@ -342,10 +342,15 @@ m<%inherit file="base.html"/>
-
+
e.g. /Users/name/Music/iTunes or /Volumes/share/music
+
+
+
+ Set this if you have a separate directory for lossless music
+
@@ -379,8 +384,14 @@ m<%inherit file="base.html"/>
+
-
+
+
+
+
+
+
<%
if config['encoder'] == 'lame':
lameselect = 'selected="selected"'
diff --git a/data/interfaces/default/js/script.js b/data/interfaces/default/js/script.js
index b1ac046d..e021074b 100644
--- a/data/interfaces/default/js/script.js
+++ b/data/interfaces/default/js/script.js
@@ -144,6 +144,7 @@ function initConfigCheckbox(elem) {
function initActions() {
$("#subhead_menu #menu_link_refresh").button({ icons: { primary: "ui-icon-refresh" } });
$("#subhead_menu #menu_link_edit").button({ icons: { primary: "ui-icon-pencil" } });
+ $("#subhead_menu .menu_link_edit").button({ icons: { primary: "ui-icon-pencil" } });
$("#subhead_menu #menu_link_delete" ).button({ icons: { primary: "ui-icon-trash" } });
$("#subhead_menu #menu_link_pauze").button({ icons: { primary: "ui-icon-pause"} });
$("#subhead_menu #menu_link_resume").button({ icons: { primary: "ui-icon-play"} });
@@ -256,7 +257,7 @@ function doAjaxCall(url,elem,reload,form) {
var dataError = $(elem).data('error');
if (typeof dataError === "undefined") {
// Standard Message when variable is not set
- var dataError = "There was a error";
+ var dataError = "There was an error";
}
// Get Success & Error message from inline data, else use standard message
var succesMsg = $("" + dataSucces + "
");
diff --git a/data/interfaces/default/manage.html b/data/interfaces/default/manage.html
index ed62e445..19cc9ac4 100644
--- a/data/interfaces/default/manage.html
+++ b/data/interfaces/default/manage.html
@@ -6,10 +6,21 @@
<%def name="headerIncludes()">
@@ -95,6 +106,10 @@
<%def name="javascriptIncludes()">