mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
15 lines
1.2 KiB
Bash
15 lines
1.2 KiB
Bash
|
(cat<<EOF ;cat /sdcard/uweb/default.filecap)|awk -F: '!s[$1]++'>a.tmp;mv a.tmp /sdcard/uweb/default.filecap
|
||
|
m3u8:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>'
|
||
|
mp3:text/html:echo '<audio controls width=100% height=100%><source src="%u"></audio>'
|
||
|
m4b:text/html:echo '<audio controls width=100% height=100%><source src="%u"></audio>'
|
||
|
mp4:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>'
|
||
|
mkv:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>'
|
||
|
doc::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U'
|
||
|
xls::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U'
|
||
|
ppt::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U'
|
||
|
docx::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U'
|
||
|
xlsx::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U'
|
||
|
pptx::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U'
|
||
|
EOF
|
||
|
|