This commit is contained in:
palewire 2022-08-09 03:47:50 -07:00
parent 1f5cc92752
commit 789a929349
No known key found for this signature in database
GPG Key ID: A5AD4A9AD42D69AB

View File

@ -22,7 +22,7 @@ class TruthIE(InfoExtractor):
'info_dict': {
'id': '108779000807761862',
'ext': 'qt',
'title': '0d8691160c73d663',
'title': 'realDonaldTrump-0d8691160c73d663',
'timestamp': 1659835827,
'upload_date': '20220807',
'uploader': 'Donald J. Trump',
@ -35,7 +35,8 @@ class TruthIE(InfoExtractor):
'info_dict': {
'id': '108618228543962049',
'ext': 'mp4',
'title': """RETRACTO #368: Utah NPR Affiliate RETRACTS False Claim Live On Air Following Veritas' Reporting on Curtis Campaign \n“Nothing I ever do will suffice for these people. They are engaged in conspiracy theories. They are doing precisely the thing they project that I do. Which is they dont believe in facts, they dont believe in logic, and they dont believe in rationality.” - James OKeefe""",
'title': 'ProjectVeritasAction-6e24b75a4604b594',
'description': """RETRACTO #368: Utah NPR Affiliate RETRACTS False Claim Live On Air Following Veritas' Reporting on Curtis Campaign \n“Nothing I ever do will suffice for these people. They are engaged in conspiracy theories. They are doing precisely the thing they project that I do. Which is they dont believe in facts, they dont believe in logic, and they dont believe in rationality.” - James OKeefe""",
'timestamp': 1657382637,
'upload_date': '20220709',
'uploader': 'Project Veritas Action',
@ -56,7 +57,7 @@ class TruthIE(InfoExtractor):
url = status['media_attachments'][0]['url']
# Pull out metadata
title = strip_or_none(clean_html(status.get('content'))) or self._generic_title(url)
description = strip_or_none(clean_html(status.get('content')))
timestamp = unified_timestamp(status.get('created_at'))
account = status.get('account') or {}
uploader = strip_or_none(account.get('display_name'))
@ -66,11 +67,17 @@ class TruthIE(InfoExtractor):
like_count = int_or_none(status.get('favourites_count'))
comment_count = int_or_none(status.get('replies_count'))
# Keep the file name short so it doesn't exceed filesystem limits
title = self._generic_title(url)
if uploader_id:
title = '%s-%s' % (uploader_id, title)
# Return the stuff
return {
'id': video_id,
'url': url,
'title': title,
'description': description,
'timestamp': timestamp,
'uploader': uploader,
'uploader_id': uploader_id,