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 | Works on Windows and Linux | 5 | Works on Windows and Linux |
| 6 | 6 | ||
| 7 | ## Demo Video | 7 | ## Demo Video |
| 8 | Normal mode: | ||
| 9 | |||
| 8 | 10 | ||
| 9 | https://github.com/user-attachments/assets/376e7580-b1af-40ee-82c3-154191f75b79 | 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 | ## Features | 19 | ## Features |
| 13 | - Stream anime online | 20 | - Stream anime online |
| @@ -15,16 +22,19 @@ https://github.com/user-attachments/assets/376e7580-b1af-40ee-82c3-154191f75b79 | |||
| 15 | - Skip anime Intro and Outro | 22 | - Skip anime Intro and Outro |
| 16 | - Skip Filler and Recap episodes | 23 | - Skip Filler and Recap episodes |
| 17 | - Discord RPC about the anime | 24 | - Discord RPC about the anime |
| 25 | - Rofi support | ||
| 26 | - Image preview in rofi | ||
| 18 | - Local anime history to continue from where you left off last time | 27 | - Local anime history to continue from where you left off last time |
| 19 | - Save mpv speed for next episode | 28 | - Save mpv speed for next episode |
| 20 | - Configurable through config file | 29 | - Configurable through config file |
| 21 | 30 | ||
| 22 | ## Installing and Setup | 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 | ### Linux | 34 | ### Linux |
| 24 | <details> | 35 | <details> |
| 25 | <summary>Arch Linux / Manjaro (AUR-based systems)</summary> | 36 | <summary>Arch Linux / Manjaro (AUR-based systems)</summary> |
| 26 | 37 | ||
| 27 | |||
| 28 | Using Yay | 38 | Using Yay |
| 29 | 39 | ||
| 30 | ``` | 40 | ``` |
| @@ -37,21 +47,22 @@ or using Paru: | |||
| 37 | paru -Sy curd | 47 | paru -Sy curd |
| 38 | ``` | 48 | ``` |
| 39 | 49 | ||
| 40 | Or manually: | 50 | Or, to manually clone and install: |
| 41 | 51 | ||
| 42 | ``` | 52 | ```bash |
| 43 | git clone https://aur.archlinux.org/curd.git | 53 | git clone https://aur.archlinux.org/curd.git |
| 44 | cd curd | 54 | cd curd |
| 45 | makepkg -si | 55 | makepkg -si |
| 56 | sudo pacman -S rofi ueberzug | ||
| 46 | ``` | 57 | ``` |
| 47 | </details> | 58 | </details> |
| 48 | 59 | ||
| 49 | <details> | 60 | <details> |
| 50 | <summary>Debian / Ubuntu (and derivatives)</summary> | 61 | <summary> Debian / Ubuntu (and derivatives) </summary> |
| 51 | 62 | ||
| 52 | ``` | 63 | ```bash |
| 53 | sudo apt update | 64 | sudo apt update |
| 54 | sudo apt install mpv curl | 65 | sudo apt install mpv curl rofi ueberzug |
| 55 | curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd | 66 | curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd |
| 56 | chmod +x curd | 67 | chmod +x curd |
| 57 | sudo mv curd /usr/local/bin/ | 68 | sudo mv curd /usr/local/bin/ |
| @@ -60,11 +71,11 @@ curd | |||
| 60 | </details> | 71 | </details> |
| 61 | 72 | ||
| 62 | <details> | 73 | <details> |
| 63 | <summary>Fedora</summary> | 74 | <summary>Fedora Installation</summary> |
| 64 | 75 | ||
| 65 | ``` | 76 | ```bash |
| 66 | sudo dnf update | 77 | sudo dnf update |
| 67 | sudo dnf install mpv curl | 78 | sudo dnf install mpv curl rofi ueberzug |
| 68 | curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd | 79 | curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd |
| 69 | chmod +x curd | 80 | chmod +x curd |
| 70 | sudo mv curd /usr/local/bin/ | 81 | sudo mv curd /usr/local/bin/ |
| @@ -73,11 +84,11 @@ curd | |||
| 73 | </details> | 84 | </details> |
| 74 | 85 | ||
| 75 | <details> | 86 | <details> |
| 76 | <summary>openSUSE</summary> | 87 | <summary>openSUSE Installation</summary> |
| 77 | 88 | ||
| 78 | ``` | 89 | ```bash |
| 79 | sudo zypper refresh | 90 | sudo zypper refresh |
| 80 | sudo zypper install mpv curl | 91 | sudo zypper install mpv curl rofi ueberzug |
| 81 | curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd | 92 | curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd |
| 82 | chmod +x curd | 93 | chmod +x curd |
| 83 | sudo mv curd /usr/local/bin/ | 94 | sudo mv curd /usr/local/bin/ |
| @@ -86,11 +97,10 @@ curd | |||
| 86 | </details> | 97 | </details> |
| 87 | 98 | ||
| 88 | <details> | 99 | <details> |
| 89 | <summary>Other Linux Distributions (Generic Instructions)</summary> | 100 | <summary>Generic Installation</summary> |
| 90 | |||
| 91 | ``` | ||
| 92 | # Install mpv and curl | ||
| 93 | 101 | ||
| 102 | ```bash | ||
| 103 | # Install mpv, curl, rofi, and ueberzug (required for Image preview) | ||
| 94 | curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd | 104 | curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd |
| 95 | chmod +x curd | 105 | chmod +x curd |
| 96 | sudo mv curd /usr/local/bin/ | 106 | sudo mv curd /usr/local/bin/ |
| @@ -101,34 +111,86 @@ curd | |||
| 101 | <details> | 111 | <details> |
| 102 | <summary>Uninstallation</summary> | 112 | <summary>Uninstallation</summary> |
| 103 | 113 | ||
| 104 | ``` | 114 | ```bash |
| 105 | sudo rm /usr/local/bin/curd | 115 | sudo rm /usr/local/bin/curd |
| 106 | ``` | 116 | ``` |
| 107 | 117 | ||
| 108 | For AUR-based distributions: | 118 | For AUR-based distributions: |
| 109 | 119 | ||
| 110 | ``` | 120 | ```bash |
| 111 | yay -R curd | 121 | yay -R curd |
| 112 | ``` | 122 | ``` |
| 113 | </details> | 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 | ## Usage | 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. | 130 | Run `curd` with the following options: |
| 121 | 131 | ||
| 122 | |Description | Command | | 132 | ```bash |
| 123 | ------------------------|------------------ | 133 | curd [options] |
| 124 | |*Watching new anime* | `curd -new` | | 134 | ``` |
| 125 | |*Watch dub* | `curd -dub` | | 135 | |
| 126 | |*Watch sub* | `curd -sub` | | 136 | ### Options |
| 127 | |*Update the script* | `curd -u` | | 137 | |
| 128 | |*Edit config file* | `curd -e` | | 138 | > **Note**: |
| 129 | |*Continue last watching anime* |`curd -c` | | 139 | > - To use rofi you need rofi and ueberzug installed. |
| 130 | |*Help* | `curd -help` | | 140 | > - Rofi .rasi files are at default `~/.local/share/curd/` |
| 131 | 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 | Script is made in a way that you use it for one session of watching. | 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 | ## Dependencies | 202 | ## Dependencies |
| 141 | - mpv - Video player (vlc support might be added later) | 203 | - mpv - Video player (vlc support might be added later) |
| 204 | - rofi - Selection menu | ||
| 205 | - ueberzug - Display images in rofi | ||
| 142 | 206 | ||
| 143 | ## API Used | 207 | ## API Used |
| 144 | - [Anilist API](https://anilist.gitbook.io/anilist-apiv2-docs) - Update user data and download user data | 208 | - [Anilist API](https://anilist.gitbook.io/anilist-apiv2-docs) - Update user data and download user data |