ppf: reset stale_count when content hash changes

This commit is contained in:
Username
2025-12-22 00:05:06 +01:00
parent f382a4ab6a
commit 267035802a

3
ppf.py
View File

@@ -150,7 +150,8 @@ class Leechered(threading.Thread):
self.status = 'ok'
return
# Content changed or first fetch - proceed with normal processing
# Content changed or first fetch - reset stale_count, proceed with normal processing
self.stale_count = 0
self.proxylist = [ proxy for proxy in unique if not fetch.is_known_proxy(proxy) ]
proxy_count = len(self.proxylist)