Skip to content

Commit

Permalink
permanence: auto-fetch referer to work around ytdl-org/youtube-dl#29419
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Jun 28, 2021
1 parent 1ff0662 commit b58b5f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/permanence
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ for i in $(seq 0 1 "${#_sources[@]}"); do
_destination="${_destinations[$i]}"
mkdir -p "$_destination"
pushd "$_destination"
youtube-dl-archive "$_source"
referrer="$(get-url-domain "$_source")"
youtube-dl-archive --referer "$referrer" "$_source"
popd > /dev/null
done

0 comments on commit b58b5f6

Please sign in to comment.