diff --git a/README.md b/README.md index 523d089..633f4c4 100644 --- a/README.md +++ b/README.md @@ -208,6 +208,14 @@ curl -X POST "http://localhost:8080/bulk/update" | `/api/v1/metrics/errors` | GET | Error metrics and recent failures | | `/api/v1/metrics/system` | GET | System resource metrics | +#### **Database Management** +| Endpoint | Method | Purpose | +|----------|--------|---------| +| `/database/backfill/movie-release-dates` | POST | Backfill missing release dates for existing movies | +| `/database/cleanup/orphaned-episodes` | POST | Delete episodes without video files | +| `/database/cleanup/orphaned-movies` | POST | Delete movies without video files | +| `/database/cleanup/orphaned-series` | POST | Delete TV series without directories | + #### **Configuration & Debugging** | Endpoint | Method | Purpose | |----------|--------|---------| diff --git a/VERSION b/VERSION index bc02b86..c959dfb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.6.11 +2.6.12 diff --git a/processors/tv_series_processor.py b/processors/tv_series_processor.py index a5d3c81..c30189a 100644 --- a/processors/tv_series_processor.py +++ b/processors/tv_series_processor.py @@ -263,9 +263,11 @@ class TVSeriesProcessor: if episode_id: import_date = self.sonarr.get_episode_import_history(episode_id) if import_date: - dateadded = convert_utc_to_local(import_date) + # Sonarr import dates are already in local timezone despite 'Z' suffix + # Remove 'Z' and use as-is to avoid double timezone conversion + dateadded = import_date.replace('Z', '') if 'Z' in import_date else import_date source = "sonarr:history.import" - _log("INFO", f"Found import date for S{season_num:02d}E{episode_num:02d}: {dateadded}") + _log("INFO", f"Found import date for S{season_num:02d}E{episode_num:02d}: {dateadded} (no timezone conversion)") return aired, dateadded, source # Fallback to airdate if no import history