From 5938e7a63d6df384ac49c4e7be5172e040609040 Mon Sep 17 00:00:00 2001 From: Andreas Mieke Date: Sun, 28 Feb 2016 21:45:20 +0100 Subject: [PATCH] Better handling for LPs without overview page --- gparser/lpparser.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gparser/lpparser.go b/gparser/lpparser.go index bd3da6d..69d297d 100644 --- a/gparser/lpparser.go +++ b/gparser/lpparser.go @@ -59,6 +59,14 @@ func ParseLPPage(gslug string, LP *database.LetsPlay) { LP.Name.String = doc.Find("h1 > a > strong").First().Text() LP.Name.String = lpRenameRegex.ReplaceAllString(LP.Name.String, "") + if LP.Slug.String == "secret-of-mana" { + LP.Name.String = "Secret of Mana" + } else if LP.Slug.String == "prince-of-persia-2008" { + LP.Name.String = "Prince Of Persia (2008)" + } else if LP.Slug.String == "half-life-source" { + LP.Name.String = "Half-Life: Source" + } + pos, _ := doc.Find(".lightbox").Attr("href") LP.PosterS.String, LP.PosterB.String, err = image.ResizeCover(pos) if err != nil {