From a45b7ba7c67ef6d89cd6b55e84dd52adff0b5824 Mon Sep 17 00:00:00 2001 From: Moe Fwacky Date: Sat, 31 Jul 2021 09:18:06 -0700 Subject: [PATCH] fixed detect now playing bug --- both-dir/PseudoChannel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/both-dir/PseudoChannel.py b/both-dir/PseudoChannel.py index 9a4ada3..ae8fd55 100644 --- a/both-dir/PseudoChannel.py +++ b/both-dir/PseudoChannel.py @@ -1914,9 +1914,9 @@ if __name__ == '__main__': #dates_list = [datetime.datetime.strptime(''.join(str(date[8])), pseudo_channel.APP_TIME_FORMAT_STR) for date in daily_schedule] now = datetime.datetime.now() - #now = now.replace(year=1900, month=1, day=1) + now = now.replace(year=1900, month=1, day=1) #closest_media = nearest(dates_list, now) - #print closest_media + #print(closest_media) prevItem = None db = PseudoChannelDatabase("pseudo-channel.db") item = db.get_now_playing()