5802 Commits

Author SHA1 Message Date
Sijawusz Pur Rahnama
e329e42959
Merge 540b65a332b869dc42b2427ee285554589e3ffd5 into ecbc21b0678eac4a0c8f745de5cc78eef4841221 2026-02-05 14:13:12 +01:00
Cameron Radmore
ecbc21b067
playlist: parse playlist thumbnails for topic autogenerated playlists (#5616) 2026-02-04 12:57:16 -03:00
Fijxu
a9f812799c
fix: add missing embedded protobuf message in continuation token for channel videos (#5614)
* fix: add missing embedded protobuf message in continuation token for channel videos

* fix: add missing embedded protobuf message in continuation token for channel shorts

* fix: add missing embedded protobuf message in continuation token for channel livestreams
2026-02-03 16:18:15 -03:00
Harm133
48be830544
Update shard.yml to include target (#5608)
[shard.yml]
- Include a target for LSPs to use as an entrypoint:
  (https://github.com/elbywan/crystalline?tab=readme-ov-file#entry-point)
2026-01-30 23:39:07 +01:00
Fijxu
b521e3be6c
chore: Do not convert thin_mode preference to string to compare it (#5568) 2026-01-30 18:01:16 -03:00
Fijxu
abb0aa436c
Fix thin_mode preference for channel community page (#5567)
thin_mode only took in account the query param because
env.get("preferences").as(Preferences).thin_mode returned a boolean and
not a string to be able to compare it with the string `"true"`
2026-01-30 18:01:04 -03:00
Kiril Isakov
d51a7a44ad
Fix commit command in README instructions, as per #5606 (#5607) 2026-01-23 13:18:41 +01:00
Émilien (perso)
7e36cfb667
Revert "Bump crystallang/crystal from 1.16.3-alpine to 1.19.0-alpine in /dock…" (#5604)
This reverts commit d25cc9570c9738f16e15437bcc69a12ab2095738.
2026-01-19 23:39:01 +01:00
dependabot[bot]
d25cc9570c
Bump crystallang/crystal from 1.16.3-alpine to 1.19.0-alpine in /docker (#5603)
Bumps crystallang/crystal from 1.16.3-alpine to 1.19.0-alpine.

---
updated-dependencies:
- dependency-name: crystallang/crystal
  dependency-version: 1.19.0-alpine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-19 22:59:44 +01:00
Émilien (perso)
66c67f4c7a
doc: Update HTTP proxy configuration comments (#5586)
* doc: Update HTTP proxy configuration comments

Added information about proxy configuration for YouTube streams.

* Document supported proxy types in config.example.yml

Added note about supported proxy types in configuration.
2026-01-17 00:15:32 +01:00
Fijxu
344bc2d8e9
Strip unwanted headers from response headers in images and videoplayback (#5595)
Image responses contained the following unwanted headers that should not
be passed to the clients:

```
"Cross-Origin-Resource-Policy"
["cross-origin"]
"Cross-Origin-Opener-Policy-Report-Only"
["same-origin; report-to=\"youtube\""]
"Report-To"
["{\"group\":\"youtube\",\"max_age\":2592000,\"endpoints\":[{\"url\":\"https://csp.withgoogle.com/csp/report-to/youtube\"}]}"]
"Timing-Allow-Origin"
["*"]
```
2026-01-16 19:39:44 -03:00
Sijawusz Pur Rahnama
540b65a332 Prefer disabling rules inline over file-wide exclusion 2026-01-11 23:45:04 +01:00
Sijawusz Pur Rahnama
b6c58cbafc Fix Lint/ShadowingOuterLocalVar type of Ameba issues 2026-01-11 23:45:04 +01:00
Sijawusz Pur Rahnama
ca41bbd21b Fix Style/ParenthesesAroundCondition type of Ameba issues 2026-01-11 23:45:04 +01:00
Sijawusz Pur Rahnama
818d4266a7 Fix Naming/AccessorMethodName type of Ameba issues 2026-01-11 23:45:04 +01:00
Sijawusz Pur Rahnama
dc7891cddb Fix Style/RedundantNext type of Ameba issues 2026-01-11 23:45:04 +01:00
Sijawusz Pur Rahnama
9aec157453 Fix Style/RedundantReturn type of Ameba issues 2026-01-11 23:45:04 +01:00
Sijawusz Pur Rahnama
9f96682783 Fix Style/RedundantBegin type of Ameba issues 2026-01-11 23:17:05 +01:00
Sijawusz Pur Rahnama
5f1c9849bf Use inline disable pragma 2026-01-11 23:14:50 +01:00
Sijawusz Pur Rahnama
7d90748e78 Use common heredoc markers 2026-01-11 23:13:19 +01:00
Sijawusz Pur Rahnama
b0049e1680 Remove redundant assignment 2026-01-11 23:04:53 +01:00
Sijawusz Pur Rahnama
3591a4f840 Ignore ECR files in Lint/UnusedArgument and Lint/UselessAssign rules 2026-01-11 23:03:19 +01:00
Sijawusz Pur Rahnama
6b2afb23db Fix Style/MultilineStringLiteral type of Ameba issues 2026-01-11 23:00:31 +01:00
Sijawusz Pur Rahnama
ee85274b8d Fix Lint/RequireParentheses type of Ameba issues 2026-01-11 22:58:37 +01:00
Sijawusz Pur Rahnama
31d218c03e Fix Style/MultilineCurlyBlock type of Ameba issues 2026-01-11 22:56:50 +01:00
Sijawusz Pur Rahnama
a6ade56756 Fix Lint/ElseNil type of Ameba issues 2026-01-11 22:56:50 +01:00
Sijawusz Pur Rahnama
2112ee674e Fix Style/HeredocIndent type of Ameba issues 2026-01-11 22:56:50 +01:00
Sijawusz Pur Rahnama
e5a1131665 Fix Performance/ChainedCallWithNoBang type of Ameba issues 2026-01-11 22:56:50 +01:00
Sijawusz Pur Rahnama
b5b187ad88 Fix Style/PercentLiteralDelimiters type of Ameba issues 2026-01-11 22:56:50 +01:00
Sijawusz Pur Rahnama
dd185c9379 Fix Layout/TrailingBlankLines type of Ameba issues 2026-01-11 22:56:50 +01:00
Sijawusz Pur Rahnama
456b50a5e2 Fix Layout/TrailingWhitespace type of Ameba issues 2026-01-11 22:56:50 +01:00
Sijawusz Pur Rahnama
3a68d5aeb2 Fix Style/RedundantNilInControlExpression type of Ameba issues 2026-01-11 22:56:50 +01:00
Sijawusz Pur Rahnama
d371829477 Fix Style/RedundantSelf type of Ameba issues 2026-01-11 22:56:50 +01:00
Sijawusz Pur Rahnama
db8e73760d Fix Style/VerboseNilType type of Ameba issues 2026-01-11 22:56:50 +01:00
Sijawusz Pur Rahnama
3d6f266827 Fix Lint/WhitespaceAroundMacroExpression type of Ameba issues 2026-01-11 22:32:28 +01:00
Sijawusz Pur Rahnama
068151a664 Remove redundant rule disable 2026-01-11 22:30:55 +01:00
Sijawusz Pur Rahnama
92aaec8dd9 Run Ameba as a separate CI workflow 2026-01-11 22:30:03 +01:00
Sijawusz Pur Rahnama
8c4439c187 Bump Ameba to the latest version 2026-01-11 22:29:04 +01:00
Fijxu
5f84a5b353
Generate companion check id one time and add missing companion check id on captions (#5575)
* Only generate companion check id one time

* Add missing check id for companion captions
2025-12-22 17:14:59 +01:00
Fijxu
9603f5151d
Downgrade Crystal to 1.16.3 in OCI (#5577)
* downgrade to 1.16.3

* Downgrade Alpine base image from 3.23 to 3.22

---------

Co-authored-by: Émilien (perso) <4016501+unixfox@users.noreply.github.com>
2025-12-22 11:19:13 +01:00
Fijxu
f7a31aa3de
fix lint 2025-12-21 00:50:37 -03:00
Jeroen Boersma
dbbaf51f1f
Allow downloading via companion (#5561)
* Allow downloading via companion

* post request where not proxied for the download companion which made
  it impossible to download with the companion enabled

* Re-apply Channel to Channels rename which was pulled in

* Update src/invidious/routes/companion.cr

* doc: better comments for each route

---------

Co-authored-by: Fijxu <fijxu@nadeko.net>
Co-authored-by: Émilien (perso) <4016501+unixfox@users.noreply.github.com>
2025-12-19 15:09:22 +01:00
Émilien (perso)
7a4b901846
chore: update crystal 1.18.2 + alpine 3.23 (#5574) 2025-12-19 15:08:07 +01:00
Fijxu
bf17d53068
Replace deprecated blocking property of Socket (#5538)
* Replace deprecated `blocking` property of `Socket`

This replaces the deprecated argument `blocking` and uses
`Socket.set_blocking(fd, value)` instead.

Fixes a warning in the compiler

https://github.com/crystal-lang/crystal/pull/16033

* Upgrade to upstream

* chore: only Socket.set_blocking for > 1.18

---------

Co-authored-by: Emilien <4016501+unixfox@users.noreply.github.com>
2025-12-19 14:59:42 +01:00
syeopite
1f5685ef92 Reduce indent in StaticAssetsHandler#serve_file 2025-12-19 12:35:00 +01:00
syeopite
21049518d6 Improve cache size check to be more performant
Summing the sizes of each cached file every time is very inefficient.
Instead we can simply store the cache size in an constant and increase
it everytime a file is added into the cache.
2025-12-19 12:35:00 +01:00
syeopite
7f9cfe1aa2 Refactor logic for updating temp files in tests 2025-12-19 12:35:00 +01:00
syeopite
89a0761a19 Fix Ameba Lint/UselessAssign 2025-12-19 12:35:00 +01:00
syeopite
7749ea1956 Isolate static assets handler spec from others
Running `crystal spec` without a file argument essentially produces one
big program that combines every single spec file, their imports, and
the files that those imports themselves depend on. Most of the types
within this combined program will get ignored by the compiler due to a
lack of any calls to them from the spec files.

But for some types, partially the HTTP module ones, using them within
the spec files will suddenly make the compiler enable a bunch of
previously ignored code. And those code will suddenly require the
presence of additional types, constants, etc. This not only make it
annoying for getting the specs working but also makes it difficult to
isolate behaviors for testing.

The `static_assets_handler_spec.cr` causes this issue and so will be
marked as an isolated spec for now. In the future all of the tests
should be organized into independent groupings similar to how the
Crystal compiler splits their tests into std, compiler, primitives and
interpreter.
2025-12-19 12:35:00 +01:00
syeopite
9e482b4807 Add specs for the new StaticAssetsHandler 2025-12-19 12:35:00 +01:00