8000 feat(archive): support deprioritize previewing (#7984) · anwen-anyi/alist@30d8c20 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 30d8c20

Browse files
authored
feat(archive): support deprioritize previewing (AlistGo#7984)
1 parent 3b71500 commit 30d8c20

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

internal/bootstrap/data/setting.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ func InitialSettings() []model.SettingItem {
140140
{Key: "audio_cover", Value: "https://jsd.nn.ci/gh/alist-org/logo@main/logo.svg", Type: conf.TypeString, Group: model.PREVIEW},
141141
{Key: conf.AudioAutoplay, Value: "true", Type: conf.TypeBool, Group: model.PREVIEW},
142142
{Key: conf.VideoAutoplay, Value: "true", Type: conf.TypeBool, Group: model.PREVIEW},
143+
{Key: conf.PreviewArchivesByDefault, Value: "true", Type: conf.TypeBool, Group: model.PREVIEW},
143144
// global settings
144145
{Key: conf.HideFiles, Value: "/\\/README.md/i", Type: conf.TypeText, Group: model.GLOBAL},
145146
{Key: "package_download", Value: "true", Type: conf.TypeBool, Group: model.GLOBAL},

internal/conf/const.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ const (
2222
MainColor = "main_color"
2323

2424
// preview
25-
TextTypes = "text_types"
26-
AudioTypes = "audio_types"
27-
VideoTypes = "video_types"
28-
ImageTypes = "image_types"
29-
ProxyTypes = "proxy_types"
30-
ProxyIgnoreHeaders = "proxy_ignore_headers"
31-
AudioAutoplay = "audio_autoplay"
32-
VideoAutoplay = "video_autoplay"
25+
TextTypes = "text_types"
26+
AudioTypes = "audio_types"
27+
VideoTypes = "video_types"
28+
ImageTypes = "image_types"
29+
ProxyTypes = "proxy_types"
30+
ProxyIgnoreHeaders = "proxy_ignore_headers"
31+
AudioAutoplay = "audio_autoplay"
32+
VideoAutoplay = "video_autoplay"
33+
PreviewArchivesByDefault = "preview_archives_by_default"
3334

3435
// global
3536
HideFiles = "hide_files"

0 commit comments

Comments
 (0)
0