Works now, Mutex whatever

This commit is contained in:
Pablu23
2024-02-21 23:32:46 +01:00
parent fd8e5bbdbd
commit cc7009c106
3 changed files with 20 additions and 22 deletions

17
main.go
View File

@@ -37,19 +37,6 @@ func main() {
return
}
//var latestTimeStamp int64 = 0
//var latestUrl string
//for _, m := range db.Mangas {
// if latestTimeStamp < m.LatestChapter.TimeStampUnix {
// latestTimeStamp = m.LatestChapter.TimeStampUnix
// latestUrl = m.LatestChapter.Url
// }
//}
//
//if latestUrl == "" {
// latestUrl = "/title/80381-i-stan-the-prince/1539086-ch_16"
//}
server := Server{
ImageBuffers: make(map[string]*bytes.Buffer),
NextReady: make(chan bool),
@@ -68,10 +55,6 @@ func main() {
}
}()
//server.LoadCurr()
//go server.LoadPrev()
//go server.LoadNext()
http.HandleFunc("/", server.HandleMenu)
http.HandleFunc("/new/title/{title}/{chapter}", server.HandleNew)
http.HandleFunc("/current/", server.HandleCurrent)