mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-09-10 11:40:24 +08:00
tolkienfanfiction: Minor change to avoid un-normalized URIs
This commit is contained in:
@@ -130,7 +130,7 @@ class TolkienFanfictionAdapter(BaseSiteAdapter):
|
||||
chapterHtml = _fix_broken_markup(self._fetchUrl(self.url))
|
||||
chapterSoup = bs.BeautifulSoup(chapterHtml)
|
||||
indexLink = chapterSoup.find("a", text="[Index]").parent
|
||||
self._normalizeURL('http://' + self.host + '/' + indexLink.get('href'))
|
||||
self._normalizeURL('http://' + self.getSiteDomain() + '/' + indexLink.get('href'))
|
||||
except urllib2.HTTPError, e:
|
||||
if e.code == 404:
|
||||
raise exceptions.StoryDoesNotExist(self.url)
|
||||
|
||||
Reference in New Issue
Block a user