Commit Graph

117 Commits

Author SHA1 Message Date
Timmy Welch
e3d75997dd Upgrade to python3.10 2025-11-03 17:20:29 -08:00
Timmy Welch
144b3ba370 Display message when a ratelimit is hit 2025-09-18 13:29:24 -07:00
Timmy Welch
e540ebe3a4 Fix tests 2025-08-10 15:36:04 -07:00
Timmy Welch
1b03f6b967 Fix error when no matches are found 2025-08-02 22:28:40 -07:00
Timmy Welch
4ec2e2d11b Fix log formatting
Some checks failed
CI / lint (ubuntu-latest, 3.9) (push) Has been cancelled
CI / build-and-test (macos-13, 3.13) (push) Has been cancelled
CI / build-and-test (macos-13, 3.9) (push) Has been cancelled
CI / build-and-test (macos-14, 3.13) (push) Has been cancelled
CI / build-and-test (macos-14, 3.9) (push) Has been cancelled
CI / build-and-test (ubuntu-22.04, 3.13) (push) Has been cancelled
CI / build-and-test (ubuntu-22.04, 3.9) (push) Has been cancelled
CI / build-and-test (ubuntu-22.04-arm, 3.13) (push) Has been cancelled
CI / build-and-test (ubuntu-22.04-arm, 3.9) (push) Has been cancelled
CI / build-and-test (windows-latest, 3.13) (push) Has been cancelled
CI / build-and-test (windows-latest, 3.9) (push) Has been cancelled
Contributions / A job to automate contrib in readme (push) Has been cancelled
2025-07-17 22:14:58 -07:00
Timmy Welch
bfa9b07016 Use efficient list checks 2025-06-29 17:37:11 -07:00
Timmy Welch
12f1d11ee8 Merge branch 'mizaki/issue_hash_cover' into develop 2025-05-05 00:20:57 -07:00
Timmy Welch
039fd4598d Remove unnecessary log output 2025-05-04 15:32:45 -07:00
Mizaki
bcc677ab12 Use empty string Kind instead of Hash != 0 for hash checking. Remove redundent or for HashImage.URL value 2025-05-03 22:07:28 +01:00
Timmy Welch
165388ce1b Show more options to the user if there are multiple bad matches
Fix some error cases in the comicvine talker
Remove leftover pprint statement
2025-04-30 17:32:05 -07:00
Timmy Welch
b5eba8d715 Fix difference_hash 2025-04-22 21:08:10 -07:00
Mizaki
506fac03c7 Use ImageHash solely 2025-04-17 23:48:53 +01:00
Timmy Welch
575d36b67f Update typing 2025-03-18 19:55:28 -07: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
0048901a61 Remove unused attributes 2024-07-27 19:23:37 -07:00
Timmy Welch
a7a9d38428 Make ImageMetadata a dataclass 2024-07-27 19:23:37 -07:00
Timmy Welch
6b0dca2f51 Remove unnecessary issueidentifier methods 2024-06-21 20:07:55 -07:00
Timmy Welch
3389c72a63 Merge branch 'help-messages' into develop 2024-06-21 19:53:30 -07:00
Timmy Welch
5e6682566f Allow results to include comics in the following year fixes #638 2024-06-08 19:17:42 -07:00
Timmy Welch
e864e2db48 Re-arrange settings 2024-05-21 19:57:47 -07:00
Timmy Welch
37c809db2a Fix crash when no comics are found in the IssueIdentifier 2024-03-16 11:52:14 -07:00
Timmy Welch
22d92e1ded Move result determination out of _cover_matching 2024-02-26 15:38:13 -08:00
Timmy Welch
938f760a37 Remove IssueIdentifier.search 2024-02-23 20:50:17 -08:00
Timmy Welch
4e75731024 Re-write IssueIdentifier.search as IssueIdentifier.identify 2024-02-23 20:47:04 -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
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
9dc6f8914f Upgrade settings to 0.8.0 2023-11-19 23:14:40 -08:00
Mizaki
7527dc4fd8 FIX: A hamming distance of 0 is a perfect match. Adjust to 100 for empty URLs 2023-10-12 22:34:16 +01: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
Mizaki
3119d68ea2 Remove used issue id from get_issue_cover_match_score and fix test 2023-07-18 01:14:32 +01:00
Mizaki
3f180612d3 Return int instead of hex and revert hamming_distance etc. 2023-06-27 22:44:08 +01:00
Mizaki
14a4055040 Add Perceptual Hash computation to imagehasher mirroring https://github.com/JohannesBuchner/imagehash but in pure python 2023-06-26 01:54:26 +01:00
Timmy Welch
783e10a9a1 Generate a namespace object for typing settngs 2023-06-09 16:20:00 -07:00
Mizaki
92e2cb42e8 Replace instances of Comic Vine to use the talker's name 2023-06-01 22:05:14 +01:00
Mizaki
c583f63c8c Attribution for metadata provider on command line 2023-05-14 23:39:23 +01: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
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
7df2e3fdc0 Automatically crop black borders from covers 2022-12-31 11:52:23 -08:00
Timmy Welch
734b83cade Switch comictalker TypedDicts to dataclasses 2022-12-23 01:58:10 -08:00
Timmy Welch
9f00af4bba Change issue id and series id to strings 2022-12-23 00:09:19 -08:00
Timmy Welch
1d9840913a Change all references of volume to series 2022-12-22 10:16:05 -08:00
Timmy Welch
53a0b23230 Collapse formatting 2022-12-15 20:21:53 -08:00
Timmy Welch
9004ee1a6b Merge branch 'settings' into develop 2022-12-15 20:17:50 -08: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