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
|
- 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/**
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user