Giter Club home page Giter Club logo

yt2mega's Introduction

yt2mega

This is a bash script to backup whole YouTube channels to mega.nz.

Requires youtube-dl and megatools.

Optionally, use aria2 to speed up downloads using multiple segments/connections. (See below)

Didn't spend a lot of time ironing things out or adding features, but here it is for anyone who wishes to use it.

Features:

  • Resumable/Schedulable (checks mega to see if the video is already backed up, by id grep)
  • Serial operation (i.e., download-upload-delete), putting disk space over speed
  • Chronologically indexed filenames
  • Better than doing it manually

Flaws:

  • Only supports one folder level deep on mega, i.e., /Root/YouTube-Backups-VSauce
  • Only runs on GNU+Linux (There is always Bash on Ubuntu on Windows though)
  • Haven't tested it, but deleted videos might mess up the indexing - Please let me know if you encounter this, and how you fixed it if you did.

aria2c with youtube-dl (thanks, tobbez)

The following commands allow youtube-dl to optimize download speed with parallel segmented files using aria2, run them a line at a time or via script:

mkdir -p ~/.config/youtube-dl/
cat > ~/.config/youtube-dl/config <<EOF
-o "[%(upload_date)s][%(id)s] %(title)s (by %(uploader)s).%(ext)s"
--external-downloader aria2c
--external-downloader-args "-c -j 3 -x 3 -s 3 -k 1M"
EOF

--external-downloader-args cheatsheet:

yt2mega's People

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.