diff options
author | V.Krishn <vkrishn4@gmail.com> | 2021-11-30 10:41:03 +0530 |
---|---|---|
committer | V.Krishn <vkrishn4@gmail.com> | 2021-11-30 10:41:03 +0530 |
commit | 035daa20d319ab446fc74f2fa4c5b2b1e6b84e58 (patch) | |
tree | beae221e6cf810e8ed3d34d6fed18fde737b079f | |
parent | 93fca7f97559a420562e9f61ec3f347312f66f55 (diff) | |
download | nbreader-035daa20d319ab446fc74f2fa4c5b2b1e6b84e58.tar.bz2 |
fix icon from downloading again
-rw-r--r-- | scripts/feedicon.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/feedicon.sh b/scripts/feedicon.sh index 66bcd7e..2eb7f3a 100644 --- a/scripts/feedicon.sh +++ b/scripts/feedicon.sh @@ -177,12 +177,13 @@ get_feedicon() { echo $s --- $u1 u1=$(dirname $u1) fetch_feedicon "${proto}$u1/favicon.ico" - if is_file_ico $localIco; then - echo -e ${cYELLOW}' msg: favicon.ico is available - '${cGREEN}'download success'${cNORMAL} - return; - fi done - echo -e ${cRED}' msg: favicon.ico not available, retrying ...'${cNORMAL}; + if is_file_ico $localIco; then + echo -e ${cYELLOW}' msg: favicon.ico is available - '${cGREEN}'download success'${cNORMAL}; + return; + else + echo -e ${cRED}' msg: favicon.ico not available, retrying ...'${cNORMAL}; + fi # 2. Try to extract from RSS url dirname variant pages BURL=$(echo $url | sed -e "s,?.*$,,") |