From a0204939734ce4c9891360dd31f8aa0476d85a07 Mon Sep 17 00:00:00 2001 From: Dominika Date: Sun, 9 Aug 2020 05:41:05 +0200 Subject: [PATCH] backported old youtube html5 player, partially works. Thanks @selfisekai! --- webroot/yt/player.shs | 10 ++++++++++ webroot/yt/watch.shs | 40 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 47 insertions(+), 3 deletions(-) create mode 100755 webroot/yt/player.shs diff --git a/webroot/yt/player.shs b/webroot/yt/player.shs new file mode 100755 index 0000000..f706d5f --- /dev/null +++ b/webroot/yt/player.shs @@ -0,0 +1,10 @@ +echo ' + + +
[x]
Video ID:
Dimensions:
Resolution:
Volume:
Stream Type:
CPN:
Mime Type:
DASH:
Protected:
Bandwidth:
Decoded FramesDropped FramesParsed FramesPresented Frames
Video Bytes DecodedAudio Bytes DecodedPainted FramesPaint Delay
0:00
0:19
+' \ No newline at end of file diff --git a/webroot/yt/watch.shs b/webroot/yt/watch.shs index 009a8d1..af11830 100755 --- a/webroot/yt/watch.shs +++ b/webroot/yt/watch.shs @@ -32,8 +32,12 @@ if [[ ${get_data[v]} ]]; then -

-

$title

+

" + + source webroot/yt/player.shs + + # + echo "

$title

Uploaded by $uploader on $(date -d "$(echo $video | jq -r '.upload_date' | sed -E 's/..../&-/;s/....-../&-/')" "+%d %B %Y") @@ -80,7 +84,7 @@ if [[ ${get_data[v]} ]]; then echo "" else source templates/head.sh echo "pls add ?v param i'm still WiP"