Commit 4a2904281e
4a2904281e9e2244f9d63a6adc13d0035743caba
parent: 3234d0ba8a
Unsigned
Wraient <wraient.911@gmail.com> · 2024-11-01 15:37 UTC
Using ueberzugpp and Better skipping filler and recap
Layout: unified · split
Build/curd-windows-build.iss
+2 −2
| @@ -1,6 +1,6 @@ |
| 1 | 1 | [Setup]
|
| 2 | 2 | AppName=Curd Installer
|
| 3 | | AppVersion=0.0.3
|
| 3 | AppVersion=0.1 |
| 4 | 4 | DefaultDirName={pf}\Curd
|
| 5 | 5 | DefaultGroupName=Curd
|
| 6 | 6 | AllowNoIcons=yes
|
| @@ -15,7 +15,7 @@ Name: "desktopicon"; Description: "Create a &desktop shortcut"; GroupDescription |
| 15 | 15 |
|
| 16 | 16 | [Files]
|
| 17 | 17 | ; Copy the Curd executable to the install directory
|
| 18 | | Source: "curd.exe"; DestDir: "{app}"; Flags: ignoreversion
|
| 18 | Source: "Z:releases/curd-0.1/windows/curd.exe"; DestDir: "{app}"; Flags: ignoreversion
|
| 19 | 19 | Source: "mpv.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
| 20 | 20 |
|
| 21 | 21 | [Icons]
|
PKGBUILD
+1 −1
| @@ -6,7 +6,7 @@ pkgdesc="Watch anime in CLI with AniList Tracking, Discord RPC, Intro/Outro/Fill |
| 6 | 6 | arch=("x86_64") |
| 7 | 7 | url="https://github.com/Wraient/curd" |
| 8 | 8 | license=('GPL') |
| 9 | | depends=('mpv' 'rofi' 'ueberzug') |
| 9 | depends=('mpv' 'rofi' 'ueberzugpp') |
| 10 | 10 | source=("curd::https://github.com/Wraient/curd/releases/download/${pkgver}/curd") |
| 11 | 11 | sha256sums=('SKIP') |
| 12 | 12 | |
cmd/curd/main.go
+2 −2
| @@ -209,7 +209,7 @@ func main() { |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | // Start curd |
| 212 | | if !anime.Ep.IsFiller { |
| 212 | if !((anime.Ep.IsFiller && userCurdConfig.SkipFiller) || (anime.Ep.IsRecap && userCurdConfig.SkipRecap)) { |
| 213 | 213 | // fmt.Println("Not a filler episode, Starting: ", anime.Ep.Number) |
| 214 | 214 | anime.Ep.Player.SocketPath = internal.StartCurd(&userCurdConfig, &anime, logFile) |
| 215 | 215 | |
| @@ -230,7 +230,7 @@ func main() { |
| 230 | 230 | internal.Log(anime, logFile) |
| 231 | 231 | |
| 232 | 232 | // if filler episode or recap episode and skip is enabled |
| 233 | | if (userCurdConfig.SkipFiller || userCurdConfig.SkipRecap) && (anime.Ep.IsFiller || anime.Ep.IsRecap) { |
| 233 | if (anime.Ep.IsFiller && userCurdConfig.SkipFiller) || (anime.Ep.IsRecap && userCurdConfig.SkipRecap) { |
| 234 | 234 | if anime.Ep.IsFiller && userCurdConfig.SkipFiller { |
| 235 | 235 | internal.CurdOut(fmt.Sprint("Filler Episode, starting next episode: ", anime.Ep.Number+1)) |
| 236 | 236 | internal.Log("Filler episode detected", logFile) |
internal/selection_menu.go
+2 −2
| @@ -318,8 +318,8 @@ func showCachedImagePreview(imageURL string) error { |
| 318 | 318 | return err |
| 319 | 319 | } |
| 320 | 320 | |
| 321 | | // Display the image with ueberzug |
| 322 | | cmd := exec.Command("ueberzug", "layer", "--silent", "add", "preview", "--path", cachePath) |
| 321 | // Display the image with ueberzugpp |
| 322 | cmd := exec.Command("ueberzugpp", "layer", "--silent", "add", "preview", "--path", cachePath) |
| 323 | 323 | err = cmd.Start() |
| 324 | 324 | if err != nil { |
| 325 | 325 | return fmt.Errorf("failed to start image preview: %w", err) |