disable history db by default

- change default config
- add back line to prevent from running when disabled
This commit is contained in:
sudacode 2024-09-05 23:17:03 -07:00
parent 2f7756d1fb
commit 0bcc7334cb
2 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,6 @@ menu_timeout=5
show_errors=yes
ytdlp_file_format=mp4
ytdlp_output_template=%(uploader)s/%(title)s.%(ext)s
use_history_db=yes
use_history_db=no
backend_host=http://localhost
backend_port=42069

View File

@ -60,7 +60,7 @@ local options = {
show_errors = true,
ytdlp_file_format = "mp4",
ytdlp_output_template = "%(uploader)s/%(title)s.%(ext)s",
use_history_db = true,
use_history_db = false,
backend_host = "http://localhost",
backend_port = "42069"
}
@ -212,6 +212,7 @@ local function _split_command(cmd)
end
function YouTubeQueue._add_to_history_db(v)
if not options.use_history_db then return false end
local url = options.backend_host .. ":" .. options.backend_port ..
"/add_video"
local command = {