From 0bcc7334cbd8ae73cafd089fdefa9ab366679f23 Mon Sep 17 00:00:00 2001 From: sudacode Date: Thu, 5 Sep 2024 23:17:03 -0700 Subject: [PATCH] disable history db by default - change default config - add back line to prevent from running when disabled --- mpv-youtube-queue.conf | 2 +- mpv-youtube-queue.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mpv-youtube-queue.conf b/mpv-youtube-queue.conf index 0d11465..92223f7 100644 --- a/mpv-youtube-queue.conf +++ b/mpv-youtube-queue.conf @@ -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 diff --git a/mpv-youtube-queue.lua b/mpv-youtube-queue.lua index d582e40..4fda47d 100644 --- a/mpv-youtube-queue.lua +++ b/mpv-youtube-queue.lua @@ -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 = {