-
Notifications
You must be signed in to change notification settings - Fork 94
YouTube
First, you'll need to register an app with Google.
To create a new Google app, login to https://console.developers.google.com, and create a new project (there's a menu towards the top-left of the screen where you can create a new project).
Once the project's been created, go to the APIs Library and select the YouTube Data API, then click "Enable." You'll also need the Google+ API.
The, create application credentials by clicking "Credentials," click "Create Credentials," then "OAuth API," then move on to "Configure Consent Screen."
Type in an application name and save, then you'll be able to create a client
ID - choose "Web Application" for the application type. Under "Authorized
Redirect URLs," type in the URL to your Multistreamer install, with
/auth/youtube
appended to it, ie:
https://example.com/auth/youtube
or
https://example.com/<some-prefix>/auth/youtube
if you're running Multistreamer under some prefix.
Once you've gotten your Client ID and Secret, add them to the youtube
key of the
networks
table. You'll also need to set the country
parameter to your country's
2-character country code. This is used to pull down YouTube categories.
For example:
...
networks = {
youtube = {
client_id = 'client_id_goes_here',
client_secret = 'client_secret_goes_here',
country = 'us',
},
},
...