style: clean up prose

This commit is contained in:
imSp4rky
2026-08-19 13:45:58 -06:00
parent 54adb82746
commit 29d0828c33
40 changed files with 109 additions and 110 deletions
+2 -2
View File
@@ -431,7 +431,7 @@ def validate_enrichments(
tmdb_votes[provider_name] = ext.tmdb_id
if len(set(tmdb_votes.values())) <= 1:
return enrichments # all agree or only one voted — no conflict
return enrichments # all agree or only one voted, no conflict
value_counts = Counter(tmdb_votes.values())
most_common_val, most_common_count = value_counts.most_common(1)[0]
@@ -439,7 +439,7 @@ def validate_enrichments(
if most_common_count > 1:
anchor_tmdb_id = most_common_val
else:
# No majority — pick the most authoritative provider
# No majority, so pick the most authoritative provider
best_provider = min(
tmdb_votes.keys(),
key=lambda name: authority.get(name, 99),
+1 -1
View File
@@ -206,7 +206,7 @@ class TVDBProvider(MetadataProvider):
return cached
episodes: list[dict] = []
for page in range(20): # ponytail: hard page cap, 500 eps/page covers any real series
for page in range(20):
data = self.api_get(f"/series/{tvdb_id}/episodes/{order}", {"page": page})
if data is None and page:
# a partial listing would renumber episodes wrongly