This commit is contained in:
2025-10-23 19:00:49 +02:00
parent 3d5c19939c
commit c81a493fb1
9 changed files with 1225 additions and 131 deletions

View File

@@ -82,17 +82,6 @@ class SerieScanner:
"""Reinitialize the folder dictionary."""
self.folderDict: dict[str, Serie] = {}
def is_null_or_whitespace(self, value: Optional[str]) -> bool:
"""Check if a string is None or whitespace.
Args:
value: String value to check
Returns:
True if string is None or contains only whitespace
"""
return value is None or value.strip() == ""
def get_total_to_scan(self) -> int:
"""Get the total number of folders to scan.
@@ -178,7 +167,8 @@ class SerieScanner:
serie = self.__read_data_from_file(folder)
if (
serie is not None
and not self.is_null_or_whitespace(serie.key)
and serie.key
and serie.key.strip()
):
# Delegate the provider to compare local files with
# remote metadata, yielding missing episodes per