Skip to content

Instantly share code, notes, and snippets.

View Phate6660's full-sized avatar
💚
Stay negative.

Cpt.Howdy Phate6660

💚
Stay negative.
View GitHub Profile
@Phate6660
Phate6660 / youtube
Last active February 28, 2020 22:12
A shitty script for youtube playback and downloading using youtube-dl and mpv.
#!/bin/bash
### Foreward
##
## This script is most likely shit, and you'd be better off making your own.
##
### Functions
play() {
echo -e "
@Phate6660
Phate6660 / yt2iv
Last active February 28, 2020 21:13
Convert YouTube/invidio video urls to a locally proxied invidio urls, then copy/play/echo the url.
#!/bin/bash
### This is a script used to convert YouTube and invidio video URLs to locally proxied invidio URLs.
main() {
clear
echo "Please input an invidio or YouTube video url."
read -r base
ID="$(echo "$base" | sed -n -e 's/^.*=//p')"
new="https://invidio.us/watch?v=$ID&local=true"