forked from hummypkg/webif
Update extension list and make common
This commit is contained in:
parent
4c4fbe6a2b
commit
78cebd9099
@ -30,7 +30,8 @@ if {[catch {set pid [exec pgrep -n humaxtv]}]} {
|
||||
exit
|
||||
}
|
||||
|
||||
set exts {.ts .avi .mpg .mpeg .wmv .mkv .mp3 .mp4 .mov .hmt .m4v .m4a}
|
||||
source /mod/webif/include/extensions.jim
|
||||
set exts $include
|
||||
|
||||
set statusops {
|
||||
decrypt { "Decrypting"
|
||||
|
@ -20,8 +20,7 @@ header
|
||||
|
||||
set nicesplice [system pkginst nicesplice]
|
||||
|
||||
set ignore {.nts .thm .hmi}
|
||||
set include {.ts .avi .mpg .mpeg .wmv .mkv .mp3 .mp4 .mov .hmt .m4v .m4a .webm}
|
||||
source /mod/webif/include/extensions.jim
|
||||
|
||||
if {![dict exists $env SCRIPT_NAME]} {
|
||||
set env(SCRIPT_NAME) ""
|
||||
|
@ -6,8 +6,7 @@ require ts.class pretty_size system.class settings.class escape browse.class
|
||||
|
||||
cgi_input
|
||||
|
||||
set ignore {.nts .thm .hmi}
|
||||
set include {.ts .avi .mpg .mpeg .wmv .mkv .mp3 .mp4 .mov .hmt}
|
||||
source /mod/webif/include/extensions.jim
|
||||
|
||||
set dir [cgi_get dir [system mediaroot]]
|
||||
|
||||
|
4
webif/include/extensions.jim
Executable file
4
webif/include/extensions.jim
Executable file
@ -0,0 +1,4 @@
|
||||
#!/mod/bin/jimsh
|
||||
|
||||
set ignore {.nts .thm .hmi}
|
||||
set include {.ts .avi .mpg .mpeg .wmv .mkv .mp2 .mp3 .mp4 .mov .hmt .m4v .m4a .wav .webm}
|
Loading…
Reference in New Issue
Block a user