diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index a8c4def5..06932c7a 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -2293,21 +2293,17 @@ eroticatags_label:Erotica Tags averrating_label:Average Rating extra_titlepage_entries:eroticatags,averrating -## Chapters can be in different categories. Default to not using all -## to be consistent with previous version. -chapter_categories_use_all: false - ## 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 +#clean_chapter_titles: false ## For stories, collect tags from individual chapter pages in addition to the ## series page tags. This allows collection of tags beyond the top 10 on the series but ## if the author updates tags on a chapter and not the series, those tags may persist even if ## the chapter is not fetched during an update. ## Default is false to maintain previous behavior. -tags_from_chapters: false +#tags_from_chapters: false ## For multi-chapter stories (series), use the chapter approval dates for datePublished ## and dateUpdated instead of the series metadata dates. This provides more accurate dates @@ -2316,7 +2312,7 @@ tags_from_chapters: false ## approved, if chapters are approved out of order, or if the works were approved/updated ## before literotica's current series system was implemented. ## Default is false to maintain previous behavior. -dates_from_chapters: false +#dates_from_chapters: false ## Some stories mistakenly include 'Ch' or 'Pt' at the end of the ## story title. Appears to be a site bug or common author error. Copy @@ -2325,13 +2321,13 @@ dates_from_chapters: false # title=> (Ch|Pt)$=> ## Add the chapter description at the start of each chapter. -description_in_chapter: false +#description_in_chapter: false ## Author's stories are now hidden behind 'Show More' button. ## This option will attemph to fetch the stories. -fetch_stories_from_api: true +#fetch_stories_from_api: true -include_chapter_descriptions_in_summary: false +#include_chapter_descriptions_in_summary: false ## Clear FanFiction from defaults, site is original fiction. extratags:Erotica diff --git a/fanficfare/adapters/adapter_literotica.py b/fanficfare/adapters/adapter_literotica.py index 5302d2e1..f143f986 100644 --- a/fanficfare/adapters/adapter_literotica.py +++ b/fanficfare/adapters/adapter_literotica.py @@ -483,8 +483,8 @@ class LiteroticaSiteAdapter(BaseSiteAdapter): page_urls = get_urls_from_html(soup, url, configuration=self.configuration, normalize=normalize) - if not self.getConfig("fetch_stories_from_api"): - logger.debug('Not enabled') + if not self.getConfig("fetch_stories_from_api",True): + logger.debug('fetch_stories_from_api Not enabled') return {'urllist': page_urls} user_story_list = re.search(r'literotica\.com/authors/.+?/lists\?listid=(?P\d+)', url) diff --git a/fanficfare/configurable.py b/fanficfare/configurable.py index facf51a7..fff92bef 100644 --- a/fanficfare/configurable.py +++ b/fanficfare/configurable.py @@ -263,7 +263,6 @@ def get_valid_set_options(): 'romancecat_to_characters_ships':(['tthfanfic.org'],None,boollist), 'use_meta_keywords':(['literotica.com'],None,boollist), - 'chapter_categories_use_all':(['literotica.com'],None,boollist), 'clean_chapter_titles':(['literotica.com'],None,boollist), 'description_in_chapter':(['literotica.com'],None,boollist), 'fetch_stories_from_api':(['literotica.com'],None,boollist), @@ -520,7 +519,6 @@ def get_valid_keywords(): 'pairingcat_to_characters_ships', 'romancecat_to_characters_ships', 'use_meta_keywords', - 'chapter_categories_use_all', 'clean_chapter_titles', 'conditionals_use_lists', 'description_in_chapter',