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