Commit Graph

5384 Commits

Author SHA1 Message Date
syeopite
c5149e381e Double stale timer for issues
Days before staling is increased to 730 days
Days before closing is increased to 60 days
2024-11-09 23:33:30 -03:00
syeopite
6f426013e0 Prevent PRs from being considered stale 2024-11-09 23:33:30 -03:00
Samantaz Fox
7e9e45c85d Channels: Add sort options to shorts 2024-11-09 23:33:30 -03:00
Samantaz Fox
e9fecd56a0 Channels: Add function to generate the new ctoken objects 2024-11-09 23:33:30 -03:00
Samantaz Fox
448ed939fe CI: Check Crystal lint only on latest version (#5042)
* CI: Check Crystal lint only on latest version

* Apply suggestion from code review

Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>

---------

Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
2024-11-09 23:33:30 -03:00
Émilien (perso)
1538131679 checking the status code returned by youtube (#5052)
* checking the status code returned by youtube

* add documentation link

* Update src/invidious/yt_backend/youtube_api.cr

Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>

---------

Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
2024-11-09 23:33:30 -03:00
Samantaz Fox
50859b42c6 Locales: Add Bulgarian, Welsh and Lombard to the list 2024-11-09 23:33:30 -03:00
Brahim Hadriche
4120e19d32 refactor 2024-11-09 23:33:29 -03:00
Samantaz Fox
8f4424fe79 Shards: Update database dependencies 2024-11-09 23:33:28 -03:00
Brahim Hadriche
fe7c745667 [Alternative] Fix for channel live videos 2024-11-09 23:33:00 -03:00
Fijxu
4cdeb283c7 fixup! Logger: Add color support for different log levels 2024-11-09 23:33:00 -03:00
Fijxu
44ed00592c Logger: colorize_logs false by default 2024-11-09 23:33:00 -03:00
Fijxu
bbad70dd5e Logger: Make colorize_logs true by default 2024-11-09 23:33:00 -03:00
Fijxu
500b1f6c38 Logger: Add color support for different log levels 2024-11-09 23:32:23 -03:00
syeopite
6078232bbe make_client: add YouTube headers on *.youtube.com 2024-11-09 23:31:21 -03:00
syeopite
82bd79bb0f Pool: Use force_resolve in fallback new client 2024-11-09 23:31:20 -03:00
syeopite
2cbf245aae Ensure IP family is always used when force_resolve 2024-11-09 23:31:20 -03:00
syeopite
d608ad185e Search API: Fix named arg syntax to make_client 2024-11-09 23:31:20 -03:00
syeopite
dc575ee798 Typo
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2024-11-09 23:31:20 -03:00
syeopite
7977dc3c8b Fix typo in argument to make_client
Co-authored-by: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com>
2024-11-09 23:31:20 -03:00
syeopite
4125dfb566 Use make_client instead of calling HTTP::Client
Using `make_client` to create `HTTP::Client`, allows for a simple way to
easily add logic to all `HTTP::Client` initialized within Invidious.
2024-11-09 23:31:18 -03:00
syeopite
53c4ffbdf3 Fix named arg syntax when passing force_resolve 2024-11-09 23:30:55 -03:00
Fijxu
73ec78dfe2 Remove old code that is done on the Openresty side 2024-11-09 23:28:24 -03:00
Fijxu
cf7d95b375 Update CI 2024-11-09 23:28:24 -03:00
Fijxu
0a08700b48 Videos: Add support for OpenGraph videos
To support OpenGraph clients like Discord and other platforms able to
pull the video from the OpenGraph metadata.
2024-11-09 23:28:22 -03:00
Fijxu
70dc1a9f11 Tokens: Better logging
Some checks are pending
Build and release container directly from master / release (push) Waiting to run
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.10.1, true) (push) Waiting to run
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.11.2, true) (push) Waiting to run
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.12.1, true) (push) Waiting to run
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.13.2, true) (push) Waiting to run
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.14.0, true) (push) Waiting to run
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (nightly, false) (push) Waiting to run
Invidious CI / build-docker (push) Waiting to run
Invidious CI / build-docker-arm64 (push) Waiting to run
Invidious CI / ameba_lint (push) Waiting to run
2024-10-31 21:38:59 -03:00
Fijxu
fc910b43ba External Proxies: Adapt it to use a NamedTuple 2024-10-31 21:38:40 -03:00
Fijxu
67998d1f36 Revert "External Proxies: Rotate between proxies with balance enabled"
This reverts commit 26bee068eb.
It's broken and it doesn't work when a proxy comes back up.
2024-10-31 21:26:03 -03:00
Fijxu
e2276ace1b Merge remote-tracking branch 'upstream/master' into master 2024-10-31 20:25:33 -03:00
Fijxu
c61b2963ac Videos: Fix audio tracks language.
Video will only return the default language. The rest of the audio
tracks are deleted since they will not be used.
2024-10-30 13:14:54 -03:00
Samantaz Fox
2e3a7ad044 Update CHANGELOG.md 2024-10-30 17:13:00 +01:00
Samantaz Fox
c427c184e2 Captions: Add "Filipino (auto-generated)" to the list of languages (#4995)
I encountered a wild
[warn] i18n: Missing translation key "Filipino (auto-generated)"
while browsing videos on the test instance.

No related issue.
2024-10-30 17:07:09 +01:00
Samantaz Fox
59acf23c0c Makefile: Add MT option to enable the 'preview_mt' flag (#4993)
This PR add an MT option to the Makefile. When make is invoked with 'MT=1',
the 'preview_mt' flag is passed to the Crystal compiler.

It doesn't mean that invidious fully supports multi-threading, but at least
it provides an easy way for trying that out.

No related issue.
2024-10-30 17:05:21 +01:00
Samantaz Fox
2eeb6a731d SigHelper: Reconnect to signature helper (#4991)
Fijxu have been using it for more than 3 weeks on their instance and
they report that it works really well.

This only works if 'inv_sig_helper' itself crashes and restarts (via systemd
or docker restart policy) but it will not work if 'inv_sig_helper' hangs and
stops responding to invidious (but this is an issue with 'inv_sig_helper',
not Invidious).

Closes issue 4926
2024-10-30 17:02:51 +01:00
Samantaz Fox
0fb67cc090 Player: Fix a bug where menus were hard to open (#4750)
The fix basically enlarges the hoverable area in order to avoid getting the
menu closed if the mouse isn't moved fast enough.

Video of the fix:
https://www.loom.com/share/36494a3653984650aea3eaa2af276a35

Closes issue 4749
2024-10-30 16:59:34 +01:00
Samantaz Fox
9957da28dc Proxy: Use connection pools for images (#4326)
Theoretically this should improve memory usage and performance by quite a bit
as we aren't creating a new HTTP::Client and in a turn a new connection for
every image we request from YouTube.

Closes issue 4009
2024-10-30 13:55:28 +01:00
Samantaz Fox
f326bcf8db Add support for using Invidious through a HTTP Proxy (#4270)
Partially addresses issue 301
2024-10-30 13:46:49 +01:00
Fijxu
26bee068eb External Proxies: Rotate between proxies with balance enabled
Closes #17
2024-10-30 01:59:08 -03:00
Fijxu
486c5845cd Config: Also reload env variables 2024-10-30 01:57:06 -03:00
Fijxu
6f10a7c67e Use POST requests for /videoplayback requests 2024-10-29 19:02:05 -03:00
Fijxu
67d7b78ac9 Config: Reload configuration on modification
It detects changes on the config.yml automtically if invidious is
running on linux. If not, the configuration can be reloaded using
`kill -s HUP $(pidof invidious)` or any other tool that sends a SIGHUP
signal to the invidious process.

Closes #16
2024-10-28 13:37:06 -03:00
Fijxu
3afac4d842 Tokens: Option to disable user tokens. 2024-10-25 10:36:20 -03:00
syeopite
d8b893e9ad Bump CI matrix (#5015) 2024-10-18 21:33:38 +02:00
Fijxu
448007e5ba Tokens: Server side generated tokens.
#18
2024-10-17 23:44:30 -03:00
Fijxu
3cc0dbca01 PubSub: Use external domain for pubsub feeds 2024-10-17 17:02:12 -03:00
Fijxu
c3e8721051 External Proxies: Proxyfi HLS Playlists 2024-10-14 17:57:52 -03:00
Fijxu
cf5028d09a Videos: Completly disable annotations due to archive.org being down
Closes #15
2024-10-13 23:47:57 -03:00
Émilien (perso)
70e4eb7f5d Merge pull request #5004 from unixfox/update-mocks
update the mocks with the latest updated data
2024-10-14 00:06:29 +02:00
Emilien Devos
0d03818700 libsqlite3-dev is now missing in the CI env 2024-10-14 00:02:41 +02:00
Emilien Devos
e6f52eaf00 update submodule 2024-10-13 23:57:29 +02:00