mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 21:11:59 +02:00
use large cover images on royalroad (#823)
This commit is contained in:
parent
3a35e4d2d0
commit
890f416eae
1 changed files with 3 additions and 1 deletions
|
|
@ -221,7 +221,9 @@ class RoyalRoadAdapter(BaseSiteAdapter):
|
|||
img = soup.find(None,{'class':'row fic-header'}).find('img')
|
||||
if img:
|
||||
cover_url = img['src']
|
||||
self.setCoverImage(url,cover_url)
|
||||
# usually URL is for thumbnail. Try expected URL for larger image, if fails fall back to the original URL
|
||||
if self.setCoverImage(url,cover_url.replace('/covers-full/', '/covers-large/'))[0] == "failedtoload":
|
||||
self.setCoverImage(url,cover_url)
|
||||
# some content is show as tables, this will preserve them
|
||||
|
||||
itag = soup.find('i',title='Story Length')
|
||||
|
|
|
|||
Loading…
Reference in a new issue