mirror of
https://codeberg.org/hyperreal/archive-fandom-wiki
synced 2024-11-25 09:33:41 +01:00
Refactor
This commit is contained in:
parent
b0498baf8a
commit
56beec24c2
8
afw.py
8
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["<fandom>"])
|
||||
if args["<breezewiki_instance>"]:
|
||||
site.set_breezewiki_instance(args["<breezewiki_instance>"])
|
||||
site.set_breezewiki_url(args["<breezewiki_instance>"])
|
||||
|
||||
site.archive_site()
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
. /venv/bin/activate
|
||||
|
||||
exec /afw "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user