invidious icon indicating copy to clipboard operation
invidious copied to clipboard

[Enhancement] Drop usage of microFormat in player endpoint

Open unixfox opened this issue 1 year ago • 2 comments

Since https://github.com/iv-org/invidious/pull/4928, microformat is not available anymore from the player endpoint when using the client configured with po_token.

We should try to use something else, like from the next endpoint or from videoDetails.

What to migrate:

  • [ ] lengthSeconds: can be found in videoDetails, already a fallback
  • [ ] publishDate
  • [ ] premiere_timestamp
  • [ ] live_now
  • [ ] allowed_regions
  • [ ] family_friendly
  • [ ] description: fallback is already from next endpoint
  • [ ] genre

unixfox avatar Sep 19 '24 22:09 unixfox

I have opened https://github.com/iv-org/invidious/pull/4934 to fix the live_now and premiere_timestamp fields.

absidue avatar Sep 20 '24 16:09 absidue

~~Considering that the workaround is now broken I wonder if it'll make more sense to just revert the fix altogether rather than migrating everything away from microformat~~

Right! The fix still works on some IPs

syeopite avatar Sep 22 '24 02:09 syeopite

~Considering that the workaround is now broken I wonder if it'll make more sense to just revert the fix altogether rather than migrating everything away from microformat~

Right! The fix still works on some IPs

Hi, can you point me to the workaround? I am specifically interested in having shorts show their play length, so they can be filtered out.

Thanks.

2600box avatar Oct 30 '25 06:10 2600box