/youtubedl

Download Audio/Video from link

Primary LanguageV

v youtube_dl

v module to download video or audio of youtube (uses https://youtugo.com and https://yt-download.org)

Install

v install Saverio976.youtubedl

Examples

import saverio976.youtubedl

fn main() {
	url := 'https://youtube.com/watch?v=YykjpeuMNEk'
	folder := '.'
	path := youtubedl.download_audio(url, folder) or { return }
	println('the audio is in ${folder}/${path}')
}

you can change download_audio with download_video to download not only the audio.

Module

Contents

download_audio

fn download_audio(url string, dir string) !string

download_audio download the audio (mp3) of the given in the

directory

[Return to contents]

download_video

fn download_video(url string, dir string) !string

download_video download the video (mp4) of the given in the

directory

[Return to contents]

Powered by vdoc. Generated on: 1 Oct 2021 18:18:12