invidious-mod-JP/src/invidious/helpers
Ben Heller 4a6e920d0e
Use new youtube API to fetch channel videos (#1355)
* Use new API to fetch videos from channels

This mirrors the process used by subscriptions.gir.st. The old API is
tried first, and if it fails then the new one is used.

* Use the new API whenever getting videos from a channel

I created the get_channel_videos_response function because now instead
of just getting a single url, there are extra steps involved in getting
the API response for channel videos, and these steps don't need to be
repeated throughout the code.

The only remaining exception is the bypass_captcha function, which still
only makes a request to the old API. I don't know whether this code
needs to be updated to use the new API for captcha bypassing to work
correctly.

* Correctly determine video length with new api

* Remove unnecessary line
2020-09-02 20:28:57 +00:00
..
handlers.cr Support Crystal 0.35.0 2020-06-15 18:11:06 -05:00
helpers.cr Use new youtube API to fetch channel videos (#1355) 2020-09-02 20:28:57 +00:00
i18n.cr Fix warnings in latest version of Crystal 2020-04-09 12:18:09 -05:00
jobs.cr Fix warnings with latest version of Crystal 2020-07-26 10:59:31 -04:00
json_filter.cr Implement "fields" parameter from the YouTube Data API (#429) 2019-03-30 20:18:34 -05:00
logger.cr Add support for log levels 2019-06-07 21:13:50 -05:00
macros.cr Fix warnings with latest version of Crystal 2020-07-26 10:59:31 -04:00
proxy.cr Use QUIC for connections to YouTube 2019-11-18 17:28:32 -05:00
signatures.cr Fix signature URL regex 2020-06-16 19:21:29 -05:00
static_file_handler.cr Support Crystal 0.35.0 2020-06-15 18:11:06 -05:00
tokens.cr Fix warnings in latest version of Crystal 2020-04-09 12:18:09 -05:00
utils.cr Add support for polymer redesign 2020-06-15 18:18:04 -05:00