Skip to content

Commit fae31b9

Browse files
authored
Fix filenames in Description when uploading TV "[" "]" (Audionut#603)
* Fix LT edit name When audio track has no title it will be an empty dict "Language": {} And raise the error TypeError: unhashable type: 'dict' when it tries to compare it with str * Fix LT edit name replace != {} with isinstance(audio.get('Language'), str) * Fix filenames in Description TV When uploading TV if filenames have '[' or ']' it will mess with the bbcode and show the file name incomplete
1 parent eabc9de commit fae31b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trackers/COMMON.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ async def unit3d_edit_desc(self, meta, tracker, signature, comparison=False, des
548548
if i >= process_limit:
549549
continue
550550
# Extract filename directly from the file path
551-
filename = os.path.splitext(os.path.basename(file.strip()))[0]
551+
filename = os.path.splitext(os.path.basename(file.strip()))[0].replace('[', '').replace(']', '')
552552

553553
# If we are beyond the file limit, add all further files in a spoiler
554554
if multi_screens != 0:

0 commit comments

Comments
 (0)