Skip to content

Commit

Permalink
Set cachedir for MPV yt-dlp and local yt-dlp
Browse files Browse the repository at this point in the history
  • Loading branch information
Douile committed Sep 10, 2023
1 parent da01518 commit 4163914
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion friends_queue/friends_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ def main(debug=False):
if debug:
extra_args["log_handler"] = print
extra_args["loglevel"] = "debug"
extra_args["script_opts"] = "ytdl_hook-cachedir=" + cache_dirs.ytdl
player = mpv.MPV(
ytdl=True,
ytdl_format=FORMAT_SPECIFIER,
Expand All @@ -308,7 +309,7 @@ def main(debug=False):
"format": FORMAT_SPECIFIER,
"skip_download": True,
"noplaylist": True,
"cache_dir": cache_dirs.ytdl,
"cachedir": cache_dirs.ytdl,
}
)

Expand Down

0 comments on commit 4163914

Please sign in to comment.