~nhanb/mpv-gdrive

add instruction to fill conf file
better userscript: 2 buttons, status message
replace firefox extension with userscript

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~nhanb/mpv-gdrive
read/write
git@git.sr.ht:~nhanb/mpv-gdrive

You can also use your local clone with git send-email.

#Google Drive video support for mpv

Demo: https://junk.imnhan.com/mpv-gdrive.mp4

Usage:

# This script shells out to `curl` for properly verified https requests.
sudo pacman -S curl

mkdir -p ~/.config/mpv/scripts ~/.config/mpv/script-opts
ln -s "$PWD/gdrive.lua" "$HOME/.config/mpv/scripts/gdrive.lua"
cp ./gdrive.conf ~/.config/mpv/script-opts/gdrive.conf
# Now fill out your google credentials in gdrive.conf

mpv 'https://drive.google.com/file/d/abCDef/view'
# or
mpv 'gdrive://abCDef'
# where abCDef is the file id

I'm still trying to figure out a reasonably convenient UX for this.

#Helper userscript

Now when browsing Google Drive you should have something like this on the bottom left: