From 6745ca77757d88303cf8b15aafd2a75f43376afc Mon Sep 17 00:00:00 2001 From: Emilien Devos Date: Thu, 12 Aug 2021 19:57:22 +0200 Subject: fix comments using dig --- src/invidious/comments.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index bbdb5370..141a526d 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -570,7 +570,7 @@ def content_to_comment_html(content) else text = %(#{text}) end - elsif url = run["navigationEndpoint"]["commandMetadata"]?.try &.["webCommandMetadata"]["url"].as_s + elsif url = run.dig?("navigationEndpoint", "commandMetadata", "webCommandMetadata", "url").try &.as_s text = %(#{text}) end end -- cgit v1.2.3 select> Invidious is an alternative front-end to YouTubewww-data
summaryrefslogtreecommitdiffstats
path: root/assets/js/sse.js (unfollow)
AgeCommit message (Collapse)Author
2023-09-16Bump stale timer for PRssyeopite
2023-09-16Bump crystal-install tooSamantaz Fox
2023-09-16Update crystal version matrix in ci.ymlSamantaz Fox
2023-09-16Test crystal 1.8.2Émilien (perso)
2023-09-11HTMLl.Escape the playlist subtitleChunkyProgrammer
2023-09-11Playlist: Use subtitle when author is missingChunkyProgrammer
2023-08-29Remove trailing whitespace in config documentationsyeopite
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2023-08-25Revert broken i18next v3 changes made by weblateSamantaz Fox
2023-08-24Update src/invidious/videos/caption.crsyeopite
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2023-08-24Update src/invidious/videos/transcript.crsyeopite
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2023-08-24Refactor structure of caption.crsyeopite
Rename CaptionsMetadata to Metadata Nest Metadata under Captions Unnest LANGUAGES constant from Metadata to main Captions module
2023-08-21Update Hindi translationSnwglb
2023-08-21Update German translationEttore Atalan
2023-08-19Update Hindi translationSnwglb
2023-08-14Update Norwegian Bokmål translationPetter Reinholdtsen
2023-08-12Update Slovenian translationNoa Laznik
2023-08-10Update Slovak translationAti
2023-08-10Update Slovak translationMilan Šalka
2023-08-10Update errors.crsyeopite
2023-08-08Regression from #4037 | Fix storyboardssyeopite
PR #4037 introduced a workaround around YouTube's new integrity checks on streaming URLs. However, the usage of this workaround prevents storyboard data from being returned by InnerTube. This commit fixes that by only using the workaround when calling try_fetch_streaming_data
2023-08-08Add workaround for storyboards on priv. instancessyeopite
An upstream problem with videojs-vtt-thumbnails means that URLs gets joined incorrectly on any instance where `domain`, `external_port` and `https_only` aren't set. This commit adds some logic with the 404 handler to mitigate this problem. This is however only a workaround. See: https://github.com/iv-org/invidious/issues/3117 https://github.com/chrisboustead/videojs-vtt-thumbnails/issues/31
2023-08-07Update Slovenian translationDamjan Gerl
2023-08-07Update Portuguese translationLeonardo Colman
2023-08-07Update Vietnamese translationHoang Minh Pham
2023-08-07Update Portuguese (Brazil) translationLeonardo Colman
2023-08-07Update Chinese (Simplified) translationEric
2023-08-07Update Italian translationrandom r
2023-08-07Update Italian translationatilluF
2023-08-07Update French translationJohn Donne
2023-08-07Update Sinhala translationOverplant Poster
2023-08-07Update Odia translationSubham Jena
2023-08-07Update Czech translationFjuro
2023-08-07Update Croatian translationMilo Ivir
2023-08-07Update Portuguese (Brazil) translationjoaooliva
2023-08-07Update Japanese translationmaboroshin
2023-08-07Update Russian translationVoidWalker
2023-08-07Update Chinese (Traditional) translationJeff Huang