YouTube-operational-API icon indicating copy to clipboard operation
YouTube-operational-API copied to clipboard

In `channels.php` maybe replace "premieres" with "streams"

Open dejan94it opened this issue 2 years ago • 6 comments

dejan94it avatar Jan 12 '23 14:01 dejan94it

Thank you for your input, your proposition looks interesting as channels?part=premieres is designed to return both premieres and upcoming live streams. However in my opinion streams is too close to live streams meaning (as shown in the following comment, this is confirmed, as streams is the URL endpoint name for LIVE channel tab). As introduced in my Stack Overflow answer related to the commit introducing this feature to YouTube operational API, YouTube proposition that is upcomingEvents may make more sense.

Nevertheless a greater concern is that videos that should be return by YouTube operational API aren't anymore (cf Stack Overflow answer). Even with my answer revisions I don't understand what I meant. However as of 11/07/23 I confirm that the test videos aren't returned.

Should add a field to precise (if we can retrieve this information) if it's a scheduled premiere or an upcoming live stream.

Note to myself: don't forget to modify accordingly my related Stack Overflow answer.

Related to #81.

Benjamin-Loison avatar Jan 12 '23 15:01 Benjamin-Loison

In comparison with #81, here we can still hope to do something maybe by just using pagination (as the scheduled premieres at least are always at the end of the list it seems (if it's not related to the date when the premiere was scheduled)) to give details about videos that YouTube Data API v3 doesn't give (to check). While in the other issue, the purpose was to avoid this pagination, so it's a dead end there. Screenshot from 2023-01-12 16-43-03 Screenshot from 2023-01-12 16-43-59

Benjamin-Loison avatar Jan 12 '23 15:01 Benjamin-Loison

As both premieres and upcoming live streams are located in two different tabs (screenshot would have been appreciated), maybe not using a single endpoint would make sense, as ideally the purpose of my API is to just extract interesting data from URLs by also giving these latter user-friendly names.

Benjamin-Loison avatar Jan 12 '23 15:01 Benjamin-Loison

As both premieres and upcoming live streams are located in two different tabs, maybe not using a single endpoint would make sense, as ideally the purpose of my API is to just extract interesting data from URLs by also giving these latter user-friendly names.

I was referring exactly to this point, because I cannot extract past livestreams

dejan94it avatar Jan 12 '23 16:01 dejan94it

@dejan94it Be aware that retrieving past livestreams is for the moment out-of-scope of my API, as it's possible to retrieve them using YouTube Data API v3 PlaylistItems: list (this way) and Videos: list (thanks to part=liveStreamingDetails) endpoints. Let me know if it solves your problem.

Benjamin-Loison avatar Jan 12 '23 17:01 Benjamin-Loison

@dejan94it Be aware that retrieving past livestreams is for the moment out-of-scope of my API, as it's possible to retrieve them using YouTube Data API v3 PlaylistItems: list (this way) and Videos: list (thanks to part=liveStreamingDetails) endpoints. Let me know if it solves your problem.

I discover that just 1 hour ago :) thanks

dejan94it avatar Jan 12 '23 18:01 dejan94it