diff --git a/layout.html b/layout.html index 5639fde..b87df76 100755 --- a/layout.html +++ b/layout.html @@ -473,6 +473,8 @@ thisRow.setAttribute("data-season", row['season']); thisRow.setAttribute("data-episode-number", row['episode_number']); thisRow.setAttribute("data-duration", row['duration_secs']); + if (row['edl_id']) thisRow.setAttribute("data-edl-id", row['edl_id']); + if (row['edl_name']) thisRow.setAttribute("data-edl-name", row['edl_name']); if (row['edl_definition'] !== null) { const edl = JSON.parse(row['edl_definition']); thisRow.setAttribute("data-inpoint", edl.inpoint); @@ -520,6 +522,8 @@ // populate EDL if it exists 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 !== "") { @@ -555,6 +559,7 @@ } }); }); + const edl_insert_button = document.getElementById("media_item_edl_add_insert_button"); edl_insert_button.addEventListener("click", (e) => { e.preventDefault();