mirror of
https://github.com/sigmasternchen/Anineko
synced 2025-03-15 03:28:57 +00:00
change to python
This commit is contained in:
parent
d018f1e630
commit
4ca3b0d3be
2 changed files with 2 additions and 2 deletions
2
anineko
2
anineko
|
@ -128,7 +128,7 @@ elif test "$mode" = "file"; then
|
|||
# first param: provider page url
|
||||
echo -n " Extracting video-url... " 1>&2
|
||||
vurl=$(wget --user-agent="$useragent" -q -O - "$1" 2> /dev/null| grep "url: " | grep '.flv\|.mp4' | tr '\"' "'" | awk -F"'" '{ print $2 }' 2> /dev/null)
|
||||
vurl=$(python2 -c 'import sys, urllib; print urllib.unquote(sys.argv[1])' $vurl)
|
||||
vurl=$(python -c 'import sys, urllib; print urllib.unquote(sys.argv[1])' $vurl)
|
||||
echo -e "[ \033[32mdone\033[0m ]" 1>&2
|
||||
echo $vurl
|
||||
}
|
||||
|
|
2
install
2
install
|
@ -32,7 +32,7 @@ check egrep
|
|||
check sed
|
||||
check awk
|
||||
check md5sum
|
||||
check python2
|
||||
check python
|
||||
check tee
|
||||
check bc
|
||||
|
||||
|
|
Loading…
Reference in a new issue