edl integration work
This commit is contained in:
parent
0515548b4a
commit
863d89b6bc
@ -473,6 +473,8 @@
|
|||||||
thisRow.setAttribute("data-season", row['season']);
|
thisRow.setAttribute("data-season", row['season']);
|
||||||
thisRow.setAttribute("data-episode-number", row['episode_number']);
|
thisRow.setAttribute("data-episode-number", row['episode_number']);
|
||||||
thisRow.setAttribute("data-duration", row['duration_secs']);
|
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) {
|
if (row['edl_definition'] !== null) {
|
||||||
const edl = JSON.parse(row['edl_definition']);
|
const edl = JSON.parse(row['edl_definition']);
|
||||||
thisRow.setAttribute("data-inpoint", edl.inpoint);
|
thisRow.setAttribute("data-inpoint", edl.inpoint);
|
||||||
@ -520,6 +522,8 @@
|
|||||||
|
|
||||||
// populate EDL if it exists
|
// populate EDL if it exists
|
||||||
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_name = media_item_element.getAttribute("data-edl-name");
|
||||||
console.log("EDL for media:");
|
console.log("EDL for media:");
|
||||||
console.dir(thisRowEDL);
|
console.dir(thisRowEDL);
|
||||||
if (thisRowEDL && thisRowEDL !== "") {
|
if (thisRowEDL && thisRowEDL !== "") {
|
||||||
@ -555,6 +559,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
const edl_insert_button = document.getElementById("media_item_edl_add_insert_button");
|
const edl_insert_button = document.getElementById("media_item_edl_add_insert_button");
|
||||||
edl_insert_button.addEventListener("click", (e) => {
|
edl_insert_button.addEventListener("click", (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user