mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-14 12:11:45 +01:00
Strip 'Crossover' prefix from SV titles--base_xenforoforum_adapter.
This commit is contained in:
parent
267c19e8dd
commit
91e39db0ce
1 changed files with 3 additions and 0 deletions
|
|
@ -218,6 +218,9 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
|
|||
topsoup = souptag = self.make_soup(data)
|
||||
|
||||
h1 = souptag.find('div',{'class':'titleBar'}).h1
|
||||
## SV has started putting 'Crossover' spans in the title h1.
|
||||
for tag in h1.find_all('span',{'class':'prefix'}):
|
||||
tag.extract()
|
||||
self.story.setMetadata('title',stripHTML(h1))
|
||||
|
||||
first_post_title = self.getConfig('first_post_title','First Post')
|
||||
|
|
|
|||
Loading…
Reference in a new issue