@@ -82,16 +82,25 @@ func initialSettings() {
8282 {Key : conf .AudioTypes , Value : "mp3,flac,ogg,m4a,wav,opus" , Type : conf .TypeText , Group : model .PREVIEW , Flag : model .PRIVATE },
8383 {Key : conf .VideoTypes , Value : "mp4,mkv,avi,mov,rmvb,webm,flv" , Type : conf .TypeText , Group : model .PREVIEW , Flag : model .PRIVATE },
8484 {Key : conf .ImageTypes , Value : "jpg,tiff,jpeg,png,gif,bmp,svg,ico,swf,webp" , Type : conf .TypeText , Group : model .PREVIEW , Flag : model .PRIVATE },
85- {Key : conf .OfficeTypes , Value : "doc,docx,xls,xlsx,ppt,pptx" , Type : conf .TypeText , Group : model .PREVIEW , Flag : model .PRIVATE },
85+ // {Key: conf.OfficeTypes, Value: "doc,docx,xls,xlsx,ppt,pptx", Type: conf.TypeText, Group: model.PREVIEW, Flag: model.PRIVATE},
8686 {Key : conf .ProxyTypes , Value : "m3u8" , Type : conf .TypeText , Group : model .PREVIEW , Flag : model .PRIVATE },
8787 {Key : "external_previews" , Value : `{}` , Type : conf .TypeText , Group : model .PREVIEW },
88- {Key : conf .OfficeViewers , Value : `{
89- "Microsoft":"https://view.officeapps.live.com/op/view.aspx?src=$url",
90- "Google":"https://docs.google.com/gview?url=$url&embedded=true",
91- }` , Type : conf .TypeText , Group : model .PREVIEW },
92- {Key : conf .PdfViewers , Value : `{
93- "pdf.js":"https://alist-org.github.io/pdf.js/web/viewer.html?file=$url"
88+ {Key : "iframe_previews" , Value : `{
89+ "doc,docx,xls,xlsx,ppt,pptx": {
90+ "Microsoft":"https://view.officeapps.live.com/op/view.aspx?src=$url",
91+ "Google":"https://docs.google.com/gview?url=$url&embedded=true"
92+ },
93+ "pdf": {
94+ "PDF.js":"https://alist-org.github.io/pdf.js/web/viewer.html?file=$url"
95+ }
9496}` , Type : conf .TypeText , Group : model .PREVIEW },
97+ // {Key: conf.OfficeViewers, Value: `{
98+ // "Microsoft":"https://view.officeapps.live.com/op/view.aspx?src=$url",
99+ // "Google":"https://docs.google.com/gview?url=$url&embedded=true",
100+ //}`, Type: conf.TypeText, Group: model.PREVIEW},
101+ // {Key: conf.PdfViewers, Value: `{
102+ // "pdf.js":"https://alist-org.github.io/pdf.js/web/viewer.html?file=$url"
103+ //}`, Type: conf.TypeText, Group: model.PREVIEW},
95104 {Key : conf .AudioAutoplay , Value : "true" , Type : conf .TypeBool , Group : model .PREVIEW },
96105 {Key : conf .VideoAutoplay , Value : "true" , Type : conf .TypeBool , Group : model .PREVIEW },
97106 // global settings
0 commit comments