Video API Changes [Updated Nov 23]

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

#1  Edited By rick

Yeah for a while now we've been promising changes to the API in relation to our videos to clean up the way we serve video. This has dragged on because we've been really sensitive about breaking what's out there now and forcing developers to make major changes. After lots of revisions we have come up with a method that will not force us to change the API at all! You still likely will need to change your site / app if you use our video but those changes are fairly easy.

Web Sites:

You will no longer have access to usable HTML5 video links. Sorry. Your only option will be using our Embed Player and Embed Player API. Click here for the sample. This has gone though a lot of testing and QL crew is already using it. It was made to be super easy and I'd be happy to work with you if you have any questions etc.

Apps:

For details on authentication for apps check this out: http://www.giantbomb.com/profile/wcarle/blog/how-to-write-a-gb-premium-video-app/114534/

AppleTV:

We've created a new set top link code URL for Apple TV that should get your app approved by Apple. Using the current /xbmc URL will get your app rejected. Point your users to www.giantbomb.com/apple-tv. We will also have to be a part of your store submission (Apple's rules) so contact me well before you're ready to submit so we can discuss all that this entails.

Private Scripts: [Updated Nov 23]

For those of you who have your own scripts to download videos you can append your API key to the urls.

e.g. http://v.giantbomb.com/2015/10/15/vf_showerwithyourdad_ql_10072015_3200.mp4?api_key=abc123

You will only be able to download 20 videos in a 24 hour period (which is about the most we put out in a 24 hour period). So you'll need to run your script daily to keep up. Also we will look very unfavorably to holders of an API key attached to any downloaded videos we find in the wild or in URLs in some sketchy GoogleDoc. Premium or not.

We're launching these changes in December (the apple-tv thing is live now). If you haven't contacted me and updated your stuff it will break. Don't worry we will accept all requests for an app authentication key.

Avatar image for szlifier
szlifier

1518

Forum Posts

120

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

I'm glad to see the changes to the video player API made it in at last. I didn't test them on QLCrew, yet, but the most important stuff (like not working in Firefox) seems to be fixed. I can hopefully get rid of all workarounds.

Does this affect the ability to download videos on a video page?

Avatar image for atholm
atholm

47

Forum Posts

27

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

Great!
I think this provide good options for both apps and web solutions, especially good to see the new apple-tv endpoint.

Avatar image for tigerdx
TigerDX

492

Forum Posts

487

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

How should I proceed to update a private script for downloading GB videos? It's merely a perl script which iterates through the most recent non-trailer videos and makes sure I have an up-to-date local cache.

Avatar image for sbarre
sbarre

106

Forum Posts

4

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Related question: does this mean the direct download links for premium videos is also going away?

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

@sbarre: It does not. Premium users will still be able to download video from the site. You will not be able to use a script or any kind of app to do that though and I recommend against doing that because it could get you banned.

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

@tigerdx: That's going to be a problem. Have we talked about this in the past? ...anyway contact me directly and we'll work something out.

Avatar image for sbarre
sbarre

106

Forum Posts

4

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@edgework said:

@sbarre: It does not. Premium users will still be able to download video from the site. You will not be able to use a script or any kind of app to do that though and I recommend against doing that because it could get you banned.

Thank you for clarifying. I do not use a script, I just like to download episodes of the premium series to load on my tablet for when I'm traveling and have time to catch up on them - Metal Gear Scanlon 5 is on deck for December!

Avatar image for cikame
cikame

4473

Forum Posts

10

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@edgework: I'm sorry app is such a vague term, would i be banned for using a download manager to download videos? I like to throttle download speed sometimes.

Avatar image for deactivated-5d3acaf4ac035
deactivated-5d3acaf4ac035

47

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@edgework: I use a script called youtube-dl through a firefox addon called mpv-youtube-dl-binding that lets me play most videos on the web in an external video player (mpv). For premium videos, I stream the download link directly with mpv. I do this because watching video in a browser is a massive CPU hog. Could this get me banned?

Avatar image for stordoff
stordoff

1375

Forum Posts

10952

Wiki Points

0

Followers

Reviews: 24

User Lists: 4

@edgework said:

@sbarre: It does not. Premium users will still be able to download video from the site. You will not be able to use a script or any kind of app to do that though and I recommend against doing that because it could get you banned.

Could you clarify what you mean by "script or any kind of app"? My main use case for the download links is opening it in VLC (mainly for always on top video), and downloading using the Synology Download Station app.

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

@doctorkohaku: I'm not really sure what that does but its likely. If you can use that app for Hulu, Netflix or Amazon prime then you should be fine with our content. If not then it will be blocked and if our firewall thinks its malicious (piracy) it will trigger an IP block. If you're premium you can always manually download the HTML5 source and watch in your own player.

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

