fixed file existance checking
All checks were successful
Build this app / Builder (push) Successful in 40s

This commit is contained in:
Itsigo
2026-03-07 17:10:48 +01:00
parent 32e2cb23a8
commit 8bb1defbd5
2 changed files with 2 additions and 1 deletions

View File

@@ -23,5 +23,6 @@ jobs:
- name: Release - name: Release
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
with: with:
tag_name: github.ref_name
files: |- files: |-
tmp/** tmp/**

View File

@@ -222,7 +222,7 @@ func downloadSeries(url string, downloadPath string) {
downloadCount := 0 downloadCount := 0
for i, c := range s.Chapters { for i, c := range s.Chapters {
chapterPath := fmt.Sprintf("%s/%s", seriesPath, c.Name) chapterPath := fmt.Sprintf("%s/%s", seriesPath, c.Name)
if _, err := os.Stat(seriesPath + "/" + c.Name); os.IsNotExist(err) { if _, err := os.Stat(seriesPath + "/" + c.Name + ".cbz"); os.IsNotExist(err) {
log.Println("Downloading ", c.Name) log.Println("Downloading ", c.Name)
downloadChapter(chapterPath, c.Link) downloadChapter(chapterPath, c.Link)
//log.Println("Compressing", c.Name) //log.Println("Compressing", c.Name)