diff --git a/ccfmstat/ccfmstat.sh b/ccfmstat/ccfmstat.sh index d1ea3ee..bcde853 100755 --- a/ccfmstat/ccfmstat.sh +++ b/ccfmstat/ccfmstat.sh @@ -76,6 +76,7 @@ getInfoFromId() local playedInNewWindow=$(extractValue "$line" "Played in new window") local audioPlayer=$(extractValue "$line" "Audio player") local podcastAddict=$(extractValue "$line" "Podcast Addict") + local androidApp=$(extractValue "$line" "Android App") local playerFM=$(extractValue "$line" "Player FM") local other=$(extractValue "$line" "Other") @@ -94,7 +95,7 @@ getInfoFromId() recordedDate= fi - echo -e "$id\t$totalListens\t$totalListeners\t$iTunes\t$pocketCasts\t$overcast\t$directDownload\t$playedInNewWindow\t$audioPlayer\t$podcastAddict\t$playerFM\t$other\t$recordedDate\t$title" + echo -e "$id\t$totalListens\t$totalListeners\t$iTunes\t$pocketCasts\t$overcast\t$directDownload\t$playedInNewWindow\t$audioPlayer\t$podcastAddict\t$androidApp\t$playerFM\t$other\t$recordedDate\t$title" } # ############################################ @@ -109,14 +110,14 @@ run() curl -s -c "$cookieFile" -d "log=$login&pwd=$pass&rememberme=forever&wp-submit=Se%20connecter&redirect_to=$redirect&testcookie=1" "$loginUrl" > /dev/null # Get page "Les miens" data. - pageUrl="https://cause-commune.fm/wp-admin/edit.php?post_type=podcast&author=5" + pageUrl="https://cause-commune.fm/wp-admin/edit.php?post_type=podcast&series=libre-a-vous" idsFile="${tmpPrefix}-listmiens" curl -s -b "$cookieFile" "$pageUrl" | grep row-title > "$idsFile" if [ $? -eq 0 ]; then # Wikipédia – chronique « Partager est bon » sur écoles et logiciels libres - echo -e "id\ttotalListens\ttotalListeners\tiTunes\tpocketcasts\tovercast\tdirectDownload\tplayedInNewWindow\taudioPlayer\tpodcastAddict\tplayerFM\tother\trecordedDate\ttitle" + echo -e "id\ttotalListens\ttotalListeners\tiTunes\tpocketcasts\tovercast\tdirectDownload\tplayedInNewWindow\taudioPlayer\tpodcastAddict\tAndroidApp\tplayerFM\tother\trecordedDate\ttitle" while read line; do #echo $line