From bb32fc7647ce3f9b83c894782051ff048946cda7 Mon Sep 17 00:00:00 2001 From: Hellow <74311245+HeIIow2@users.noreply.github.com> Date: Tue, 14 May 2024 00:28:05 +0200 Subject: [PATCH] draft: rewriting downloading --- music_kraken/download/page_attributes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/music_kraken/download/page_attributes.py b/music_kraken/download/page_attributes.py index a658723..13d6ee8 100644 --- a/music_kraken/download/page_attributes.py +++ b/music_kraken/download/page_attributes.py @@ -1,5 +1,6 @@ from typing import Tuple, Type, Dict, Set, Optional, List from collections import defaultdict +from pathlib import Path from . import FetchOptions, DownloadOptions from .results import SearchResults @@ -218,9 +219,9 @@ class Pages: naming[key] = [fit_to_file_system(i) for i in naming[key] if i is not None] # get every possible path - path_format = [*main_settings["download_path"].split("/"), main_settings["download_file"]] - every_possible_path: Set[str] = set() - + path_format = Path(main_settings["download_path"], main_settings["download_file"]) + for part in path_format.parts: + pass return DownloadOptions()