Commit Graph
15 Commits
Author SHA1 Message Date
w-e-wandAUTOMATIC1111 757264c453 default_time_format if format is blank 2022-10-26 09:51:32 +03:00
w-e-wandAUTOMATIC1111 91c1e1e6a9 fix default filename pattern 2022-10-25 09:44:54 +03:00
w-e-wandAUTOMATIC1111 df0a1f8381 add hints, [datetime<Format><Time Zone>] 2022-10-24 16:01:48 +03:00
w-e-wandAUTOMATIC1111 0c0028a9d3 UnknownTimeZoneError 2022-10-24 16:01:48 +03:00
w-e-wandAUTOMATIC1111 eb007e5884 use the same datetime object for [date] and [datetime] 2022-10-24 10:28:42 +03:00
w-e-wandAUTOMATIC1111 5a981310e6 replace_datetime() can now accept a datetime parameter 2022-10-24 10:28:42 +03:00
w-e-wandAUTOMATIC1111 8f6af4ed65 remove lowercasing file_decoration as it is not needed anymore 2022-10-24 10:28:42 +03:00
w-e-wandAUTOMATIC1111 00952fb4a8 add sanitize_filename() to datetime 2022-10-24 10:28:42 +03:00
w-e-wandAUTOMATIC1111 480d8e7646 replace "srt.replace()" in apply_filename_pattern() with equivalent re.sub()
the file_decoration passed into apply_filename_pattern() is formatted to lowercase to increase compatibility
the use of case sensitive srt.replace()

but because the newly implemented "time format" is case sensitive
the lowercasing the file_decoration will cause time format to be broken

in order to resolve this issue
I decided to replace every srt.replace() and in if "str" in x to regular expression (case insensitive) equivalent
2022-10-24 10:28:42 +03:00
w-e-wandAUTOMATIC1111 37dd6deafb filename pattern [datetime], extended customizable Format and Time Zone
format:
[datetime]
[datetime<Format>]
[datetime<Format><Time Zone>]
2022-10-24 10:28:42 +03:00
w-e-wandAUTOMATIC1111 7d4a4db9ea modify unnecessary sting assignment as it's going to get overwritten 2022-10-24 10:28:42 +03:00
w-e-wandAUTOMATIC1111 c5d90628a4 move "file_decoration" initialize section
into "if forced_filename is None:"
no need to initialize it if it's not going to be used
2022-10-24 10:28:42 +03:00
w-e-wandAUTOMATIC1111 3be6b29d81 indent=4 config.json 2022-10-24 10:22:48 +03:00
w-e-wandAUTOMATIC1111 696cb33e50 after initial launch, disable --autolaunch for subsequent restarts 2022-10-23 12:34:16 +03:00
w-e-wandAUTOMATIC1111 2f448d97a9 styles.csv encoding utf8 to utf-8-sig
utf-8-bom for better compatibility for some programs
2022-10-18 15:18:51 +03:00