blob: ec14ad1eb2d713af92c4bb967ae282fe7dd5ff2a (
plain)
1
2
3
4
5
6
7
|
export def download [video_url: string] {
yt-dlp --cookies-from-browser firefox --downloader aria2c --downloader-args '-c -j 3 -x 3 -s 3 -k 1M' --sponsorblock-mark default --sponsorblock-remove sponsor --restrict-filenames -P $"($env.MISCPATH)/Youtube/" --output '%(channel)s_%(channel_id)s/%(playlist|Misc)s/%(playlist_index|)s%(upload_date)s.%(id)s.%(title)s.%(ext)s' $video_url
}
export def stream [video_url: string] {
yt-dlp --cookies-from-browser firefox --downloader aria2c --downloader-args '-c -j 3 -x 3 -s 3 -k 1M' --sponsorblock-mark default --sponsorblock-remove sponsor $video_url -o - | ffplay -
}
|