Skip to content

Commit

Permalink
Vidiots date fixes (#2894)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldandersen authored Dec 7, 2024
1 parent a1790ae commit 4e5c304
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 4e5c304

Please sign in to comment.