Commit 35d989df authored by sebaro's avatar sebaro

Update images

parent f47d1f17
#! /bin/bash
d="/home/Videos/YouTube"
t="$(echo "$1" | awk -F '=SAVETUBE=' '{print $1}' | sed -e "s/savetube://" | sed -e "s/%20/ /g" -e "s/ +$//" -e "s/^ +//")"
v="$(echo "$1" | awk -F '=SAVETUBE=' '{print $2}')"
a="$(echo "$1" | awk -F '=SAVETUBE=' '{print $3}')"
f="$(echo "$v" | grep -q "video/mp4" && echo "mp4" || echo "webm")"
ffmpeg -i "$v" -i "$a" -c:v copy -c:a copy "$d/$t.$f"
[Desktop Entry]
Name=SaveTube Client
Exec=/home/Devel/JavaScript/SaveTube/Protocol/savetube %u
Icon=mpv
Type=Application
Terminal=false
MimeType=x-scheme-handler/savetube
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment