adapter_webnovelcom: ignore 'ad-walled' chapters--the ad-wall bypass code stopped working, but isn't yet removed.

This commit is contained in:
Jim Miller 2018-06-28 15:40:38 -05:00
parent 6d3cae9e6a
commit 7002f5806b

View file

@ -152,7 +152,6 @@ class WWWWebNovelComAdapter(BaseSiteAdapter):
parse_meta(meta_txt,'Editor:','editor')
cats = bookdetails.find_all('a',href=re.compile(r'/category/list'))
print cats
self.story.extendList('category',[stripHTML(cat) for cat in cats])
poptags = soup.find('p',{'class':'pop-tags'})
@ -177,7 +176,11 @@ class WWWWebNovelComAdapter(BaseSiteAdapter):
for volume in jsondata["data"]["volumeItems"]:
for chap in volume["chapterItems"]:
# Only allow free and VIP type 1 chapters
if chap['isVip'] not in {0, 1}:
if chap['isVip'] not in [0]: # removed VIP type 1
# chapter (ad-wall'ed)
# because the ad-wall
# bypass code stopped
# working. --JM
continue
chap_title = 'Chapter ' + unicode(chap['index']) + ' - ' + chap['name']