mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-09-10 11:40:24 +08:00
Change no-class div tags to p tags in mediaminer stories to get paragraph breaks.
This commit is contained in:
@@ -346,6 +346,12 @@ class MediaMiner(FanfictionSiteAdapter):
|
||||
soup = bs.BeautifulSoup(data)
|
||||
except:
|
||||
raise FailedToDownload("Error downloading Chapter: %s! Problem decoding page!" % url)
|
||||
|
||||
# convert div's to p's. mediaminer uses div with a
|
||||
# margin for paragraphs.
|
||||
divlist = soup.findAll('div', {'class' : None})
|
||||
for tag in divlist:
|
||||
tag.name='p';
|
||||
|
||||
nvs = bs.NavigableString('')
|
||||
sst=''
|
||||
|
||||
Reference in New Issue
Block a user