mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
rebuilding site Sat Jul 9 08:45:16 AM CST 2022
This commit is contained in:
parent
4608c0fc8d
commit
e6a2e5d8d9
89 changed files with 530 additions and 478 deletions
|
@ -38,13 +38,13 @@
|
|||
|
||||
</ul>
|
||||
<p>Long press the settings button, check the option "custom file handling" to enable the functionality.</p>
|
||||
<p>The custom file handling configuration file is "/sdcard/uweb/default.filecap", each line of it has the format as follows:<br>
|
||||
<p>The custom file handling configuration file is "default.filecap", each line of it has the format as follows:<br>
|
||||
[file extension]:[mimetype]:[command line]</p>
|
||||
<p>The "[file extension]" part can have at most two-segment of extensions such as "txt.xz","html.gz".<br>
|
||||
"[mimetype]" indicates the type of "[command line]" output.<br>
|
||||
"[command line]" is same as the one in <a href="../searchurl/cmds.html">default.cmds</a>. The most often used replacements are:<br>
|
||||
%u (url), %U (urlencoded url), %c (cookie), %p (site password, curl format).</p>
|
||||
<p>/sdcard/uweb/default.filecap example:</p>
|
||||
<p>default.filecap example:</p>
|
||||
<pre><code>txt:text/html:curl %p "%u"
|
||||
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>'
|
||||
|
@ -59,9 +59,9 @@ xlsx:uweb:echo http://docs.google.com/gview?embedded=true&url=%U
|
|||
pptx:uweb:echo http://docs.google.com/gview?embedded=true&url=%U
|
||||
xz:text/plain:curl %p "%u"|xz -d --</code></pre>
|
||||
<p>Examples for <a href="../html5/index.html">html5 application</a>:</p>
|
||||
<pre><code>pdf:uweb:echo file:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u
|
||||
djvu:uweb:echo file:///sdcard/uweb/app/djvu.html?url=%u
|
||||
epub:uweb:echo file:///sdcard/uweb/app/reader/index.html?bookPath==%u</code></pre>
|
||||
<pre><code>pdf:uweb:echo file:///data/data/info.torinfo.uweb/files/app/pdf.js/web/viewer.html?file=%u
|
||||
djvu:uweb:echo file:///data/data/info.torinfo.uweb/files/app/djvu.html?url=%u
|
||||
epub:uweb:echo file:///data/data/info.torinfo.uweb/files/app/reader/index.html?bookPath==%u</code></pre>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue