aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV.Krishn <vkrishn4@gmail.com>2021-11-30 12:49:40 +0530
committerV.Krishn <vkrishn4@gmail.com>2021-11-30 12:49:40 +0530
commit29667ca83b628165adb81cb04c84dbe907981621 (patch)
tree4f63fbdd58b3a555bed3dda0eb9921a36282d668
parent467365f772bd879f36afc25f9eb3abeea10e65bf (diff)
downloadnbreader-29667ca83b628165adb81cb04c84dbe907981621.tar.bz2
fix minor bug, run iconfetch atleat once
-rw-r--r--scripts/feedicon.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/feedicon.sh b/scripts/feedicon.sh
index e3b6270..267d36d 100644
--- a/scripts/feedicon.sh
+++ b/scripts/feedicon.sh
@@ -189,16 +189,17 @@ get_feedicon() {
clean_temp_icon
# 2. Try to extract from RSS url dirname variant pages
+ if [ "$fs" = 0 ]; then fs=1; fi # run atleast once
seq $fs | while read s; do
if [ ! "$ICONURL" ]; then
echo " $s --- $BURL"
- get_site_base "$BURL"
+ get_site_base "${proto}/$BURL"
parse_feed_icon_url
- BURL=${proto}$(dirname $BURL)
+ BURL=$(dirname $BURL)
fi
done
- touch $localIcoUrl; ICONURL=$(cat $localIcoUrl)
+ if [ -s "$localIcoUrl" ]; then ICONURL=$(cat $localIcoUrl); fi
if [ ! "$ICONURL" ]; then
echo -e ${cRED}' msg: shortcut icon not available'${cNORMAL};
return;