fixed detect now playing bug

This commit is contained in:
Moe Fwacky
2021-07-31 09:18:06 -07:00
committed by GitHub
parent 49b1fd89ab
commit a45b7ba7c6

View File

@@ -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()