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()