summaryrefslogtreecommitdiffstats
path: root/content/posts
diff options
context:
space:
mode:
authorPeter2021-10-15 12:01:34 +0100
committerPeter2021-10-15 12:01:34 +0100
commit9fc55d3adc7e9860901be194ff293f6c6ed466c3 (patch)
tree7364c78f41b3c6c4d47f4e1b6559f5d12a914f3a /content/posts
parenta9ce2738f7e70498cafbfdb9bd3e7c3527b597ee (diff)
downloadblog.minskio.co.uk-9fc55d3adc7e9860901be194ff293f6c6ed466c3.tar.gz
blog.minskio.co.uk-9fc55d3adc7e9860901be194ff293f6c6ed466c3.tar.bz2
blog.minskio.co.uk-9fc55d3adc7e9860901be194ff293f6c6ed466c3.zip
New post
Diffstat (limited to 'content/posts')
-rw-r--r--content/posts/replacing-youtube-dl-with-yt-dlp.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/content/posts/replacing-youtube-dl-with-yt-dlp.md b/content/posts/replacing-youtube-dl-with-yt-dlp.md
new file mode 100644
index 0000000..4224668
--- /dev/null
+++ b/content/posts/replacing-youtube-dl-with-yt-dlp.md
@@ -0,0 +1,27 @@
+---
+title: "Replacing youtube-dl with yt-dlp"
+date: 2021-09-18T17:58:00
+tags: ["Media", "Linux", "Snippets", "Software"]
+---
+
+At the time of writing, [youtube-dl](https://github.com/ytdl-org/youtube-dl) hasn't been updated since July 2021 and has many unresolved issues, some of which cause real problems with my RSS/YouTube workflow. In steps [yt-dlp](https://github.com/yt-dlp/yt-dlp) to the rescue which fixes the issues I've experienced and continues to be updated to this day.
+
+Now while I usually like to keep as many items as possible managed via my package manager (and there are yt-dlp [AUR packages available](https://aur.archlinux.org/packages/?K=yt-dlp)), youtube-dl was one of the exceptions I'd make. Usually I'll stick to the same version until I need to manually update for a broken website.
+
+Uninstall any older versions you have floating around on your system and install the latest binary from GitHub and make it executable:
+```
+sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
+sudo chmod a+rx /usr/local/bin/yt-dlp
+```
+
+Now you can symlink the new binary to the old name to emulate any calls to `youtube-dl` with `yt-dlp` using:
+```
+sudo ln -s /usr/local/bin/yt-dlp /usr/local/bin/youtube-dl
+```
+
+Now ensure you can update the binary using
+```
+sudo youtube-dl -U
+```
+
+And you're done. \ No newline at end of file