Commit Graph

856 Commits

Author SHA1 Message Date
Mizaki
c5ad75370f Work around having to scrape alt covers from CV. Use cache to get issue page url for scrape. 2022-10-24 16:30:58 +01:00
Mizaki
d23258f359 Change ComicVolume, ComicIssue to image_url and image_thumb_url. Add/change search/volume DB layout to remove duplication of data. Fixup some test. 2022-10-23 22:40:15 +01:00
Mizaki
c9cd58fecb Remove fetch_issue_cover_urls and async_fetch_issue_cover_urls. Reduce API calls by using data already available with coverimagewidget. 2022-10-22 01:43:56 +01:00
Mizaki
fb1616aaa1 Remove CV parse date. Strings names. 2022-10-20 00:32:40 +01:00
Mizaki
4be12d857d Reuse CV test data in comic_issue_result data. Cover possible empty volume data in get_volume_issues_info. 2022-10-19 23:30:11 +01:00
Mizaki
e1ab72ec2a Rename super_url to image_url in comiccacher. Merge fetch_issue_data_by_issue_id into fetch_comic_data. Fill comic volume info in comiccacher:get_volume_issues_info 2022-10-19 19:33:51 +01:00
Mizaki
8a8dea8aa4 Fix autotagstartwindow.ui missed from merge. 2022-10-15 23:36:52 +01:00
Mizaki
43464724bd Convert all start_year to int. 2022-10-15 23:20:50 +01:00
Mizaki
34163fe9d7 Update the comicvine_api fixture in conftest.py to actually return the comicvinetalker. 2022-10-15 02:02:10 +01:00
Mizaki
9aa29f1445 Merge fetch_issue_data and fetch_volume_data to fetch_comic_data. 2022-10-14 01:10:46 +01:00
Mizaki
3ea44b7ca7 Remove fetch_issue_page_url from comictalker etc. 2022-10-12 23:08:47 +01:00
Mizaki
c1c8f4eb6e black 2022-10-12 00:11:57 +01:00
Mizaki
a14c24a78a Fix for issueidentifier_test 2022-10-11 16:52:41 +01:00
Mizaki
18d861a2be More test fixes that may need to be looked at further. 2022-10-09 23:43:52 +01:00
Mizaki
ac15a4dd72 More test fixes. 2022-10-06 01:14:03 +01:00
Mizaki
6a98afb89c After second merge. 2022-10-06 00:34:32 +01: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
Timmy Welch
2daf9b3ed8
Style and typo fixes 2022-10-04 16:15:55 -07:00
Timmy Welch
a6d55cd21a
Update MetadataFormatter
Several custom conversions (the s in {title!s}) have been created
u - str.upper()
l - str.casefold()
S - str.swapcase()
t - str.title()
c - str.Capitalize()

A new syntax has been added '{title+str}' and '{title-str}':
The + indicates an alternate value.
The - indicates a default value.

If the title of a comic is not set then
'{title-str}' will output 'str'
and
'{title+str} will output ''

If the title of a comic is 'hello' then
'{title+str}' will output 'str'
and
'{title-str}' will output 'hello'
2022-10-04 16:15:20 -07: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
4034123e6d
Fix rar tests again 2022-10-02 21:47:07 -07:00
Timmy Welch
5587bfac31
Fix rar tests 2022-10-02 21:13:26 -07:00
Timmy Welch
4b6d35fd3a
Fix CBL tagging 2022-10-02 19:33:12 -07:00
Timmy Welch
3cf75cf2ec
Update importlib_matadata usage and requirements 2022-09-19 22:54:48 -07:00
Timmy Welch
30dbe758d4
Fix windows tests 2022-09-19 22:52:45 -07:00
Timmy Welch
55384790f8
Forcefully raise an OSError on windows 2022-09-17 01:59:15 -07: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
d213db3129
Use correct syntax for pips --no-binary flag 2022-09-15 22:09:04 -07:00
Timmy Welch
6a717377df
Automatically set release name from tag message 2022-09-10 22:35:30 -07:00
Timmy Welch
904561fb8e
Merge branch 'pyicu' into develop 2022-09-10 21:48:04 -07:00
Timmy Welch
be6b71dec7
Put unix specific commands in OS specific blocks 2022-09-10 21:11:48 -07:00
Timmy Welch
63b654a173
Update ci to install pyicu 2022-09-10 19:51:26 -07:00
Timmy Welch
bc25acde9f
Fix sorting
Switch natsort to use os_sorted
Remove directories when returning a list of files in a comic
Update tests to account for '!cover.jpg'
2022-09-10 19:48:50 -07:00
Timmy Welch
03677ce4b8 Fix renaming
Make ComicArchive.path always absolute
Fix unique_file not preserving the extension
Fix incorrect output when renaming in CLI mode
Fix handling of platform when renaming
2022-08-19 20:20:37 -07:00
Timmy Welch
535afcb4c6 Fix replacements 2022-08-19 19:59:58 -07:00
Timmy Welch
06255f7848 Perform replacements on literal text and format values 2022-08-18 13:48:23 -07:00
Timmy Welch
00e649bb4c Move colon handling when renaming to the MetadataFormatter class
Fixes #356
2022-08-17 16:16:38 -07:00
Timmy Welch
078f569ec6 Fix codeblock in README.md 2022-08-14 10:51:08 -07:00
Timmy Welch
315cf7d920
Merge pull request #355 from Xav83/patch-1
Adds the Chocolatey package as a way to install ComicTagger
2022-08-14 10:47:24 -07:00
Timmy Welch
e9cc6a16a8
Note that @Xav83 is the maintainer of the chocolatey package
Co-authored-by: Xavier Jouvenot <x.jouvenot@gmail.com>
2022-08-14 10:45:51 -07:00
Xavier Jouvenot
26eb6985fe
Adds the Chocolatey package as a way to install ComicTagger
Adds the Chocolatey package in the list of possibilities to install ComicTagger
2022-08-13 11:52:09 +02:00
Timmy Welch
be983c61bc Fix #353
The two primary cases fixed are:
Ms. Marvel
spider-man/deadpool

The first issue removed 'Ms.' which is a problem as many comics have
series that the only difference in the title is the
designation/honorific.

The second issue is that the '/' was removed and not replaced with
anything causing a search for 'mandeadpool' which will not show useful
results.

Consequently all designations/honorifics are now untouched
All punctuation is replaced with a space
2022-08-12 07:10:36 -07:00
Timmy Welch
77a53a6834 Update dependencies
Includes changes from pyupgrade
2022-08-10 20:55:46 -07:00
Timmy Welch
860a3147d2 Construct URL correctly 2022-08-10 16:33:40 -07:00
Timmy Welch
8ecb87fa26 Install all optional dependencies in CI 2022-08-08 19:10:57 -07:00
Timmy Welch
f17f560705 Fix tests on windows
Make the speedup dependency to thefuzz optional it requires a C compiler
2022-08-08 19:03:25 -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
Timmy Welch
e07fe9e8d1 Construct URLs more consistently 2022-07-29 22:05:22 -07:00
Timmy Welch
f2a68d6c8b Fix rename and add test 2022-07-29 22:05:03 -07:00