invidious-mod-JP/src/invidious/helpers
syeopite a50f64f6e9
Add parser for categories (shelfRenderer)
This commit adds a new parser for YT's shelfRenderers which are
typically used to denote different categories.The code for featured
channels parsing has also been moved to use the new parser but some
additional refactoring are needed there.

The ContinuationExtractor has also been improved and is now capable of
extraction continuation data that is packaged under
"appendContinuationItemsAction"

In additional this commit adds some useful helper functions to extract
the current selected tab the continuation token. This is to mainly
reduce code size and repetition.
--
This cherry-picked commit also removes the code for parsing featured
channels present on the original.

(cherry picked from commit 8000d538dbbf1eb9c78e000b1449926ba3b24da9)
2021-09-24 21:07:06 -07:00
..
crystal_class_overrides.cr Typo 2021-08-03 23:57:48 +02:00
errors.cr Fix locale consistency for err template redirects 2021-06-19 04:17:46 -07:00
extractors.cr Add parser for categories (shelfRenderer) 2021-09-24 21:07:06 -07:00
handlers.cr Fix storyboards 2020-10-25 09:35:16 +01:00
helpers.cr Add parser for categories (shelfRenderer) 2021-09-24 21:07:06 -07:00
i18n.cr Add Korean (ko.json) to loaded locales 2021-07-26 00:15:32 +02:00
invidiousitems.cr Add parser for categories (shelfRenderer) 2021-09-24 21:07:06 -07:00
json_filter.cr Implement "fields" parameter from the YouTube Data API (#429) 2019-03-30 20:18:34 -05:00
logger.cr Try not to log search queries (#2362) 2021-09-16 09:36:22 +00:00
macros.cr Extract feed routes (#2269) 2021-08-30 16:58:24 +02:00
proxy.cr Update code for Crystal 0.36.0 2021-02-02 20:01:02 +01:00
signatures.cr add config to decrypt on demand instead of polling 2021-01-03 20:50:52 +01:00
static_file_handler.cr Support Crystal 0.35.0 2020-06-15 18:11:06 -05:00
tokens.cr Add backtraces to errors (#1498) 2020-11-30 10:59:21 +01:00
utils.cr Connect to api.invidious.io with https 2021-06-19 04:17:49 -07:00
youtube_api.cr fetch with innertube api when video is unavailable (#2329) 2021-08-16 10:41:16 -07:00