mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-04 07:03:44 +01:00
Fixes for fimfiction.net changes.
This commit is contained in:
parent
db97d126bf
commit
875e139bcd
1 changed files with 6 additions and 2 deletions
|
|
@ -179,7 +179,11 @@ class FimFictionNetSiteAdapter(BaseSiteAdapter):
|
|||
|
||||
self.setCoverImage(self.url,coverurl)
|
||||
|
||||
self.setDescription(self.url,soup.find("div", {"class":"description"}))
|
||||
# fimf has started including extra stuff inside the description div.
|
||||
descdivstr = "%s"%soup.find("div", {"class":"description"})
|
||||
hrstr="<hr />"
|
||||
descdivstr = '<div class="description">'+descdivstr[descdivstr.index(hrstr)+len(hrstr):]
|
||||
self.setDescription(self.url,descdivstr)
|
||||
|
||||
# Dates are in Unix time
|
||||
# Take the publish date from the first chapter posted
|
||||
|
|
@ -188,7 +192,7 @@ class FimFictionNetSiteAdapter(BaseSiteAdapter):
|
|||
rawDateUpdated = storyMetadata["date_modified"]
|
||||
self.story.setMetadata("dateUpdated", datetime.fromtimestamp(rawDateUpdated))
|
||||
|
||||
chars = soup.find("div", {"class":"story"})
|
||||
chars = soup.find("div", {"class":"inner_data"})
|
||||
# fimfic stopped putting the char name on or around the char
|
||||
# icon now for some reason. Pull it from the image name with
|
||||
# some heuristics.
|
||||
|
|
|
|||
Loading…
Reference in a new issue