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 os
|
||||||
|
import pathlib
|
||||||
import queue
|
import queue
|
||||||
import random
|
import random
|
||||||
import threading
|
import threading
|
||||||
|
@ -67,6 +68,8 @@ class TorrentPlugin(Plugin):
|
||||||
'tv': f'{popcorn_base_url}/show/{{}}',
|
'tv': f'{popcorn_base_url}/show/{{}}',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pathlib.Path(self.download_dir).mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
@action
|
@action
|
||||||
def search(
|
def search(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Reference in a new issue