{"success":true,"data":{"ext":"srt","name":"SRT","description":"SubRip Subtitle (SRT) is a plain-text subtitle format originally created by the SubRip software project and maintained as a widely adopted de facto standard by the media community. It is used to store timed captions and subtitles for video playback, editing, streaming, and accessibility workflows across many players and authoring tools. SRT files are generally safe, though malformed entries can cause parsing errors, and the format has no built-in support for styling or advanced metadata.","mime":["application/x-subrip"],"risk_level":"Safe","signatures":[{"hex":"31 0A 30 30","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"}]},{"hex":"31 0D 30 30","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"}]},{"hex":"30 78 33 31 30 44 30 41 31 33 30 33 30","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"}]},{"hex":"EF BB BF 31 0A 30 30","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"}]},{"hex":"EF BB BF 31 0D 30 30","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"}]},{"hex":"30 78 45 46 42 42 42 46 33 31 30 44 30 41 31 33 30 33 30","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":[],"usage":{"python":"def is_srt(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SRT by magic bytes.\"\"\"\n    signature = bytes([0x31, 0x0A, 0x30, 0x30])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isSRT(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x31, 0x0A, 0x30, 0x30]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsSRT(data []byte) bool {\n    signature := []byte{0x31, 0x0A, 0x30, 0x30}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}