From 2c15d50bff7347299cb871c89ec3449228d71929 Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Sat, 18 Apr 2026 18:12:39 -0700 Subject: [PATCH] Fix metadata enhancement crash when album_info is None Playlist and single track downloads pass None as album_info to _enhance_file_metadata. The downstream _extract_spotify_metadata called .get() on it without a null guard, crashing with AttributeError. --- web_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web_server.py b/web_server.py index d58133b5..d4bbf0c8 100644 --- a/web_server.py +++ b/web_server.py @@ -19078,6 +19078,8 @@ def _generate_lrc_file(file_path: str, context: dict, artist: dict, album_info: def _extract_spotify_metadata(context: dict, artist: dict, album_info: dict) -> dict: """Extracts a comprehensive metadata dictionary from the provided context.""" metadata = {} + if album_info is None: + album_info = {} original_search = context.get("original_search_result", {}) spotify_album = context.get("spotify_album")