Skip to content

Commit

Permalink
fix: 修复 yt-dlp-cookies 报错
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi committed Sep 29, 2024
1 parent 10a5292 commit 774ac81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xiaomusic/xiaomusic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1462,8 +1462,8 @@ async def download(self, search_key, name):
if self.config.proxy:
sbp_args += ("--proxy", f"{self.config.proxy}")

if self.config.yt_dlp_cookies:
sbp_args += ("--cookies", f"{self.config.yt_dlp_cookies}")
if self.config.enable_yt_dlp_cookies:
sbp_args += ("--cookies", f"{self.config.yt_dlp_cookies_path}")

cmd = " ".join(sbp_args)
self.log.info(f"download cmd: {cmd}")
Expand Down

0 comments on commit 774ac81

Please sign in to comment.