Skip to content

Commit

Permalink
TagOrigin to MetadataOrigin
Browse files Browse the repository at this point in the history
  • Loading branch information
mizaki committed Jun 22, 2024
1 parent 56c57a0 commit 6f2483b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mangaupdates_talker/mangaupdates.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,18 @@
import pathlib
import re
import time
from typing import Any, Callable, cast
from typing import Any, Callable, TypedDict, cast
from urllib.parse import urljoin

import requests
import settngs
from comicapi import utils
from comicapi.genericmetadata import ComicSeries, GenericMetadata, TagOrigin
from comicapi.genericmetadata import ComicSeries, GenericMetadata, MetadataOrigin
from comictalker import talker_utils
from comictalker.comiccacher import ComicCacher
from comictalker.comiccacher import Series as CCSeries
from comictalker.comictalker import ComicTalker, TalkerDataError, TalkerNetworkError
from pyrate_limiter import Duration, Limiter, RequestRate
from typing_extensions import TypedDict

logger = logging.getLogger(f"comictalker.{__name__}")

Expand Down Expand Up @@ -601,7 +600,7 @@ def fetch_issues_by_series_issue_num_and_year(

def _map_comic_issue_to_metadata(self, series: MUSeries) -> GenericMetadata:
md = GenericMetadata(
tag_origin=TagOrigin(self.id, self.name),
data_origin=MetadataOrigin(self.id, self.name),
series_id=utils.xlate(series["series_id"]),
issue_id=utils.xlate(series["series_id"]),
)
Expand Down
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
black>=22
build
flake8==4.*
flake8-black
flake8-encodings
Expand All @@ -8,4 +9,5 @@ isort>=5.10
pytest==7.*
setuptools>=42
setuptools_scm[toml]>=3.4
tox
wheel

0 comments on commit 6f2483b

Please sign in to comment.