mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-09-23 20:52:16 +08:00
Create youtube.sh
This commit is contained in:
10
net/youtube.sh
Normal file
10
net/youtube.sh
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# pip install youtube-dl
|
||||||
|
|
||||||
|
URI=$1
|
||||||
|
|
||||||
|
AUDIO=$(youtube-dl -F $URI | grep "DASH audio"|grep "aac"|tail -1|cut -d ' ' -f 1)
|
||||||
|
VIDEO=$(youtube-dl -F $URI | grep "DASH video"|grep "mp4"|tail -1|cut -d ' ' -f 1)
|
||||||
|
|
||||||
|
youtube-dl -f $VIDEO+$AUDIO -k $URI
|
Reference in New Issue
Block a user