Spacex-api: Add youtube_video_id where youtube link is set

Created on 9 Jan 2019  路  4Comments  路  Source: r-spacex/SpaceX-API

If a player needs the youtube videoId instead of the full URL, currently we need to parse the full youtube link on the client side. I think it would be better to do this once on the API side.

Maybe something straightforward like:
"video_link": "https://youtu.be/yRiLPoy_Mzc",
"youtube_video_id": "yRiLPoy_Mzc",

What do you think?

Data Addition

Most helpful comment

In addition to adding this field, I'll add a new script to poll https://www.spacex.com/webcast for the link as soon as the new one is posted. Should be able to get the link and video id updating completely automated 馃憤

All 4 comments

I'm fine with this 馃憤

In addition to adding this field, I'll add a new script to poll https://www.spacex.com/webcast for the link as soon as the new one is posted. Should be able to get the link and video id updating completely automated 馃憤

@pvegh video id's have been added 馃憤

Cool, looks exactly like what I had in mind..
I just switched my implementation to the new youtube_id.
Thank you Jake!

Was this page helpful?
0 / 5 - 0 ratings