Skip to content

Commit 4257d2d

Browse files
Remove Marvel/Esak
1 parent cb2f07f commit 4257d2d

File tree

10 files changed

+51
-473
lines changed

10 files changed

+51
-473
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.14.4
3+
rev: v0.14.5
44
hooks:
55
- id: ruff-format
66
- id: ruff-check
7-
- repo: https://github.com/executablebooks/mdformat
7+
- repo: https://github.com/hukkin/mdformat
88
rev: 1.0.0
99
hooks:
1010
- id: mdformat
1111
additional_dependencies:
1212
- mdformat-gfm
13-
- mdformat-tables
13+
- mdformat-ruff
1414
args:
1515
- --number
1616
- --wrap=keep

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ Unlike other tagging tools, Perdoo employs a manual approach when metadata files
8484
## Services
8585

8686
- [Comicvine](https://comicvine.gamespot.com) using the [Simyan](https://github.com/Metron-Project/Simyan) library.
87-
- [Marvel](https://www.marvel.com/comics) using the [Esak](https://github.com/Metron-Project/Esak) library.
8887
- [Metron](https://metron.cloud) using the [Mokkari](https://github.com/Metron-Project/Mokkari) library.
8988

9089
## File Renaming and Organization
@@ -168,15 +167,11 @@ single_issue = ""
168167
trade_paperback = ""
169168

170169
[services]
171-
order = ["Metron", "Marvel", "Comicvine"]
170+
order = ["Metron", "Comicvine"]
172171

173172
[services.comicvine]
174173
api_key = "<Comicvine API Key>"
175174

176-
[services.marvel]
177-
public_key = "<Marvel Public Key>"
178-
private_key = "<Marvel Private Key>"
179-
180175
[services.metron]
181176
username = "<Metron Username>"
182177
password = "<Metron Password>"
@@ -219,7 +214,7 @@ password = "<Metron Password>"
219214
The order in which the services will be used for metadata retrieval.
220215
Metadata will be fetched from the first service that returns a result.
221216
Don't include the service name in the list if you don't want to use it.
222-
Defaults to `["Metron", "Marvel", "Comicvine"]`, options are `Metron`, `Marvel` and `Comicvine`.
217+
Defaults to `["Metron", "Comicvine"]`, options are `Metron` and `Comicvine`.
223218

224219
## Socials
225220

perdoo/__main__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from perdoo.metadata import ComicInfo, MetronInfo
1616
from perdoo.metadata.comic_info import Page
1717
from perdoo.metadata.metron_info import Id, InformationSource
18-
from perdoo.services import BaseService, Comicvine, Marvel, Metron
18+
from perdoo.services import BaseService, Comicvine, Metron
1919
from perdoo.settings import Service, Services, Settings
2020
from perdoo.utils import (
2121
IssueSearch,
@@ -63,8 +63,6 @@ def get_services(settings: Services) -> dict[Service, BaseService]:
6363
output = {}
6464
if settings.comicvine.api_key:
6565
output[Service.COMICVINE] = Comicvine(settings.comicvine)
66-
if settings.marvel.public_key and settings.marvel.private_key:
67-
output[Service.MARVEL] = Marvel(settings.marvel)
6866
if settings.metron.username and settings.metron.password:
6967
output[Service.METRON] = Metron(settings.metron)
7068
return output
@@ -94,13 +92,11 @@ def _create_search_from_metron(metron_info: MetronInfo) -> Search:
9492
volume=metron_info.series.volume,
9593
year=metron_info.series.start_year,
9694
comicvine=series_id if source == InformationSource.COMIC_VINE else None,
97-
marvel=series_id if source == InformationSource.MARVEL else None,
9895
metron=series_id if source == InformationSource.METRON else None,
9996
),
10097
issue=IssueSearch(
10198
number=metron_info.number,
10299
comicvine=_get_id_value(metron_info.ids, InformationSource.COMIC_VINE),
103-
marvel=_get_id_value(metron_info.ids, InformationSource.MARVEL),
104100
metron=_get_id_value(metron_info.ids, InformationSource.METRON),
105101
),
106102
)

perdoo/services/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
__all__ = ["BaseService", "Comicvine", "Marvel", "Metron"]
1+
__all__ = ["BaseService", "Comicvine", "Metron"]
22

33
from perdoo.services._base import BaseService
44
from perdoo.services.comicvine import Comicvine
5-
from perdoo.services.marvel import Marvel
65
from perdoo.services.metron import Metron

perdoo/services/marvel.py

Lines changed: 0 additions & 289 deletions
This file was deleted.

0 commit comments

Comments
 (0)