Skip to content

Commit

Permalink
Fixed mangatown last issue retrieve
Browse files Browse the repository at this point in the history
  • Loading branch information
Girbons committed Dec 14, 2019
1 parent d88ccac commit 3893358
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion pkg/sites/mangatown.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/sites/mangatown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3893358

Please sign in to comment.