aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/ytdl.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/ytdl.py b/app/ytdl.py
index deb745c..6e406b0 100644
--- a/app/ytdl.py
+++ b/app/ytdl.py
@@ -136,9 +136,12 @@ class Download:
class PersistentQueue:
def __init__(self, path):
- self.path = path
+ pdir = os.path.dirname(path)
+ if not os.path.isdir(pdir):
+ os.mkdir(pdir)
with shelve.open(path, 'c'):
pass
+ self.path = path
self.dict = OrderedDict()
def load(self):
bgstack15