Skip to content

Commit b7913d4

Browse files
committed
fix #619: + download_options.hide_chapter_information: Hide the chapter information field. +function handle_indentation(contents, PATTERN_PARAGRAPH_START, indent)
1 parent 64073a7 commit b7913d4

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

gui_electron/gui_electron_functions.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,17 @@ theme_hash = {
261261
var DEFAULT_THEME_TEXT = 'default', default_theme_name;
262262
theme_list.push(DEFAULT_THEME_TEXT);
263263

264+
/**
265+
* <code>
266+
267+
增加選項的方法:
268+
# 在 CeL.application.net.work_crawler.arguments 的 import_arg_hash 添加選項名稱與數據類型。
269+
# 更改 work_crawler/gui_electron/gui_electron_functions.js 的 download_options_set(見下方)並加入說明資訊 "en":"","zh-hant":"" 。
270+
// {"id":"download_options.","mark_type":"combination_message_id","en":"","zh-hant":""}
271+
272+
</code>
273+
*/
274+
264275
// gettext_config:{"id":"download_options.recheck","mark_type":"combination_message_id"}
265276
// gettext_config:{"id":"download_options.show_information_only","mark_type":"combination_message_id"}
266277
// gettext_config:{"id":"download_options.start_chapter","mark_type":"combination_message_id"}
@@ -294,6 +305,7 @@ theme_list.push(DEFAULT_THEME_TEXT);
294305
// gettext_config:{"id":"download_options.overwrite_old_file","mark_type":"combination_message_id"}
295306
// gettext_config:{"id":"download_options.convert_to_language","mark_type":"combination_message_id"}
296307
// gettext_config:{"id":"download_options.discard_old_ebook_file","mark_type":"combination_message_id"}
308+
// gettext_config:{"id":"download_options.hide_chapter_information","mark_type":"combination_message_id"}
297309
// gettext_config:{"id":"download_options.vertical_writing","mark_type":"combination_message_id"}
298310
// gettext_config:{"id":"download_options.main_directory","mark_type":"combination_message_id"}
299311
// gettext_config:{"id":"download_options.user_agent","mark_type":"combination_message_id"}
@@ -302,13 +314,14 @@ theme_list.push(DEFAULT_THEME_TEXT);
302314
// gettext_config:{"id":"download_options.write_chapter_metadata","mark_type":"combination_message_id"}
303315
// gettext_config:{"id":"download_options.write_image_metadata","mark_type":"combination_message_id"}
304316
// gettext_config:{"id":"download_options.archive_old_works","mark_type":"combination_message_id"}
317+
// gettext_config:{"id":"download_options.use_finished_date_to_archive_old_works","mark_type":"combination_message_id"}
305318
// gettext_config:{"id":"download_options.modify_work_list_when_archive_old_works","mark_type":"combination_message_id"}
306319
// gettext_config:{"id":"download_options.save_preference","mark_type":"combination_message_id"}
307320
// gettext_config:{"id":"download_options.data_directory","mark_type":"combination_message_id"}
308321
// gettext_config:{"id":"download_options.preserve_download_work_layer","mark_type":"combination_message_id"}
309322
// gettext_config:{"id":"download_options.play_finished_sound","mark_type":"combination_message_id"}
310323
// gettext_config:{"id":"download_options.archive_program_path","mark_type":"combination_message_id"}
311-
'data_directory,recheck,start_chapter_NO,chapter_NO_range,start_chapter_title,chapter_filter,regenerate,reget_chapter,search_again,cache_title_to_id,acceptable_types,archive_images,images_archive_extension,MAX_ERROR_RETRY,allow_EOI_error,MIN_LENGTH,timeout,skip_error,skip_chapter_data_error,directory_name_pattern,one_by_one,chapter_time_interval,main_directory,vertical_writing,convert_to_language,user_agent,proxy,cookie,write_chapter_metadata,write_image_metadata,preserve_download_work_layer,play_finished_sound,archive_program_path'
324+
'data_directory,recheck,start_chapter_NO,chapter_NO_range,start_chapter_title,chapter_filter,regenerate,reget_chapter,search_again,cache_title_to_id,acceptable_types,archive_images,images_archive_extension,MAX_ERROR_RETRY,allow_EOI_error,MIN_LENGTH,timeout,skip_error,skip_chapter_data_error,directory_name_pattern,one_by_one,chapter_time_interval,main_directory,hide_chapter_information,vertical_writing,convert_to_language,user_agent,proxy,cookie,write_chapter_metadata,write_image_metadata,preserve_download_work_layer,play_finished_sound,archive_program_path'
312325
// @see work_crawler/resource/locale of work_crawler - locale.csv
313326
.split(',').forEach(function(item) {
314327
download_options_set[item] = 'download_options.' + item;

0 commit comments

Comments
 (0)