joedawson / youtube

Upload a video to a single YouTube channel with Laravel 5.
MIT License
175 stars 105 forks source link

Updating additional data (specifically: embeddable) #97

Closed chris-faulkner closed 4 years ago

chris-faulkner commented 5 years ago

Hi, thanks for the great package, it's really useful for me.

I was wondering if there's a good way to update more data for a video. Specifically I want to be able to set video as embeddable. At the moment this doesn't appear to be an option as there are only limited options that can be updated. This is an issue as it always sets embeddable off as it's not supplied in the update, then I can't display the video in our website.

I managed to edit the package to do this but it's quite hacky and will get overwritten if the package is updated through composer.

Am I missing something obvious?

Thanks.

satoved commented 5 years ago

Same problem, how did you do it?

chris-faulkner commented 5 years ago

For now, I've left the videos as unlisted. They seem to stay embeddable this way, but I did go through the code before and get it working. Not had time to clean it up yet though but if I do soon i’ll post something back here

joedawson commented 4 years ago

@chris-faulkner hey Chris, I know this issue is very old but I'd like to at least make some comments on it. Hopefully you got something working in the end.

You can use the update method, documented here: https://github.com/joedawson/youtube#updating-a-video