fix: Correct creation of temporary file (again)
This commit is contained in:
parent
ec130de205
commit
d54bc7b9fe
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ total=$(find "${temporary}" -type f -iname "*.info.json" | wc -l)
|
|||
find "${temporary}" -type f -iname "*.info.json" | while read -r x; do
|
||||
count=$((count + 1))
|
||||
(
|
||||
touch "${temporary}/${x}.tmp" && jq '.formats="" | .automatic_captions="" | .thumbnails="" | .tags=""' "${x}" >"${temporary}/${x}.tmp" && mv "${temporary}/${x}.tmp" "${x}"
|
||||
jq '.formats="" | .automatic_captions="" | .thumbnails="" | .tags=""' "${x}" >"${x}.tmp" && mv "${x}.tmp" "${x}"
|
||||
if [[ -f "${x}" && "${channel}" != "subscriptions" && $(jq -rc ".uploader_id" "${x}") != "@${channel}" ]]; then
|
||||
echo "Video ${x} not uploaded from ${channel}, removing..." && rm "${x}"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue