From cfc9ef1cade470f6d2a7ba67c625eb8c11ff2743 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 16 Jul 2024 20:27:53 +0200 Subject: Add fallback urls for rss (right now, fallback nyaa.si to nyaa.land) --- src/download.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/download.h') diff --git a/src/download.h b/src/download.h index 3c7f0aa..ff188cc 100644 --- a/src/download.h +++ b/src/download.h @@ -2,7 +2,11 @@ #define DOWNLOAD_H struct Buffer; -int download_to_buffer(const char *url, struct Buffer *buffer); -int is_header_response_ok(const char *url); +typedef struct fallback fallback; + +/* |fall| can be NULL */ +int download_to_buffer(const char *url, struct Buffer *buffer, fallback *fall); +/* |fall| can be NULL */ +int is_header_response_ok(const char *url, fallback *fall); #endif -- cgit v1.2.3