Placeholders

Windows path warning

\ should be escaped or replaced with a \\ or /

Not doing this could lead to an error

Examples:

C:\Users\John.config\ofscraper\bin\ffmpeg.exe => 
C:\Users\John.config\ofscraper\bin\ffmpeg.exe => 
C:/Users/John.config/ofscraper/bin/ffmpeg.exe

Example of generated filenames

The placeholders described below will substitute the {} values

Example Configs
"file_options": {
            "save_location": "/home/james/Data/ofscraper",
            "dir_format": "/{model_username}/{responsetype}/{mediatype}/",
            "file_format": "{filename}.{ext}",
            "textlength": 0,
            "space-replacer": " ",
            "date": "MM-DD-YYYY",
            "text_type_default": "letter",
            "truncation_default": true
        },

The generated filename based on the example config would be


Placeholders are generally the same between options here

dir_path and filename

You may use placeholders without any underscores (_)

dir_path

The relative directory path within the save location where files are stored

No unique placeholders

filename

The file's name segment in the saved file

When configuring filenames, ensure a unique element such as text, media ID, post ID, or filename is added to avoid naming conflict


Text Placeholders

Text mediatype will most likely need a overwrite to work properly

Text files are based on posts and have access to all the same placeholders as other media except

Some placeholders will be changed

Downloading Text Files

metadata

Controls where metadata is save

Setting metadata path

response_type placeholder

Responsetype Placeholders

Last updated