From 82e4530eb98f065f79339829fca45f404ca6ffce Mon Sep 17 00:00:00 2001 From: jan Date: Sun, 9 Oct 2016 18:25:46 +0200 Subject: anderes format diff --git a/tools/image-on-demand/.main.go.swp b/tools/image-on-demand/.main.go.swp deleted file mode 100644 index 5b60469..0000000 Binary files a/tools/image-on-demand/.main.go.swp and /dev/null differ diff --git a/tools/image-on-demand/gril.list b/tools/image-on-demand/gril.list index 0e24253..0ff2750 100644 --- a/tools/image-on-demand/gril.list +++ b/tools/image-on-demand/gril.list @@ -1,2 +1,2 @@ -64 0 http://ami.animecharactersdatabase.com/images/Clannad/fujibayashi_ryou_thumb.jpg -64 1 http://ami.animecharactersdatabase.com/images/Clannad/fujibayashi_ryou.jpg +64 http://ami.animecharactersdatabase.com/images/Clannad/fujibayashi_ryou_thumb.jpg +64 http://ami.animecharactersdatabase.com/images/Clannad/fujibayashi_ryou.jpg diff --git a/tools/image-on-demand/main.go b/tools/image-on-demand/main.go index a3a401d..e2300b6 100644 --- a/tools/image-on-demand/main.go +++ b/tools/image-on-demand/main.go @@ -117,9 +117,9 @@ func loadList(name string) error { } if e, ok := files[name][int(id)]; ok { - files[name][int(id)] = append(e, data[2]) + files[name][int(id)] = append(e, data[1]) } else { - files[name][int(id)] = []string{data[2]} + files[name][int(id)] = []string{data[1]} } } return nil @@ -139,5 +139,6 @@ func main() { router := httprouter.New() router.GET("/:type/:image_type/:id", serveImage) + log.Println("starting image-on-demand on localhost:8081") log.Fatal(http.ListenAndServe("localhost:8081", router)) } -- cgit v0.10.1