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