J3DFWD2RVW3Q7GRKBVGE6FZR7JN5FKH33ECU4HH3PCZLOVJHBUEQC exe.linkSystemLibrary("libcurl");
if (blah(static, true)) {exe.addIncludeDir("/usr/include/");exe.addObjectFile("/usr/lib/libcurl.a");exe.addObjectFile("/usr/lib/libssl.a");exe.addObjectFile("/usr/lib/libcrypto.a");exe.addObjectFile("/usr/lib/libnghttp2.a");exe.addObjectFile("/usr/lib/libbrotlicommon.a");exe.addObjectFile("/usr/lib/libbrotlidec.a");exe.addObjectFile("/usr/lib/libbrotlienc.a");exe.addObjectFile("/lib/libz.a");} else {exe.linkSystemLibrary("libcurl");}
try db.exec("BEGIN IMMEDIATE;", .{}, .{});errdefer db.exec("ROLLBACK;", .{}, .{}) catch {};db.exec("UPDATE OR ROLLBACK image SET image = ? WHERE id = ?",.{},.{.image = resp.items,.id = id,},) catch {sqliteErrorReport("Couldn't add image to DB.", db);return error.GO_ON;};
log.info("Failed to download fullsize image for ID {d}", .{id});return error.FATAL;};hashit(resp.items) catch |err| {log.err("Couldn't hash image for ID {d}: {s}", .{ id, err });
log.info("Failed to download thumbnail image for ID {d}", .{id});
try db.exec(\\INSERT INTO blob (data, hash)\\ VALUES (?, ?);, .{}, .{ resp.items, hash_buf2[0..] });
db.exec("UPDATE OR ROLLBACK image SET thumb = ? WHERE id = ?",.{},.{.thumb = resp.items,.id = id,},) catch {sqliteErrorReport("Couldn't add thumb to DB", db);return error.GO_ON;};hashit(resp.items) catch |err| {log.err("Couldn't hash thumb for ID {d}: {s}", .{ id, err });return error.GO_ON;};
git https://github.com/Hejsil/zig-clap commit-c5fb22823a9a4a699acaefc1e9febfee0b8e506cgit https://github.com/vrischmann/zig-sqlite commit-4954c419d379ffbb637904b41d25ef910c6bb02bgit https://github.com/nektro/zig-json commit-72e555fbc0776f2600aee19b01e5ab1855ebec7agit https://github.com/truemedian/zfetch commit-6ba2ba136ec7cfc887811039cd4a7d8a43ba725bgit https://github.com/truemedian/hzzp commit-492107d44caa2676c7b5aa4e934e1e937232d652git https://github.com/alexnask/iguanaTLS commit-0d39a361639ad5469f8e4dcdaea35446bbe54b48git https://github.com/MasterQ32/zig-network commit-b9c91769d8ebd626c8e45b2abb05cbc28ccc50dagit https://github.com/MasterQ32/zig-uri commit-52cdd2061bec0579519f0d30280597f3a1db8b75
git https://github.com/Hejsil/zig-clap commit-844c9370bcecf063daff697f296d6ae979190649git https://github.com/vrischmann/zig-sqlite commit-3dc73fbe5bbe043e31b12637cb693b9bf6ceba95git https://github.com/nektro/zig-json commit-7f0e661371d41cfdc8b1649ed00e7a750c82e57agit https://github.com/nektro/zig-extras commit-090ee5f1834af4ed7714101b24d7daec84572390git https://github.com/nektro/zig-range commit-890ca308fe09b3d5c866d5cfb3b3d7a95dbf939fgit https://github.com/MasterQ32/zig-uri/ commit-52cdd2061bec0579519f0d30280597f3a1db8b75