From 56beec24c28425e682b8ff96bfefc5201817395a Mon Sep 17 00:00:00 2001 From: Jeffrey Serio <23226432+hyperreal64@users.noreply.github.com> Date: Sat, 27 Jul 2024 11:39:12 -0500 Subject: [PATCH] Refactor --- afw.py | 8 ++++---- entrypoint.sh | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/afw.py b/afw.py index 4daf65c..11fc034 100755 --- a/afw.py +++ b/afw.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """archive-fandom-wiki @@ -10,7 +10,7 @@ Options: -h --help Show this help message. Examples: - afw dishonored https://breezewiki.nirn.quest + afw dishonored https://breezewiki.hyperreal.coffee afw residentevil """ @@ -43,7 +43,7 @@ class FandomWiki: def __init__(self, name: str): self.name = name self.canonical_url = f"https://{name}.fandom.com" - self.breezewiki_url = "https://breezewiki.nirn.quest" + self.breezewiki_url = "https://breezewiki.hyperreal.coffee" self.site_dir = Path(f"{name}.fandom.com") self.images_dir = self.site_dir.joinpath("images") @@ -239,6 +239,6 @@ if __name__ == "__main__": site = FandomWiki(args[""]) if args[""]: - site.set_breezewiki_instance(args[""]) + site.set_breezewiki_url(args[""]) site.archive_site() diff --git a/entrypoint.sh b/entrypoint.sh index 4beb108..1640e4b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,7 @@ set -e +# shellcheck disable=SC1091 . /venv/bin/activate exec /afw "$@"