{
    "version": "6.5.1-1",
    "description": "A command-line utility that pipes video streams from various services into a video player.",
    "homepage": "https://streamlink.github.io/",
    "license": "BSD-2-Clause",
    "notes": "You will find your config file here: '$dir\\config'. To customise it, read the docs here: https://streamlink.github.io/cli/config.html#syntax",
    "suggest": {
        "ffmpeg": "ffmpeg",
        "VLC Player": "extras/vlc"
    },
    "architecture": {
        "64bit": {
            "url": "https://github.com/streamlink/windows-builds/releases/download/6.5.1-1/streamlink-6.5.1-1-py312-x86_64.zip",
            "hash": "b1e494af8f843b2a5e7b607440d494348a2ede46725318e5ea72a0da56dbc176",
            "extract_dir": "streamlink-6.5.1-1-py312-x86_64"
        },
        "32bit": {
            "url": "https://github.com/streamlink/windows-builds/releases/download/6.5.1-1/streamlink-6.5.1-1-py312-x86.zip",
            "hash": "5fc67e1c66748e9cc7518efc711f495bfdd023a1dc7170c05389963036c3c716",
            "extract_dir": "streamlink-6.5.1-1-py312-x86"
        }
    },
    "pre_install": [
        "if (!(Test-Path \"$persist_dir\\config\")) {",
        "    if (Test-Path \"$env:APPDATA\\streamlink\\config\") {",
        "        info 'Copying existing ''config'' from ''%APPDATA%\\streamlink\\config'''",
        "        Copy-Item \"$env:APPDATA\\streamlink\\config\" \"$dir\\config\"",
        "    } else {",
        "        New-Item \"$dir\\config\" | Out-Null",
        "    }",
        "}"
    ],
    "bin": [
        [
            "bin\\streamlink.exe",
            "streamlink",
            "--ffmpeg-ffmpeg \"$dir\\ffmpeg\\ffmpeg.exe\" --config \"$dir\\config\""
        ],
        "bin\\streamlinkw.exe"
    ],
    "persist": "config",
    "checkver": {
        "url": "https://github.com/streamlink/windows-builds/releases/",
        "regex": "tree/([\\d.\\-]+)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/streamlink/windows-builds/releases/download/$version/streamlink-$version-py312-x86_64.zip",
                "extract_dir": "streamlink-$version-py312-x86_64"
            },
            "32bit": {
                "url": "https://github.com/streamlink/windows-builds/releases/download/$version/streamlink-$version-py312-x86.zip",
                "extract_dir": "streamlink-$version-py312-x86"
            }
        }
    }
}
