Skip to content

Commit

Permalink
disable history db by default
Browse files Browse the repository at this point in the history
- change default config
- add back line to prevent from running when disabled
  • Loading branch information
ksyasuda committed Sep 6, 2024
1 parent 2f7756d commit 0bcc733
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mpv-youtube-queue.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion mpv-youtube-queue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 0bcc733

Please sign in to comment.