Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vidiots date fixes #2894

Merged
merged 8 commits into from
Dec 7, 2024
6 changes: 3 additions & 3 deletions apps/vidiotscalendar/vidiots_calendar.star
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Applet: Vidiots Calendar
Summary: Showtimes for Vidiots (LA)
Description: Movie showtimes for the next 7 days at Vidiots in Los Angeles, CA.
Description: Movie showtimes for Vidiots theater in Los Angeles, CA.
Author: Buzz Andersen
"""

Expand Down Expand Up @@ -83,8 +83,8 @@ def parse_movie_html(html_body, date_limit_duration):
showtime_extra_text = showtime.children_filtered(".extra").text().strip()
showtime_text = showtime.text().replace("\n", "").replace("\t", "").replace(showtime_extra_text, "").strip()

is_past = (date.month < date_now.month) or ((date.month == date_now.month) and (date.day < date_now.day))
is_beyond_limit = (date.month > date_limit.month) or ((date.month == date_limit.month) and (date.day > date_limit.day))
is_past = date.unix < date_now.unix
is_beyond_limit = date.unix > date_limit.unix

if is_past == False and is_beyond_limit == False:
if valid_dates.get(epoch) == None:
Expand Down
Loading