From 648eb7756b847049dcba617b4425dcead8521ae4 Mon Sep 17 00:00:00 2001 From: vintagefuture Date: Fri, 8 Nov 2024 17:40:54 +0000 Subject: [PATCH 1/2] Update generate-json-opml --- generate-json-opml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-json-opml b/generate-json-opml index fa8893c..27f42db 100755 --- a/generate-json-opml +++ b/generate-json-opml @@ -17,4 +17,4 @@ JSON_TITLE=$(json_escape "$TITLE") JSON_XML_URL=$(json_escape "$XML_URL") JSON_URL=$(json_escape "$URL") -printf '{"title": %s, "xmlUrl": %s, "htmlUrl": %s}\n' "$JSON_TITLE" "$JSON_XML_URL" "$JSON_URL" > json/"$NAME".json +mkdir -p json && printf '{"title": %s, "xmlUrl": %s, "htmlUrl": %s}\n' "$JSON_TITLE" "$JSON_XML_URL" "$JSON_URL" > json/"$NAME".json -- 2.47.0 From aca208f9c0138c3fa682c6ddbfc23e2b819466ae Mon Sep 17 00:00:00 2001 From: vintagefuture Date: Fri, 8 Nov 2024 17:42:40 +0000 Subject: [PATCH 2/2] Update Makefile --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dffad24..0e8a9e3 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,7 @@ fetch: subscriptions.curl curl --location --output-dir html --create-dirs --rate 1/s --config subscriptions.curl channel-json: subscriptions.txt - # nproc is not portable :-/ - xargs -n1 --max-procs=$$(nproc) --arg-file subscriptions.txt --verbose ./generate-json-opml + cat subscriptions.txt | xargs -n1 --verbose ./generate-json-opml # turn all the channel json files into an OPML file subscriptions.opml: -- 2.47.0