Commit Graph

760 Commits

Author SHA1 Message Date
Timmy Welch
bfe005cb63 Merge branch 'fixSerialization' into develop 2022-04-19 14:55:50 -07:00
Timmy Welch
48c2e91f7e Fix pip reference 2022-04-19 14:49:14 -07:00
Timmy Welch
02f365b93f Fix Makefile
make check now uses a venv
make CI uses the environment
Fix rar test
2022-04-19 14:45:36 -07:00
Timmy Welch
d78c3e3039 Fix serialization errors
Add tests to ensure issue is fixed
Add make check
Add pytest to make CI
2022-04-19 13:16:33 -07:00
Timmy Welch
f18513fd0e Fix Template help 2022-04-19 00:44:29 -07:00
Timmy Welch
caa94c4e28 Merge branch 'Renaming' into develop 2022-04-18 22:56:49 -07:00
Timmy Welch
7037877a77 Add a strict mode to file renaming
Strict renaming removes all reserved names and characters regardless
 of operating system, with out strict mode only for the current
 Operating System
Add more edge cases to smart cleanup
Add more tests for file renaming
2022-04-18 22:55:13 -07:00
Timmy Welch
6cccf22d54 Allow switching between old and new rename templates
Show a message dialog explaining that there is a new template format
Add a dynamic label to show the effect of a rename
Add tests for FileRenamer
Remove the filename parameter from the determine_name function
2022-04-18 20:12:20 -07:00
Timmy Welch
ceb2b2861e Merge branch 'filename_tests' into develop 2022-04-18 20:11:06 -07:00
Timmy Welch
298f50cb45 Merge branch 'configDir' into develop 2022-04-18 20:10:50 -07:00
Timmy Welch
e616aa8373 Merge branch 'CodeCleanup' into develop 2022-04-18 20:10:08 -07:00
Timmy Welch
0fe881df59 Code cleanup 2022-04-18 19:40:04 -07:00
Timmy Welch
f3f48ea958 Add the ability to specify a config directory 2022-04-18 19:08:38 -07:00
Timmy Welch
9a9d36dc65 Add more tests for parsing filenames 2022-04-18 19:06:09 -07:00
Timmy Welch
028b728d82 Improve file renaming
Moves to Python format strings for renaming, handles directory
structures, moving of files to a destination directory, sanitizes
file paths with pathvalidate and takes a different approach to
smart filename cleanup using the Python string.Formatter class

Moving to Python format strings means we can point to python
documentation for syntax and all we have to do is document the
properties and types that are attached to the GenericMetadata class.

Switching to pathvalidate allows comictagger to more simply handle both
directories and symbols in filenames.

The only changes to the string.Formatter class is:
1. format_field returns
an empty string if the value is none or an empty string regardless of
the format specifier.
2. _vformat drops the previous literal text if the field value
is an empty string and lstrips the following literal text of closing
special characters.
2022-04-18 18:52:53 -07:00
Timmy Welch
23f323f52d Add filename tests 2022-04-15 02:46:57 -07:00
Timmy Welch
49210e67c5 Fix rar_support variable 2022-04-14 16:25:25 -07:00
Timmy Welch
e519bf79be Merge branch 'MichaelFitzurka-feature/263-pages-keyboard' into develop 2022-04-14 16:23:51 -07:00
Timmy Welch
4f08610a28 Fix CI 2022-04-14 13:16:51 -07:00
MichaelFitzurka
544bdcb4e3 Using shortcuts and actions. 2022-04-14 12:22:53 -04:00
lordwelch
f3095144f5 Merge branch 'feature/149-add-tests' into develop 2022-04-12 15:20:58 -07:00
Timmy Welch
75f31c7cb2 Merge branch 'fileEncoding' into develop 2022-04-11 18:02:26 -07:00
Timmy Welch
f7f4e41c95 Catch exception when displaying raw tags 2022-04-11 17:16:07 -07:00
Timmy Welch
6da177471b Fix #242
Fix file encoding inconsistencies, windows defaults to cp1252, which is
not Unicode compatible.
Add logging for all exceptions in the comicapi package
Ensure that all exceptions are logged and shown to the user
2022-04-11 14:52:41 -07:00
MichaelFitzurka
8a74e5b02b Keyboard commands for the Pages tab to make editing easier. 2022-04-10 18:10:09 -04:00
Timmy Welch
5658f261b0 Merge branch 'MichaelFitzurka-feature/m-age-rating' into develop 2022-04-10 11:05:06 -07:00
Timmy Welch
6da3bf764e Merge branch 'feature/m-age-rating' of https://github.com/MichaelFitzurka/comictagger into MichaelFitzurka-feature/m-age-rating 2022-04-10 11:04:48 -07:00
Timmy Welch
5e06d35057 Merge branch 'feature/253-recalc-page-dims' of https://github.com/MichaelFitzurka/comictagger into MichaelFitzurka-feature/253-recalc-page-dims 2022-04-10 11:00:10 -07:00
Timmy Welch
82bcc876b3 Merge branch 'MichaelFitzurka-feature/183-comment-html-fix' into develop 2022-04-10 10:59:40 -07:00
Timmy Welch
d7a6882577 Merge branch 'feature/183-comment-html-fix' of https://github.com/MichaelFitzurka/comictagger into MichaelFitzurka-feature/183-comment-html-fix 2022-04-10 10:59:00 -07:00
Timmy Welch
5e7e1b1513 Merge branch 'MichaelFitzurka-feature/246-dbl-page' into develop 2022-04-10 10:57:46 -07:00
Timmy Welch
cd9a02c255 Merge branch 'feature/246-dbl-page' of https://github.com/MichaelFitzurka/comictagger into MichaelFitzurka-feature/246-dbl-page 2022-04-10 10:54:49 -07:00
Timmy Welch
b47f816dd5 Merge branch 'abuchanan920-develop' into develop 2022-04-10 10:50:41 -07:00
MichaelFitzurka
d1a649c0ba Adding "M" age rating for 2.0 schema 2022-04-06 11:49:54 -04:00
MichaelFitzurka
b7759506fe Menu command to clear out page size,height,width on demand, to then recalculate on save. 2022-04-05 16:23:26 -04:00
MichaelFitzurka
97777d61d2 Fixing some HTML to comment translations. 2022-04-05 16:16:27 -04:00
MichaelFitzurka
e622b56dae Adding attribs to ImageMetadata class. 2022-04-05 11:23:18 -04:00
abuchanan920
a24251e5b4
Merge branch 'comictagger:develop' into develop 2022-04-05 10:38:36 -04:00
abuchanan920
d4470a2015
Use more idiomatic regular expression string
Co-authored-by: Timmy Welch <timmy@narnian.us>
2022-04-05 10:37:33 -04:00
Michael Fitzurka
d37022b71f
Merge branch 'comictagger:develop' into feature/246-dbl-page 2022-04-05 09:59:20 -04:00
MichaelFitzurka
5f38241bcb Double Page functionality. 2022-04-05 09:52:59 -04:00
Timmy Welch
4fb9461491 Stop a crash when the logs folder already exists 2022-04-05 00:58:19 -07:00
Andrew W. Buchanan
c9b5bd625f Fix parsing of filenames that end with an ID such as [__######__] 2022-04-04 22:34:31 -04:00
Timmy Welch
558072a330 Create the logs folder before attempting to use it 2022-04-04 19:28:38 -07:00
Timmy Welch
26fa7eeabb Merge branch 'logging' into develop 2022-04-04 19:16:54 -07:00
Timmy Welch
c50cef568e Add basic logging 2022-04-04 19:10:22 -07:00
Timmy Welch
2db80399a6 Merge branch 'MichaelFitzurka-feature/247-empty-tags' into develop 2022-04-04 14:16:29 -07:00
MichaelFitzurka
4936c31c18 black changed some single quotes to double quotes. 2022-04-04 16:36:46 -04:00
MichaelFitzurka
ada88d719f Empty metadata should not assign an empty tag. 2022-04-03 16:50:27 -04:00
MichaelFitzurka
1b28623fe3 Bookmark functionality. Fixes #212. 2022-04-03 15:44:20 -04:00