mirror of
https://github.com/kenzok8/openwrt-packages.git
synced 2025-01-07 03:06:43 +08:00
update 2022-09-25 20:18:41
This commit is contained in:
parent
0ff68e7d6d
commit
fdbfe524ed
@ -30,5 +30,5 @@ start() {
|
||||
|
||||
stop() {
|
||||
echo "${db_dir}/${db_name}" > "/lib/upgrade/keep.d/filebrowser"
|
||||
killall -9 filebrowser >/dev/null 2>&1
|
||||
killall -3 filebrowser >/dev/null 2>&1
|
||||
}
|
||||
|
@ -39,6 +39,11 @@ o.description = translate("目前仅支持酷狗、酷我、咪咕、pyncmd、QQ
|
||||
o.default = 0
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(Flag, "disable_upgrade_check", translate("禁用更新检查"))
|
||||
o.description = translate("禁止客户端检查更新,全平台支持")
|
||||
o.default = 1
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(ListValue, "replace_music_source", translate("强制音乐音源替换"))
|
||||
o:value("dont_replace", translate("不强制替换音乐音源"))
|
||||
o:value("lower_than_192kbps", translate("当音质低于 192 Kbps(中)时"))
|
||||
|
@ -2,10 +2,11 @@
|
||||
config unblockneteasemusic 'config'
|
||||
option enable '0'
|
||||
option music_source 'default'
|
||||
option local_vip '0'
|
||||
option enable_flac '0'
|
||||
option disable_upgrade_check '1'
|
||||
option replace_music_source 'dont_replace'
|
||||
option use_custom_cookie '0'
|
||||
option local_vip '0'
|
||||
option auto_update '1'
|
||||
option update_time '3'
|
||||
option advanced_mode '0'
|
||||
|
@ -145,6 +145,7 @@ start_service() {
|
||||
|
||||
is_enabled "config" "enable_flac" && procd_append_param env ENABLE_FLAC="true"
|
||||
is_enabled "config" "local_vip" && procd_append_param env ENABLE_LOCAL_VIP="true"
|
||||
is_enabled "config" "disable_upgrade_check" && procd_append_param env DISABLE_UPGRADE_CHECK="true"
|
||||
case "$(config_get "config" "replace_music_source")" in
|
||||
"lower_than_192kbps") procd_append_param env MIN_BR="192000" ;;
|
||||
"lower_than_320kbps") procd_append_param env MIN_BR="320000" ;;
|
||||
|
Loading…
Reference in New Issue
Block a user