diff --git a/README.md b/README.md index 75bc3a1..d0f20a3 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,10 @@ and pack all sound tracks into a single **tfrecords** file for faster reading. * gzip Required Python packages are listed in **requirements.txt**. +``` +pip install --upgrade -r requirments.txt +sudo apt install ffmpeg +``` ## Usage diff --git a/lib/downloader.py b/lib/downloader.py index c0335a9..026e271 100644 --- a/lib/downloader.py +++ b/lib/downloader.py @@ -16,7 +16,7 @@ def download_video(video_id, download_path, video_format="mp4", log_file=None): stderr = open(log_file, "a") return_code = subprocess.call( - ["youtube-dl", "https://youtube.com/watch?v={}".format(video_id), "--quiet", "-f", + ["youtube-dl", "https://youtube.com/watch?v={}".format(video_id), "--no-check-certificate", "--quiet", "-f", "bestvideo[ext={}]+bestaudio/best".format(video_format), "--output", download_path, "--no-continue"], stderr=stderr) success = return_code == 0 diff --git a/requirements.txt b/requirements.txt index e69de29..b7a6166 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1,2 @@ +youtube-dl +gzip-reader