Closed absidue closed 2 weeks ago
Related to https://github.com/iv-org/invidious/issues/4929
This pull request fixes the parsing for the live_now and premiere_timestamp variables so that they work without the microformat data being present.
live_now
premiere_timestamp
Testing live_now: /api/v1/videos/jfKfPfyJRdk -> type should be "livestream" and liveNow should be true
/api/v1/videos/jfKfPfyJRdk
type
"livestream"
liveNow
true
Testing premiere_timestamp:
Upcoming Live Streams
/api/v1/videos/{videoID}
{"error":"This live event will begin in 56 minutes."}
Thanks again for contributing :)
Related to https://github.com/iv-org/invidious/issues/4929
This pull request fixes the parsing for the
live_now
andpremiere_timestamp
variables so that they work without the microformat data being present.Testing
live_now
:/api/v1/videos/jfKfPfyJRdk
->type
should be"livestream"
andliveNow
should betrue
Testing
premiere_timestamp
:Upcoming Live Streams
section/api/v1/videos/{videoID}
=> should return a HTTP 500 status code and the following json{"error":"This live event will begin in 56 minutes."}