Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

updated requirements.txt #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
youtube-dl
gzip-reader