')
- soup2 = self.make_soup(data2)
- [comment.extract() for comment in soup2.findAll(text=lambda text:isinstance(text, Comment))]
- story2 = soup2.find('div', 'b-story-body-x').div
- # story2.name='div'
- story2.append(soup2.new_tag('br'))
- storytext += self.utf8FromSoup(url,story2)
- except urllib2.HTTPError, e:
- if e.code == 404:
- raise exceptions.StoryDoesNotExist(url)
- else:
- raise e
- return storytext
+ return fullhtml
def getClass():
diff --git a/fanficfare/configurable.py b/fanficfare/configurable.py
index d684b38e..39ae7ad4 100644
--- a/fanficfare/configurable.py
+++ b/fanficfare/configurable.py
@@ -166,6 +166,10 @@ def get_valid_set_options():
'pairingcat_to_characters_ships':(['tthfanfic.org'],None,boollist),
'romancecat_to_characters_ships':(['tthfanfic.org'],None,boollist),
+ 'use_meta_keywords':(['literotica.com'],None,boollist),
+ 'clean_chapter_titles':(['literotica.com'],None,boollist),
+ 'description_in_chapter':(['literotica.com'],None,boollist),
+
# eFiction Base adapters allow bulk_load
# kept forgetting to add them, so now it's automatic.
'bulk_load':(adapters.get_bulk_load_sites(),
@@ -184,9 +188,6 @@ def get_valid_set_options():
'minimum_threadmarks':(base_xenforo_list,None,None),
'first_post_title':(base_xenforo_list,None,None),
'always_include_first_post':(base_xenforo_list,None,boollist),
- '':(base_xenforo_list,None,boollist),
- '':(base_xenforo_list,None,boollist),
- '':(base_xenforo_list,None,boollist),
}
return dict(valdict)
@@ -326,6 +327,9 @@ def get_valid_keywords():
'centeredcat_to_characters',
'pairingcat_to_characters_ships',
'romancecat_to_characters_ships',
+ 'use_meta_keywords',
+ 'clean_chapter_titles',
+ 'description_in_chapter',
'titlepage_end',
'titlepage_entries',
'titlepage_entry',
diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini
index 8e976e1f..962f1785 100644
--- a/fanficfare/defaults.ini
+++ b/fanficfare/defaults.ini
@@ -1327,6 +1327,17 @@ eroticatags_label:Erotica Tags
averrating_label:Average Rating
extra_titlepage_entries:eroticatags,averrating
+## Extract more erotica_tags from the meta tag of each chapter
+use_meta_keywords: true
+
+## For multiple chapter stories, attempt to clean up the chapter title. This will
+## remove the story title and change "Ch. 01" to "Chapter 1", "Pt. 01" to "Part 1"
+## or just use the text. If this can't be done, the full title is used.
+clean_chapter_titles: false
+
+## Add the chapter description at the start of each chapter.
+description_in_chapter: false
+
[lotrfanfiction.com]
extra_valid_entries: readings
readings_label: Readings