mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-03 18:29:32 +01:00
Minor fix to handle empty songkick location on artist.html
This commit is contained in:
@@ -176,7 +176,9 @@
|
||||
songkick_filter_enabled = "false"
|
||||
|
||||
if not headphones.SONGKICK_LOCATION:
|
||||
headphones.SONGKICK_LOCATION = "none"
|
||||
songkick_location = "none"
|
||||
else:
|
||||
songkick_location = headphones.SONGKICK_LOCATION
|
||||
|
||||
if headphones.SONGKICK_ENABLED:
|
||||
songkick_enabled = "true"
|
||||
@@ -197,7 +199,7 @@
|
||||
|
||||
if( ${songkick_filter_enabled} ) {
|
||||
data.resultsPage.results.event = $.grep(data.resultsPage.results.event, function(element,index){
|
||||
return element.venue.metroArea.id == ${headphones.SONGKICK_LOCATION};
|
||||
return element.venue.metroArea.id == ${songkick_location};
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user