From 38933581736c7d355a00b58f83cacb9e8fcdfb8b Mon Sep 17 00:00:00 2001 From: Alessandro De Angelis Date: Sat, 14 Dec 2019 12:27:50 +0100 Subject: [PATCH] Fixed mangatown last issue retrieve --- internal/version/version.go | 2 +- pkg/sites/mangatown.go | 2 +- pkg/sites/mangatown_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/version/version.go b/internal/version/version.go index 1bc51c94..15788c08 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -2,4 +2,4 @@ package version // Tag specifies the current release tag. // It needs to be manually updated. -const Tag = "v0.18.0" +const Tag = "v0.19.0" diff --git a/pkg/sites/mangatown.go b/pkg/sites/mangatown.go index e7119bee..47e7f51a 100644 --- a/pkg/sites/mangatown.go +++ b/pkg/sites/mangatown.go @@ -71,7 +71,7 @@ func (m *Mangatown) retrieveLastIssue(url string) (string, error) { chapters := doc.Find("ul", "class", "chapter_list").FindAll("a") // the first element is the last chapter - lastIssue := "https:" + chapters[0].Attrs()["href"] + lastIssue := "https://www.mangatown.com" + chapters[0].Attrs()["href"] return lastIssue, nil } diff --git a/pkg/sites/mangatown_test.go b/pkg/sites/mangatown_test.go index 8c105e4a..716bf124 100644 --- a/pkg/sites/mangatown_test.go +++ b/pkg/sites/mangatown_test.go @@ -31,7 +31,7 @@ func TestMangatownRetrieveIssueLinks(t *testing.T) { issues, err := mt.RetrieveIssueLinks("https://www.mangatown.com/manga/naruto/", false, false) assert.Nil(t, err) - assert.Equal(t, 748, len(issues)) + assert.Equal(t, 752, len(issues)) } func TestMangatownRetrieveIssueLinksLastChapter(t *testing.T) {