mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 06:27:21 +00:00
[ie/threads] Avoid error when no uploader found
This commit is contained in:
parent
0b6807cdb0
commit
fd6ad217b1
|
@ -116,7 +116,7 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
metadata['channel'] = metadata.get('uploader_id')
|
metadata['channel'] = metadata.get('uploader_id')
|
||||||
metadata['channel_url'] = metadata.get('uploader_url')
|
metadata['channel_url'] = metadata.get('uploader_url')
|
||||||
metadata['uploader'] = self._search_regex(r'(.*?) \(', self._og_search_title(webpage), 'uploader')
|
metadata['uploader'] = self._search_regex(r'(.*?) \(', self._og_search_title(webpage), 'uploader', metadata.get('uploader_id'))
|
||||||
metadata['upload_date'] = strftime_or_none(metadata.get('timestamp'))
|
metadata['upload_date'] = strftime_or_none(metadata.get('timestamp'))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue