Commit Graph

72 Commits

Author SHA1 Message Date
Timmy Welch
88908691d1 Update most things to use a Tag directly 2025-09-01 18:33:10 -07:00
Timmy Welch
91b5d3ce5d Redesign comic files 2025-09-01 18:33:10 -07:00
Timmy Welch
5e63fd6438 Implement better error handling during renaming 2025-06-29 17:37:11 -07:00
Timmy Welch
653e792bfd Switch to PyQt6 2025-06-18 17:24:37 -07:00
Timmy Welch
c9e368bf3f Speedup ComicArchive access fixes #728
Fix invalid zip test
Removing the check on each file inside of the zip, invalid zip files may still be opened but don't really matter in this case
Cache reading the filename list
Add a list of supported extensions to check first for an archiver
Remove unnecessary calls to rar executable
Fix limiter on integration test
Remove excess processEvents calls
Fix unnecessary calls when inserting into the FileSelectionList
2025-05-02 13:42:01 -07:00
Timmy Welch
8cb1140614 Fix rename of read_all_tags Fixes #659
Fix --skip-existing-tags Fixes #658
2024-06-23 15:09:11 -07:00
Timmy Welch
69a9566f42 Update all references of saved 'matadata' to 'tags' 2024-06-20 16:47:10 -07:00
Timmy Welch
e864e2db48 Re-arrange settings 2024-05-21 19:57:47 -07:00
Mizaki
7383b18924 Warn on read style failure in rename window 2024-05-07 22:08:27 +01:00
Mizaki
6b8b961ff7 Report and/or log overlay tag style read errors 2024-05-06 19:40:38 +01:00
Mizaki
27e3803414 Reverse read styles on load. Missed conversion to overlay_ca_read_style 2024-05-04 20:59:18 +01:00
Mizaki
73269c7c9d Add overlay_ca_read_style method to prevent duplicated code 2024-04-29 00:52:59 +01:00
Mizaki
96bbbe51e7 More load_data_styles to list fixes 2024-04-29 00:46:03 +01:00
Mizaki
003b68b3d3 Renamewindow 2024-04-29 00:45:09 +01:00
Timmy Welch
8b4bf8d51f Allow preserving the original filename when moving 2024-04-27 19:25:33 -07:00
Timmy Welch
a681abb854 Consolidate preparing metadata for save 2024-04-27 15:29:34 -07:00
Timmy Welch
5155762711 Add comicfn2dict as an alternative filename parser 2024-03-03 21:47:31 -08:00
Timmy Welch
999d3eb497 Merge branch 'pre-commit-ci-update-config' into develop 2024-02-06 17:08:43 -08:00
pre-commit-ci[bot]
df762746ec [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-29 17:14:26 +00:00
Timmy Welch
fbe56f4db9 Remove unnecessary dest arguments in settings 2024-01-22 17:00:59 -08:00
Timmy Welch
ae5e246180 Add plugin support for metadata 2023-12-17 21:47:43 -08:00
Timmy Welch
1ff6f1768b Use importlib.resources instead of __file__ 2023-11-25 12:32:50 -08:00
Timmy Welch
9dc6f8914f Upgrade settings to 0.8.0 2023-11-19 23:14:40 -08:00
Timmy Welch
97a24d8d52 Change dialog modality and only center dialog when it is created 2023-10-08 11:59:57 -07:00
Timmy Welch
05e6eaf88e Update setting group names
Make group names presentable to users and add builtin plugins during namespace generation.
Revamp talkeruigenerator.py to use generated group and setting names and remove as much hard-coded strings as possible
Add a --list-plugins commandline option
2023-09-05 03:55:12 -04:00
Timmy Welch
2c3a2566cc Convert ComicIssue into GenericMetadata
I could not find a good reason for ComicIssue to exist other than that
 it had more attributes than GenericMetadata, so it has been replaced.
New attributes for GenericMetadata:
  series_id:        a string uniquely identifying the series to tag_origin
  series_aliases:   alternate series names that are not the canonical name
  title_aliases:    alternate issue titles that are not the canonical name
  alternate_images: a list of urls to alternate cover images

Updated attributes for GenericMetadata:
  genre        -> genres:        str -> list[str]
  comments     -> description:   str -> str
  story_arc    -> story_arcs:    str -> list[str]
  series_group -> series_groups: str -> list[str]
  character    -> characters:    str -> list[str]
  team         -> teams:         str -> list[str]
  location     -> locations:     str -> list[str]
  tag_origin   -> tag_origin:    str -> TagOrigin (tuple[str, str])

ComicSeries has been relocated to the ComicAPI package, currently has no
 usage within ComicAPI.
CreditMetadata has been renamed to Credit and has replaced Credit from
 ComicTalker.
fetch_series has been added to ComicTalker, this is currently only used
 in the GUI when a series is selected and does not already contain the
 needed fields, this function should always be cached.

A new split function has been added to ComicAPI, all uses of split on
 single characters have been updated to use this

cleanup_html and the corresponding setting are now only used in
 ComicTagger proper, for display we want any html directly from the
 upstream. When applying the metadata we then strip the description of
 any html.

A new conversion has been added to the MetadataFormatter:
  j: joins any lists into a string with ', '. Note this is a valid
     operation on strings as well, it will add ', ' in between every
     character.

parse_settings now assigns the given ComicTaggerPaths object to the
 result ensuring that the correct path is always used.
2023-08-02 09:00:04 -07:00
Timmy Welch
783e10a9a1 Generate a namespace object for typing settngs 2023-06-09 16:20:00 -07:00
Timmy Welch
33796aa475 Fix #447 2023-04-06 10:48:40 -07:00
Mizaki
33ea8da5bc Merge branch 'develop' into talker_settings_generator
# Conflicts:
#	comictaggerlib/settingswindow.py
#	comictalker/talkers/comicvine.py
2023-02-21 00:50:06 +00:00
Timmy Welch
2491999a33 Update copyright statements to ComicTagger Authors 2023-02-16 17:23:13 -08:00
Mizaki
83a8d5d5e1 Generate settings tabs for each talker 2023-02-11 01:18:56 +00:00
Timmy Welch
4eb9e008ce Update pre-commit 2023-02-10 00:25:20 -08:00
Timmy Welch
e5b15abf91 clean up talker 2023-02-10 00:23:00 -08:00
Timmy Welch
ad68726e1d Use consistent naming for settings
config: always values
setting: always the definition/description not the value
2023-02-04 11:33:21 -08:00
Timmy Welch
712986ee69 Turn comicapi.archivers.* into plugins 2023-01-12 14:45:49 -08:00
Mizaki
7c735b3555 Fix rename namespace 2023-01-01 02:07:42 +00:00
Timmy Welch
440479da8c Update to settngs 0.3.0
Use the namespace instead of a dictionary
Cleanup setting names
2022-12-15 20:10:35 -08:00
Timmy Welch
103379e548 Split settings out into a separate package 2022-12-14 23:16:54 -08:00
Timmy Welch
ed1df400d8 Add replacement settings 2022-12-06 00:20:21 -08:00
Timmy Welch
19112ac79b Update Settings 2022-12-06 00:20:01 -08:00
Mizaki
8cac2c255f Merge branch 'develop' into infosources
# Conflicts:
#	comictaggerlib/comicvinetalker.py
#	comictaggerlib/coverimagewidget.py
#	comictaggerlib/main.py
#	comictaggerlib/pagebrowser.py
#	comictaggerlib/pagelisteditor.py
#	comictaggerlib/settings.py
#	comictaggerlib/settingswindow.py
2022-10-30 01:31:58 +01:00
Mizaki
561dc28044 Don't proxy talker (really this time). Remove talker custom logging. Move static_options and settings_options to root of class object. Temp hack to keep talker menu genration working until settings revamp. 2022-10-27 23:36:57 +01:00
Timmy Welch
aad83c8c03 Update PyInstaller usage
Switch to rapidfuzz from thefuzz
Add associations to macOS app bundle
2022-10-25 21:48:01 -07:00
Mizaki
21873d3830 Merge branch 'develop' into infosources
# Conflicts:
#	comictaggerlib/autotagstartwindow.py
#	comictaggerlib/cli.py
#	comictalker/talkers/comicvine.py
2022-10-05 01:58:46 +01:00
Mizaki
d37e4607ee After merge. Testing files still to update. 2022-10-04 23:50:55 +01:00
Mizaki
00e95178cd Initial support for multiple comic information sources 2022-10-04 01:08:14 +01:00
Timmy Welch
acaf5ed510 Fix issues with renaming
Stop a crash when renaming
Properly handle replacements on linux/macos
2022-09-17 01:28:26 -07:00
Timmy Welch
94be266e17 Handle the 'primary' key missing in get_primary_credit
Fixes #342
Add better exception handling for the formatter
2022-07-27 23:24:34 -07:00
Timmy Welch
ccb461ae76 Improve rename
Implement rename on ComicArchive
Simplify unique_file with pathlib
Fix issues during renaming and simplify with pathlib
Allow exporting as zip to export 7-zip archives
2022-07-09 23:13:18 -07:00
Timmy Welch
62d927a104 Fix #308
Add null check when loading community_rating
Use iterators instead of while loops
2022-06-05 15:23:20 -07:00