fixing bug #1

This commit is contained in:
Andreas Mieke 2015-10-15 19:07:54 +02:00
parent adecd31022
commit 9997c700e7

View file

@ -81,6 +81,10 @@ func ParseFeedEpisode(u string, bar *pb.ProgressBar) {
EP.Slug.String = slug
var LP database.LetsPlay
database.Db.Where("slug = ?", path.Base(path.Dir(ur.Path))).First(&LP)
if LP.ID == 0 {
wg.Add(1)
ParseLPPage(path.Base(path.Dir(ur.Path)), &LP, nil)
}
EP.LetsPlayID = LP.ID
res, err := GetHTTPResource(u)
if err != nil {