mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
Fix compat with older versions of python
path.join doesn't handle PosixPath instances in older versions of python which causes breakage. fixes #71
This commit is contained in:
parent
5c3cebd0f3
commit
e3f66bda43
@ -124,7 +124,7 @@ def _crete_temp_dir(base_uri):
|
|||||||
path = urlparse(base_uri).path.lstrip("/")
|
path = urlparse(base_uri).path.lstrip("/")
|
||||||
temp_dir = Path(tempfile.gettempdir(), "twitch-dl", path)
|
temp_dir = Path(tempfile.gettempdir(), "twitch-dl", path)
|
||||||
temp_dir.mkdir(parents=True, exist_ok=True)
|
temp_dir.mkdir(parents=True, exist_ok=True)
|
||||||
return temp_dir
|
return str(temp_dir)
|
||||||
|
|
||||||
|
|
||||||
def download(args):
|
def download(args):
|
||||||
|
Loading…
Reference in New Issue
Block a user