From 830c1d9ae4838dec17b5933fce4a425bbdc65654 Mon Sep 17 00:00:00 2001 From: SBCrumb Date: Wed, 24 Sep 2025 13:53:52 -0400 Subject: [PATCH] fix: Use tolerant XML parser for TMDB ID detection in NFO files - Replace ET.parse() with _parse_nfo_with_tolerance() in parse_imdb_from_nfo - Handles NFO files with URLs appended after tag - Should resolve For the One (2024) TMDB ID detection issue - NFO had TMDB ID 1339758 but trailing URLs prevented XML parsing --- core/nfo_manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/nfo_manager.py b/core/nfo_manager.py index 1ad3761..fbc1005 100644 --- a/core/nfo_manager.py +++ b/core/nfo_manager.py @@ -56,8 +56,7 @@ class NFOManager: return None try: - tree = ET.parse(nfo_path) - root = tree.getroot() + root = self._parse_nfo_with_tolerance(nfo_path) # Check for ttXXXXXX imdb_uniqueid = root.find('.//uniqueid[@type="imdb"]')