Refactor: Improve movie linking and player logic

Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
Cursor Agent
2025-12-22 22:37:41 +00:00
co-authored by mathieumoran1
parent c207a03f39
commit f655dabc36
3 changed files with 42 additions and 19 deletions
-10
View File
@@ -1935,11 +1935,6 @@ window.onload = async function () {
return;
}
if (!vod_link && !video_src && !video_file && !embed_src) {
showResponse('warning', 'Ajoute au moins une source (VOD / video_src / video_file / embed_src).');
return;
}
try {
const res = await fetch('/api/movies/add', {
method: 'POST',
@@ -2187,11 +2182,6 @@ window.onload = async function () {
return;
}
if (!vod_link && !video_src && !video_file && !embed_src) {
showResponse('warning', 'Ajoute au moins une source (VOD / video_src / video_file / embed_src).');
return;
}
const body = {
imdb_id,
year: yearRaw === '' ? null : year,