diff --git a/public/control.html b/public/control.html
index f18a600..681c9f0 100644
--- a/public/control.html
+++ b/public/control.html
@@ -418,6 +418,7 @@
| Sel. |
+ ID |
Titre |
Player |
Catégorie |
@@ -426,7 +427,7 @@
+
+
Movie ID
+
+ —
+
+
+
+
diff --git a/public/js/app_control.js b/public/js/app_control.js
index 947f26e..f8e511e 100644
--- a/public/js/app_control.js
+++ b/public/js/app_control.js
@@ -98,6 +98,8 @@ window.onload = async function () {
const saveMovieChangesBtn = document.getElementById('save-movie-changes');
const editMovieIdEl = document.getElementById('edit_movie_id');
+ const editMovieIdLabelEl = document.getElementById('edit_movie_id_label');
+ const copyMovieIdBtn = document.getElementById('copy-movie-id');
const editImdbIdEl = document.getElementById('edit_imdb_id');
const editYearEl = document.getElementById('edit_year');
const editCategoryEl = document.getElementById('edit_category');
@@ -145,6 +147,17 @@ window.onload = async function () {
.replace(/'/g, ''');
}
+ async function copyToClipboard(text) {
+ const t = String(text || '').trim();
+ if (!t) return false;
+ try {
+ await navigator.clipboard.writeText(t);
+ return true;
+ } catch (_) {
+ return false;
+ }
+ }
+
function sanitizeHtml(raw) {
const html = String(raw || '');
const withoutScripts = html.replace(/