m-haisham / novelsave

This is a tool to download and convert novels from popular sites to e-books.
Apache License 2.0
36 stars 7 forks source link

UI/UX overhaul #28

Closed m-haisham closed 3 years ago

m-haisham commented 3 years ago

UI/UX Overhaul

Another UI/UX overhaul aimed at increasing user experience

Changes

Verbose mode

Verbose mode has been made default and this the flag --verbose has been removed and the flag --plain added

plain mode is the opposite of verbose mode, it only shows the necessary texts. Which means no progress bars, no colors, and no escape codes.

Startup banner

The banner is not shown in plain mode

                              ___
                             /\_ \
  ___     ___   __  __     __\//\ \     ____     __     __  __     __
/' _ `\  / __`\/\ \/\ \  /'__`\\ \ \   /',__\  /'__`\  /\ \/\ \  /'__`\
/\ \/\ \/\ \L\ \ \ \_/ |/\  __/ \_\ \_/\__, `\/\ \L\.\_\ \ \_/ |/\  __/
\ \_\ \_\ \____/\ \___/ \ \____\/\____\/\____/\ \__/.\_\\ \___/ \ \____\
 \/_/\/_/\/___/  \/__/   \/____/\/____/\/___/  \/__/\/_/ \/__/   \/____/
  v0.6.2

The banner can be toggled on and off like shown below

novelsave config --toggle-banner

Prefixes

Prefixes have been removed

[-] [✓] [✗] [!] Give very little information in combination with text

Loader

loader style has been changed to suit the changes to prefix

Downloading chapters,  11.11% (1/9),

Overall

                              ___
                             /\_ \
  ___     ___   __  __     __\//\ \     ____     __     __  __     __
/' _ `\  / __`\/\ \/\ \  /'__`\\ \ \   /',__\  /'__`\  /\ \/\ \  /'__`\
/\ \/\ \/\ \L\ \ \ \_/ |/\  __/ \_\ \_/\__, `\/\ \L\.\_\ \ \_/ |/\  __/
\ \_\ \_\ \____/\ \___/ \ \____\/\____\/\____/\ \__/.\_\\ \___/ \ \____\
 \/_/\/_/\/___/  \/__/   \/____/\/____/\/___/  \/__/\/_/ \/__/   \/____/
  v0.6.2

Downloading webpage, "After the Rebirth of the Film Emperor" parsed with 9 chapters.
Downloading cover, 24533 bytes, done.
Updating novel information, with 9 chapters pending, done.
Creating download controller with 4 threads, done.
Downloading chapters, 100.00% (9/9), done.
Packing epub, saved to "C:\Users\User\novels\dummynovels_com\after-the-rebirth-of-the-film-emperor\After the Rebirth of the Film Emperor.epub".
m-haisham commented 3 years ago

Colored error messages

Errors are now colored red in verbose mode

Loader plain mode

Downloading 9 chapters, done.
m-haisham commented 3 years ago

Some notable changes since last comment

Default Sub-command

novel has been set as the default sub-command.

Which means that this command

novelsave novel https://dummynovels.com/novel/after-the-rebirth-of-the-film-emperor/ -u  -p -c

can be shortened to this

novelsave https://dummynovels.com/novel/after-the-rebirth-of-the-film-emperor/ -u  -p -c

and it would work as if novel has been passed to it

webnovel.com id as url

Previously it was possible to use id of the novel from webnovel in place of url like so

novelsave novel 19235170105741505 -u  -p -c

This has now been removed.

Flag --no-input

New flag added to the base parser

Tells the program to disable interactivity

Only useful when using --reset and --delete flags of sub-command list. This will automatically refuse the confirmation thus cancelling the commands.

Flag --yes

New flag added to sub-command list

To be used in conjunction with --reset and --delete, It skips the confirmation prompt.

When used along with --no-input this will take precedence.

Argument/Flag renamings

I've renamed some arguments to be more comprehensive in to their purpose