fix: Resolve isinstance() TypeError and undefined variable errors
Local Docker Build (Dev) / build-dev (push) Successful in 29s

Fixed two critical bugs in NFO processing:

1. isinstance() TypeError: Fixed XML comment detection in update_episode_nfo_preserving_name
   - ET.Comment is not a proper type for isinstance()
   - Added safer comment detection using type checking and string matching

2. Undefined variable: Fixed episode_filename reference in create_episode_nfo
   - Variable only defined in fallback case but referenced in all cases
   - Changed to use nfo_path.name which is always available

These fixes resolve the errors preventing NFO file updates for existing
long-named NFO files.
This commit is contained in:
2025-09-26 08:52:26 -04:00
parent 5810877489
commit e502c3625b
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
1.9.4
1.9.5