Bladeren bron

Print Instagram ignore immediately after upload instead of at the end

master
JustAnotherArchivist 5 jaren geleden
bovenliggende
commit
06be216f4c
1 gewijzigde bestanden met toevoegingen van 1 en 12 verwijderingen
  1. +1
    -12
      snscrape-upload

+ 1
- 12
snscrape-upload Bestand weergeven

@@ -1,8 +1,6 @@
#!/bin/bash
scriptpath="$(cd "$(dirname "$0")"; pwd -P)"

instagramUrls=()

if [[ -e transfer ]]
then
echo "Error: ./transfer exists" >&2
@@ -29,21 +27,12 @@ do
elif [[ "${f}" == instagram-* ]]
then
echo "!a < ${upurl}"
instagramUrls+=("${upurl}")
echo "!ig $("${scriptpath}/archivebot-jobid-calculation" "${upurl}") ^https?://www.instagram.com/.*[?&]hl="
else
echo "!ao < ${upurl}"
fi
done 3>transfer

# Instagram ignores
if [[ ${#instagramUrls[@]} -gt 0 ]]
then
for url in "${instagramUrls[@]}"
do
echo "!ig $("${scriptpath}/archivebot-jobid-calculation" "${url}") ^https?://www.instagram.com/.*[?&]hl="
done
fi

# chromebot
for f in "$@"
do


Laden…
Annuleren
Opslaan