From 7fabe846e4b9092314d00aa50a876cc5b1eb0051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Couchet?= Date: Tue, 17 Aug 2021 18:17:55 +0200 Subject: [PATCH] =?UTF-8?q?Remplacement=20du=20lien=20d'acc=C3=A8s=20au=20?= =?UTF-8?q?podcast=20Ajout=20des=20possibles=20sources=20d'=C3=A9coute?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ccfmstat/ccfmstat.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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