diff options
| author | dyknon dyknonr5fjp | 2026-09-01 18:47:10 +0900 |
|---|---|---|
| committer | dyknon dyknonr5fjp | 2026-09-01 18:47:10 +0900 |
| commit | d13659b841cf8327ed94f9dc282d905008abc94b (patch) | |
| tree | 05cf2d807c3815d792ebf574eb11e3a24aeaa619 /yt-dlp-and-sleep.sh | |
| parent | b2f192bbc460c14f536d17a396e2e19607a475d6 (diff) | |
Diffstat (limited to 'yt-dlp-and-sleep.sh')
| -rwxr-xr-x | yt-dlp-and-sleep.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt-dlp-and-sleep.sh b/yt-dlp-and-sleep.sh index 9d0ca49..6c05e26 100755 --- a/yt-dlp-and-sleep.sh +++ b/yt-dlp-and-sleep.sh @@ -6,13 +6,13 @@ #script-opts=ytdl_hook-ytdl_path=/path/to/this-file/yt-dlp-and-sleep.sh ( - yt-dlp "$@" \ + yt-dlp "$@" 3>&- \ | tee /dev/fd/3 \ | jq '[ .formats | .[] | .available_at | select(. != null) | (. - now) | select(. > 0) - ]|max + 0' \ + ]|max + 0' 2>/dev/null \ | (read t && sleep $t; :) ) 3>&1 |
