147 Commits

Author SHA1 Message Date
broquemonsieur
8da1d9f9e2
Merge 0cf71b20a1bfddfea95136ae5438c49b22069f47 into 23ff6135bb4304c6b5e9de6fc06e67bfadc9651a 2025-03-29 15:05:40 +01:00
Émilien (perso)
70ff463cc6
Add invidious companion support (#4985)
* add support for invidious companion

* redirect latest_version and dash manifest to invidious companion

* fix Shadowing outer local variable `response`

* fixing condition for Content-Security-Policy

* throw error if inv_sig_helper and invidious_companion used same time

* Use sample instead of Random.rand

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

* Remove debug puts functions

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

* modify the description for config.example.yaml about invidious companion

* move config checks for invidious companion

* separate invidious_companion logic + better config.yaml config

* fixing "end" misplacement

* fix linting + use .empty?

* crystal handle decompression already by itself

* fix download function when invidious companion used

* fix linting

* invidious companion always used so always add CSP and redirect latest_version

* apply all the suggestions + rework invidious_companion parameter

* format watch.cr

* fix ameba Redundant use of `Object#to_s` in interpolation

* add ability for invidious companion to check request from invidious

* Better document private_url and public_url

* Better doc for invidious_companion_key

* !empty? to present?

* skip proxy for invidious companion

* fixing format

* missing ,

* add companion pooling http

* fix: don't use http proxy when sending requests to companion

* fix: logic where we want to have the invidious logic if companion is not used

* chore: remove baseurl usage from invidious companion

* chore: change from inv-sig-helper to companion for required playback

* fix: use puts + add warning for inv-sig-helper deprecated

---------

Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
2025-03-13 16:44:00 +01:00
syeopite
3e329410d1
Add the ability to listen on UNIX sockets (#5112) 2025-02-26 14:04:29 -08:00
syeopite
033e42a981
Comment out http_proxy in example config 2025-01-22 10:33:34 -08:00
Caian Benedicto
f9885cca8e Revert changes made to other parameters 2024-12-27 15:19:13 -03:00
Caian Benedicto
275318dae2 Change socket_binding to a nested configuration in YAML 2024-12-14 15:18:25 -03:00
Caian Benedicto
48d2250024 Unify socket_binding and socket_permissions 2024-12-14 06:53:30 -03:00
Caian Benedicto
5f8130fd03 Leave socket_binding disabled by default in the configuration example 2024-12-14 05:39:03 -03:00
Caian Benedicto
b4e930f3bc Change bind_unix to socket_binding, add socket_permissions and config example 2024-12-13 21:50:02 -03:00
Samantaz Fox
a760b69cb6
Logger: Add color support for different log levels (#4931)
No related issue
2024-11-08 23:28:51 +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
d2edd4b63f
fixup! Logger: Add color support for different log levels 2024-10-08 18:36:50 -03: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
Fijxu
17b525f2a6
Logger: colorize_logs false by default 2024-09-27 18:08:21 -03:00
Fijxu
d77afdcf00
Logger: Make colorize_logs true by default 2024-09-20 00:32:27 -03:00
Fijxu
f8ec312328
Logger: Add color support for different log levels 2024-09-19 21:35:52 -03:00
broquemonsieur
0cf71b20a1
Merge branch 'iv-org:master' into main 2024-09-07 06:20:48 +00:00
Thomas Lange
f247b2f862
Update config/config.example.yml
Accept suggested change from @SamantazFox.

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2024-08-30 19:52:33 +02:00
Samantaz Fox
2d18ff1f80
Add ability to set po_token and visitordata ID (#4789)
This PR adds two new config option, to pass a PO token (config 'po_token') and
a visitor ID (config 'visitor_data') to Youtube. These two strings are required
to play videos using the WEB client.

Warning: These strings gives much more identifiable information to Google!

If the po_token setting is filled in, then the WEB client is used. If not, the
Android client is used. TvHtml5ScreenEmbed will still be used as a fallback.

Script for generating po_token and visitor_data:
https://github.com/iv-org/youtube-trusted-session-generator

Helps with issue 4734
2024-08-13 20:35:43 +02:00
Samantaz Fox
ec1bb5db87
SigHelper: Add support for PLAYER_UPDATE_TIMESTAMP opcode 2024-08-07 23:25:32 +02:00
Samantaz Fox
a845752fff
Jobs: Remove the signature function update job 2024-07-25 22:13:08 +02:00
Emilien Devos
53223f99b0 Add ability to set po_token and visitordata ID 2024-07-24 19:28:47 +02:00
syeopite
eb8fcc9e88
Add support for using HTTP proxies 2024-04-28 19:43:17 -07:00
broquemonsieur
0284d37487
Merge branch 'iv-org:master' into main 2023-12-18 01:58:36 +00:00
broquemonsieur
7a31ca733d Revert mistake 2023-12-05 00:27:18 -08:00
broquemonsieur
df188c032c Complete the bifurcation of "list" and "comp" 2023-12-03 18:44:07 -08:00
Samantaz Fox
7e363fa3c8
Config: Remove anti-captcha related configs 2023-11-20 17:39:51 +01:00
Thomas Lange
bf470704a5 Add option to control preloading of video data
Fix #4110 by adding an option to control the preloading of video data on
page load. If disabled ("false"), the browser will not preload any video
data until the user explicitly hits the "Play" button.

If enabled ("true"), the default behavior will be used, which means the
browser decides how much of the video will be preloaded.
2023-09-26 22:21:12 +02:00
broquemonsieur
cd3256fcff
Merge branch 'iv-org:master' into main 2023-09-22 02:13:57 +00:00
Samantaz Fox
842e9fade5
Captions: Add ability to use Innertube's transcripts API (#4001) 2023-09-18 23:31:56 +02:00
broquemonsieur
f48083da33 Add end marker continuation utility 2023-09-07 23:33:07 -07:00
broquemonsieur
f05d38aa8e Prevent autoplay breakage by vetting each change from top to compilation_video.ecr 2023-09-07 23:28:58 -07:00
broquemonsieur
da290e5d6f Add timestamps to update compilation POST request 2023-09-07 22:41:53 -07:00
broquemonsieur
7cfa09984e Add compilations to feeds menu 2023-09-07 22:13:19 -07:00
broquemonsieur
74d42c18dd Add ecr for individual compilation items (videos) 2023-09-07 22:13:19 -07:00
broquemonsieur
6b984c6677 Remove files that were prematurely added and add backend Compilation files 2023-09-02 17:15:10 -07:00
broquemonsieur
bef234fd74 Add compilations to DB 2023-09-02 17:15:10 -07:00
broquemonsieur
24f55a7876 Add backend Compilation symbols 2023-09-02 17:15:10 -07:00
broquemonsieur
d0a3c994f4 Add Compilation symbols until "Compilations" appears in feeds menu 2023-09-02 17:15:10 -07:00
broquemonsieur
5fb47c5e9e add Compilation symbols 2023-09-02 17:15:10 -07:00
syeopite
eabcea6f4a
Remove trailing whitespace in config documentation
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2023-08-29 06:18:35 +00:00
syeopite
c5fe96e936
Remove lsquic from codebase 2023-07-26 07:19:12 -07:00
syeopite
e4942b188f
Integrate transcript captions into captions API 2023-07-23 14:40:09 -07:00
Jason Thatcher
4a92dce449
config.example.yml: Fix typo in pwgen command (#3965)
`pwdgen` -> `pwgen`.
2023-07-04 08:18:30 +02:00
Samantaz Fox
f64e311dcd
Config: Update example config documentation 2023-07-01 19:29:40 +02:00
Samantaz Fox
b06c87ff8d
User: Remove broken Google login (various comments) 2023-06-11 16:34:59 +02:00
Émilien Devos (perso)
36f7c99cfb
Update config.example.yml
Document save playback position in the config.example.yml
2023-05-07 17:49:43 +02:00
Émilien Devos
98301a2237
Add ability to disable all user notifications (#3473) 2023-01-05 23:08:05 +00:00
PrivacyDevel
4fc5d43374
Update config.example.yml 2022-11-22 17:22:46 +00:00
PrivacyDevel
9656067296
Add "light" and "auto" as accepted values for dark_mode 2022-11-22 17:08:32 +00:00