Update ytd and fix max size check
This commit is contained in:
parent
f8d59cca32
commit
5210a4d188
@ -65,6 +65,8 @@ function add_url($user, $url)
|
||||
if (
|
||||
preg_match("#^http://(www.)?youtube.com/watch\?v=([a-zA-Z0-9_-]+)#",
|
||||
$url, $matched)
|
||||
|| preg_match("#^http://(www.)?youtube.com/playlist\?list=([a-zA-Z0-9_-]+)#",
|
||||
$url, $matched)
|
||||
|| preg_match("#^http://youtu.be/([a-zA-Z0-9_-]+)#",
|
||||
$url, $matched)
|
||||
|| preg_match("#^http://(www.)?dailymotion.com/video/([a-zA-Z0-9_-]+)#",
|
||||
|
2
dl.sh
2
dl.sh
@ -23,7 +23,7 @@ if [ ! -e /tmp/dlEnCours ]; then
|
||||
echo "-- " >> $f.done
|
||||
transmission-remote -AS
|
||||
else
|
||||
size=`$pwd/youtube-dl --skip-download http://www.youtube.com/watch?v=nh_hs-8_zF4 | grep "File size"`
|
||||
size=`$pwd/youtube-dl --skip-download "$lign" | grep "File size"`
|
||||
if echo $size | grep -E " [1234]?[0-9]{2}\.[0-9]+M "
|
||||
then
|
||||
echo "$lign" >> $pwd/database
|
||||
|
4724
youtube-dl
4724
youtube-dl
File diff suppressed because it is too large
Load Diff
1
youtube-dl
Symbolic link
1
youtube-dl
Symbolic link
@ -0,0 +1 @@
|
||||
yt-dl/youtube-dl
|
Reference in New Issue
Block a user