fixed file existance checking
All checks were successful
Build this app / Builder (push) Successful in 40s
All checks were successful
Build this app / Builder (push) Successful in 40s
This commit is contained in:
@@ -23,5 +23,6 @@ jobs:
|
||||
- name: Release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
tag_name: github.ref_name
|
||||
files: |-
|
||||
tmp/**
|
||||
|
||||
2
main.go
2
main.go
@@ -222,7 +222,7 @@ func downloadSeries(url string, downloadPath string) {
|
||||
downloadCount := 0
|
||||
for i, c := range s.Chapters {
|
||||
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)
|
||||
downloadChapter(chapterPath, c.Link)
|
||||
//log.Println("Compressing", c.Name)
|
||||
|
||||
Reference in New Issue
Block a user