Fix setting airtime timezone for "Wanted" episodes during auto search.

This commit is contained in:
Prinz23 2023-06-06 02:05:39 +01:00 committed by JackDandy
parent b17ea1d319
commit 6df46175f2
2 changed files with 10 additions and 7 deletions

View file

@ -1,6 +1,7 @@
### 3.29.4 (2023-06-07 13:45:00 UTC)
* Change allow Python 3.8.17, 3.9.17, 3.10.12
* Fix setting airtime timezone for "Wanted" episodes during auto search
### 3.29.3 (2023-05-31 13:30:00 UTC)

View file

@ -467,13 +467,15 @@ class RecentSearchQueueItem(generic_queue.QueueItem):
continue
try:
end_time = network_timezones.get_episode_time(cur_result['airdate'],
cur_result['airtime'] or show_obj.airs,
show_obj.network,
show_obj.timezone,
cur_result['timestamp'],
cur_result['network'],
cur_result['timezone']
end_time = network_timezones.get_episode_time(d=cur_result['airdate'],
t=show_obj.airs,
show_network=show_obj.network,
show_airtime=show_obj.airtime,
show_timezone=show_obj.timezone,
ep_timestamp=cur_result['timestamp'],
ep_network=cur_result['network'],
ep_airtime=cur_result['airtime'],
ep_timezone=cur_result['timezone']
)
end_time += datetime.timedelta(minutes=helpers.try_int(cur_result['runtime'] or show_obj.runtime, 60))