What's Changed
Bug Fix
Fixed incorrect weekend calculation on Friday–Sunday (#96)
When Boxarr was run on Friday afternoon through Sunday, get_weekend_dates() returned the current (incomplete) weekend instead of the last completed one. Since Box Office Mojo doesn't publish weekend data until Monday, this caused empty results and the error:
"No movies found using alternative parsing."
Root cause:
The previous logic only guarded against Friday morning (date.hour < 12). On Friday afternoon, Saturday, and Sunday it would return the current weekend — which has no published data yet.
Fix:
Replaced the fragile hour-based check with a clean weekday guard: if today is Friday, Saturday, or Sunday, always go back to the previous completed Friday–Sunday weekend. This works regardless of time of day.
Tests added:
11 new unit tests covering every day of the week, morning/afternoon edge cases on Friday, ISO week correctness, and midnight time normalization.
Docker Images
ghcr.io/iongpt/boxarr:1.6.4ghcr.io/iongpt/boxarr:latest