Trim
This commit is contained in:
parent
1f5cc92752
commit
789a929349
@ -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 don’t believe in facts, they don’t believe in logic, and they don’t believe in rationality.” - James O’Keefe""",
|
||||
'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 don’t believe in facts, they don’t believe in logic, and they don’t believe in rationality.” - James O’Keefe""",
|
||||
'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,
|
||||
|
Loading…
Reference in New Issue
Block a user