miniflux / v2

Minimalist and opinionated feed reader
https://miniflux.app
Apache License 2.0
6.97k stars 727 forks source link

Optionally fetch watch time from YouTube API instead of website #2951

Open telnet23 opened 3 days ago

telnet23 commented 3 days ago

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.

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?