From 9a04c79ac8c1720047744db2338d08841e41cb42 Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 19 Oct 2014 12:57:47 +0000 Subject: [PATCH] provide fake wmv svn path=/trunk/; revision=20 --- pages/videoview.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/videoview.sh b/pages/videoview.sh index 3839869..5b4c38e 100755 --- a/pages/videoview.sh +++ b/pages/videoview.sh @@ -86,13 +86,16 @@ _printVideo(){ # reenc="${_DATA}/vp8/$(sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:\1:' <<<"$info" )" mpfake="${_DATA}/mp4/$(sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:\1.mp4:' <<<"$info" )" + mvfake="${_DATA}/mp4/$(sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:\1.wmv:' <<<"$info" )" # [ -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" 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')" + mvfake="$(echo "$info" |sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:mp4/\1.wmv:' |sed 's/\?/%6F/g')" [ "$(($length % 60))" -lt 10 ] &&\ minutes="$(($length / 60)):0$(($length % 60))" ||\ @@ -107,6 +110,7 @@ _printVideo(){ $info fake-mp4 + fake-mp4 ${minutes}min ${width}x${height} -- 2.39.2