diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index cacdf561..824cdb27 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -572,6 +572,11 @@ always_use_forumtags:false ## 10. #reader_posts_per_page:10 +## I'm not a fan of using the word 'Apocrypha' for the threadmark +## category when everybody usually calls them Omake. Set true to +## change Apocrypha to Omake. +#apocrypha_to_omake:false + [base_xenforoforum:epub] ## See remove_spoilers above for more about 'spoilers'. This example diff --git a/fanficfare/adapters/base_xenforoforum_adapter.py b/fanficfare/adapters/base_xenforoforum_adapter.py index 61e6ccf3..16837830 100644 --- a/fanficfare/adapters/base_xenforoforum_adapter.py +++ b/fanficfare/adapters/base_xenforoforum_adapter.py @@ -241,6 +241,10 @@ class BaseXenForoForumAdapter(BaseSiteAdapter): ## prepend threadmark category name if not 'Threadmarks' prepend = "" tmcat_name = stripHTML(threadmarksa) + + if tmcat_name == 'Apocrypha' and self.getConfig('apocrypha_to_omake'): + tmcat_name = 'Omake' + if tmcat_name != "Threadmarks": prepend = tmcat_name+" - " diff --git a/fanficfare/configurable.py b/fanficfare/configurable.py index a09986e4..83556645 100644 --- a/fanficfare/configurable.py +++ b/fanficfare/configurable.py @@ -245,6 +245,7 @@ def get_valid_set_options(): 'author_avatar_cover':(base_xenforo_list,None,boollist), 'remove_spoilers':(base_xenforo_list,None,boollist), 'legend_spoilers':(base_xenforo_list,None,boollist), + 'apocrypha_to_omake':(base_xenforo_list,None,boollist), } return dict(valdict) @@ -437,6 +438,7 @@ def get_valid_keywords(): 'reader_posts_per_page', 'remove_spoilers', 'legend_spoilers', + 'apocrypha_to_omake', 'normalize_text_links', 'internalize_text_links', ]) diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini index 3ea77aed..4a13e84f 100644 --- a/fanficfare/defaults.ini +++ b/fanficfare/defaults.ini @@ -614,6 +614,11 @@ always_use_forumtags:false ## 10. #reader_posts_per_page:10 +## I'm not a fan of using the word 'Apocrypha' for the threadmark +## category when everybody usually calls them Omake. Set true to +## change Apocrypha to Omake. +#apocrypha_to_omake:false + [base_xenforoforum:epub] ## See remove_spoilers above for more about 'spoilers'. This example