Difference between revisions of "DownloadServer - Youtube"

From The TinkerNet Wiki
Jump to navigation Jump to search
Line 11: Line 11:
 
But don't install it through the package manager.  It gets incredibly regular updates & the package manager kinda borks this.
 
But don't install it through the package manager.  It gets incredibly regular updates & the package manager kinda borks this.
  
Instead, install it directly:<blockquote>  <code>sudo wget <nowiki>https://yt-dl.org/downloads/latest/youtube-dl</nowiki> -O /usr/local/bin/youtube-dl</code></blockquote><blockquote><blockquote>  <code>sudo chmod a+rx /usr/local/bin/youtube-dl</code></blockquote></blockquote>
+
Instead, install it directly:
 +
 
 +
* <code>sudo wget <nowiki>https://yt-dl.org/downloads/latest/youtube-dl</nowiki> -O /usr/local/bin/youtube-dl</code>
 +
* <code>sudo chmod a+rx /usr/local/bin/youtube-dl</code>
 +
 
 +
This allows you to regularly update (maybe even through cron) it with the command:
 +
 
 +
* <code>sudo youtube-dl -U</code>
 +
 
 +
Which guarantees you keep up with the multitude of random changes made at YouTube.

Revision as of 16:36, 24 June 2020

There are a few good reasons to be set up to download YouTube videos.

  • Geofencing
  • Reliability
  • Bandwidth Management

Fortunately, it's pretty easy to do.

youtube-dl is a pretty awesome tool.

But don't install it through the package manager. It gets incredibly regular updates & the package manager kinda borks this.

Instead, install it directly:

  • sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
  • sudo chmod a+rx /usr/local/bin/youtube-dl

This allows you to regularly update (maybe even through cron) it with the command:

  • sudo youtube-dl -U

Which guarantees you keep up with the multitude of random changes made at YouTube.