소스 검색

Added timeout for WebDAV fs mount

Toby Chui 1 년 전
부모
커밋
f4bb33fff5
4개의 변경된 파일298개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      mod/filesystem/abstractions/webdavfs/webdavfs.go
  2. 267 0
      web/FFmpeg Factory/index.html
  3. 30 0
      web/FFmpeg Factory/init.agi
  4. 0 0
      web/FFmpeg Factory/tocas.css

+ 1 - 0
mod/filesystem/abstractions/webdavfs/webdavfs.go

@@ -35,6 +35,7 @@ type WebDAVFileSystem struct {
 func NewWebDAVMount(UUID string, Hierarchy string, root string, user string, password string) (*WebDAVFileSystem, error) {
 	//Connect to webdav server
 	c := gowebdav.NewClient(root, user, password)
+	c.SetTimeout(5 * time.Second)
 	err := c.Connect()
 	if err != nil {
 		log.Println("[WebDAV FS] Unable to connect to remote: ", err.Error())

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 267 - 0
web/FFmpeg Factory/index.html


+ 30 - 0
web/FFmpeg Factory/init.agi

@@ -0,0 +1,30 @@
+/*
+	FFmpeg Factory
+	CopyRight tobychui 2020 - 2021
+
+	This is a port of the ArOZ Online Beta FFmpeg Factory to the ArOZ Online 1.0
+	If you are running on Windows, ffmpeg must be installed in your %PATH% environment 
+	variable before you can actually use this module.
+*/
+
+//Define the launchInfo for the module
+var moduleLaunchInfo = {
+    Name: "FFmpeg Factory",
+	Group: "Media",
+	IconPath: "FFmpeg Factory/img/small_icon.png",
+	Version: "2.0",
+	StartDir: "FFmpeg Factory/index.html",
+	SupportFW: true,
+	LaunchFWDir: "FFmpeg Factory/index.html",
+	InitFWSize: [1150, 640],
+	SupportedExt: [".avi",".mp4",".mp3",".aac",".flac"]
+}
+
+//Request ffmpeg for this module
+if (requirepkg("ffmpeg",true)){
+	//Register the module
+	registerModule(JSON.stringify(moduleLaunchInfo));
+}else{
+	console.log("FFMPEG not found! Not enabling FFmpeg Factory");
+}
+

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
web/FFmpeg Factory/tocas.css


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.