mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 12:38:49 +00:00
Logging if debug enabled
This commit is contained in:
@@ -643,6 +643,7 @@ var List = {
|
|||||||
Helper.addClass(".exported-list-container", "hide");
|
Helper.addClass(".exported-list-container", "hide");
|
||||||
document.querySelector(".exported-list").insertAdjacentHTML("beforeend", "<a target='_blank' class='btn light exported-playlist exported-spotify-list' href='" + result.permalink_url + "'>" + result.title + "</a>");
|
document.querySelector(".exported-list").insertAdjacentHTML("beforeend", "<a target='_blank' class='btn light exported-playlist exported-spotify-list' href='" + result.permalink_url + "'>" + result.title + "</a>");
|
||||||
Helper.removeClass(".not-exported", "hide");
|
Helper.removeClass(".not-exported", "hide");
|
||||||
|
toast("List exported!");
|
||||||
List.found = [];
|
List.found = [];
|
||||||
List.not_found = [];
|
List.not_found = [];
|
||||||
}).catch(function(error) {
|
}).catch(function(error) {
|
||||||
@@ -682,6 +683,7 @@ var List = {
|
|||||||
}
|
}
|
||||||
title = title.toLowerCase();
|
title = title.toLowerCase();
|
||||||
var id=song.id;
|
var id=song.id;
|
||||||
|
Helper.log(title + " " + _title + " " + similarity(title, _title));
|
||||||
if(similarity(title, _title) > 0.60) {
|
if(similarity(title, _title) > 0.60) {
|
||||||
List.found.push({id: parseInt(song.id)});
|
List.found.push({id: parseInt(song.id)});
|
||||||
isFound = true;
|
isFound = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user