Skip to content

Commit

Permalink
fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat committed Aug 26, 2024
1 parent c91efb9 commit 30342ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spotdl/console/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ def web(web_settings: WebOptions, downloader_settings: DownloaderOptions):
gui_repo,
output_dir=str(web_app_dir),
)
web_app_dir = os.path.join(web_app_dir, "dist")
web_app_dir = Path(os.path.join(web_app_dir, "dist")).resolve()
elif web_settings["web_gui_location"]:
web_app_dir = Path(web_settings["web_gui_location"]).resolve()
logger.info("Using custom web app location: %s", web_app_dir)
else:
logger.info(
"Using cached web app. To update use the `--force-update-gui` flag."
)
web_app_dir = os.path.join(web_app_dir, "dist")
web_app_dir = Path(os.path.join(web_app_dir, "dist")).resolve()

app_state.api = FastAPI(
title="spotDL",
Expand Down

0 comments on commit 30342ea

Please sign in to comment.