invidious icon indicating copy to clipboard operation
invidious copied to clipboard

[Bug] The channel shorts are labelled as upcoming in the API response

Open absidue opened this issue 2 years ago • 3 comments

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

  1. Navigate to {instance}/api/v1/channels/UCXuqSBlHAE6Xw-yeJA0Tunw/shorts
  2. Check the value of the isUpcoming fields

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
}

absidue avatar May 13 '23 16:05 absidue

Ah, shoot! Nice catch! We should probably default to unix timestamp 0 when the "published" date is not available...

SamantazFox avatar May 14 '23 17:05 SamantazFox

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.

github-actions[bot] avatar May 14 '24 01:05 github-actions[bot]

Not stale

absidue avatar May 14 '24 17:05 absidue