From afeeeedf157de14202b7bc7a03b55c0a130fecfb Mon Sep 17 00:00:00 2001 From: Markil 3 Date: Wed, 8 Oct 2025 11:14:00 -0600 Subject: [PATCH] Changes the way files names are done. Some readers like this one better. --- comic_download/comic_strip.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/comic_download/comic_strip.py b/comic_download/comic_strip.py index c1c027c..2be9e12 100644 --- a/comic_download/comic_strip.py +++ b/comic_download/comic_strip.py @@ -467,19 +467,19 @@ class ComicStrip(ImageRepo, ABC): :returns: A human-friendly file, like "05 - Riddles in the Dark" or "2025-06-01 - Chapter 5." """ - prefix_num_form = "{:02}" + prefix_num_form = "#{:02}" if type(self.identifier) == int: prefix = prefix_num_form.format(self.identifier) elif (type(self.identifier) == list or type(self.identifier) == tuple) and type(self.identifier[-1]) == int: prefix = prefix_num_form.format(self.identifier[-1]) elif type(self.date) == date: - prefix = self.date.isoformat() + prefix = self.date.strftime("#%Y%m%d") elif type(self.date) == datetime: - prefix = self.date.date().isoformat() + prefix = self.date.date().strftime("#%Y%m%d") else: prefix = self.get_identifier_string() if self.title: - return (prefix + " - " + file_safe_string(self.title))[0:250] + return (file_safe_string(self.comic.title) + " " + prefix + " - " + file_safe_string(self.title))[0:250] else: return prefix