{"success":true,"data":{"ext":"pls","name":"WinAmp Playlist file","description":"Playlist files (PLS) are plain text playlist files originally associated with Winamp and developed by Nullsoft. They are used to store ordered lists of media file locations and are supported by many audio players and media libraries for playback automation. The format is a legacy interchange standard with minimal security risk, though malicious entries can reference unexpected local or remote resources.","mime":[],"risk_level":"Safe","signatures":[{"hex":"5B 70 6C 61 79 6C 69 73 74 5D","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_pls(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PLS by magic bytes.\"\"\"\n    signature = bytes([0x5B, 0x70, 0x6C, 0x61, 0x79, 0x6C, 0x69, 0x73, 0x74, 0x5D])\n    with open(file_path, \"rb\") as f:\n        return f.read(10) == signature","node":"function isPLS(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x5B, 0x70, 0x6C, 0x61, 0x79, 0x6C, 0x69, 0x73, 0x74, 0x5D]);\n  return buffer.subarray(0, 10).equals(signature);\n}","go":"func IsPLS(data []byte) bool {\n    signature := []byte{0x5B, 0x70, 0x6C, 0x61, 0x79, 0x6C, 0x69, 0x73, 0x74, 0x5D}\n    if len(data) < 10 {\n        return false\n    }\n    return bytes.Equal(data[:10], signature)\n}"}}}