-
Notifications
You must be signed in to change notification settings - Fork 284
Using Batch Job (Experimental)
Nandaka edited this page Oct 18, 2020
·
10 revisions
- Create batch_job.json in the application folder using your favorite text editor.
- Follow below template
{
"jobs": {
"job-1-member-id-no-tags": {
"enabled": false,
"job_type": "1",
"member_id": 9459043,
"start_page": 1,
"end_page": 0,
"from_bookmark": false,
"option": {
"filenameFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"filenameMangaFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"filenameInfoFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"filenameMangaInfoFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"avatarNameFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"rootDirectory": "d:/test/",
"extensionFilter": "ugoira|png"
}
},
"job-1-member-id-with-tags": {
"enabled": false,
"job_type": "1",
"member_id": 5375435,
"start_page": 1,
"end_page": 0,
"tags": "R-18",
"option": {
"rootDirectory": "d:/test/"
}
},
"job-1-multi-member-id": {
"enabled": false,
"job_type": "1",
"member_ids": [2344550, 24164271, 544479],
"start_page": 1,
"end_page": 2,
"tags": "R-18",
"option": {
"rootDirectory": "d:/test/"
}
},
"job-2-single-image": {
"enabled": false,
"job_type": "2",
"image_id": 54973381,
},
"job-2-multi-images": {
"enabled": false,
"job_type": "2",
"image_ids": [73988118, 57959650, 78942244],
"option": {
"rootDirectory": "d:/test/"
}
},
"job-3-tags-download": {
"enabled": true,
"job_type": "3",
"tags": "島風",
"start_page": 1,
"end_page": 0,
"wildcard": true,
"title_caption": false,
"start_date": "2020-01-01",
"end_date": "2020-01-31",
"bookmark_count": 100,
"oldest_first": true,
"type_mode": "a",
"option": {
"filenameFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"filenameMangaFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"filenameInfoFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"filenameMangaInfoFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"avatarNameFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"useTagsAsDir": true,
"rootDirectory": "d:/test/"
}
},
"job-3-tags-download-by-member": {
"enabled": true,
"job_type": "3",
"tags": "島風",
"start_page": 1,
"end_page": 0,
"wildcard": true,
"title_caption": false,
"start_date": "2020-01-01",
"end_date": "2020-01-31",
"member_id": 63681,
"bookmark_count": 100,
"oldest_first": true,
"type_mode": "a",
"option": {
"filenameFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"filenameMangaFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"filenameInfoFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"filenameMangaInfoFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"avatarNameFormat": "%artist% (%member_id%)/%urlFilename% - %title%",
"useTagsAsDir": true,
"rootDirectory": "d:/test/"
}
}
}
}-
1= Handle option 1 and **11 ** from main menu, support single or multiple artists. Also cover option 4 by using this list.- member_ids = for multiple artists, takes priority.
- member_id = for single artist.
- from_bookmark = set true to download from the artist's bookmarks instead (option 11).
-
2= Handle option 2 from main menu, support single or multiple image ids.- image_ids = for multiple image ids, takes priority.
- image_id = for single image id.
-
3= Handle option 3, 9, and 10 from main menu. Also cover option 7 by using this list.- member_id = enter the member id for option 10, takes priority.
- title_caption = set to true to download based on title/caption (option 9)
In general, all job option available for every job type with some exception. Available option:
-
filenameFormattemporarily overwrite the settings inconfig.inifor given job. -
filenameMangaFormat' temporarily overwrite the settings inconfig.ini` for given job. -
filenameInfoFormattemporarily overwrite the settings inconfig.inifor given job. -
filenameMangaInfoFormattemporarily overwrite the settings inconfig.inifor given job. -
avatarNameFormattemporarily overwrite the settings inconfig.inifor given job. -
rootDirectorytemporarily overwrite the settings inconfig.inifor given job. -
r18modetemporarily overwrite the settings inconfig.inifor given job. -
extensionFilterapply to all job type. Using regexfor matching, remove it if you want to download all files. Separate each extension using|. For example,png|zip|ugoira|jpg -
useTagsAsDironly work forjob_type= 3