Update comments for include_subject_tags x_LIST

This commit is contained in:
Jim Miller 2023-07-23 16:24:35 -05:00
parent 54a00a934b
commit 784cb711d8
3 changed files with 29 additions and 5 deletions

View file

@ -153,8 +153,19 @@ allow_unsafe_filename: false
## number, or one of _. []()&'-
output_filename_safepattern:(^\.|/\.|[^a-zA-Z0-9_\. \[\]\(\)&'-]+)
## entries to make epub subjects and calibre tags
## include_subject_tags: entries to make epub subjects and calibre tags
## lastupdate creates two tags: "Last Update Year/Month: %Y/%m" and "Last Update: %Y/%m/%d"
##
## By default, entries listed in include_subject_tags are used as
## lists, skipping any <entry>_LIST processing in
## replace_metadata/etc. You can instead use <entry>_LIST in
## include_subject_tags to get the whole list as one string.
##
## You can also use <entry>.SPLIT to split each value in the entry on
## ',' for individual values. .SPLIT was basically obsoleted by \,
## splitting, but may still be used in some users' config. Can also
## be combined with _LIST as <entry>_LIST.SPLIT to get both
## <entry>_LIST processing in replace_metadata/etc *and* split by ','
include_subject_tags: extratags, genre, category, characters, ships, status
## extra tags (comma separated) to include, primarily for epub.

View file

@ -173,8 +173,19 @@ allow_unsafe_filename: false
## number, or one of _. []()&'-
output_filename_safepattern:(^\.|/\.|[^a-zA-Z0-9_\. \[\]\(\)&'-]+)
## entries to make epub subjects and calibre tags
## include_subject_tags: entries to make epub subjects and calibre tags
## lastupdate creates two tags: "Last Update Year/Month: %Y/%m" and "Last Update: %Y/%m/%d"
##
## By default, entries listed in include_subject_tags are used as
## lists, skipping any <entry>_LIST processing in
## replace_metadata/etc. You can instead use <entry>_LIST in
## include_subject_tags to get the whole list as one string.
##
## You can also use <entry>.SPLIT to split each value in the entry on
## ',' for individual values. .SPLIT was basically obsoleted by \,
## splitting, but may still be used in some users' config. Can also
## be combined with _LIST as <entry>_LIST.SPLIT to get both
## <entry>_LIST processing in replace_metadata/etc *and* split by ','
include_subject_tags: extratags, genre, category, characters, ships, lastupdate, status
## extra tags (comma separated) to include, primarily for epub.
@ -456,6 +467,7 @@ chapter_title_strip_pattern:^[0-9]+[\.: -]+(?=[^0-9]|$)
## If set to latestonly, only new chapters downloaded this time will
## be marked (new) and existing chapters will have any (new) marks
## removed.
##
## mark_new_chapters can be true, false or latestonly
mark_new_chapters:false
@ -1147,7 +1159,6 @@ output_css:
## include images from img tags in the body and summary of
## stories. Images will be converted to jpg for size if possible.
## include_images is *only* available in epub and html output format.
## include_images is *not* available in the web service in any format.
#include_images:false
## Quality level to use when converting images to jpg. Range is 0-100,

View file

@ -1355,8 +1355,10 @@ class Story(Requestable):
value_list = self.getList(entry_key,
removeallentities=removeallentities)
if '.SPLIT' in entry:
# .SPLIT is obsolete, but may be used in some
# users' config. split each entry value by ','
# split each entry value by ',' .SPLIT was basically
# obsoleted by \, splitting, but may still be used in
# some users' config. Could also be useful with _LIST
# now.
split_list = []
for value in value_list:
split_list.extend(value.split(','))