syeopite
3d77635a5c
Add API endpoint for fetching transcripts from YouTube ( #4788 )
2025-02-26 13:56:39 -08:00
syeopite
4ea4878d1a
User: Batch notifications together
2025-02-26 13:55:25 -08:00
syeopite
1f0a89fb5f
RSS: Channel + Playlist improvements ( #4298 )
2025-02-26 13:55:01 -08:00
syeopite
f95f87e448
Frontend: Add a first page and previous page buttons for channel navigation ( #4123 )
2025-02-26 13:54:25 -08:00
Fijxu
e76867aaba
feat(Database::Videos): built-in video cache and support for multiple caching backends
...
I did this to get rid of Redis compatible DBs and for speed purposes.
This is considered experimental, but everything works fine from
what I have tested.
Here are some benchmarks using the built-in benchmark library of
crystal:
\# built-in release
cache get 19.79M ( 50.54ns) (± 4.12%) 32.0B/op fastest
cache insert 7.88k (126.86µs) (± 2.20%) 65.5kB/op fastest
cache get 4.31k (232.11µs) (± 5.50%) 104kB/op fastest
\# redis release
cache get 22.27k ( 44.90µs) (± 6.40%) 264B/op fastest
cache insert 4.74k (211.01µs) (± 4.72%) 65.7kB/op fastest
cache get 2.51k (399.11µs) (±13.15%) 129kB/op fastest
---
OP/s are way higher, and memory usage per call is lower, so it's a win
win.
2025-02-26 17:51:54 -03:00
Fijxu
62cc10d2ca
chore: remove unused config properties
2025-02-24 13:32:19 -03:00
Fijxu
9f475c1f2a
feat(dev): add option to disable video cache on the database (for development purposes only)
2025-02-24 13:26:52 -03:00
Fijxu
b3e24c703d
feat(invidious-companion): use connection pool
...
From
https://github.com/iv-org/invidious/pull/4985#discussion_r1889356705
Thanks syeopite!
2025-02-21 14:12:03 -03:00
Fijxu
d8ecfd9c04
feat(dev): add option to disable CSP (for development purposes only)
2025-02-21 14:09:16 -03:00
Alex Maras
49afbf2a14
Fix an issue with the HLS manifest check for livestream videos
...
Originally, the HLS manifest check was essentially a boolean: if the HLS
manifest field was present, it was assumed to be a livestream. Some
videos include the HLS Manifest but aren't livestreams.
In the case where they are livestreams, the video contains a videoType
field with the value "Livestream". In the case that they're normal
videos, the videoType is "Video". This is exposed via the video.live_now
method.
This commit just checks that video.live_now is true before treating it
as a livestream
2025-02-21 16:30:39 +08:00
Fijxu
99224b9f60
fix(storyboards): Add HOST_URL to CSP so clients are able to get the storyboards from alternative domains)
2025-02-19 01:10:47 -03:00
Fijxu
e0d4272070
Channels: Fix community tab
2025-02-19 01:10:47 -03:00
syeopite
d853b9f6dc
Typo
...
Co-authored-by: Samantaz Fox <coding@samantaz.fr >
2025-02-18 14:46:18 -08:00
Fijxu
d70681538a
Channels: Fix community tab
2025-02-18 19:20:55 -03:00
Fijxu
bbc5913b8d
feat(database): support for either Redis or PostgreSQL for video cache
2025-02-18 18:11:05 -03:00
Fijxu
1df1945849
fix(images.cr): use i.ytimg.com instead of i9.ytimg.com for thumbnails
2025-02-18 16:04:48 -03:00
Fijxu
b08f7ab7ac
chore(template.ecr): Add margin because it looks like shit without a banner
2025-02-18 02:54:49 -03:00
Drikanis
29219c46a1
fix 5161 by checking recommended videos published field for presence instead of just not nil
2025-01-28 19:40:15 -07:00
epicsam123
a77f083a0a
remove ! on reject
2025-01-26 16:42:59 -05:00
ChunkyProgrammer
eaf47385c5
Add Courses to channel page and channel API
2025-01-25 14:43:39 -05:00
Fijxu
d75d860888
Merge remote-tracking branch 'upstream/master'
Build and release container directly from master / release (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.12.1, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.13.2, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.14.0, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.15.0, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (nightly, false) (push) Has been cancelled
Invidious CI / build-docker (push) Has been cancelled
Invidious CI / build-docker-arm64 (push) Has been cancelled
Invidious CI / lint (push) Has been cancelled
Stale issue handler / stale (push) Has been cancelled
2025-01-25 11:51:05 -03:00
Fijxu
f68d7bcbc7
Revert "Videos: Fix audio tracks language."
...
Reverting this commit before merging https://github.com/iv-org/invidious/pull/5149 from upstream
This reverts commit c61b2963ac .
2025-01-25 11:44:27 -03:00
epicsam123
0fd480bae2
lint edits, refactor
2025-01-25 03:24:38 -05:00
epicsam123
afb0aad7d3
moved comments
2025-01-24 21:54:10 -05:00
epicsam123
6816ded0fa
add missing end statement
2025-01-23 22:17:46 -05:00
epicsam123
0546a73bfa
Pick a different instance upon redirect
2025-01-22 17:33:54 -05:00
syeopite
164d764d55
API: Add a 'published' video parameter for related videos ( #4149 )
2025-01-22 11:38:12 -08:00
syeopite
4a31da4000
User: Ensure IO is properly closed when importing NewPipe subscriptions ( #4346 )
2025-01-22 11:36:58 -08:00
syeopite
831017f403
Frontend: Carry over audio-only mode in playlist links ( #4784 )
2025-01-22 11:35:33 -08:00
syeopite
52daafe047
Videos: Fix missing host parameter on playback URLs when local=true ( #4992 )
2025-01-22 11:34:46 -08:00
syeopite
dca130ca6f
Routes: Clean ajax actions handlers ( #5036 )
2025-01-22 11:33:51 -08:00
syeopite
086c6209ab
Remove stdlib override for proxy initialization ( #5065 )
2025-01-22 11:33:20 -08:00
syeopite
0d398c9d1a
API: Add support for author thumbnails in search api for videos ( #5072 )
2025-01-22 11:32:21 -08:00
syeopite
dc38bcdf17
Kemal: Skip route if response was closed by handlers ( #5073 )
2025-01-22 11:30:45 -08:00
syeopite
d5442d45bc
API: Fix video thumbnails in mixes ( #5116 )
2025-01-22 11:29:12 -08:00
syeopite
eae3c42dab
Videos: Set language for dash audio streams and sort ( #5149 )
2025-01-22 11:25:39 -08:00
Giuliano Macedo
6e3ec10d76
feat(manifset): improved adaptationset label
2025-01-22 11:01:37 -08:00
GTechAlpha
d95ae7e6a5
Add audio track info to dash manifest, if present
...
- language id
- language display name
- main/default track
Sort audio formats so that main/default is first (for clients not using dash)
* Note: this should be a non-breaking change; if audio track info is not availablle, the behavior does not change from current
2025-01-22 11:01:37 -08:00
syeopite
5d9ed95ffd
Warn when any top-level config is "CHANGE_ME!!"
2025-01-22 10:34:04 -08:00
Fijxu
7d02c1827a
feat(views): Add icon for embed youtube video on thumbnails
Build and release container directly from master / release (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (nightly, false) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.10.1, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.11.2, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.12.1, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.13.2, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.14.0, true) (push) Has been cancelled
Invidious CI / build-docker (push) Has been cancelled
Invidious CI / build-docker-arm64 (push) Has been cancelled
Invidious CI / lint (push) Has been cancelled
2025-01-21 23:54:21 -03:00
Fijxu
842473dd37
feat(errors): add embed link on error pages
...
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 / lint (push) Waiting to run
Closes https://git.nadeko.net/Fijxu/invidious/issues/73
2025-01-20 23:54:13 -03:00
syeopite
e1378702af
Apply upcoming formatting rules from Crystal 1.15
2025-01-20 16:15:13 -08:00
Fijxu
43aa7e7303
refactor: use reverse! and uniq! to modify the array in place
Build and release container directly from master / release (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.10.1, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.11.2, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.12.1, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.13.2, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.14.0, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (nightly, false) (push) Has been cancelled
Invidious CI / build-docker (push) Has been cancelled
Invidious CI / build-docker-arm64 (push) Has been cancelled
Invidious CI / lint (push) Has been cancelled
2025-01-13 11:18:26 -03:00
Fijxu
a08fafd852
style: format code
2025-01-13 11:16:06 -03:00
Fijxu
b0141d87fa
chore: remove unused code
2025-01-13 11:10:54 -03:00
Fijxu
61106da689
Revert "Videos: Completly disable annotations due to archive.org being down"
...
This reverts commit cf5028d09a .
2025-01-13 11:07:40 -03:00
Caian Benedicto
b4a6193642
Improve syntax
...
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com >
2025-01-05 09:56:00 +00:00
Fijxu
25c3153f4c
fixup! fix(hls): add missing scheme to m3u8 list
Build and release container directly from master / release (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.10.1, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.11.2, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.12.1, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.13.2, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.14.0, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (nightly, false) (push) Has been cancelled
Invidious CI / build-docker (push) Has been cancelled
Invidious CI / build-docker-arm64 (push) Has been cancelled
Invidious CI / lint (push) Has been cancelled
Stale issue handler / stale (push) Has been cancelled
2025-01-01 02:31:20 -03:00
Fijxu
4a8fffac26
fix(hls): revert changes made on fb3ecdad9a
2025-01-01 02:17:33 -03:00
Fijxu
ebd89acf79
fix(hls): add missing scheme to m3u8 list
2025-01-01 02:16:40 -03:00