{"success":true,"data":{"ext":"bup","name":"BUP","description":"BUP is a backup file format used in DVD-Video disc structures, defined and maintained by the DVD Forum. It stores redundant copies of DVD control information, such as navigation data and title menus, so players can recover from damaged or unreadable IFO files. The format is legacy and tied to optical media authoring; it is generally safe, though corrupted disc content can affect playback reliability.","mime":["application/x-dvd-ifo"],"risk_level":"Safe","signatures":[{"hex":"44 56 44 56 49 44 45 4F 2D 56 54 53","offset":0,"sources":[{"name":"libdvdread (DVD-Video VTS file identifier)","url":"https://github.com/xbmc/libdvdread/blob/master/src/ifo_read.c"}]},{"hex":"44 56 44 56 49 44 45 4F 2D 56 4D 47","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["ifo"],"usage":{"python":"def is_bup(file_path: str) -> bool:\n    \"\"\"Check if file is a valid BUP by magic bytes.\"\"\"\n    signature = bytes([0x44, 0x56, 0x44, 0x56, 0x49, 0x44, 0x45, 0x4F, 0x2D, 0x56, 0x54, 0x53])\n    with open(file_path, \"rb\") as f:\n        return f.read(12) == signature","node":"function isBUP(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x44, 0x56, 0x44, 0x56, 0x49, 0x44, 0x45, 0x4F, 0x2D, 0x56, 0x54, 0x53]);\n  return buffer.subarray(0, 12).equals(signature);\n}","go":"func IsBUP(data []byte) bool {\n    signature := []byte{0x44, 0x56, 0x44, 0x56, 0x49, 0x44, 0x45, 0x4F, 0x2D, 0x56, 0x54, 0x53}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[:12], signature)\n}"}}}