Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Oct 8, 2024
1 parent 2a8d8bd commit 6ab854f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
python -m pip install ruff
python -m ruff check .
python -m ruff format --diff .
- uses: crate-ci/typos@v1.24.1
- uses: crate-ci/typos@v1.26.0
4 changes: 2 additions & 2 deletions metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def get_asin_etc(data: "ParseJobData", set_en_lang: bool = False) -> None:
update_lang = True
book_lang = "en"
if update_asin or update_lang:
yj_book = update_kfx_metedata(data.book_path, data.asin, book_lang)
yj_book = update_kfx_metadata(data.book_path, data.asin, book_lang)
data.kfx_json = json.loads(yj_book.convert_to_json_content())["data"]
elif data.book_fmt != "EPUB":
from calibre.ebooks.metadata.mobi import MetadataUpdater
Expand Down Expand Up @@ -232,7 +232,7 @@ def extract_mobi(book_path: str) -> bytes:
return html


def update_kfx_metedata(book_path: str, asin: str, lang: str) -> Any:
def update_kfx_metadata(book_path: str, asin: str, lang: str) -> Any:
from calibre_plugins.kfx_input.kfxlib import YJ_Book, YJ_Metadata

yj_book = YJ_Book(book_path)
Expand Down

0 comments on commit 6ab854f

Please # to comment.