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
Fijxu
73c749f13f
Encapsulate helpers constants and functions inside it's own Helpers module ( #5639 )
...
It encapsulates all related code from helpers.cr into it's own module.
2026-04-25 16:57:33 -04:00
Fijxu
bc64cd9b67
Encapsulate translation constants and functions inside it's own module ( #5637 )
...
It encapsulates all related code from translation into it's own module.
Required for the migration to the crystal stdlib logger: https://github.com/iv-org/invidious/pull/5426
2026-04-25 16:55:55 -04:00
Fijxu
067a426235
refactor: Move top level constants to it's own modules
2026-02-06 18:50:36 +01:00
ChunkyProgrammer
803311713d
make sort_by code more legible
2025-06-27 11:38:08 -04:00
ChunkyProgrammer
436f955e0f
update fetch_community_post_comments protobuf to match currently used protobuf, add sort_by option
2025-06-25 23:34:30 -04:00
syeopite and Samantaz Fox
fa50e0abf4
Simplify last_node retrieval
...
Co-authored-by: Samantaz Fox <coding@samantaz.fr >
2024-07-17 12:21:48 -07:00
syeopite
8a90add310
Ameba: Fix Naming/VariableNames
...
Fix Naming/VariableNames in comment renderer
Fix Naming/VariableNames in helpers/utils
Fix Naming/VariableNames in api/v1/misc.cr
2024-07-11 20:56:28 -07:00
ChunkyProgrammer and Samantaz Fox
2b6e71b553
Simplify cvm assignment logic + improve formatting
...
Co-Authored-By: Samantaz Fox <coding@samantaz.fr >
2024-04-20 10:25:51 -04:00
ChunkyProgrammer and Samantaz Fox
fbf07e18aa
Parse links in the comments
...
Co-Authored-By: Samantaz Fox <coding@samantaz.fr >
2024-04-11 08:58:33 -04:00
ChunkyProgrammer and Samantaz Fox
de2287963f
fix loading replies to comments, remove unneeded code
...
Co-Authored-By: Samantaz Fox <coding@samantaz.fr >
2024-04-10 18:32:20 -04:00
ChunkyProgrammer
039212ed91
escape html, add todo comment
2024-04-10 18:21:53 -04:00
ChunkyProgrammer
a9f55aa310
fix lint, improve performance
2024-04-10 18:21:53 -04:00
ChunkyProgrammer
c27bb90e4d
Add support for new comment format
2024-04-10 18:21:53 -04:00
ChunkyProgrammer and Samantaz Fox
bb04bcc42c
Apply suggestions from code review
...
add videoId to resolve_url function
Co-Authored-By: Samantaz Fox <coding@samantaz.fr >
2023-09-18 20:10:41 -04:00
ChunkyProgrammer and Samantaz Fox
734f1b7764
Simplify resolveUrl api call
...
Co-Authored-By: Samantaz Fox <coding@samantaz.fr >
2023-09-18 20:10:41 -04:00
ChunkyProgrammer
e3c365f3d6
Add support for post page
2023-09-18 20:10:41 -04:00
Samantaz Fox
f0c8477905
Comments: Move content-related functions to their own file
2023-05-25 22:53:53 +02:00
Samantaz Fox
4379a3d873
Comments: Move ctoken functions to youtube.cr
2023-05-25 22:53:53 +02:00
Samantaz Fox
df85265453
Comments: Move link utility functions to own file + module
2023-05-25 22:53:53 +02:00
Samantaz Fox
e10f6b6626
Comments: Move 'template_youtube' function to own file + module
2023-05-25 22:53:53 +02:00
Samantaz Fox
634e913da9
Comments: Move 'fetch_reddit' function to own file + module
2023-05-25 22:53:53 +02:00
Samantaz Fox
1b25737b01
Comments: Move 'fetch_youtube' function to own file + module
2023-05-25 22:53:53 +02:00
Samantaz Fox
8dd1824869
Comments: Move reddit type definitions to their own file
2023-05-25 22:53:53 +02:00