diff options
author | Alex Shnitman <alexta69@gmail.com> | 2021-09-15 15:51:18 +0300 |
---|---|---|
committer | Alex Shnitman <alexta69@gmail.com> | 2021-09-15 15:51:18 +0300 |
commit | 95d199ed9ba1e3a91b7f62d702416b347cf53828 (patch) | |
tree | ba51aac69033c5a703d0087e83a30a3d168f7961 /app | |
parent | allow selecting MP4 in the GUI (diff) | |
download | metube-95d199ed9ba1e3a91b7f62d702416b347cf53828.tar.gz metube-95d199ed9ba1e3a91b7f62d702416b347cf53828.tar.bz2 metube-95d199ed9ba1e3a91b7f62d702416b347cf53828.zip |
fix downloads from private playlists
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 33318fd..764b770 100644 --- a/app/ytdl.py +++ b/app/ytdl.py @@ -162,7 +162,7 @@ class DownloadQueue: if any(res['status'] == 'error' for res in results):
return {'status': 'error', 'msg': ', '.join(res['msg'] for res in results if res['status'] == 'error' and 'msg' in res)}
return {'status': 'ok'}
- elif etype == 'video' or etype.startswith('url') and 'id' in entry:
+ elif etype == 'video' or etype.startswith('url') and 'id' in entry and 'title' in entry:
if entry['id'] not in self.queue:
dl = DownloadInfo(entry['id'], entry['title'], entry.get('webpage_url') or entry['url'], quality, format)
dldirectory = self.config.DOWNLOAD_DIR if quality != 'audio' else self.config.AUDIO_DOWNLOAD_DIR
|