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 @@
11[Setup]
22AppName=Curd Installer
3AppVersion=0.0.3
3AppVersion=0.1
44DefaultDirName={pf}\Curd
55DefaultGroupName=Curd
66AllowNoIcons=yes
@@ -15,7 +15,7 @@ Name: "desktopicon"; Description: "Create a &desktop shortcut"; GroupDescription
1515
1616[Files]
1717; 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
1919Source: "mpv.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
2020
2121[Icons]
PKGBUILD +1 −1
@@ -6,7 +6,7 @@ pkgdesc="Watch anime in CLI with AniList Tracking, Discord RPC, Intro/Outro/Fill
66arch=("x86_64")
77url="https://github.com/Wraient/curd"
88license=('GPL')
9depends=('mpv' 'rofi' 'ueberzug')
9depends=('mpv' 'rofi' 'ueberzugpp')
1010source=("curd::https://github.com/Wraient/curd/releases/download/${pkgver}/curd")
1111sha256sums=('SKIP')
1212
cmd/curd/main.go +2 −2
@@ -209,7 +209,7 @@ func main() {
209209 }
210210
211211 // Start curd
212 if !anime.Ep.IsFiller {
212 if !((anime.Ep.IsFiller && userCurdConfig.SkipFiller) || (anime.Ep.IsRecap && userCurdConfig.SkipRecap)) {
213213 // fmt.Println("Not a filler episode, Starting: ", anime.Ep.Number)
214214 anime.Ep.Player.SocketPath = internal.StartCurd(&userCurdConfig, &anime, logFile)
215215
@@ -230,7 +230,7 @@ func main() {
230230 internal.Log(anime, logFile)
231231
232232 // 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) {
234234 if anime.Ep.IsFiller && userCurdConfig.SkipFiller {
235235 internal.CurdOut(fmt.Sprint("Filler Episode, starting next episode: ", anime.Ep.Number+1))
236236 internal.Log("Filler episode detected", logFile)
internal/selection_menu.go +2 −2
@@ -318,8 +318,8 @@ func showCachedImagePreview(imageURL string) error {
318318 return err
319319 }
320320
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)
323323 err = cmd.Start()
324324 if err != nil {
325325 return fmt.Errorf("failed to start image preview: %w", err)