Add button to open Giant Bomb Infinite in Youtube app

Issue #54 new
Alec Douglas repo owner created an issue

The /chats API returns GB Infinite with its YouTube ID as the value for the 'channel_name' key, e.g.

https://www.giantbomb.com/api/chats/?api_key=[API_KEY]

<response>
<error>
<![CDATA[ OK ]]>
</error>
<limit/>
<offset/>
<number_of_page_results>1</number_of_page_results>
<number_of_total_results>1</number_of_total_results>
<status_code>1</status_code>
<results>
<stream>
<api_detail_url>
<![CDATA[ https://www.giantbomb.com/api/chat/2450-981/ ]]>
</api_detail_url>
<channel_name>
<![CDATA[ LAnQnOj-lCQ ]]>
</channel_name>
<deck>
<![CDATA[
Welcome to Giant Bomb Infinite! 
 We're streaming Giant Bomb videos back to back 24/7.
 With 5 minutes left in a video we'll start a poll with 10 random choices for the next video. Follow GBInfinite on twitter: @GBInfinite
]]>
</deck>
<guid>
<![CDATA[ 2450-981 ]]>
</guid>
<id>981</id>
<image>
<icon_url>
<![CDATA[
https://www.giantbomb.com/api/image/square_avatar/3001768-onair.jpg
]]>
</icon_url>
...
</image>
<password/>
<site_detail_url>
<![CDATA[ https://www.giantbomb.com/chat/ ]]>
</site_detail_url>
<title>
<![CDATA[ Giant Bomb Infinite ]]>
</title>
</stream>
</results>
<version>1.0</version>
</response>

In this case, the channel_name 'LAnQnOj-lCQ' corresponds to this YouTube link: https://www.youtube.com/watch?v=LAnQnOj-lCQ

We could add a button near the top that sends an intent to the YouTube app for that video.

Comments (0)

  1. Log in to comment