mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-07-02 16:28:52 +00:00
[ie/truth] Support share URLs (#16096)
Closes #16089 Authored by: InvalidUsernameException
This commit is contained in:
parent
b0472c3bce
commit
e7b5d68f37
@ -10,7 +10,7 @@ from ..utils import (
|
||||
|
||||
|
||||
class TruthIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://truthsocial\.com/@[^/]+/posts/(?P<id>\d+)'
|
||||
_VALID_URL = r'https?://truthsocial\.com/@[^/?#]+(?:/posts)?/(?P<id>\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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user