Commit Graph

90 Commits

Author SHA1 Message Date
timmy 5bc44650d6 Change --only-set-cv-key to --only-save-config 2023-09-05 03:56:56 -04:00
timmy 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 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 31cf687e2f Reduce startup time 2023-06-22 20:11:40 -07:00
timmy 783e10a9a1 Generate a namespace object for typing settngs 2023-06-09 16:20:00 -07:00
timmy e70c47d12a Make PyICU optional
Update README.md
2023-04-23 00:48:11 -07:00
timmy c1aba269a9 Revert "Make PyICU optional"
This reverts commit bf55037690.
2023-04-22 21:28:14 -07:00
timmy bf55037690 Make PyICU optional
Fix more locale issues
Update README.md
2023-04-18 21:03:50 -07:00
timmy fb83863654 Update plugin settings
Make "runtime" a persistent group, allows normalizing without losing validation
Simplify archiver setting generation
Generate options for setting a url and key for all talkers
Return validated talker settings
Require that the talker id must match the entry point name
Add api_url and api_key as default attributes on talkers
Add default handling of api_url and api_key to register_settings
Update settngs to 0.6.2 to be able to add settings to a group and
  use the display_name attribute
Error if no talkers are loaded
Update talker entry point to comictagger.talker
2023-02-20 16:02:15 -08:00
timmy 2491999a33 Update copyright statements to ComicTagger Authors 2023-02-16 17:23:13 -08:00
timmy e5b15abf91 clean up talker 2023-02-10 00:23:00 -08:00
timmy 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 d987a811e3 Consolidate plugin code 2023-02-03 20:13:58 -08:00
Mizaki d12325b7f8 Simplify parse_settings. Prefix talker_ to group name. Add back setting CV key via commandline. Other small changes as requested. 2023-02-02 00:53:13 +00:00
Mizaki 94aabcdd40 Merge branch 'develop' into talker_settings
# Conflicts:
#	comictaggerlib/ctoptions/__init__.py
#	comictaggerlib/main.py
#	comictalker/talkers/comicvine.py
2023-02-01 23:38:13 +00:00
timmy 7c4e5b775b Merge branch 'plugableArchivers' into develop 2023-01-31 19:44:07 -08:00
timmy 46899255c8 Generate settings for an archivers executable 2023-01-30 21:36:47 -08:00
Mizaki 6a650514fa Rename new settings talker methods. Move parse_settings for talkers to earlier and only pass talkers own settings. 2023-01-30 01:59:23 +00:00
Mizaki 0f10e6e848 Create simple dict of talkers with objects. Moved thresh setting back to talkers (general) as it is called outside of talker. 2023-01-26 00:52:02 +00:00
Mizaki 0d69ba3c49 Rename talkers_general to talkers. Moved plugin option register to own file. Due to chicken and egg, first get talker classes then create objects. 2023-01-25 19:10:58 +00:00
timmy 92eb79df71 Fix console_scripts entry point 2023-01-21 00:27:39 -08:00
Mizaki 100e0f2101 Load plugins in init. 2023-01-15 17:38:50 +00:00
timmy f6698f7f0a Call load_archive_plugins in ComicArchive __init__ 2023-01-12 17:00:11 -08:00
timmy 712986ee69 Turn comicapi.archivers.* into plugins 2023-01-12 14:45:49 -08:00
timmy 80f42fdc3f Move log header to execute immediately after the log is configured 2023-01-12 14:43:12 -08:00
Mizaki fad103a7ad Use setting option for talker selection 2023-01-07 00:29:12 +00:00
Mizaki 2d8c47edca Use new settings system for plugin 2023-01-02 01:04:15 +00:00
timmy 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 e5c3692bb9 Fail if an error occurs when loading settings 2022-12-15 18:58:53 -08:00
timmy 103379e548 Split settings out into a separate package 2022-12-14 23:16:54 -08:00
timmy 9aff3ae38e Generalize settings
Add comments and docstrings
Create parent directories when saving
Add merging to normalize_options
Change get_option to return if the value is the default value
2022-12-06 00:22:49 -08:00
timmy 3f6f8540c4 Fix wait_and_retry_on_rate_limit 2022-12-06 00:20:27 -08:00
timmy 17d865b72f Refactor cli.py into a class 2022-12-06 00:20:26 -08:00
timmy 82d737407f Simplify --only-set-cv-key 2022-12-06 00:20:20 -08:00
timmy d0719e7201 Fix log dir 2022-12-06 00:20:18 -08:00
timmy 19112ac79b Update Settings 2022-12-06 00:20:01 -08:00
timmy fc4eb4f002 Cleanup
Move most options passed in to ComicVineTalker to ComicTalker
Give ComicCacher and ComicTalker a version argument to remove all
  references to comictaggerlib
Update default arguments to reflect what is required to use these classes
2022-11-25 19:22:01 -08:00
timmy 0dede72692 Re-add --only-set-cv-key feature 2022-11-25 19:21:58 -08:00
timmy 83ac9f91b5 Make errors loading the ComicVineTalker object explicit 2022-11-25 19:21:57 -08:00
timmy 91b863fcb1 Merge branch 'mizaki-infosources' into dev 2022-11-25 19:21:25 -08:00
timmy e5f6a7d1d6 Add warning about settings 2022-11-25 17:09:22 -08:00
timmy c608ff80a1 Improve typing 2022-11-22 17:11:56 -08:00
Mizaki 093d20a52b Remove all the cool settings changes. 2022-11-18 23:18:41 +00:00
Mizaki dfef425af3 Better handle missing talkers and default to comic vine. 2022-11-10 17:03:39 +00: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 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