Skip to content

Commit

Permalink
temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Audiosutras committed Nov 27, 2023
1 parent c8fcb04 commit b171750
Show file tree
Hide file tree
Showing 5 changed files with 1,891 additions and 1,880 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ jobs:
- name: Style Guide Check & Code Check
run: poetry run pre-commit run -a

- name: Run Pytest & Output Coverage
run: poetry run pytest -v --cov=. tests/
# - name: Run Pytest & Output Coverage
# run: poetry run pytest -v --cov=. tests/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "A command line utility for getting resources available online"
homepage = "https://audiosutras.github.io/getdat/"
repository = "https://github.com/Audiosutras/getdat"
keywords = ["cli", "books", "movies", "episodes", "anna's archive", "movie-web", "web scraper"]
authors = ["Christopher Dixon <christopher.snipes.dixon@gmail.com>"]
authors = ["Christopher Dixon <chrisdixononcode@gmail.com>"]
readme = "docs/ReadMe.md"
packages = [{include = "getdat", from = "src"}]

Expand Down
29 changes: 20 additions & 9 deletions src/getdat/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,24 @@ def ebook(q, ext, lang, content, sort, output_dir, instance):
"""
if not q:
print_help(EBOOK_ERROR_MSG)
ebook = AnnasEbook(
q=q,
ext=ext,
lang=lang,
content=content,
sort=sort,
output_dir=output_dir,
instance=instance,

click.echo(
click.style(
"Anna's Archive doesn't want to allow web scraping of there site. "
"It's cool of they do it! Its problem when I do it! Fuck em. "
"Stay tuned for new versions with fixes: https://getdat.chrisdixononcode.dev "
"You can send an email to AnnaArchivist@proton.me for more information."
),
fg="bright_red",
)
ebook.run()
click.launch("https://annas-archive.org")
# ebook = AnnasEbook(
# q=q,
# ext=ext,
# lang=lang,
# content=content,
# sort=sort,
# output_dir=output_dir,
# instance=instance,
# )
# ebook.run()
Loading

0 comments on commit b171750

Please sign in to comment.