add playlist discovery button to channel_id page

This commit is contained in:
simon
2021-11-13 17:35:48 +07:00
parent ac14cd5ebb
commit c3ece970ee
2 changed files with 13 additions and 0 deletions

View File

@@ -187,6 +187,18 @@ function fsRescan() {
toReplace.appendChild(message);
}
function findPlaylists(button) {
var channel_id = button.getAttribute("data-id");
var payload = JSON.stringify({'find-playlists': channel_id});
sendPost(payload);
// clear button
var message = document.createElement('p');
message.innerText = 'Scraping for playlists in progress';
var toReplace = document.getElementById('find-playlists-button');
toReplace.innerHTML = '';
toReplace.appendChild(message);
}
// delete from file system
function deleteConfirm() {
to_show = document.getElementById("delete-button");