remove debugging output

This commit is contained in:
Sundog Jones 2024-09-17 11:02:01 -04:00
parent 41c959892a
commit 87b29fb355
1 changed files with 2 additions and 8 deletions

View File

@ -459,8 +459,6 @@
media_library_target.innerHTML = "";
rows.forEach((row) => {
console.log("Processing media:");
console.dir(row);
const duration = secs_to_human_duration(row['duration_secs']);
const template = document.getElementById("media_item_template");
const template_clone = template.content.firstElementChild.cloneNode(true);
@ -524,11 +522,9 @@
const thisRowEDL = media_item_element.getAttribute("data-edl-definition");
const edl_id = media_item_element.getAttribute("data-edl-id");
const edl_name = media_item_element.getAttribute("data-edl-name");
console.log("EDL for media:");
console.dir(thisRowEDL);
if (thisRowEDL && thisRowEDL !== "") {
edl = JSON.parse(thisRowEDL);
console.dir(edl);
edl.inserts.forEach((insert) => {
const current_timecode = insert;
const template = document.getElementById("media_item_edl_insert_listitem");
@ -626,14 +622,12 @@
payload.edl_definition = JSON.stringify(edl_definition);
payload.edl_name = edl_name || "default"; // TODO: handle this better once we have multiple EDL support
if (edl_id) payload.edl_id = edl_id;
console.log("preparing to save edl:");
console.dir(payload);
fetch(api_url, {
method: "POST",
body: JSON.stringify(payload)
})
.then((response) => {
console.log("received response from edl_save_button");
if (response.ok) {
response.json().then((payload) => {
// TODO: repopulate based on returned data