Saving the config appears to work again

This commit is contained in:
Jesse Mullan
2014-10-09 10:51:03 -07:00
parent 6b4fbe002d
commit 0ffbd7824d
32 changed files with 1142 additions and 1856 deletions
+5 -5
View File
@@ -163,17 +163,17 @@
}
<%
if headphones.SONGKICK_FILTER_ENABLED:
if headphones.CFG.SONGKICK_FILTER_ENABLED:
songkick_filter_enabled = "true"
else:
songkick_filter_enabled = "false"
if not headphones.SONGKICK_LOCATION:
if not headphones.CFG.SONGKICK_LOCATION:
songkick_location = "none"
else:
songkick_location = headphones.SONGKICK_LOCATION
songkick_location = headphones.CFG.SONGKICK_LOCATION
if headphones.SONGKICK_ENABLED:
if headphones.CFG.SONGKICK_ENABLED:
songkick_enabled = "true"
else:
songkick_enabled = "false"
@@ -186,7 +186,7 @@
template = '<li><a target="_blank" href="URI"><span class="sk-name">NAME</span><span class="sk-location">LOC</span></a></li>';
$.getJSON("https://api.songkick.com/api/3.0/artists/mbid:${artist['ArtistID']}/calendar.json?apikey=${headphones.SONGKICK_APIKEY}&jsoncallback=?",
$.getJSON("https://api.songkick.com/api/3.0/artists/mbid:${artist['ArtistID']}/calendar.json?apikey=${headphones.CFG.SONGKICK_APIKEY}&jsoncallback=?",
function(data){
if (data['resultsPage'].totalEntries >= 1) {