aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/ytdl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/ytdl.py b/app/ytdl.py
index 0bafc91..266de10 100644
--- a/app/ytdl.py
+++ b/app/ytdl.py
@@ -170,7 +170,7 @@ class PersistentQueue:
return sorted(shelf.items(), key=lambda item: item[1].timestamp)
def put(self, value):
- key = value.info.id
+ key = value.info.url
self.dict[key] = value
with shelve.open(self.path, 'w') as shelf:
shelf[key] = value.info
bgstack15