From e7b5d68f372499167fbf9711de42d3180a92e4de Mon Sep 17 00:00:00 2001 From: InvalidUsernameException Date: Tue, 30 Jun 2026 05:17:35 +0200 Subject: [PATCH] [ie/truth] Support share URLs (#16096) Closes #16089 Authored by: InvalidUsernameException --- yt_dlp/extractor/truth.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/truth.py b/yt_dlp/extractor/truth.py index 673948eea5..9bac54a3f4 100644 --- a/yt_dlp/extractor/truth.py +++ b/yt_dlp/extractor/truth.py @@ -10,7 +10,7 @@ from ..utils import ( class TruthIE(InfoExtractor): - _VALID_URL = r'https?://truthsocial\.com/@[^/]+/posts/(?P\d+)' + _VALID_URL = r'https?://truthsocial\.com/@[^/?#]+(?:/posts)?/(?P\d+)' _TESTS = [ { 'url': 'https://truthsocial.com/@realDonaldTrump/posts/108779000807761862', @@ -47,6 +47,11 @@ class TruthIE(InfoExtractor): 'like_count': int, }, }, + { + # Share URL + 'url': 'https://truthsocial.com/@realDonaldTrump/108779000807761862', + 'only_matching': True, + }, ] def _real_extract(self, url):