From 8b3b20210d4dca8faec1d718ecaee2f4223824e1 Mon Sep 17 00:00:00 2001 From: Victor Date: Sun, 11 Jun 2023 14:06:18 +0300 Subject: [PATCH] Change comments links to teddit, replace Yandex with Alamy --- redditimages.own | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redditimages.own b/redditimages.own index 3a1b3b9..5cb361e 100644 --- a/redditimages.own +++ b/redditimages.own @@ -12,6 +12,7 @@ media = stream(subreddits) .filter(def(p) = reduce([".jpg", ".png"], false, def(acc, ext) = acc || indexOf(p.url, ext) > 0)) .filter(::isPostUnique) //.peek(def(p) = bot.sendPhoto(config.peer, p.url)) + .limit(10) .peek(::addPost) .map(def(p) = { "type": "photo", @@ -19,7 +20,6 @@ media = stream(subreddits) "caption": getCaption(p), "parse_mode": "html" }) - .limit(10) .toArray() debug(jsonencode(media)) @@ -52,9 +52,9 @@ def getCaption(post) { } return sprintf( "%s\n" + - "🗨 Comments%s\n" + + "🗨 Comments%s\n" + "🔎 SauceNAO, " + - "Yandex", + "Alamy", safe(post.url), safe(post.title), safe(post.permalink), tag, urlencode(post.url),