diff --git a/filter.sh b/filter.sh index 8619c0e..4b98a89 100755 --- a/filter.sh +++ b/filter.sh @@ -204,9 +204,9 @@ function mark_as_read { # wenn NICHT leer # sed wandelt 123 345 456 in 123, 245, 345 um. if [[ -n "$marked_entries" ]]; then - curl --request PUT --silent --header "X-Auth-Token: $MF_AUTH_TOKEN" --header "Content-Type: application/json" --data "{\"entry_ids\": "$marked_entries"], \"status\": \"read\"}" "$MF_API_URL/entries" + curl --request PUT --silent --header "X-Auth-Token: $MF_AUTH_TOKEN" --header "Content-Type: application/json" --data "{"entry_ids":"$marked_entries"],"status":"read"}" "$MF_API_URL/entries" # gebe entry-titel aus - for i in $(echo "$marked_entries" | xargs -n1 | sort -u | xargs); do + for i in "$marked_entries" ; do # gebe aus welcher eintrag gefiltert wurde, cut begrenzt die maximale laenge auf 100 zeichen # jq "XXX", fügt XXX in ausgabe hinzu echo [INFO] Filtered entry "$i" - "$(curl --silent --header "X-Auth-Token: $MF_AUTH_TOKEN" "$MF_API_URL"/entries/"$i" | jq --join-output '"url: ",.feed.site_url," - title: ", .title' | cut -c -100)".