Commit 19ee296cec
Unregistered key
Layout: unified · split
README.md +95 −31
| @@ -5,9 +5,16 @@ A cli application to stream anime with [Anilist](https://anilist.co/) integratio | ||
| 5 | 5 | Works on Windows and Linux |
| 6 | 6 | |
| 7 | 7 | ## Demo Video |
| 8 | Normal mode: | |
| 9 | ||
| 8 | 10 | |
| 9 | 11 | https://github.com/user-attachments/assets/376e7580-b1af-40ee-82c3-154191f75b79 |
| 10 | 12 | |
| 13 | Rofi with Image preview | |
| 14 | ||
| 15 | ||
| 16 | https://github.com/user-attachments/assets/cbf799bc-9fdd-4402-ab61-b4e31f1e264d | |
| 17 | ||
| 11 | 18 | |
| 12 | 19 | ## Features |
| 13 | 20 | - Stream anime online |
| @@ -15,16 +22,19 @@ https://github.com/user-attachments/assets/376e7580-b1af-40ee-82c3-154191f75b79 | ||
| 15 | 22 | - Skip anime Intro and Outro |
| 16 | 23 | - Skip Filler and Recap episodes |
| 17 | 24 | - Discord RPC about the anime |
| 25 | - Rofi support | |
| 26 | - Image preview in rofi | |
| 18 | 27 | - Local anime history to continue from where you left off last time |
| 19 | 28 | - Save mpv speed for next episode |
| 20 | 29 | - Configurable through config file |
| 21 | 30 | |
| 22 | 31 | ## Installing and Setup |
| 32 | > **Note**: `Curd` requires `mpv`, `rofi`, and `ueberzug` for Image preview and Rofi support. These are included in the installation instructions below for each distribution. | |
| 33 | ||
| 23 | 34 | ### Linux |
| 24 | 35 | <details> |
| 25 | 36 | <summary>Arch Linux / Manjaro (AUR-based systems)</summary> |
| 26 | 37 | |
| 27 | ||
| 28 | 38 | Using Yay |
| 29 | 39 | |
| 30 | 40 | ``` |
| @@ -37,21 +47,22 @@ or using Paru: | ||
| 37 | 47 | paru -Sy curd |
| 38 | 48 | ``` |
| 39 | 49 | |
| 40 | Or manually: | |
| 50 | Or, to manually clone and install: | |
| 41 | 51 | |
| 42 | ``` | |
| 52 | ```bash | |
| 43 | 53 | git clone https://aur.archlinux.org/curd.git |
| 44 | 54 | cd curd |
| 45 | 55 | makepkg -si |
| 56 | sudo pacman -S rofi ueberzug | |
| 46 | 57 | ``` |
| 47 | 58 | </details> |
| 48 | 59 | |
| 49 | 60 | <details> |
| 50 | <summary>Debian / Ubuntu (and derivatives)</summary> | |
| 61 | <summary> Debian / Ubuntu (and derivatives) </summary> | |
| 51 | 62 | |
| 52 | ``` | |
| 63 | ```bash | |
| 53 | 64 | sudo apt update |
| 54 | sudo apt install mpv curl | |
| 65 | sudo apt install mpv curl rofi ueberzug | |
| 55 | 66 | curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd |
| 56 | 67 | chmod +x curd |
| 57 | 68 | sudo mv curd /usr/local/bin/ |
| @@ -60,11 +71,11 @@ curd | ||
| 60 | 71 | </details> |
| 61 | 72 | |
| 62 | 73 | <details> |
| 63 | <summary>Fedora</summary> | |
| 74 | <summary>Fedora Installation</summary> | |
| 64 | 75 | |
| 65 | ``` | |
| 76 | ```bash | |
| 66 | 77 | sudo dnf update |
| 67 | sudo dnf install mpv curl | |
| 78 | sudo dnf install mpv curl rofi ueberzug | |
| 68 | 79 | curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd |
| 69 | 80 | chmod +x curd |
| 70 | 81 | sudo mv curd /usr/local/bin/ |
| @@ -73,11 +84,11 @@ curd | ||
| 73 | 84 | </details> |
| 74 | 85 | |
| 75 | 86 | <details> |
| 76 | <summary>openSUSE</summary> | |
| 87 | <summary>openSUSE Installation</summary> | |
| 77 | 88 | |
| 78 | ``` | |
| 89 | ```bash | |
| 79 | 90 | sudo zypper refresh |
| 80 | sudo zypper install mpv curl | |
| 91 | sudo zypper install mpv curl rofi ueberzug | |
| 81 | 92 | curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd |
| 82 | 93 | chmod +x curd |
| 83 | 94 | sudo mv curd /usr/local/bin/ |
| @@ -86,11 +97,10 @@ curd | ||
| 86 | 97 | </details> |
| 87 | 98 | |
| 88 | 99 | <details> |
| 89 | <summary>Other Linux Distributions (Generic Instructions)</summary> | |
| 90 | ||
| 91 | ``` | |
| 92 | # Install mpv and curl | |
| 100 | <summary>Generic Installation</summary> | |
| 93 | 101 | |
| 102 | ```bash | |
| 103 | # Install mpv, curl, rofi, and ueberzug (required for Image preview) | |
| 94 | 104 | curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd |
| 95 | 105 | chmod +x curd |
| 96 | 106 | sudo mv curd /usr/local/bin/ |
| @@ -101,34 +111,86 @@ curd | ||
| 101 | 111 | <details> |
| 102 | 112 | <summary>Uninstallation</summary> |
| 103 | 113 | |
| 104 | ``` | |
| 114 | ```bash | |
| 105 | 115 | sudo rm /usr/local/bin/curd |
| 106 | 116 | ``` |
| 107 | 117 | |
| 108 | 118 | For AUR-based distributions: |
| 109 | 119 | |
| 110 | ``` | |
| 120 | ```bash | |
| 111 | 121 | yay -R curd |
| 112 | 122 | ``` |
| 113 | 123 | </details> |
| 114 | 124 | |
| 115 | ## [Windows Installer](https://github.com/Wraient/curd/releases/latest/download/CurdInstaller.exe) | |
| 125 | ### [Windows Installer](https://github.com/Wraient/curd/releases/latest/download/CurdInstaller.exe) | |
| 116 | 126 | |
| 117 | 127 | |
| 118 | 128 | ## Usage |
| 119 | 129 | |
| 120 | - For first time, just run the script and go to the link and enter your anilist token. After that you can use the script to watch anime. | |
| 121 | ||
| 122 | |Description | Command | | |
| 123 | ------------------------|------------------ | |
| 124 | |*Watching new anime* | `curd -new` | | |
| 125 | |*Watch dub* | `curd -dub` | | |
| 126 | |*Watch sub* | `curd -sub` | | |
| 127 | |*Update the script* | `curd -u` | | |
| 128 | |*Edit config file* | `curd -e` | | |
| 129 | |*Continue last watching anime* |`curd -c` | | |
| 130 | |*Help* | `curd -help` | | |
| 131 | ||
| 130 | Run `curd` with the following options: | |
| 131 | ||
| 132 | ```bash | |
| 133 | curd [options] | |
| 134 | ``` | |
| 135 | ||
| 136 | ### Options | |
| 137 | ||
| 138 | > **Note**: | |
| 139 | > - To use rofi you need rofi and ueberzug installed. | |
| 140 | > - Rofi .rasi files are at default `~/.local/share/curd/` | |
| 141 | > - You can edit them as you like. | |
| 142 | > - If there are no rasi files with specific names, they would be downloaded from this repo. | |
| 143 | ||
| 144 | | Flag | Description | Default | | |
| 145 | |---------------------------|-------------------------------------------------------------------------|---------------| | |
| 146 | | `-c` | Continue the last episode | - | | |
| 147 | | `-change-token` | Change your authentication token | - | | |
| 148 | | `-dub` | Watch the dubbed version of the anime | - | | |
| 149 | | `-sub` | Watch the subbed version of the anime | - | | |
| 150 | | `-new` | Add a new anime to your list | - | | |
| 151 | | `-e` | Edit the configuration file | - | | |
| 152 | | `-skip-op` | Automatically skip the opening section of each episode | `true` | | |
| 153 | | `-skip-ed` | Automatically skip the ending section of each episode | `true` | | |
| 154 | | `-skip-filler` | Automatically skip filler episodes | `true` | | |
| 155 | | `-skip-recap` | Automatically skip recap sections | `true` | | |
| 156 | | `-discord-presence` | Enable or disable Discord presence | `true` | | |
| 157 | | `-image-preview` | Show an image preview of the anime | - | | |
| 158 | | `-no-image-preview` | Disable image preview | - | | |
| 159 | | `-next-episode-prompt` | Prompt for the next episode after completing one | - | | |
| 160 | | `-rofi` | Open anime selection in the rofi interface | - | | |
| 161 | | `-no-rofi` | Disable rofi interface | - | | |
| 162 | | `-percentage-to-mark-complete` | Set the percentage watched to mark an episode as complete | `85` | | |
| 163 | | `-player` | Specify the player to use for playback | `"mpv"` | | |
| 164 | | `-save-mpv-speed` | Save the current MPV speed setting for future sessions | `true` | | |
| 165 | | `-score-on-completion` | Prompt to score the episode on completion | `true` | | |
| 166 | | `-storage-path` | Path to the storage directory | `"$HOME/.local/share/curd"` | | |
| 167 | | `-subs-lang` | Set the language for subtitles | `"english"` | | |
| 168 | | `-u` | Update the script | - | | |
| 169 | ||
| 170 | ### Examples | |
| 171 | ||
| 172 | - **Continue the Last Episode**: | |
| 173 | ```bash | |
| 174 | curd -c | |
| 175 | ``` | |
| 176 | ||
| 177 | - **Add a New Anime**: | |
| 178 | ```bash | |
| 179 | curd -new | |
| 180 | ``` | |
| 181 | ||
| 182 | - **Play with Rofi and Image Preview**: | |
| 183 | ```bash | |
| 184 | curd -rofi -image-preview | |
| 185 | ``` | |
| 186 | ||
| 187 | ## Configuration | |
| 188 | ||
| 189 | All configurations are stored in a file you can edit with the `-e` option. | |
| 190 | ||
| 191 | ```bash | |
| 192 | curd -e | |
| 193 | ``` | |
| 132 | 194 | |
| 133 | 195 | Script is made in a way that you use it for one session of watching. |
| 134 | 196 | |
| @@ -139,6 +201,8 @@ config file is located at ```~/.config/curd/curd.conf``` | ||
| 139 | 201 | |
| 140 | 202 | ## Dependencies |
| 141 | 203 | - mpv - Video player (vlc support might be added later) |
| 204 | - rofi - Selection menu | |
| 205 | - ueberzug - Display images in rofi | |
| 142 | 206 | |
| 143 | 207 | ## API Used |
| 144 | 208 | - [Anilist API](https://anilist.gitbook.io/anilist-apiv2-docs) - Update user data and download user data |