[`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: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 3 additions and 0 deletions

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,