Skip to content

Commit

Permalink
feat: specify doku_url by using #force hash
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqzss committed Apr 9, 2024
1 parent e1bb6aa commit d06fa4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dokuWikiDumper/dump/dokuDumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ def print_request(r: requests.Response, *args, **kwargs):
session_monkey.hijack()

std_url = standardizeUrl(url_input)
doku_url = getDokuUrl(std_url, session=session)
# use #force to skip 30X redirection detection
doku_url = getDokuUrl(std_url, session=session) if not std_url.endswith('#force') else std_url[:-len('#force')]

avoidSites(doku_url, session=session)

Expand Down

0 comments on commit d06fa4a

Please sign in to comment.