@stordoff: See the above comment. I'm going to guess that anything from Synology is going to trip the firewall. I understand Synology software isn't malicious in most cases but it most definitely can be used in that way.

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

Avatar image for lavos
Lavos

98

Forum Posts

1

Wiki Points

0

Followers

Reviews: 0

User Lists: 5

Simular to @tigerdx, I use a Golang CLI program of my own design to:

  1. Access the API via my API Key to retrieve videos objects.
  2. Cache the video objects in a local database, staying well within API rate limits.
  3. Print video objects to the console in a user-friendly manner.
  4. Enqueue interested videos to a "to be downloaded" list.
  5. Download videos via high_url to the local HDD.
  6. Watch file locally on my RaspberryPi via omxplayer.

It's mainly a quicker way for me to "Right Click, Save" the videos I'm interested in watching. I've had trouble with slow ISPs in my apartment so I couldn't stream video consistantly.

Is this going to be OK? What would need to be changed in that flow to faciltate these new changes? I've been a Premium Member since the beginning and I want to continue to support you guys; I would hate to be harming the site in any way.

Avatar image for wchigo
wchigo

946

Forum Posts

4

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

Sorry but I wanted to ask about this just in case because I didn't understand things fully. Generally, on my PC, I download the videos using Chrome directly through the site's download button, so I'm confident to say that I'm fine in that case.

However, I do also enjoy using the Giant Bomb Video Buddy on my iPad to download videos and watch them at a later time (especially in the case of multiple long episodes like the recent Extra Life stuff); from my admittedly limited understanding of what's going on, would that be affected and possibly get me banned if I were to continue using the app? Thanks for taking the time to answer questions from the community and sorry again for the stupid question.

Avatar image for onemanarmyy
Onemanarmyy

6406

Forum Posts

432

Wiki Points

0

Followers

Reviews: 2

User Lists: 0

#17  Edited By Onemanarmyy

@wchigo said:

Sorry but I wanted to ask about this just in case because I didn't understand things fully. Generally, on my PC, I download the videos using Chrome directly through the site's download button, so I'm confident to say that I'm fine in that case.

However, I do also enjoy using the Giant Bomb Video Buddy on my iPad to download videos and watch them at a later time (especially in the case of multiple long episodes like the recent Extra Life stuff); from my admittedly limited understanding of what's going on, would that be affected and possibly get me banned if I were to continue using the app? Thanks for taking the time to answer questions from the community and sorry again for the stupid question.

The video buddy app dev needs to make sure that his app protects the video's, and everyone is properly authenticated so that they only see the videos that they're supposed to be seeing (no premium content for free users). I doubt that this is a huge hurdle, so the app should be fine.

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

@wchigo: You'll be fine, although I'm still waiting for the Video Buddy dev to get back to me. So, hopefully you'll be fine assuming I get in touch with him.

Avatar image for wchigo
wchigo

946

Forum Posts

4

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

@onemanarmyy: The app does already do that; you have to authenticate before you can access premium videos. I can't speak for the verification method, but it does do that at least. Cheers duder.

@edgework: Cool, thanks for the answer. In that case, I certainly hope he gets back to you prior to the deadline. Cheers staff duder.

Avatar image for silver-streak
Silver-Streak

2030

Forum Posts

587

Wiki Points

0

Followers

Reviews: 1

User Lists: 4

Here's hoping the Windows 8/10/Phone Store App for Giant Bomb (Aptly named, Giant Bomb) gets updated with the new authentication stuff. It already requires you to authenticate your account, but I'm unclear if it'll meet the new requirements.

Avatar image for fatgeezer
fatgeezer

4

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I'm stupid at anything tech/pc/net related so my apologies if this has been addressed already.

I use Free Download Manager to download videos direct to my PC. I queue up the files, and set the FDM to download one at a time. It's been working fine up to now, but if it's against any rules I'd rather stop than get banned.

So is this allowed? Is this the kinda thing y'all are even talking about?

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

#22  Edited By rick

You guys drive me crazy. I totally get what you want to do why and that's why and I really don't want to get you banned for doing it. Send me a PM and I'll give you a way around all of this with minimal changes.

Avatar image for lavos
Lavos

98

Forum Posts

1

Wiki Points

0

Followers

Reviews: 0

User Lists: 5

@edgework: Thanks for taking the time for talking with about this! That's already more than most sites would have done.

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

Updated for clarification on private scripts. Re-read OP

Avatar image for walkerd
WalkerD

507

Forum Posts

1762

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Sketchy is a little harsh.

Avatar image for baillie
Baillie

4714

Forum Posts

37415

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

Man, all this seems like an easy way to get banned while just being an avid fan.

Avatar image for brazilianrogue
Brazilianrogue

