correction yaml creation - extraction yaml + html preparation

This commit is contained in:
github_username_here
2026-03-23 19:05:01 +01:00
parent 874ba49512
commit f7e63ce1e1
156 changed files with 8565 additions and 8512 deletions

View File

@@ -1,7 +1,9 @@
package main
import(
"project.hechon.fr/internal/fetcher"
"project.hechon.fr/internal/renderer"
/* "project.hechon.fr/internal/fetcher"
*/
"log"
"os"
"strings"
@@ -47,24 +49,15 @@ func main (){
}
cfg.ProperName = properName
searchedChapter := "2"
err = fetcher.FetchBook(&cfg)
err = renderer.ExtractChapter(&cfg, 2)
if err != nil {
log.Printf("GET %s %s %s failed\n", book, searchedChapter, cfg.Book.Version)
log.Printf("******%s*******\n", err)
os.Exit(1)
}
/* err = fetcher.SaveChapter(cfg, &cfg.Book.Chapters[0])
if err != nil{
log.Printf("error in saving the chapter:%v", err)
}
/* log.Printf("%v", cfg.Book.Chapters)
*/
log.Printf("%v", cfg.Book.Chapters)
os.Exit(0)
}