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