From fd6ad217b107ff86d0080b1f24cea68fafdf11a6 Mon Sep 17 00:00:00 2001 From: "Renan D." Date: Tue, 13 Aug 2024 02:00:46 -0300 Subject: [PATCH] [ie/threads] Avoid error when no uploader found --- yt_dlp/extractor/threads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/threads.py b/yt_dlp/extractor/threads.py index fba0bd4fc4..140bc2ca59 100644 --- a/yt_dlp/extractor/threads.py +++ b/yt_dlp/extractor/threads.py @@ -116,7 +116,7 @@ def _real_extract(self, url): metadata['channel'] = metadata.get('uploader_id') 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')) return {