Git Product home page Git Product logo

youtubedl-material's Introduction

YoutubeDL-Material

YoutubeDL-Material is a material design frontend for youtube-dl. It's coded using Angular 8 for the frontend, and Nodejs on the backend.

Getting Started

Check out the prerequisites, and go to the installation section. Easy as pie!

Here's an image of what it'll look like once you're done:

frontpage

With optional file management enabled (default):

frontpage_with_files

Dark mode:

dark_mode

Prerequisites

You need to have a functioning web server for this to work. Also make sure you have these dependencies installed on your system: ffmpeg, nodejs, python. If you don't, run this command:

sudo apt-get install ffmpeg nodejs python

Installing

First, download the latest release!

Drag all the files in youtubedl-material to a location accessible to a web server. It works best if it's the root (usually right inside public_html. Once that's done, navigate to backend and edit the default.json file. If you're using SSL encryption, look at the encrypted.json file for a template.

Port forward 17442 if you're going to access YoutubeDL-Material from out of your network. This is an important step. Make sure the configuration reflects this appropriately.

Once the configuration is done, run npm install to install all the backend dependencies. Once that is finished, type nodejs app.js. This will run the backend server. On your browser, navigate to your installation folder. Try putting in a youtube link to see if it works. If it does, viola! YoutubeDL-Material is now up and running.

If you experience problems, know that it's usually caused by a configuration problem. The first thing you should do is check the console. To get there, right click anywhere on the page and click "Inspect element." Then on the menu that pops up, click console. Look at the error there, and try to investigate.

Configuration

Here is an explanation for the configuration entries. Check out the default config for more context.

Config item Description Default
frontendurl URL to the webserver hosting YTDL-Material "http://example.com"
backendurl URL to the YTDL-Material's backend, should include port 17442 "http://example.com:17442/"
use-encryption true if you intend to use SSL encryption (https) false
cert-file-path Cert file path - required if using encryption "/etc/letsencrypt/live/example.com/fullchain.pem"
key-file-path Private key file path - required if using encryption "/etc/letsencrypt/live/example.com/privkey.pem"
path-base Audio/video stream URL. Usually the same as backendurl "http://example.com:17442/"
path-audio Path to audio folder for saved mp3s "audio/"
path-video Path to video folder for saved mp4s "video/"
title_top Title shown on the top toolbar "Youtube Downloader"
file_manager_enabled true if you want to use the file manager true
allow_quality_select true if you want to select a videos quality level before downloading true
download_only_mode true if you want files to directly download to the client with no media player false
use_youtube_API true if you want to use the Youtube API which is used for YT searches false
youtube_API_key Youtube API key. Required if use_youtube_API is enabled ""
default_theme Default theme to use. Options are "default" and "dark" "default"
allow_theme_change true if you want the icon in the top toolbar that toggles dark mode true

Deployment

If you'd like to install YoutubeDL-Material, go to the Installation section. If you want to build it yourself and/or develop the repository, then this section is for you.

To deploy, simply clone the repository, and go into the youtubedl-material directory. Type npm install and all the dependencies will install. Then type cd backend and again type npm install to install the dependencies for the backend.

Once you do that, you're almost up and running. All you need to do is edit the configuration in youtubedl-material/backend/config, go back into the youtubedl-material directory, and type ng build --prod. This will build the app, and put the output files in the youtubedl-material/dist folder. Drag those files into a web server, and drag the backend directory into the same folder. This folder should have index.html in it as well. If it does not, you're in the wrong directory.

The frontend is now complete. The backend is much easier. Just go into the youtubedl-material/backend folder, and type sudo nodejs app.js.

Finally, port forward the port 17442 and point it to the server's IP address. Make sure the port is also allowed through the firewall.

Contributing

Feel free to submit a pull request! I have no guidelines as of yet, so no need to worry about that.

Authors

  • Isaac Grynsztein (me!) - Initial work

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • youtube-dl
  • AllTube (for the inspiration)

youtubedl-material's People

Contributors

tzahi12345 avatar angular-cli 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.