From: paul Date: Sun, 19 Oct 2014 13:08:30 +0000 (+0000) Subject: fixed faulty path in fake mp4/wmv generator X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=9d7531d34a005af36b48da5e0ae949bf064fcd51;p=serve0 fixed faulty path in fake mp4/wmv generator svn path=/trunk/; revision=21 --- diff --git a/pages/videoview.sh b/pages/videoview.sh index 5b4c38e..0cc3e7a 100755 --- a/pages/videoview.sh +++ b/pages/videoview.sh @@ -90,8 +90,8 @@ _printVideo(){ # [ -f "$reenc.mp4" ] && reenc="$reenc.mp4" || reenc="$reenc.mkv" [ -r "$meta" ] || ". ${_EXEC}/helpers/genmeta.sh" "$video" "$meta" [ -r "$thumb" ] || ". ${_EXEC}/helpers/genthumb.sh" "$video" "$thumb" - [ -L "$mpfake" ] || ln -s "../$video" "$mpfake" - [ -L "$mvfake" ] || ln -s "../$video" "$mvfake" + [ -L "$mpfake" ] || ln -s "../videos/$info" "$mpfake" + [ -L "$mvfake" ] || ln -s "../videos/$info" "$mvfake" video="$(echo "videos/$info" |sed 's/\?/\%6F/g')" thumb="$(echo "thumbs/$info.jpg" |sed 's/\?/%6F/g')" mpfake="$(echo "$info" |sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:mp4/\1.mp4:' |sed 's/\?/%6F/g')" @@ -110,7 +110,7 @@ _printVideo(){ $info fake-mp4 - fake-mp4 + fake-wmv ${minutes}min ${width}x${height}