invidious-collect-yt-links https://invidio.us/playlist?list=IVPLvn5AlvJIfhiDrTtA0qwywjMO05iCCBM \
| ytdl-audio -a -
Last active
February 20, 2020 08:57
-
-
Save bgalvao/7c9e4c7795fb25357340b57a70f7cc46 to your computer and use it in GitHub Desktop.
bashing scripts :: a collection of scripts to help automate some stuff on my linux home
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ytdl-audio="youtube-dl --audio-quality 0 --embed-thumbnail --format m4a -i" | |
alias ytdl-video="youtube-dl --audio-quality 0 --embed-thumbnail --format bestvideo -i" | |
alias clock="tty-clock -s -c -C 3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# chmod +x and add it to $PATH | |
# this script simply takes the video links present on an invidio.us playlist | |
# page and replaces the url to its youtube equivalent (check last line of this file) | |
# $1 is the positional argument :: the playlist link on invidio.us | |
# requires lynx >= 2.8.9 | |
lynx -dump -hiddenlinks=listonly $1 | grep "&list=" \ | |
| sed -E 's/([[:space:]][[:digit:]]+\.[[:space:]])|(&list.*)//g' \ | |
| sed 's/invidio.us/youtube.com/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment