playvid: don't try to play json files

This commit is contained in:
LordMZTE 2024-08-20 21:08:00 +02:00
parent 541a490206
commit 70bc8877de
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -67,6 +67,9 @@ fn findVideoFile(alloc: std.mem.Allocator, out_buf: []u8) ![]const u8 {
while (try iter.next()) |entry| {
switch (entry.kind) {
.file => {
if (std.mem.endsWith(u8, entry.name, ".live_chat.json"))
continue;
try files.append(try fname_arena.allocator().dupe(u8, entry.name));
},
else => {},