invidious-mod-JP/src/invidious/helpers
syeopite 21e29411af
Fix extractor bugs (#2454)
* Add debug/trace logging to extract_items
* Handle invalid timestamps for livestreams extraction
* Make use of author_fallback in playlist extractor
* Don't use extract_text for video length extraction

The extract_text function attempts to extract from both the simpleText and
the runs route. This is typically what we'd want for text extraction as
it could appear in both locations. However, while this still holds true,
the thumbnailOverlayTimeStatusRenderer writes a numerical length (when
present on the video) to the simpleText route and uses runs for a
text overlay like "LIVE" or "PREMIERE".

Therefore, when a video has a text overlay instead of a numerical one,
Invidious still passes it onto decode_length_seconds, which obviously
raises since it cannot be converted into integers.

In the future, if more routes requires one text route over the other, we
should go ahead and add an argument to extract_text itself. Though for
now, this is sufficient.

* Handle unsupported "special" categories
2021-10-07 23:39:21 +02: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 Fix extractor bugs (#2454) 2021-10-07 23:39:21 +02:00
handlers.cr Fix storyboards 2020-10-25 09:35:16 +01:00
helpers.cr Add config option to display source code URL in footer (#2450) 2021-10-07 13:53:12 +02:00
i18n.cr Actually fix lint 2021-10-02 08:53:58 -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
serialized_yt_data.cr Manually extract category refactor from 1b569bbc99207cae7c20aa285f42477ae361dd30 2021-09-24 21:07:07 -07: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 Use make_client when querying instance api 2021-10-02 15:16:07 +00:00
youtube_api.cr fetch with innertube api when video is unavailable (#2329) 2021-08-16 10:41:16 -07:00