This PR adds the YOUTUBE_API_KEY configuration option for use with the existing FETCH_YOUTUBE_WATCH_TIME configuration option. If the API key is nonempty, the duration will be fetched from the YouTube API. Otherwise, the duration will be fetched from the YouTube website.
This PR adds the
YOUTUBE_API_KEY
configuration option for use with the existingFETCH_YOUTUBE_WATCH_TIME
configuration option. If the API key is nonempty, the duration will be fetched from the YouTube API. Otherwise, the duration will be fetched from the YouTube website.Instructions to create an API key: https://developers.google.com/youtube/registering_an_application
API reference: https://developers.google.com/youtube/v3/docs/videos/list
Fixes #2807
Do you follow the guidelines?