mirror of
https://github.com/alexta69/metube.git
synced 2025-04-05 05:07:37 +03:00
Merge pull request #520 from phoenix727/title-default
fix: provide default value for title when absent
This commit is contained in:
commit
f306b4aaa8
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ class DownloadQueue:
|
||||||
elif etype == 'video' or etype.startswith('url') and 'id' in entry and 'title' in entry:
|
elif etype == 'video' or etype.startswith('url') and 'id' in entry and 'title' in entry:
|
||||||
log.debug('Processing as a video')
|
log.debug('Processing as a video')
|
||||||
if not self.queue.exists(entry['id']):
|
if not self.queue.exists(entry['id']):
|
||||||
dl = DownloadInfo(entry['id'], entry['title'], entry.get('webpage_url') or entry['url'], quality, format, folder, custom_name_prefix, error)
|
dl = DownloadInfo(entry['id'], entry.get('title') or entry['id'], entry.get('webpage_url') or entry['url'], quality, format, folder, custom_name_prefix, error)
|
||||||
dldirectory, error_message = self.__calc_download_path(quality, format, folder)
|
dldirectory, error_message = self.__calc_download_path(quality, format, folder)
|
||||||
if error_message is not None:
|
if error_message is not None:
|
||||||
return error_message
|
return error_message
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue