web: fix for unresponsive web interface
Local Docker Build (Dev) / build-dev (push) Successful in 4s
Local Docker Build (Dev) / build-dev (push) Successful in 4s
This commit is contained in:
@@ -97,9 +97,9 @@ class TVProcessor:
|
||||
|
||||
# Yield control every 10 episodes to allow other requests (webhooks, web interface)
|
||||
if episode_count % 10 == 0:
|
||||
# Note: Since this is sync method, we can't use asyncio.sleep()
|
||||
# This will require making process_series async or adding yield points in caller
|
||||
pass
|
||||
import time
|
||||
time.sleep(0.005) # 5ms yield to improve responsiveness during episode processing
|
||||
_log("DEBUG", f"Processed {episode_count} episodes, yielding to allow other requests...")
|
||||
|
||||
# Skip season.nfo and tvshow.nfo creation - focus only on episode NFOs
|
||||
pass
|
||||
@@ -258,7 +258,7 @@ class TVProcessor:
|
||||
if filter_set and (season, episode_num) not in filter_set:
|
||||
continue
|
||||
|
||||
if season > 0 and episode_num > 0:
|
||||
if season >= 0 and episode_num > 0:
|
||||
episodes_processed += 1
|
||||
|
||||
# Get basic episode info
|
||||
@@ -707,7 +707,7 @@ class TVProcessor:
|
||||
season = episode.get('seasonNumber', 0)
|
||||
episode_num = episode.get('episodeNumber', 0)
|
||||
|
||||
if season > 0 and episode_num > 0:
|
||||
if season >= 0 and episode_num > 0:
|
||||
episode_map[(season, episode_num)] = episode
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user