Fix yet another compatibility issue with Path objects and Python 3.5

This commit is contained in:
Dan 2019-07-28 09:32:35 +02:00
parent 87bbd764b9
commit 11ea15aa08

View File

@ -214,7 +214,8 @@ class DownloadMedia(BaseClient):
extension
)
self.download_queue.put((data, directory, file_name, done, progress, progress_args, path))
# Cast to string because Path objects aren't supported by Python 3.5
self.download_queue.put((data, str(directory), str(file_name), done, progress, progress_args, path))
if block:
done.wait()