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
5Works on Windows and Linux 5Works on Windows and Linux
6 6
7## Demo Video 7## Demo Video
8Normal mode:
9
8 10
9https://github.com/user-attachments/assets/376e7580-b1af-40ee-82c3-154191f75b79 11https://github.com/user-attachments/assets/376e7580-b1af-40ee-82c3-154191f75b79
10 12
13Rofi with Image preview
14
15
16https://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
28Using Yay 38Using Yay
29 39
30``` 40```
@@ -37,21 +47,22 @@ or using Paru:
37paru -Sy curd 47paru -Sy curd
38``` 48```
39 49
40Or manually: 50Or, to manually clone and install:
41 51
42``` 52```bash
43git clone https://aur.archlinux.org/curd.git 53git clone https://aur.archlinux.org/curd.git
44cd curd 54cd curd
45makepkg -si 55makepkg -si
56sudo 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
53sudo apt update 64sudo apt update
54sudo apt install mpv curl 65sudo apt install mpv curl rofi ueberzug
55curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd 66curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd
56chmod +x curd 67chmod +x curd
57sudo mv curd /usr/local/bin/ 68sudo 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
66sudo dnf update 77sudo dnf update
67sudo dnf install mpv curl 78sudo dnf install mpv curl rofi ueberzug
68curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd 79curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd
69chmod +x curd 80chmod +x curd
70sudo mv curd /usr/local/bin/ 81sudo 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
79sudo zypper refresh 90sudo zypper refresh
80sudo zypper install mpv curl 91sudo zypper install mpv curl rofi ueberzug
81curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd 92curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd
82chmod +x curd 93chmod +x curd
83sudo mv curd /usr/local/bin/ 94sudo 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)
94curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd 104curl -Lo curd https://github.com/Wraient/curd/releases/latest/download/curd
95chmod +x curd 105chmod +x curd
96sudo mv curd /usr/local/bin/ 106sudo 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
105sudo rm /usr/local/bin/curd 115sudo rm /usr/local/bin/curd
106``` 116```
107 117
108For AUR-based distributions: 118For AUR-based distributions:
109 119
110``` 120```bash
111yay -R curd 121yay -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. 130Run `curd` with the following options:
121 131
122|Description | Command | 132```bash
123------------------------|------------------ 133curd [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
189All configurations are stored in a file you can edit with the `-e` option.
190
191```bash
192curd -e
193```
132 194
133Script is made in a way that you use it for one session of watching. 195Script 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