filecap_microsoft.sh 949 B

123456789101112131415
  1. (cat<<EOF ;cat /sdcard/uweb/default.filecap)|awk -F: '!s[$1]++'>a.tmp;mv a.tmp /sdcard/uweb/default.filecap
  2. m3u8:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>'
  3. mp3:text/html:echo '<audio controls width=100% height=100%><source src="%u"></audio>'
  4. m4b:text/html:echo '<audio controls width=100% height=100%><source src="%u"></audio>'
  5. mp4:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>'
  6. mkv:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>'
  7. doc:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
  8. xls:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
  9. ppt:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
  10. docx:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
  11. xlsx:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
  12. pptx:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
  13. EOF