Commit 19ee296cec

19ee296cecedc1cd94bd19a4a11ae6a52fde7049

parent: 65e1891b87

Unregistered key

Rushikesh Gaikwad <81632222+Wraient@users.noreply.github.com> · 2024-10-28 12:04 UTC
committer: <noreply@github.com>

Update README.md

Added rofi

Layout: unified · split

README.md +95 −31
@@ -5,9 +5,16 @@ A cli application to stream anime with [Anilist](https://anilist.co/) integratio
55Works on Windows and Linux
66
77## Demo Video
8Normal mode:
9
810
911https://github.com/user-attachments/assets/376e7580-b1af-40ee-82c3-154191f75b79
1012
13Rofi with Image preview
14
15
16https://github.com/user-attachments/assets/cbf799bc-9fdd-4402-ab61-b4e31f1e264d
17
1118
1219## Features
1320- Stream anime online
@@ -15,16 +22,19 @@ https://github.com/user-attachments/assets/376e7580-b1af-40ee-82c3-154191f75b79
1522- Skip anime Intro and Outro
1623- Skip Filler and Recap episodes
1724- Discord RPC about the anime
25- Rofi support
26- Image preview in rofi
1827- Local anime history to continue from where you left off last time
1928- Save mpv speed for next episode
2029- Configurable through config file
2130
2231## 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
2334### Linux
2435<details>
2536<summary>Arch Linux / Manjaro (AUR-based systems)</summary>
2637
27
2838Using Yay
2939
3040```
@@ -37,21 +47,22 @@ or using Paru:
3747paru -Sy curd
3848```
3949
40Or manually:
50Or, to manually clone and install:
4151
42```
52```bash
4353git clone https://aur.archlinux.org/curd.git
4454cd curd
4555makepkg -si
56sudo pacman -S rofi ueberzug
4657```
4758</details>
4859
4960<details>
50<summary>Debian / Ubuntu (and derivatives)</summary>
61<summary> Debian / Ubuntu (and derivatives) </summary>
5162
52```
63```bash
5364sudo apt update
54sudo apt install mpv curl
65sudo apt install mpv curl rofi ueberzug
5566curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd
5667chmod +x curd
5768sudo mv curd /usr/local/bin/
@@ -60,11 +71,11 @@ curd
6071</details>
6172
6273<details>
63<summary>Fedora</summary>
74<summary>Fedora Installation</summary>
6475
65```
76```bash
6677sudo dnf update
67sudo dnf install mpv curl
78sudo dnf install mpv curl rofi ueberzug
6879curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd
6980chmod +x curd
7081sudo mv curd /usr/local/bin/
@@ -73,11 +84,11 @@ curd
7384</details>
7485
7586<details>
76<summary>openSUSE</summary>
87<summary>openSUSE Installation</summary>
7788
78```
89```bash
7990sudo zypper refresh
80sudo zypper install mpv curl
91sudo zypper install mpv curl rofi ueberzug
8192curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd
8293chmod +x curd
8394sudo mv curd /usr/local/bin/
@@ -86,11 +97,10 @@ curd
8697</details>
8798
8899<details>
89<summary>Other Linux Distributions (Generic Instructions)</summary>
90
91```
92# Install mpv and curl
100<summary>Generic Installation</summary>
93101
102```bash
103# Install mpv, curl, rofi, and ueberzug (required for Image preview)
94104curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd
95105chmod +x curd
96106sudo mv curd /usr/local/bin/
@@ -101,34 +111,86 @@ curd
101111<details>
102112<summary>Uninstallation</summary>
103113
104```
114```bash
105115sudo rm /usr/local/bin/curd
106116```
107117
108118For AUR-based distributions:
109119
110```
120```bash
111121yay -R curd
112122```
113123</details>
114124
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)
116126
117127
118128## Usage
119129
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
130Run `curd` with the following options:
131
132```bash
133curd [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
189All configurations are stored in a file you can edit with the `-e` option.
190
191```bash
192curd -e
193```
132194
133195Script is made in a way that you use it for one session of watching.
134196
@@ -139,6 +201,8 @@ config file is located at ```~/.config/curd/curd.conf```
139201
140202## Dependencies
141203- mpv - Video player (vlc support might be added later)
204- rofi - Selection menu
205- ueberzug - Display images in rofi
142206
143207## API Used
144208- [Anilist API](https://anilist.gitbook.io/anilist-apiv2-docs) - Update user data and download user data