Commit Graph

5914 Commits

Author SHA1 Message Date
Fijxu
9c70265a9a fix: add missing HTML.escape call for commit 4501c9d 2026-08-03 15:24:47 -04:00
syeopite
4501c9df9c Show message when comments are turned off (#4051)
* Add error message when comments are disabled

* Add btn to try reddit comments when yt is disabled

* Escape warning messages for disabled comments

* Add missing semicolons

* Update comment detection to not use msg renderer

* Use short syntax for comment entry-point detection

Co-authored-by: Samantaz Fox <coding@samantaz.fr>

* Condense try-reddit-comments-link HTML in player.js

Co-authored-by: Samantaz Fox <coding@samantaz.fr>

* Improve locale keys for comments disabled messages

Co-authored-by: Samantaz Fox <coding@samantaz.fr>

* Remove extra whitespace

* Use button instead of anchor for try reddit link

* Request Reddit comm when yt disabled during nojs=1

* Change order of commentsEnabled in parse results

* Lint

* Rebase error

* update the naming of the comments section in Innertube

Downstreamed from 36ac67610d

---------

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
Co-authored-by: Fijxu <fijxu@nadeko.net>
2026-08-03 15:18:13 -04:00
TheFrenchGhosty
986471320d Enable the new locales translated at more than 20% (#5882)
* Enable the new locales translated at more than 20%

* Align all the comments on column 43
2026-08-03 19:34:57 +02:00
Fijxu
47b5d79ec7 fix: also fix comments community posts. (#5874)
Community posts comments still preserve the old author thumbnails
format that has an Array of thumbnails. I forgot to check that as I had
no idea `comments_youtube.cr` was also used for community posts comments

```json
"authorThumbnail": {
    "thumbnails": [
        {
            "url": "//yt3.googleusercontent.com/ytc/AIdro_m9CJFVl3bEWvGnNnN4G9ErBO2lTpKePWCjx_FQtLWaDww=s32-c-k-c0x00ffffff-no-rj-mo",
            "width": 32,
            "height": 32
        },
        {
            "url": "//yt3.googleusercontent.com/ytc/AIdro_m9CJFVl3bEWvGnNnN4G9ErBO2lTpKePWCjx_FQtLWaDww=s48-c-k-c0x00ffffff-no-rj-mo",
            "width": 48,
            "height": 48
        },
        {
            "url": "//yt3.googleusercontent.com/ytc/AIdro_m9CJFVl3bEWvGnNnN4G9ErBO2lTpKePWCjx_FQtLWaDww=s76-c-k-c0x00ffffff-no-rj-mo",
            "width": 76,
            "height": 76
        }
    ],
    "accessibility": {
        "accessibilityData": {
            "label": "SomeOrdinaryGamers"
        }
    }
},
```
2026-08-02 21:09:15 -04:00
Fijxu
711817018a chore: fix typo in .gitignore 2026-08-02 18:21:18 -04:00
Fijxu
e80fae77cc chore: add invidious.o file to .gitignore 2026-08-02 17:58:10 -04:00
Fijxu
51723b6331 chore: remove pkg-config package from package.nix
This package makes it conflict with the dependencies needed to build
Invidious (openssl, libpcre, etc). crystalline can work perfectly
without it tho, but it was added in the first place because crystalline
was trying to invoke it.
2026-08-02 17:51:07 -04:00
Fijxu
d30a1f3e17 chore: remove -Dpreview_mt from Makefile as it has been deprecated by the Crystal compiler. (#5872)
Crystal 1.21.0 now features execution contexts, they do not longer support (and recommend) the -Dpreview_mt build flag. -Dpreview_mt also worked really bad and it made Invidious to hang on high load, so it was never useful.

https://crystal-lang.org/2026/07/16/1.21.0-released/#execution-contexts
2026-08-02 17:20:57 -04:00
Fijxu
54f20d01cb Translations update from Hosted Weblate (#5474) 2026-08-02 17:13:33 -04:00
Fijxu
2acee823b5 chore: remove -Dpreview_mt from Makefile as it has been deprecated by the Crystal compiler.
Crystal 1.21.0 now features execution contexts, they do not longer support (and recommend) the `-Dpreview_mt` build flag. It also worked really bad and it made Invidious to hang on high load.
2026-08-02 16:54:22 -04:00
Hosted Weblate
e709fcfb49 Add Sign Languages translation
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Rafael Mexes <rafaelmexespangaubanyau01@gmail.com>
2026-08-02 22:30:05 +02:00
Hosted Weblate
dc381c7b02 Update Norwegian Bokmål translation
Update Norwegian Bokmål translation

Update Norwegian Bokmål translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Telaneo <post@telaneo.net>
2026-08-02 22:30:04 +02:00
Hosted Weblate
45f50b15ef Update Alemannic translation
Update Alemannic translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Lenny Angst <lenny@familie-angst.ch>
2026-08-02 22:30:04 +02:00
Hosted Weblate
34beafeeec Update Chinese (Simplified Han script) translation
Update Chinese (Simplified Han script) translation

Update Chinese (Simplified Han script) translation

Update Chinese (Simplified Han script) translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: 大王叫我来巡山 <hamburger2048@users.noreply.hosted.weblate.org>
2026-08-02 22:30:03 +02:00
Hosted Weblate
14866656bd Update Chinese (Traditional Han script) translation
Update Chinese (Traditional Han script) translation

Update Chinese (Traditional Han script) translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Jeff Huang <s8321414@gmail.com>
2026-08-02 22:30:03 +02:00
Hosted Weblate
1cf00ac69b Update Portuguese (Portugal) translation
Co-authored-by: António Oliveira <antonio.oliveira5487@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
2026-08-02 22:30:02 +02:00
Hosted Weblate
ed068d3d8c Update Slovenian translation
Update Slovenian translation

Co-authored-by: Damjan Gerl <damjan@damjan.net>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
2026-08-02 22:30:02 +02:00
Hosted Weblate
602670f441 Update Korean translation
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: xrfmkrh <rF3nMd7sRKezjF2vcEQo@protonmail.com>
2026-08-02 22:30:01 +02:00
Hosted Weblate
9c39cadc6e Update Albanian translation
Update translation files

Updated by "Remove blank strings" hook in Weblate.

Update Albanian translation

Update translation files

Updated by "Remove blank strings" hook in Weblate.

Update Albanian translation

Update Albanian translation

Update Albanian translation

Co-authored-by: Andrea Toska <toskaandrea@gmail.com>
Co-authored-by: Besnik Bleta <besnik@programeshqip.org>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/invidious/translations/
Translation: Invidious/Invidious Translations
2026-08-02 22:30:01 +02:00
Hosted Weblate
d2d3d16b80 Update Finnish translation
Update Finnish translation

Update Finnish translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Patrik Selin <patrik.selin@gmail.com>
Co-authored-by: Tuomas Hietala <tuomas.hietala@iki.fi>
2026-08-02 22:30:01 +02:00
Hosted Weblate
e107081ecc Update Persian translation
Co-authored-by: Danial Behzadi <dani.behzi@ubuntu.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
2026-08-02 22:30:00 +02:00
Hosted Weblate
cdec292bbe Update Swedish translation
Update Swedish translation

Update Swedish translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Joel A <joeax910@student.liu.se>
Co-authored-by: bittin1ddc447d824349b2 <bittin@reimu.nl>
2026-08-02 22:30:00 +02:00
Hosted Weblate
476d05b7cc Update French translation
Update French translation

Update French translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: I-I-IT <weblate.hut787@aleeas.com>
Co-authored-by: John Kindle <idp-portal.suse.com.dwindle414@aleeas.com>
Co-authored-by: Tristan B <tristanb0@users.noreply.hosted.weblate.org>
2026-08-02 22:29:59 +02:00
Hosted Weblate
783c99b266 Update Spanish translation
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Nicolás Pérez <ccnicolasperez@gmail.com>
2026-08-02 22:29:59 +02:00
Hosted Weblate
72f1208431 Update Dutch translation
Update Dutch translation

Update Dutch translation

Co-authored-by: Dick Groskamp <dikgro@yahoo.co.uk>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
2026-08-02 22:29:58 +02:00
Hosted Weblate
0c9d29a913 Update Indonesian translation
Co-authored-by: Arif Budiman <arifpedia@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
2026-08-02 22:29:58 +02:00
Hosted Weblate
16b2ca02ef Update Arabic translation
Update Arabic translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Rex_sa <rex.sa@pm.me>
2026-08-02 22:29:57 +02:00
Hosted Weblate
8e55c8e9e7 Update Italian translation
Update Italian translation

Update Italian translation

Update Italian translation

Update Italian translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Random <random-r@users.noreply.hosted.weblate.org>
2026-08-02 22:29:57 +02:00
Hosted Weblate
c3e3992e44 Update Polish translation
Update Polish translation

Update Polish translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Matthaiks <kitynska@gmail.com>
2026-08-02 22:29:56 +02:00
Hosted Weblate
b4ac053d4d Update Croatian translation
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Milo Ivir <mail@milotype.de>
2026-08-02 22:29:56 +02:00
Hosted Weblate
469751873c Update Armenian translation
Add Armenian translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Maximaus <mikurasua@gmail.com>
2026-08-02 22:29:55 +02:00
Hosted Weblate
321597cb2a Update Icelandic translation
Update Icelandic translation

Update Icelandic translation

Update Icelandic translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
2026-08-02 22:29:55 +02:00
Hosted Weblate
005b064d09 Update Portuguese translation
Update Portuguese translation

Update Portuguese translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Sergio Marques <so.boston.android@gmail.com>
2026-08-02 22:29:54 +02:00
Hosted Weblate
2f607b6263 Update Czech translation
Update Czech translation

Update Czech translation

Update Czech translation

Co-authored-by: Fjuro <fjuro@alius.cz>
Co-authored-by: Fjuro <fjuro@users.noreply.hosted.weblate.org>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Jaroslav Lichtblau <l10n@lichtblau.cz>
2026-08-02 22:29:54 +02:00
Hosted Weblate
ae039fd60a Update Catalan translation
Update Catalan translation

Update Catalan translation

Update Catalan translation

Co-authored-by: Ecron <ecron_89@hotmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Xusi Fons <xusi@keemail.me>
2026-08-02 22:29:54 +02:00
Hosted Weblate
e041ac1208 Update Japanese translation
Update Japanese translation

Update Japanese translation

Co-authored-by: Himmel <himmel@users.noreply.hosted.weblate.org>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: maboroshin <maboroshin@users.noreply.hosted.weblate.org>
2026-08-02 22:29:53 +02:00
Hosted Weblate
d269559587 Update Ukrainian translation
Update Ukrainian translation

Co-authored-by: Denys Nykula <nykula@ukr.net>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
2026-08-02 22:29:53 +02:00
Hosted Weblate
db5b60f770 Update Belarusian translation
Update Belarusian translation

Update Belarusian translation

Update Belarusian translation

Update Belarusian translation

Update Belarusian translation

Update Belarusian translation

Update Belarusian translation

Update Belarusian translation

Update Belarusian translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Pavel Miniutka <pavel.miniutka@gmail.com>
2026-08-02 22:29:52 +02:00
Hosted Weblate
642a21ca4a Update Russian translation
Update Russian translation

Update Russian translation

Co-authored-by: Artyom Rybakov <rib.artem@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
2026-08-02 22:29:52 +02:00
Hosted Weblate
218d557899 Update Estonian translation
Update Estonian translation

Update Estonian translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Priit Jõerüüt <jrthwlate@users.noreply.hosted.weblate.org>
2026-08-02 22:29:51 +02:00
Hosted Weblate
8736b8fb85 Update Greek translation
Co-authored-by: AUGANOS <giannoskai@proton.me>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
2026-08-02 22:29:51 +02:00
Hosted Weblate
353d8ad85e Update German translation
Update German translation

Update German translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Lenny Angst <lenny@familie-angst.ch>
Co-authored-by: Milo Ivir <mail@milotype.de>
2026-08-02 22:29:50 +02:00
Hosted Weblate
264a283bba Update Portuguese (Brazil) translation
Update Portuguese (Brazil) translation

Update Portuguese (Brazil) translation

Update Portuguese (Brazil) translation

Update Portuguese (Brazil) translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: delvani <del.cidrak@gmail.com>
Co-authored-by: joaooliva <joaooliva@protonmail.com>
2026-08-02 22:29:50 +02:00
Hosted Weblate
1fd0be210c Update Tamil translation
Update Tamil translation

Update Tamil translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: தமிழ்நேரம் <tamilneram247@gmail.com>
2026-08-02 22:29:49 +02:00
Hosted Weblate
36bf14d0fe Update Turkmen translation
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Perhat Kishikov <deadshoot205410@gmail.com>
2026-08-02 22:29:49 +02:00
Hosted Weblate
be9874cad1 Update Turkish translation
Update Turkish translation

Update Turkish translation

Update Turkish translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
2026-08-02 22:29:48 +02:00
Hosted Weblate
eb4998c1fc Update Galician translation
Update Galician translation

Update Galician translation

Update Galician translation

Add Galician translation

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: ninjum <ninhum@gmx.com>
2026-08-02 22:29:48 +02:00
Fijxu
ad4b1c69ce chore: add more development dependencies to packages.nix + some notes 2026-08-02 16:29:05 -04:00
Fijxu
21a3434850 fix: skip non comment commentFilterContextViewModel key in comments (#5870)
Some YouTube videos like https://www.youtube.com/watch?v=Ajkr_Wg-k8g
had an non comment key that was inside the Array that contained some
comment information that Invidious parses (like comment_key and
toolbar_key), that being the `commentFilterContextViewModel` key, which
is just an indicator on how comments are sorted:

```
{
    "commentThreadRenderer": { ... } <- comment information that is
    handled by line 134 of youtube.cr
},
{
    "commentFilterContextViewModel": {
        "text": {
            "content": "Top is selected, so you'll see featured comments"
        },
        "accessibility": {
            "accessibilityData": {
                "label": "Top is selected, so you'll see featured comments"
            }
        }
    } <- Useless information, this is not a comment
}
```
2026-08-02 16:20:43 -04:00
Fijxu
51dd4fefd0 fix: fix comments html rendering (#5862)
Now the structure no longer has an array of author thumbnails, is a
single URL:

```json
"author": {
    "channelId": "UCiLGHgWdQvfl1G8BPgcO55w",
    "displayName": "@uber_nerd-l7r",
    "avatarThumbnailUrl": "https://yt3.ggpht.com/ee1_iFgiBvgKHUr3r0_qUVqUpGKhDZaePYq8Q4tIsyVS9L1oRHHJLcHtXrSxyS63AmvldKicbw=s88-c-k-c0x00ffffff-no-rj",
    "isVerified": false,
    "isCurrentUser": false,
    "isCreator": false,
```
2026-08-02 03:48:25 -04:00