Skip to content

Commit 6c67064

Browse files
committed
updated youtube_download_video.sh
1 parent c13748b commit 6c67064

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: media/youtube_download_video.sh

+3
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ else
104104
timestamp "Determining download filename"
105105
filename="$(yt-dlp --get-filename --output "$output_filename" "$url")"
106106
fi
107+
if ! [ -f "$filename" ]; then
108+
die "Failed to find expected output file: $filename"
109+
fi
107110
timestamp "Touching file timestamp to make it easier to find when browsing"
108111
touch "$filename"
109112
#if is_mac; then

0 commit comments

Comments
 (0)