[torrent] Create download_dir if it doesn't exist.

This commit is contained in:
Fabio Manganiello 2023-11-04 15:48:05 +01:00
parent 07e7f06c7a
commit 11c3b7820d
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -1,4 +1,5 @@
import os
import pathlib
import queue
import random
import threading
@ -67,6 +68,8 @@ class TorrentPlugin(Plugin):
'tv': f'{popcorn_base_url}/show/{{}}',
}
pathlib.Path(self.download_dir).mkdir(parents=True, exist_ok=True)
@action
def search(
self,