diff --git a/Configuration-Files.md b/Configuration-Files.md index 415fc0e..a50f7ff 100644 --- a/Configuration-Files.md +++ b/Configuration-Files.md @@ -12,7 +12,14 @@ The `config.json` file is a JSON file with the following structure (make sure yo "api_key": "UeqKR3nBrVCxM32qt....Ga0FH2TwwbDPIDhseFZ", // User agent to send with itch.io requests (defaults to "itch-dl/{version} python-requests/{version}") - "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0" + "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0", + + // Filter downloaded files with a shell-style glob (entire file name must match, unmatched files are skipped) + "filter_files_glob": "game_name_*_mac.dmg", + + // Filter downloaded files with a Python regex (entire file name must match, unmatched files are skipped) + // Use https://regex101.com/ -> Python flavor to test your patterns first + "filter_files_regex": "dwarf_fortress_[\d_]+_windows\.zip" } ```