From e8258311ca19992630676f041d8cde3152f6ed79 Mon Sep 17 00:00:00 2001 From: SpeedPartner <376705740@qq.com> Date: Fri, 14 Apr 2023 21:49:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96=E5=9C=A8?= =?UTF-8?q?=E7=BA=BF=E5=A3=81=E7=BA=B8=E7=9A=84=E6=9C=80=E9=95=BF=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E7=AD=89=E5=BE=85=E6=97=B6=E9=97=B4=E8=87=B33s,=20?= =?UTF-8?q?=E4=BB=A5=E9=81=BF=E5=85=8D=E7=BD=91=E7=BB=9C=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E4=B8=8D=E4=BD=B3=E6=97=B6=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=A3=81=E7=BA=B8url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- root/usr/libexec/argon/online_wallpaper | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/usr/libexec/argon/online_wallpaper b/root/usr/libexec/argon/online_wallpaper index ab735b08..5e4ba59f 100755 --- a/root/usr/libexec/argon/online_wallpaper +++ b/root/usr/libexec/argon/online_wallpaper @@ -10,19 +10,19 @@ WRLOCK=/var/lock/argon_${WEB_PIC_SRC}.lock fetch_pic_url() { case $WEB_PIC_SRC in bing) - local picpath=$(curl -fks --max-time 1 \ + local picpath=$(curl -fks --max-time 3 \ "https://www.bing.com/HPImageArchive.aspx?format=js&n=1" | jsonfilter -q -e '@.images[0].url') [ -n "${picpath}" ] && echo "//www.bing.com${picpath}" ;; unsplash) - curl -fks --max-time 1 \ + curl -fks --max-time 3 \ "https://source.unsplash.com/1920x1080/daily?wallpapers" | sed -E 's#^.*href="([^?]+)\?.*$#\1?fm=jpg\&fit=crop\&w=1920\&h=1080#' ;; unsplash_*) local collection_id=${WEB_PIC_SRC#unsplash_} - curl -fks --max-time 1 \ + curl -fks --max-time 3 \ "https://source.unsplash.com/collection/${collection_id}/1920x1080" | sed -E 's#^.*href="([^?]+)\?.*$#\1?fm=jpg\&fit=crop\&w=1920\&h=1080#' ;;