Skip to content

Using Batch Job (Experimental)

Nandaka edited this page Apr 30, 2020 · 10 revisions

General Usage

  1. Create batch_job.json in the application folder using your favorite text editor.
  2. Follow below template
{
    "jobs": {
        "job-1-member-id-no-tags": {
            "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/"
            }
        },
        "job-1-member-id-with-tags": {
            "job_type": "1",
            "member_id": 5375435,
            "start_page": 1,
            "end_page": 0,
            "tags": "R-18",
            "option": {
                "rootDirectory": "d:/test/"
            }
        },
        "job-1-multi-member-id": {
            "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": {
            "job_type": "2",
            "image_id": 54973381,
        },
        "job-2-multi-images": {
            "job_type": "2",
            "image_ids": [73988118, 57959650, 78942244],
            "option": {
                "rootDirectory": "d:/test/"
            }
        },
        "job-3-tags-download": {
            "job_type": "3",
            "tags": "search-tags-here",
            "start_page": 1,
            "end_page": 0,
            "wildcard": true,
            "title_caption": false,
            "start_date": "2020-12-31",
            "end_date": "2020-12-31",
            "bookmark_count": 0,
            "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": false
            }
        }
    }
}

About option

  • rootDirectory only works for job_type = 1 or 2
  • useTagsAsDir only work for job_type = 3
Clone this wiki locally