From 926c0341c6899820c1c472c1d344735a3763b269 Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Fri, 15 Mar 2024 15:20:54 +0000 Subject: [PATCH] ePUB: Use function "pop" instead of "replace". --- slixfeed/action.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slixfeed/action.py b/slixfeed/action.py index 544ae00..a10bc7b 100644 --- a/slixfeed/action.py +++ b/slixfeed/action.py @@ -1410,7 +1410,9 @@ def generate_document(data, url, ext, filename, readability=False): content = data match ext: case "epub": - filename = filename.replace('.epub', '') + filename = filename.split('.') + filename.pop() + filename = '.'.join(filename) error = generate_epub(content, filename) if error: logger.error(error)