[Bug] The channel shorts are labelled as upcoming in the API response
Describe the bug
In the API response for the channel shorts tab, all shorts are labelled as upcoming, I suspect this is a bug caused by YouTube not returning published dates on the shorts tab. (The published and publishedText fields are incorrect too but they are probably unfixable, unless you want to change the API schema to allow those fields to be blank in the response)
Steps to Reproduce
- Navigate to
{instance}/api/v1/channels/UCXuqSBlHAE6Xw-yeJA0Tunw/shorts - Check the value of the
isUpcomingfields
Screenshots
Snippet of the API response. I removed the videoThumbnails array here as it's quite verbose and not relevant to this issue.
{
"type": "video",
"title": "We tattooed MEMES on our staff...",
"videoId": "jfnyKtJYYN0",
"author": "Linus Tech Tips",
"authorId": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"authorUrl": "/channel/UCXuqSBlHAE6Xw-yeJA0Tunw",
"authorVerified": false,
"videoThumbnails": [],
"description": "",
"descriptionHtml": "",
"viewCount": 193000,
"viewCountText": "193K views",
"published": 1683994001,
"publishedText": "0 seconds ago",
"lengthSeconds": 58,
"liveNow": false,
"premium": false,
"isUpcoming": true,
"premiereTimestamp": 0
}
Ah, shoot! Nice catch! We should probably default to unix timestamp 0 when the "published" date is not available...
This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.
Not stale