Commit Graph

77 Commits

Author SHA1 Message Date
Timmy Welch
91b5d3ce5d Redesign comic files 2025-09-01 18:33:10 -07:00
Timmy Welch
9137cee3cd Fix edgecases with filerenaming
Add warnings in gui for sub-optimal rename templates
Fix using lists when renaming
Explicitly disallow fields starting with `_`
Mark credit roles with prefix `credit_` so that values will properly
  return None for unkown roles
Add `credit_item_` prefix to allow direct usage of the credit class

Make filename tests more readable
2025-08-10 19:42:40 -07:00
Timmy Welch
bfa9b07016 Use efficient list checks 2025-06-29 17:37:11 -07:00
Kijaru
38e7789c7b Add support for GTIN identifier 2025-05-17 11:54:59 +02:00
Timmy Welch
12f1d11ee8 Merge branch 'mizaki/issue_hash_cover' into develop 2025-05-05 00:20:57 -07:00
Mizaki
506fac03c7 Use ImageHash solely 2025-04-17 23:48:53 +01:00
Timmy Welch
803768b33a Allow recording the original hash 2025-03-02 12:32:40 -08:00
Mizaki
a0be90bbf5 Add URL to ImageHash and use in issue window 2025-02-28 16:55:56 +00:00
Mizaki
d2499f6bae Add ImageHash support for alternate_urls 2025-02-23 18:11:40 -08:00
Mizaki
c3f5badc7d Use source hashes for cover matching 2025-02-11 01:03:12 +00:00
Timmy Welch
0fa329ca75 Add language to Credit in ComicAPI 2024-12-06 23:09:25 -08:00
Timmy Welch
ffdf7d71e1 Fix tests 2024-08-16 12:50:14 -07:00
Timmy Welch
2d4d10e31d Add comment on a python oddity 2024-07-27 19:26:09 -07:00
Timmy Welch
a7a9d38428 Make ImageMetadata a dataclass 2024-07-27 19:23:37 -07:00
Timmy Welch
f10ceb3216 Fix duplicate items in credits and pages when merging metadata 2024-07-27 15:45:03 -07:00
Timmy Welch
3fd1c13ecb Fixes for metadata parsing and printing 2024-06-22 20:19:02 -07:00
Timmy Welch
6ab3a89a35 Improvements to filerenamer and filename parsing 2024-06-21 20:07:07 -07:00
Timmy Welch
3389c72a63 Merge branch 'help-messages' into develop 2024-06-21 19:53:30 -07:00
Timmy Welch
69a9566f42 Update all references of saved 'matadata' to 'tags' 2024-06-20 16:47:10 -07:00
Timmy Welch
d0312e050b Fix page handling 2024-06-09 13:40:42 -07:00
Mizaki
a40438d38c Separate list merge into a separate option (lordwelch) 2024-05-11 16:42:24 +01:00
Mizaki
3d443e0908 lordwelch rewrite 2024-05-11 02:04:43 +01:00
Mizaki
2faac18597 norm_fold out of loop for add_credit. Explicit overlay mode for CLI metadata. 2024-05-11 02:02:01 +01:00
Mizaki
8b0683f67c Add OverlayMode options for read style and data source 2024-05-11 01:56:06 +01:00
Timmy Welch
8bcd51f49b Improve commandline metadata override
Change parse_metadata_from_string to yaml syntax
Add a special value to remove existing values when metadata is overlayed
2024-04-06 12:03:01 -07:00
Timmy Welch
de084ffff9 Fix string value of GenericMetadata 2024-04-06 12:02:21 -07:00
Timmy Welch
3df263858d Merge branch 'web-links' into develop 2024-03-09 13:42:29 -08:00
Timmy Welch
27e70b966f Export translator_synonyms 2024-02-18 21:39:27 -08:00
Timmy Welch
44e9a47a8b Support multiple web_links 2024-02-17 17:42:07 -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
dda0cb521a Add more credit synonyms 2024-01-21 15:06:34 -08:00
Timmy Welch
539aac1307 Fix clearing lists via the '-m' option Fixes #587 2024-01-14 13:38:11 -08:00
Timmy Welch
ceb3b30e5c Always apply the default page list when writing metadata 2023-12-20 21:24:12 -08:00
Timmy Welch
9c231d7e11 Add better page info handling
Rename set_default_page_list to apply_default_page_list and apply
 during read_metadata
Add a filename attribute to the ImageMetadata class
Mark image_index as required
Always sort the page name list, a comic application will never need the
 unsorted list of names
Assign the first result from get_cover_page_index_list to coverImage in
 CoMet tags
Allow an Archiver to be passed to the ComicArchive constructor
2023-12-18 02:37:34 -08:00
Timmy Welch
ae5e246180 Add plugin support for metadata 2023-12-17 21:47:43 -08:00
Timmy Welch
45643cc594 Add integration tests 2023-12-17 16:24:32 -08:00
Timmy Welch
bb67ab009e Ensure that all output goes through a logger before output to the user
Adds an option to output json for CLI options
2023-12-17 15:51:43 -08:00
Timmy Welch
10b19606e0 Fix GenericMetadata __str__ 2023-11-05 21:36:29 -08:00
Timmy Welch
f250d2c5c3 Merge branch 'mizaki-gmd_list_set' into develop 2023-10-04 20:16:33 -07:00
Mizaki
058651cc29 Change metadata lists to sets. Changed CV talker to reflect and tidied 2023-09-24 14:33:57 +01:00
Mizaki
5874f3bcaf Remove genres from ComicSeries as it is no longer required with the new cache system 2023-09-22 23:15:04 +01:00
Timmy Welch
e832b19f2f Fix attribute names 2023-09-03 15:12:06 -07: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
14fa70e608 Separate xlate into separate functions based on return type fixes #454 2023-04-25 15:55:27 -07:00
Timmy Welch
2491999a33 Update copyright statements to ComicTagger Authors 2023-02-16 17:23:13 -08:00
Timmy Welch
4eb9e008ce Update pre-commit 2023-02-10 00:25:20 -08:00
Timmy Welch
9f00af4bba Change issue id and series id to strings 2022-12-23 00:09:19 -08:00
Timmy Welch
c608ff80a1 Improve typing 2022-11-22 17:11:56 -08:00
Timmy Welch
d55d75cd79 Append notes instead of overwriting them
Add issue_id to GenericMetadata
2022-11-04 15:39:40 -07:00
Timmy Welch
aadeb07c49 Fix issues
Refactor add_to_path with tests
Fix type hints for titles_match
Use casefold in get_language
Fix using the recursive flag in cli mode
Add http status code to ComicVine exceptions
Fix parenthesis getting removed when renaming
Add more tests
2022-08-08 18:05:06 -07:00