draft: rewriting downloading
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
8c369d79e4
commit
bb32fc7647
@ -1,5 +1,6 @@
|
|||||||
from typing import Tuple, Type, Dict, Set, Optional, List
|
from typing import Tuple, Type, Dict, Set, Optional, List
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from . import FetchOptions, DownloadOptions
|
from . import FetchOptions, DownloadOptions
|
||||||
from .results import SearchResults
|
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]
|
naming[key] = [fit_to_file_system(i) for i in naming[key] if i is not None]
|
||||||
|
|
||||||
# get every possible path
|
# get every possible path
|
||||||
path_format = [*main_settings["download_path"].split("/"), main_settings["download_file"]]
|
path_format = Path(main_settings["download_path"], main_settings["download_file"])
|
||||||
every_possible_path: Set[str] = set()
|
for part in path_format.parts:
|
||||||
|
pass
|
||||||
|
|
||||||
return DownloadOptions()
|
return DownloadOptions()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user