From 54e0b438888a89b8afacb909aae4681c706851c3 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Tue, 13 Feb 2024 15:03:51 +0800 Subject: [PATCH] Improve redirection --- Whatsapp_Chat_Exporter/__main__.py | 6 +++--- docs.html | 19 +++++++++++++++++++ filter.html | 12 ------------ 3 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 docs.html delete mode 100644 filter.html diff --git a/Whatsapp_Chat_Exporter/__main__.py b/Whatsapp_Chat_Exporter/__main__.py index c315623..51ba319 100644 --- a/Whatsapp_Chat_Exporter/__main__.py +++ b/Whatsapp_Chat_Exporter/__main__.py @@ -288,17 +288,17 @@ def main(): elif args.iphone: args.filter_date = f"<= {_timestamp - APPLE_TIME}" else: - print("Unsupported date format. See https://wts.knugi.dev/filter.html") + print("Unsupported date format. See https://wts.knugi.dev/docs?dest=date") exit(1) if args.filter_chat_include is not None: for chat in args.filter_chat_include: if not chat.isnumeric(): - print("Enter a phone number in the chat filter. See https://wts.knugi.dev/filter.html") + print("Enter a phone number in the chat filter. See https://wts.knugi.dev/docs?dest=chat") exit(1) if args.filter_chat_exclude is not None: for chat in args.filter_chat_exclude: if not chat.isnumeric(): - print("Enter a phone number in the chat filter. See https://wts.knugi.dev/filter.html") + print("Enter a phone number in the chat filter. See https://wts.knugi.dev/docs?dest=chat") exit(1) filter_chat = (args.filter_chat_include, args.filter_chat_exclude) diff --git a/docs.html b/docs.html new file mode 100644 index 0000000..634f9a8 --- /dev/null +++ b/docs.html @@ -0,0 +1,19 @@ + + + + + + + +

If the redirection doesn't work, you can find the documentation at https://github.com/KnugiHK/WhatsApp-Chat-Exporter/wiki.

+ + diff --git a/filter.html b/filter.html deleted file mode 100644 index d9d980e..0000000 --- a/filter.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - -

If the redirection doesn't work, you can find the documentation on filters at https://github.com/KnugiHK/WhatsApp-Chat-Exporter/wiki/Filters.

- -