9

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#27  Edited By Brazilianrogue

@edgework: I apologize in advance if this is totally unrelated, but should expect any issues with the RSS feed of videos? Specifically through apps like PocketCasts or similar where we are authenticating with username for premium content (eg: http://Username:password@giantbomb.com/videos/feed/hd/)

Avatar image for thebadyetiman
TheBadYetiMan

47

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@edgework said:

@sbarre: It does not. Premium users will still be able to download video from the site. You will not be able to use a script or any kind of app to do that though and I recommend against doing that because it could get you banned.

Will the 5 videos in a 24 hour time limit rule still apply if I'm literally going to the video and clicking download -> save as from there, or is it only script type stuff? Just got a new 1TB HDD and was gonna fill it with GB content

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

@thebadyetiman: You can manually download as many videos from the site as you possibly can.

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

@brazilianrogue: Podcasts will work as they currently do for the most part as long as the app you use isn't being dumb about the authentication.

Avatar image for thefaxman
TheFaxman

70

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@silver-streak: I just noticed this and am working on fixes for the Windows apps (along with some long overdue updates)

Avatar image for silver-streak
Silver-Streak

2030

Forum Posts

587

Wiki Points

0

Followers

Reviews: 1

User Lists: 4

Avatar image for thefaxman
TheFaxman

70

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@silver-streak: The update that resolves the video playback issues is published (along with a pile of fixes and new features)

Avatar image for cyborgx7
cyborgx7

216

Forum Posts

21

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I'm very happy about that update for scripts. Having to use api keys on the download links themselves always seemed like the sensible solution. The limit of 5 videos a day might be a little short when I feel like watching a bunch of old videos on a weekend or something, but should be plenty in general.

Avatar image for zaph
Zaph

309

Forum Posts

5166

Wiki Points

0

Followers

Reviews: 0

User Lists: 7

Thanks for allowing such a hassle-free private scripts provision, I was able to fix my Alfred workflow with only a single line change.

Question about a small bug. Almost all images attached to the video API are in JPG format, with the occasional PNG. However, some videos are listed with PNG urls but are actually JPGs, so unless you manually change the extension, you get an API error - example http://www.giantbomb.com/api/video/2300-10909/?api_key=. Any chance of a fix, or is it part of a larger problem?

Avatar image for tigerdx
TigerDX

492

Forum Posts

487

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

@edgework Thanks so much for your efforts making private scripts still viable.

The only time I can see the 5 videos in 24 hours being an issue is around Extra Life time, but I suppose that's a bridge we can cross when we come to it. It might just be a case of downloading them over the course of a few days, which may well be mitigated by a reduced flow of content following those very long streams.

Avatar image for gentlemen_demon
gentlemen_demon

8

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I've been trying to get in touch with edgework (rick) about the unique user agent and a custom request header for apps, but both edgework at giantbomb.com and rick at giantbomb.com are bouncing all emails i send - am i missing something or does this page need to be updated?

Avatar image for alecgdouglas
alecgdouglas

109

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@gentlemen_demon: Ran into the same issue today, seems like the post needs to be updated. Any other devs know of the current contact details for the user agent + custom request header stuff?

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

@alecgdouglas: @gentlemen_demon: I'm no longer at Giant Bomb so those emails will bounce. AFAIK you don't need to worry about the custom request header stuff. That was so apps would be ready for some stuff I planned to put into production that never happened and likely won't happen.

You still need a custom user agent but you can pick whatever you want. You will need to append the END USER's API key to all video requests. See "Private Scripts" in the OP. You can do an app activation to get/generate the user's API key. There's a post somewhere about how to do that...

For other questions etc. ask @wcarle cause I don't work here. :P

Avatar image for alecgdouglas
alecgdouglas

109

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#40  Edited By alecgdouglas

@rick: Thanks, that's very helpful.

@wcarle: (and anybody else that might know) What's the current best practice for retrieving the end user's API key?

I'm fine going the Boxee route but what's the endpoint I've got to hit with the Boxee code to get their API key?

The closest I can find is this post from ~2.5 years ago: http://www.giantbomb.com/forums/api-developers-3017/any-plans-for-authentication-via-gb-cv-1482731/

But the giantbomb.com/validate endpoint doesn't appear to exist.

Any help would be appreciated! Thanks :)

Edit: Nevermind! Looks like the endpoint is giantbomb.com/api/validate - d'oh!

Avatar image for gentlemen_demon
gentlemen_demon

8

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#41  Edited By gentlemen_demon

@wcarle Another question: how does the GB Video Buddy app allow users who aren't logged in to watch premium and non-premium videos? i'm looking to use the same permissions for my app but not sure how to go about it

Avatar image for wcarle
wcarle

447

Forum Posts

54

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

#42  Edited By wcarle