From 940544577a68383e543c1aa5a122a52e0b5499fe Mon Sep 17 00:00:00 2001 From: whilenot Date: Sun, 30 Apr 2023 13:37:08 +0200 Subject: [PATCH] don't mutate meta into a str, keep it a namedtuple --- cps/uploader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/uploader.py b/cps/uploader.py index 3cd7b21a..c5556481 100644 --- a/cps/uploader.py +++ b/cps/uploader.py @@ -88,7 +88,7 @@ def process(tmp_file_path, original_file_name, original_file_extension, rarExecu log.warning('cannot parse metadata, using default: %s', ex) if not meta.title.strip(): - meta = original_file_name + meta = meta._replace(title=original_file_name) if not meta.author.strip() or meta.author.lower() == 'unknown': meta = meta._replace(author=_('Unknown')) return meta