Skip to content

blolol/heroku-buildpack-yt-dlp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

heroku-buildpack-yt-dlp

A Heroku buildpack that installs the latest stable release of yt-dlp.

Do I need this?

You'll only need this buildpack if, for some reason, you can't add Heroku's official Python buildpack to your app. Otherwise, you can follow yt-dlp's pip installation instructions and specify the yt-dlp package as a dependency using requirements.txt:

yt-dlp[default]

And add the buildpack to your app:

heroku buildpacks:add -i 1 heroku/python

This will work even if you're using a different buildpack, like heroku/ruby. The Python buildpack will install the dependencies listed in requirements.txt and add the installed binaries to your app's $PATH.

Important

If you need ffmpeg alongside yt-dlp, see "Usage", below, to install it by adding the first-party heroku-buildpack-activestorage-preview buildpack.

Usage

Because yt-dlp depends on ffmpeg, you'll need to add both this buildpack and Heroku's first-party heroku-buildpack-activestorage-preview, which installs ffmpeg. You can use the Heroku CLI's buildpacks:add command to do so:

heroku buildpacks:add -i 1 https://github.com/heroku/heroku-buildpack-activestorage-preview
heroku buildpacks:add -i 2 https://github.com/blolol/heroku-buildpack-yt-dlp

See Heroku's "Managing Buildpacks" documentation for more details.

The next time you deploy your app, yt-dlp will be downloaded and added to your app's $PATH. The installed version and the path to the binary are shown during slug compilation.

About

Heroku buildpack that installs yt-dlp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages