mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-23 22:55:52 -07:00
Trim
This commit is contained in:
parent
1f5cc92752
commit
789a929349
1 changed files with 10 additions and 3 deletions
|
@ -22,7 +22,7 @@ class TruthIE(InfoExtractor):
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '108779000807761862',
|
'id': '108779000807761862',
|
||||||
'ext': 'qt',
|
'ext': 'qt',
|
||||||
'title': '0d8691160c73d663',
|
'title': 'realDonaldTrump-0d8691160c73d663',
|
||||||
'timestamp': 1659835827,
|
'timestamp': 1659835827,
|
||||||
'upload_date': '20220807',
|
'upload_date': '20220807',
|
||||||
'uploader': 'Donald J. Trump',
|
'uploader': 'Donald J. Trump',
|
||||||
|
@ -35,7 +35,8 @@ class TruthIE(InfoExtractor):
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '108618228543962049',
|
'id': '108618228543962049',
|
||||||
'ext': 'mp4',
|
'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,
|
'timestamp': 1657382637,
|
||||||
'upload_date': '20220709',
|
'upload_date': '20220709',
|
||||||
'uploader': 'Project Veritas Action',
|
'uploader': 'Project Veritas Action',
|
||||||
|
@ -56,7 +57,7 @@ class TruthIE(InfoExtractor):
|
||||||
url = status['media_attachments'][0]['url']
|
url = status['media_attachments'][0]['url']
|
||||||
|
|
||||||
# Pull out metadata
|
# 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'))
|
timestamp = unified_timestamp(status.get('created_at'))
|
||||||
account = status.get('account') or {}
|
account = status.get('account') or {}
|
||||||
uploader = strip_or_none(account.get('display_name'))
|
uploader = strip_or_none(account.get('display_name'))
|
||||||
|
@ -66,11 +67,17 @@ class TruthIE(InfoExtractor):
|
||||||
like_count = int_or_none(status.get('favourites_count'))
|
like_count = int_or_none(status.get('favourites_count'))
|
||||||
comment_count = int_or_none(status.get('replies_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 the stuff
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'url': url,
|
'url': url,
|
||||||
'title': title,
|
'title': title,
|
||||||
|
'description': description,
|
||||||
'timestamp': timestamp,
|
'timestamp': timestamp,
|
||||||
'uploader': uploader,
|
'uploader': uploader,
|
||||||
'uploader_id': uploader_id,
|
'uploader_id': uploader_id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue