GithubHelp home page GithubHelp logo

wadkar / youtube-dl-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qdm12/youtube-dl-docker

0.0 1.0 0.0 167 KB

Download with youtube-dl using command line arguments or a configuration file + Automated updates

Home Page: https://hub.docker.com/r/qmcgaw/youtube-dl-alpine/

License: MIT License

Shell 52.94% Dockerfile 47.06%

youtube-dl-docker's Introduction

Docker Youtube-DL Alpine

Download with youtube-dl using command line arguments or configuration files

Docker Youtube-DL

Docker Build Status

GitHub last commit GitHub commit activity GitHub issues

Docker Pulls Docker Stars Docker Automated

Image size Image version

Donate PayPal

Image size RAM usage CPU usage
97.7MB Depends Depends

Features

  • Works with command line arguments to youtube-dl
  • Compatible with ARM (build it yourself)
  • Small Docker image based on
  • The container updates youtube-dl at launch if -e AUTOUPDATE=yes
  • A log file of youtube-dl execution is saved at downloads/log.txt if -e LOG=yes
  • Docker healthcheck downloading https://duckduckgo.com with wget every 10 minutes
  • The Docker Hub image is updated automatically every 3 days, so simply update your image with docker pull qmcgaw\youtube-dl-alpine
  • You can receive a notification on your Android device through Gotify when the youtube-dl has finished

Setup

  1. CLICK IF YOU HAVE AN ARM DEVICE

    • If you have a ARM 32 bit v6 architecture

      docker build -t qmcgaw/youtube-dl-alpine \
      --build-arg BASE_IMAGE=arm32v6/alpine \
      https://github.com/qdm12/youtube-dl-docker.git
    • If you have a ARM 32 bit v7 architecture

      docker build -t qmcgaw/youtube-dl-alpine \
      --build-arg BASE_IMAGE=arm32v7/alpine \
      https://github.com/qdm12/youtube-dl-docker.git
    • If you have a ARM 64 bit v8 architecture

      docker build -t qmcgaw/youtube-dl-alpine \
      --build-arg BASE_IMAGE=arm64v8/alpine \
      https://github.com/qdm12/youtube-dl-docker.git

  2. Run the container with

    docker run -d -v $(pwd)/yourdir:/downloads qmcgaw/youtube-dl-alpine \
    https://www.youtube.com/watch?v=HagVnWAeGcM \
    -o "/downloads/%(title)s.%(ext)s"

    or use docker-compose.yml with

    docker-compose up -d
  3. See the youtube-dl command line options

  4. If you encounter permission issues, either chown 1000 yourdir && chmod 700 yourdir or run the container with --user=1001 where 1001 is the user ID owning yourdir

Environment variables

Environment variable Default Description
LOG yes Writes youtube-dl output to /downloads/log.txt or not
AUTOUPDATE no Updates youtube-dl to the latest version at launch
GOTIFYURL Gotify server URL address (i.e. http://192.168.1.5:8000 or https://a.com/gotify)
GOTIFYTOKEN Gotify server Token

Downloads directory permission issues

You can either:

  • Change the ownership and permissions of ./downloads on your host with:

    chown 1000 -R ./downloads
    chmod 700 ./downloads
    chmod -R 600 ./downloads/*
  • Launch the container with a different user using --user=$UID:$GID

TODOs

  • Healthcheck to check ydl logs
  • Colors in terminal

youtube-dl-docker's People

Contributors

qdm12 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.