Commit ddcdeb4d authored by sebaro's avatar sebaro

Direct download, DM fixed MP4, Viki fixed HLS/DASH

parent 27225814
......@@ -3,6 +3,13 @@
/* SaveTube Changelog */
#2020.02.09
- Script: support for direct download when browser supports it
- Script: group streams by type
- Script: HLS download through protocol
- Dailymotion: fixed progressive (MP4) streams
- Viki: fixed HLS/DASH streams
#2020.01.24
- Script: style/design fixes
- YouTube: fixed for new signature
......
......@@ -7,7 +7,11 @@ v="$(echo "$s" | awk -F 'SEPARATOR' '{print $2}')"
a="$(echo "$s" | awk -F 'SEPARATOR' '{print $3}')"
f="$(echo "$v" | grep -q "video/web\|\.webm" && echo "webm" || echo "mp4")"
if [ "$a" = "" ]; then
youtube-dl "$v" -o "$d/$t"
if echo "$v" | grep -qi "\.m3u8"; then
ffmpeg -y -i "$v" -c copy "$d/$t.$f"
else
youtube-dl "$v" -o "$d/$t"
fi
else
ffmpeg -y -i "$v" -i "$a" -c:v copy -c:a copy "$d/$t.$f"
ffmpeg -y -i "$v" -i "$a" -c copy "$d/$t.$f"
fi
This diff is collapsed.
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