1 parent
6c353dcaf8
commit
e06df9c8b0
3 files changed
+10
-10
No files matched your search
@@ -100,10 +100,10 @@ class TVProcessor:
|
||||
_log("ERROR", f"S{season:02d}E{episode:02d}: Database write failed: {e}")
|
||||
# Continue processing other episodes
|
||||
|
||||
# Yield control every 10 episodes to allow other requests (webhooks, web interface)
|
||||
if episode_count % 10 == 0:
|
||||
# Yield control every 3 episodes to allow other requests (webhooks, web interface)
|
||||
if episode_count % 3 == 0:
|
||||
import time
|
||||
time.sleep(0.005) # 5ms yield to improve responsiveness during episode processing
|
||||
time.sleep(0.1) # 100ms 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
|
||||
|
||||
Reference in new issue
Block a user