Commit Graph

407 Commits

Author SHA1 Message Date
Fijxu
91c9cd45a4 Update CI 2024-11-09 23:37:58 -03:00
Fijxu
b953dc1ce7 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:37:58 -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
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
Fijxu
6f10a7c67e Use POST requests for /videoplayback requests 2024-10-29 19:02:05 -03:00
Fijxu
3afac4d842 Tokens: Option to disable user tokens. 2024-10-25 10:36:20 -03:00
Fijxu
448007e5ba Tokens: Server side generated tokens.
#18
2024-10-17 23:44:30 -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
Fijxu
976e1ccf5a External Proxies: Proxyfi HD720 2024-10-13 15:19:49 -03:00
Fijxu
65f3bbcb10 External Proxies: Use list of external videoplayback proxies 2024-10-11 13:50:42 -03:00
Samantaz Fox
fb3ecdad9a Videos: Fix missing host parameter on playback URLs when local=true 2024-10-09 16:15:50 +02:00
Fijxu
8dc0a67be3 Feat: User supplied po_token and visitor_data 2024-10-11 16:50:21 -03:00
Fijxu
d61043edea Small try. 2024-10-10 15:07:33 -03:00
Fijxu
3111158a7c Feeds: Get rid of feed_needs_update() since it appears to be unused 2024-10-09 18:09:23 -03:00
Fijxu
2f5a555ea7 Merge remote-tracking branch 'upstream/master' 2024-10-08 19:22:53 -03:00
Fijxu
eff8673efc Feat: Experimental support for external videoplayback proxies 2024-10-08 18:59:01 -03:00
Fijxu
33ffafb9e3 Feat: backend supports with cookies 2024-10-08 16:54:18 -03:00
Samantaz Fox
0ac9367322 Parse more metadata badges for SearchVideos (#4863)
This PR makes it possible to display badges in the search results for third
party Invidious applications (ex: FreeTube)

See also: https://github.com/FreeTubeApp/FreeTube/pull/5590

No related issue
2024-10-08 17:59:35 +02:00
Samantaz Fox
82ac9a8609 Preferences: Add option to control preloading of video data (#4122)
This PR adds a configuration option to control the preloading of video data on
page load with the HTML5 'preload'[1] attribute on the `<video>` element.

The option is enabled by default, meaning that the `preload` attribute's value
will be 'auto'. If users want to prevent preloading of video data, they
can disable the option, which will set the attribute value to 'none'.

[1](https://www.w3schools.com/tags/att_video_preload.asp)

Closes issue 4110
2024-10-08 17:38:06 +02:00
Samantaz Fox
7c79ee7cc2 Performance: Improve speed of automatic instance redirection (#4193)
The automatic instance redirection implemented in #1940 fetches a new list of
instances each time someone queries the /redirect endpoint. This is extremely
inefficient...

This PR optimizes all that into a background job that only fetches a single
list every 30 minutes. This should performance quite a bit.

No related issue was opened.
2024-10-08 17:31:20 +02:00
ChunkyProgrammer
1961fc3b11 switch to enum flag instead of adding lots of properties to SearchVideo 2024-09-30 22:02:57 -04:00
ChunkyProgrammer
2e649363d2 Parse more metadata badges for SearchVideos 2024-09-30 22:02:57 -04:00
Fijxu
8f46bd5751 Feat: Add resolution limit 2024-09-15 01:06:33 -03:00
Fijxu
100ecff0b3 Config: Support for alternative domains 2024-09-14 18:59:12 -03:00
syeopite
75b68618ab Remove useless proc usage in images.cr 2024-08-24 19:47:42 -07:00
syeopite
003c6f81dc Preserve connection close header of get_storyboard 2024-08-24 19:47:42 -07:00
syeopite
06e1a508e8 Fix headers not being added in image requests
Regression from #2364
2024-08-24 19:45:52 -07:00
syeopite
52bc9aa328 Refactor duplicate logic in image routes 2024-08-24 19:45:52 -07:00
syeopite
480e073fa9 Use HTTP pools for image requests to YouTube 2024-08-24 19:45:52 -07:00
Fijxu
5ced7694fe Merge remote-tracking branch 'upstream/master' 2024-08-24 15:56:36 -04:00
Samantaz Fox
cd2daf4adb Storyboards: Various fixes and code cleaning (#4153)
Closes issue 3441
2024-08-24 20:43:05 +02:00
syeopite
ccecc6d318 Fix lint errors introduced in #4146 and #4295 (#4876)
* Ameba: Fix Naming/VariableNames

Introduced in #4295

* Ameba: Fix Naming/PredicateName

Introduced in #4146
2024-08-24 18:11:11 +00:00
Samantaz Fox
3c6a662aaf Search: Add support for Youtube URLs (#4146)
Closes issue 3300
2024-08-24 19:44:59 +02:00
Samantaz Fox
9e55799269 Channel: Render age restricted channels (#4295)
This PR:
 * gets thumbnail and channel name from the initial request
 * gets videos, shorts and streams via autogenerated channel playlists

Test Url: /channel/UCbfnHqxXs_K3kvaH-WlNlig

Closes issue 3513
2024-08-24 19:43:59 +02:00
Samantaz Fox
21ab5dc668 Storyboard: Revert cue timing "fix" 2024-08-22 00:29:15 +02:00
syeopite
ecbea0b67b Ameba: Fix Lint/ShadowingOuterLocalVar 2024-08-21 02:43:26 -07:00
syeopite
22b35c453e Ameba: Fix Style/WhileTrue 2024-08-21 02:43:08 -07:00
Samantaz Fox
4c0b5c314d Search: Add support for youtu.be and youtube.com URLs 2024-08-17 19:22:40 +02:00
Samantaz Fox
5b05f3bd14 Storyboards: Workarounds for videojs-vtt-thumbnails
The workarounds are as follow:
  * Unescape HTML entities
  * Always use 0:00:00.000 for cue start/end
2024-08-16 11:36:01 +02:00
Samantaz Fox
da3d58f03c Storyboards: Cleanup and document code 2024-08-16 10:05:47 +02:00
Samantaz Fox
8327862697 Storyboards: Use replace the NamedTuple by a struct 2024-08-16 10:04:40 +02:00
Fijxu
2f8ef155c8 Merge remote-tracking branch 'upstream/master' 2024-08-13 15:30:54 -04:00
ChunkyProgrammer
96ade642fa Channel: Render age restricted channels 2024-08-13 15:09:16 -04:00
Samantaz Fox
88b9f17388 Ameba: Fix Naming/VariableNames (#4790)
Related to issue 2231
2024-08-13 20:26:15 +02:00
Samantaz Fox
fa6c5158c5 Ameba: Fix Lint/NotNilAfterNoBang (#4796)
Related to issue 2231
2024-08-11 11:45:05 +02:00
Samantaz Fox
b45310c7d4 Ameba: Fix unused argument Lint warnings (#4805)
Related to issue 2231
2024-08-11 11:43:56 +02:00
syeopite
636a6d0be2 Ameba: Fix Lint/UnusedArgument 2024-07-24 19:57:54 -07:00
Emilien Devos
8665a69fee limit feeds and delete materialized views 2024-07-21 13:00:26 -04:00