fix: smart fix date issues
Local Docker Build (Dev) / build-dev (push) Successful in 4s

This commit is contained in:
2025-10-14 15:53:11 -04:00
parent 212e51e54f
commit 00f2b77bfb
2 changed files with 10 additions and 4 deletions
+9
View File
@@ -522,7 +522,9 @@ function refreshReport() {
// Smart fix functions
async function smartFixMovie(imdbId) {
try {
console.log('🔍 SMART FIX: Loading options for movie', imdbId);
const options = await apiCall(`/api/movies/${imdbId}/date-options`);
console.log('🔍 SMART FIX: Received options:', options);
showSmartFixModal('movie', options);
} catch (error) {
console.error('Failed to load movie options:', error);
@@ -541,10 +543,17 @@ async function smartFixEpisode(imdbId, season, episode) {
}
function showSmartFixModal(mediaType, options) {
console.log('🔍 SMART FIX: Showing modal for', mediaType, 'with options:', options);
const modal = document.getElementById('smart-fix-modal');
const title = document.getElementById('smart-fix-title');
const content = document.getElementById('smart-fix-content');
if (!modal || !title || !content) {
console.error('❌ SMART FIX: Modal elements not found!', {modal, title, content});
return;
}
if (mediaType === 'movie') {
title.textContent = `Fix Date for Movie: ${options.imdb_id}`;
} else {