Fixed bad pasword case. Improved help message.
This commit is contained in:
parent
d383c03258
commit
4af37042fd
@ -27,6 +27,7 @@ help()
|
||||
echo "Usage:"
|
||||
echo " ccfmstat [ -h | -help | --help ]"
|
||||
echo "If no parameter set then password is requested."
|
||||
echo "Number of result per page has to be fixed un web GUI page."
|
||||
}
|
||||
|
||||
# ############################################
|
||||
@ -112,10 +113,9 @@ run()
|
||||
idsFile="${tmpPrefix}-listmiens"
|
||||
|
||||
curl -s -b "$cookieFile" "$pageUrl" | grep row-title > "$idsFile"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
# <strong><a class="row-title" href="https://cause-commune.fm/wp-admin/post.php?post=10518&action=edit" aria-label="« Wikipédia – chronique « Partager est bon » sur écoles et logiciels libres » (Modifier)">Wikipédia – chronique « Partager est bon » sur écoles et logiciels libres</a></strong>
|
||||
|
||||
|
||||
echo -e "id\ttotalListens\ttotalListeners\tiTunes\tpocketcasts\tovercast\tdirectDownload\tplayedInNewWindow\taudioPlayer\tpodcastAddict\tplayerFM\tother\trecordedDate\ttitle"
|
||||
|
||||
while read line; do
|
||||
@ -129,6 +129,9 @@ run()
|
||||
getInfoFromId "$id" "$title" "$cookieFile"
|
||||
|
||||
done < "$idsFile"
|
||||
else
|
||||
echo "Connexion error. Bad password?"
|
||||
fi
|
||||
}
|
||||
|
||||
# ###########################################
|
||||
@ -148,7 +151,6 @@ else
|
||||
# Clean temporary files.
|
||||
# Clean.
|
||||
if [ -n "${tmpPrefix}" ]; then
|
||||
ls "${tmpPrefix}-"*
|
||||
rm -f "${tmpPrefix}-"*
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user