소스 검색

Print Instagram ignore immediately after upload instead of at the end

master
JustAnotherArchivist 5 년 전
부모
커밋
06be216f4c
1개의 변경된 파일1개의 추가작업 그리고 12개의 파일을 삭제
  1. +1
    -12
      snscrape-upload

+ 1
- 12
snscrape-upload 파일 보기

@@ -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


불러오는 중...
취소
저장