Ignore playlist errors; normalize version cache

When downloading playlists, add --ignore-errors and --no-abort-on-error so a single failure won't stop the entire playlist download. Also normalize values stored in the version cache: coerce version_info to a string (or empty string) and path to a string or None to ensure consistent types when reading/writing cached tool metadata.
This commit is contained in:
oop7
2026-05-14 12:37:56 +03:00
parent ba07a3300c
commit 99ba5d6d8a
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -94,8 +94,8 @@ def update_version_cache(tool_name: str, version_info: str, path: Optional[str],
current_mtime: float = get_file_mtime(path)
_version_cache[tool_name] = {
"version": version_info,
"path": path,
"version": str(version_info) if version_info else "",
"path": str(path) if path else None,
"last_check": current_time,
"path_mtime": current_mtime,
}