mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-20 15:55:28 +01:00
Fix for potterfics.com layout change.
This commit is contained in:
parent
555638dc9c
commit
5b9fd8e4a7
1 changed files with 2 additions and 2 deletions
|
|
@ -182,8 +182,8 @@ class PotterFicsComAdapter(BaseSiteAdapter):
|
|||
|
||||
#we want the second table directly under the body, contains all the metadata
|
||||
table = soup.html.body.findAll('table', recursive=False)[1]
|
||||
#within that, we want the second row, first cell
|
||||
cell = table.tr.findNextSibling('tr').td
|
||||
#within that, we want the first row, three cell
|
||||
cell = table.tr.find_all('td')[2]
|
||||
|
||||
#find first metadata block--isn't first if logged in
|
||||
mb = cell.div.findNextSibling('div',{'align':'left'})
|
||||
|
|
|
|||
Loading…
Reference in a new issue