Skip to content

Commit

Permalink
Use yt-dlp in yt-download.py
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Aug 18, 2023
1 parent ff3855e commit 4fa585c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions home/bin/yt-download.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
#!/usr/bin/env nix-shell
#!nix-shell -i python3 -p python3 yt-dlp


import subprocess as sp
Expand Down Expand Up @@ -26,7 +27,7 @@ def download(self, url: str, output: Optional[Path]) -> None:
)

cmd = [
"youtube-dl",
"yt-dlp",
"--format",
"bestvideo+bestaudio",
url,
Expand Down

0 comments on commit 4fa585c

Please sign in to comment.