From 586790173bc4abc0fdb6c72b6c25c8cf13efa70c Mon Sep 17 00:00:00 2001 From: Benex254 Date: Thu, 15 Aug 2024 11:25:22 +0300 Subject: [PATCH] docs: update readme --- README.md | 19 +++++++++++-------- fastanime/constants.py | 8 +------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index ac5f44d..bdc473c 100644 --- a/README.md +++ b/README.md @@ -198,18 +198,20 @@ Configuration is directly passed into this command at run time to override your Available options include: -- `--server;-s ` set the default server to auto select -- `--continue;-c/--no-continue;-no-c` whether to continue from the last episode you were watching -- `--quality;-q <0|1|2|3>` the link to choose from server -- `--translation-type;- ` set the folder to download anime into +- `--server ` or `-s ` set the default server to auto select +- `--continue/--no-continue` or `-c/-no-c` whether to continue from the last episode you were watching +- `--quality <1080/720/480/360>` or `-q <1080/720/480/360>` the link to choose from server +- `--translation-type ` or `-t ` what language for anime +- `--dub` dubbed anime +- `--sub` subbed anime +- `--auto-select/--no-auto-select` or `-a/-no-a` auto select title from provider results +- `--auto-next/--no-auto-next` or `-A/-no-A` auto select next episode +- `-downloads-dir ` or `-d ` set the folder to download anime into - `--fzf` use fzf for the ui - `--default` use the default ui - `--preview` show a preview when using fzf - `--no-preview` dont show a preview when using fzf -- `--format ` set the format of anime downloaded and streamed based on yt-dlp format. Works when `--server gogoanime` +- `--format ` or `-f ` set the format of anime downloaded and streamed based on yt-dlp format. Works when `--server gogoanime` - `--icons/--no-icons` toggle the visibility of the icons - `--skip/--no-skip` whether to skip the opening and ending theme songs. - `--rofi` use rofi for the ui @@ -220,6 +222,7 @@ Available options include: - `--log-file` allow logging to a file - `--rich-traceback` allow rich traceback - `--use-mpv-mod/--use-default-player` whether to use python-mpv +- `--provider ` anime site of choice to scrape from **NOTE:** animepahe is still experimental and requires node to decode one line of js thats hard to decode manually #### The anilist command :fire: :fire: :fire: diff --git a/fastanime/constants.py b/fastanime/constants.py index 554a743..6a8810a 100644 --- a/fastanime/constants.py +++ b/fastanime/constants.py @@ -10,13 +10,7 @@ from . import APP_NAME, AUTHOR, __version__ PLATFORM = system() # ---- app deps ---- -try: - APP_DIR = storagepath.get_application_dir() # pyright:ignore -except Exception: - APP_DIR = None -if not APP_DIR: - APP_DIR = os.path.abspath(os.path.dirname(__file__)) -CONFIGS_DIR = os.path.join(APP_DIR, "configs") +APP_DIR = os.path.abspath(os.path.dirname(__file__)) ASSETS_DIR = os.path.join(APP_DIR, "assets")