Commit ad8882375e
ad8882375e46e5cdbba734c3030fa17143226aa9
parent: ddb15ba639
Unsigned
Siriusmart <71584876+Siriusmart@users.noreply.github.com> · 2022-08-04 20:13 UTC
fixed single typo grrrrr
Layout: unified · split
Cargo.lock
+1 −1
| @@ -1716,7 +1716,7 @@ dependencies = [ |
| 1716 | |
1716 | |
| 1717 | [[package]] |
1717 | [[package]] |
| 1718 | name = "youtube-tui" |
1718 | name = "youtube-tui" |
| 1719 | version = "0.4.4" |
1719 | version = "0.4.5" |
| 1720 | dependencies = [ |
1720 | dependencies = [ |
| 1721 | "chrono", |
1721 | "chrono", |
| 1722 | "crossterm", |
1722 | "crossterm", |
Cargo.toml
+1 −1
| @@ -1,6 +1,6 @@ |
| 1 | [package] |
1 | [package] |
| 2 | name = "youtube-tui" |
2 | name = "youtube-tui" |
| 3 | version = "0.4.4" |
3 | version = "0.4.5" |
| 4 | edition = "2021" |
4 | edition = "2021" |
| 5 | authors = ["Siriusmart <siriusmart@tuta.io>"] |
5 | authors = ["Siriusmart <siriusmart@tuta.io>"] |
| 6 | description = "An aesthetically pleasing YouTube TUI written in Rust" |
6 | description = "An aesthetically pleasing YouTube TUI written in Rust" |
README.md
+26 −10
| @@ -20,19 +20,35 @@ This program is being actively developed and there will be new features coming u |
| 20 | |
20 | |
| 21 | [YouTube TUI user manual](https://siriusmart.github.io/youtube-tui) |
21 | [YouTube TUI user manual](https://siriusmart.github.io/youtube-tui) |
| 22 | |
22 | |
| 23 | ## Chnagelogs |
23 | Changelog: |
| |
24 | |
| |
25 | * AM |
| |
26 | * REWRITING |
| |
27 | * THE |
| |
28 | * ENTRIE |
| |
29 | * THING |
| |
30 | * FROM |
| |
31 | * SCRATCH |
| |
32 | * THEN |
| |
33 | * NOTICED |
| |
34 | * A |
| |
35 | * SINGLE |
| |
36 | * TYPO |
| |
37 | * IN |
| |
38 | * THE |
| |
39 | * OLD |
| |
40 | * VERSION |
| |
41 | * GRRRRR |
| |
42 | |
| |
43 | So I fixed that one single typo and continued with stuff |
| 24 | |
44 | |
| 25 | #### Added |
45 | ## Installation |
| 26 | |
| |
| 27 | * Added default select item for each page (can be changed in `layouts.yml`) |
| |
| 28 | |
| |
| 29 | #### Fixes |
| |
| 30 | |
46 | |
| 31 | * Video list view in playlists not working |
47 | ### Install from the AUR |
| 32 | * Channel view scroll causes panic |
| |
| 33 | * Search options gray backgound + image covering popup |
| |
| 34 | |
48 | |
| 35 | ## Installation |
49 | ```bash |
| |
50 | yay -S youtube-tui-git # Or any other AUR helper |
| |
51 | ``` |
| 36 | |
52 | |
| 37 | ### Install from crates.io |
53 | ### Install from crates.io |
| 38 | |
54 | |
src/main.rs
+7 −5
| @@ -169,16 +169,18 @@ fn init() -> Result<(), Box<dyn Error>> { |
| 169 | let mut dir = home_dir.clone(); |
169 | let mut dir = home_dir.clone(); |
| 170 | |
170 | |
| 171 | dir.push(".cache"); |
171 | dir.push(".cache"); |
| 172 | if dir.exists() { |
| |
| 173 | fs::remove_dir_all(&dir)?; |
| |
| 174 | } |
| |
| 175 | fs::create_dir(&dir)?; |
| |
| 176 | |
172 | |
| 177 | dir.push("youtube-tui"); |
| |
| 178 | if !dir.exists() { |
173 | if !dir.exists() { |
| 179 | fs::create_dir(&dir)?; |
174 | fs::create_dir(&dir)?; |
| 180 | } |
175 | } |
| 181 | |
176 | |
| |
177 | dir.push("youtube-tui"); |
| |
178 | if dir.exists() { |
| |
179 | fs::remove_dir_all(&dir)?; |
| |
180 | } |
| |
181 | |
| |
182 | fs::create_dir(&dir)?; |
| |
183 | |
| 182 | dir.push("thumbnails"); |
184 | dir.push("thumbnails"); |
| 183 | |
185 | |
| 184 | if !dir.exists() { |
186 | if !dir.exists() { |