Update extension list and make common

This commit is contained in:
prpr 2024-01-27 00:45:00 +00:00
parent 4c4fbe6a2b
commit 78cebd9099
4 changed files with 8 additions and 5 deletions

View File

@ -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"

View File

@ -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) ""

View File

@ -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
View 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}