forked from platypush/platypush
[torrent
] Create download_dir
if it doesn't exist.
This commit is contained in:
parent
07e7f06c7a
commit
11c3b7820d
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue