From b2722323efd97ef7cf9dd83c1ec35842f5db44d5 Mon Sep 17 00:00:00 2001 From: Patrick Robertson Date: Thu, 16 Jan 2025 16:25:16 +0100 Subject: [PATCH] Revert "Rename twitter _extract_status -> _extract_post" This reverts commit 235df4126a87087ee940ebd75ea699986b427b87. --- yt_dlp/extractor/twitter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/twitter.py b/yt_dlp/extractor/twitter.py index a132da56c7..c05b5bf9cb 100644 --- a/yt_dlp/extractor/twitter.py +++ b/yt_dlp/extractor/twitter.py @@ -1352,7 +1352,7 @@ class TwitterIE(TwitterBaseIE): return status - def _extract_post(self, twid): + def _extract_status(self, twid): if self._selected_api not in ('graphql', 'legacy', 'syndication'): raise ExtractorError(f'{self._selected_api!r} is not a valid API selection', expected=True) @@ -1380,7 +1380,7 @@ class TwitterIE(TwitterBaseIE): def _real_extract(self, url): twid, selected_index = self._match_valid_url(url).group('id', 'index') - status = self._extract_post(twid) + status = self._extract_status(twid) title = description = traverse_obj( status, (('full_text', 'text'), {lambda x: x.replace('\n', ' ')}), get_all=False) or ''