Skip to content

Commit

Permalink
🐛 Fix for identifiers starting with dash
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange authored Apr 26, 2023
1 parent e188699 commit b68f84e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions yt/yt
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,15 @@ All rights reserved."

if $PARALLEL; then
if $SILENT; then
printf "\"%s\"\n" "${URLS[@]}" | xargs -n 1 -P ${PARALLELISM} -I{} youtube-dl "${BASE_OPTIONS[@]}" "${DOWNLOAD_OPTIONS[@]}" "{}" > /dev/null
printf "\"%s\"\n" "${URLS[@]}" | xargs -n 1 -P ${PARALLELISM} -I{} youtube-dl "${BASE_OPTIONS[@]}" "${DOWNLOAD_OPTIONS[@]}" -- "{}" > /dev/null
else
printf "\"%s\"\n" "${URLS[@]}" | xargs -n 1 -P ${PARALLELISM} -I{} youtube-dl "${BASE_OPTIONS[@]}" "${DOWNLOAD_OPTIONS[@]}" "{}"
printf "\"%s\"\n" "${URLS[@]}" | xargs -n 1 -P ${PARALLELISM} -I{} youtube-dl "${BASE_OPTIONS[@]}" "${DOWNLOAD_OPTIONS[@]}" -- "{}"
fi
else
if $SILENT; then
youtube-dl "${BASE_OPTIONS[@]}" "${DOWNLOAD_OPTIONS[@]}" "${URLS[@]}" > /dev/null
youtube-dl "${BASE_OPTIONS[@]}" "${DOWNLOAD_OPTIONS[@]}" -- "${URLS[@]}" > /dev/null
else
youtube-dl "${BASE_OPTIONS[@]}" "${DOWNLOAD_OPTIONS[@]}" "${URLS[@]}"
youtube-dl "${BASE_OPTIONS[@]}" "${DOWNLOAD_OPTIONS[@]}" -- "${URLS[@]}"
fi
fi
}
Expand Down

0 comments on commit b68f84e

Please sign in to comment.