mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-27 19:25:26 +01:00
adapter_wuxiaworldco: Don't include grayed out 'In preparation' chapters
This commit is contained in:
parent
a81ac5312c
commit
b4e58a41c4
1 changed files with 5 additions and 3 deletions
|
|
@ -114,9 +114,11 @@ class WuxiaWorldCoSiteAdapter(BaseSiteAdapter):
|
|||
volume = match.group(1) + ' '
|
||||
elif el.name == u'dd':
|
||||
a = el.a
|
||||
url = urlparse.urljoin(self.url, a['href'])
|
||||
title = volume + stripHTML(a)
|
||||
self.add_chapter(title, url)
|
||||
if a['style'] != 'color:Gray;':
|
||||
# skip grayed out "In preparation" chapters
|
||||
url = urlparse.urljoin(self.url, a['href'])
|
||||
title = volume + stripHTML(a)
|
||||
self.add_chapter(title, url)
|
||||
# else:
|
||||
# logger.debug('Unexpected tag in #list > dl: %s', el.name)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue