Skip to content

Scripting

Pk11 edited this page Jun 16, 2022 · 3 revisions

dsidl supports simplistic scripts to download multiple files by creating your QR with JSON data. Either JSON arrays or objects are supported, with arrays simply being a list of URLs that it prompts the user for location/name like normal and objects allowing you to set both the URL and the output path.

Examples

[
    "It'll print anything that doesn't start 'http'",
    "https://example.com",
    "http://uwu.xn--rck9c.xn--tckwe",
    "Thanks for downloading!"
]

Example QR of the above JSON

{
    "sd:/example.html": "https://example.com",
    "": "Comments still work",
    "sd:/uwu.html": "http://uwu.xn--rck9c.xn--tckwe"
}

Example QR of the above JSON

Clone this wiki locally