Skip to content

Commit

Permalink
Merge pull request #1937 from dipu-bd/dev
Browse files Browse the repository at this point in the history
Version 3.2.6
  • Loading branch information
dipu-bd authored Apr 10, 2023
2 parents c07d0f8 + d896279 commit bcbc3b3
Show file tree
Hide file tree
Showing 11 changed files with 350 additions and 350 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/index-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
if: github.repository == 'dipu-bd/lightnovel-crawler'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python 3.10
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: '3.10'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Check VERSION file
run: |
[ "${GITHUB_REF##*/}" == "v$(head -n 1 lncrawl/VERSION)" ] || exit 100
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -55,9 +55,9 @@ jobs:
- name: Install OpenSSL
run: choco install -y --no-progress openssl

- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: '3.10'

Expand Down Expand Up @@ -86,9 +86,9 @@ jobs:
name: Linux Build & Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: '3.10'

Expand Down
662 changes: 331 additions & 331 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lncrawl/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.5
3.2.6
6 changes: 3 additions & 3 deletions lncrawl/binders/epub.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ def bind_epub_book(
suffix: str, # suffix to the file name
no_suffix_after_filename: bool = False,
is_rtl: bool = False,
novel_language: str = "en",
language: str = "en",
):
logger.info("Binding epub for %s", book_title)

logger.debug("Creating EpubBook instance")
book = epub.EpubBook()
book.set_language(novel_language)
book.set_language(language)
book.set_title(book_title)
book.add_author(novel_author)
book.add_metadata('DC', 'description', novel_synopsis)
Expand Down Expand Up @@ -235,7 +235,7 @@ def make_epubs(app, data: Dict[str, List[Chapter]]) -> List[str]:
novel_author=app.crawler.novel_author or app.crawler.home_url,
novel_url=app.crawler.novel_url,
novel_synopsis=app.crawler.novel_synopsis,
novel_language=app.crawler.novel_language,
language=app.crawler.language,
novel_tags=app.crawler.novel_tags,
output_path=app.output_path,
book_cover=app.book_cover,
Expand Down
2 changes: 1 addition & 1 deletion lncrawl/bots/console/resume_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def load_session_from_metadata(meta: MetaInfo) -> App:
app.crawler.volumes = meta.novel.volumes
app.crawler.chapters = meta.novel.chapters
app.crawler.is_rtl = meta.novel.is_rtl
app.crawler.novel_language = meta.novel.language
app.crawler.language = meta.novel.language
app.crawler.novel_synopsis = meta.novel.synopsis
app.crawler.novel_tags = meta.novel.novel_tags

Expand Down
2 changes: 1 addition & 1 deletion lncrawl/core/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Crawler(Scraper):
has_manga = False
has_mtl = False
base_url: List[str]
novel_language = ""
language = ""

# ------------------------------------------------------------------------- #
# Constructor & Destructors
Expand Down
2 changes: 1 addition & 1 deletion lncrawl/core/novel_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def save_metadata(app, completed=False):
authors=[x.strip() for x in app.crawler.novel_author.split(",")],
cover_url=app.crawler.novel_cover,
synopsis=app.crawler.novel_synopsis,
language=app.crawler.novel_language,
language=app.crawler.language,
novel_tags=app.crawler.novel_tags,
volumes=app.crawler.volumes,
chapters=[Chapter.without_body(chap) for chap in app.crawler.chapters],
Expand Down
2 changes: 1 addition & 1 deletion lncrawl/core/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def __import_crawlers(file_path: Path) -> List[Type[Crawler]]:
raise LNException(f"Should be callable: {method} @{file_path}")

setattr(crawler, "base_url", urls)
setattr(crawler, "novel_language", language_code)
setattr(crawler, "language", language_code)
setattr(crawler, "file_path", str(file_path.absolute()))

crawlers.append(crawler)
Expand Down
2 changes: 1 addition & 1 deletion sources/_index.json

Large diffs are not rendered by default.

0 comments on commit bcbc3b3

Please sign in to comment.