mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-01 05:35:46 +01:00
Add apocrypha_to_omake option for base_xenforoforum_adapter threadmark category.
This commit is contained in:
parent
9c0dca6d35
commit
b27152e12b
4 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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+" - "
|
||||
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
])
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue