diff options
author | Alex <alexta69@gmail.com> | 2023-02-04 10:25:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-04 10:25:18 +0200 |
commit | 3e6c63646cd27b962fa875efcdebf62ef2141956 (patch) | |
tree | 97cf954e23f6a0cb03b2086522e55dc6d55ddf05 /app | |
parent | upgraded yt-dlp (diff) | |
parent | unique downloads of identically named videos (diff) | |
download | metube-3e6c63646cd27b962fa875efcdebf62ef2141956.tar.gz metube-3e6c63646cd27b962fa875efcdebf62ef2141956.tar.bz2 metube-3e6c63646cd27b962fa875efcdebf62ef2141956.zip |
Merge pull request #216 from kaytwo/master
unique downloads of identically named videos
Diffstat (limited to 'app')
-rw-r--r-- | app/ytdl.py | 2 |
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
|