Commit Graph

950 Commits (4b46313e19f06f2739ee522eb4fbfe8dbcbee630)

Author SHA1 Message Date
syeopite 3e5c353298
Merge pull request #2205 from syeopite/fix-age-restricted-videos
Partial (and temporary) fix for age restricted videos
3 years ago
syeopite ae61662f61
Debloat channels.cr into multiple files (#2225)
Cherry picked from ui overhaul branch with a few modifications:
  - channel folder is renamed to channels
  - parsing for channel home and featured channels are removed due to
    lack of infrastructure from other commits

(cherry picked from commit 44d18b8e14)
3 years ago
syeopite 54b19a04bb
Fix caption parsing on age restricted videos 3 years ago
Samantaz Fox 5a8825d016
Fix quoting of 'none' in CSP header
The keyword 'none' must be surrounded by single quotes.
Regression introduced by #2168.
3 years ago
syeopite 31fa3dfd59
Add route to redirect to another instance 3 years ago
TheFrenchGhosty b8f0b4b583
Typo 3 years ago
Samantaz Fox 42d9fd9c88 Rewrite response headers
Fixes #2018 and #2153
3 years ago
syeopite 0a87ba6930
Decode URL encoded preference cookie when parsing 3 years ago
syeopite 065c104f27
Upgrade to crystal 1.0.0 3 years ago
Samantaz Fox cac5f20a28 Move locales definition to i18n.cr 4 years ago
Andrew Zhao 9a8f1a0b0a add option to disable quic 4 years ago
syeopite 877bb5c821
Add aliases for watch route 4 years ago
Svallinn cbdba66ef3
Use the youtubei API over the legacy one 4 years ago
Andrew Zhao 89fd35e02d fix comment replies 4 years ago
Svallinn fa050fb8a8
Fix: functional hl / dark_mode / thin_mode params 4 years ago
TheFrenchGhosty 3cc9114f81
Merge pull request #1829 from SimonPhoenix96/xml-json-yt-sub-import
integrate legacy yt xml subscription import with new json sub import
4 years ago
Perflyst fc8c555519
Merge pull request #1729 from Rjevski/12factor-database-url-restored
Support "Database URL" in addition to existing DB-related parameters
4 years ago
simonphoenix96 84487b2e52 format invidious.cr using crystal cli 4 years ago
Simon Phoenix 9689376de6
fixed line indent typo 4 years ago
simonphoenix96 a2f79a163f integrate legacy yt xml subscription import with new json sub import 4 years ago
Andrew Zhao 2600695927 fix search
Put search page in the super secret proto field
4 years ago
TheFrenchGhosty c451aab150
Enable the Hebrew translation since it's now translated at more than 80% 4 years ago
TheFrenchGhosty 48bff9a5d2
Enable the Indonesian translation since it's now translated at more than 80% 4 years ago
saltycrys 5f03a583d1 Update code for Crystal 0.36.0
Rename `HTTPClient@socket` to `HTTPClient@io`, see
https://github.com/crystal-lang/crystal/pull/9543.

Rename `URI#full_path` to `URI#request_target`, see
https://github.com/crystal-lang/crystal/pull/10099.
4 years ago
saltycrys 991a04dc2a Adjust routes
Simple routes have been moved into a single `Misc` file.

Embed routes have been moved into a single `Embed` file.

The preferences route has been renamed to be more consistent with other parts
of the codebase.
4 years ago
Perflyst 82da5cfd01
Merge pull request #1712 from tenpura-shrimp/bumpvideojs
Bump videojs and fix webworker
4 years ago
Andre Borie 79e99908de Allow providing 12-Factor-style Database URL in config 4 years ago
TheFrenchGhosty bd893cb24c Enable the Finish translation since it's now translated at more than 80% 4 years ago
saltycrys c9a316ad35
Merge pull request #1702 from saltycrys/config
Config improvements
4 years ago
Andrew Zhao 4a0b10984a Bump videojs and fix webworker 4 years ago
saltycrys 70e14f92a4 Only start refresh jobs when necessary
If `channel_threads` or `feed_threads` is set to zero the corresponding job is
now not started.
4 years ago
saltycrys b45f371911 Make config a constant
Instead of passing around `config` there is now the global `CONFIG`.
4 years ago
saltycrys f1a7ee997b Add config environment variables
The config file can now be specified with `INVIDIOUS_CONFIG_FILE`.
A YAML formatted string can still be passed with `INVIDIOUS_CONFIG`, replacing
the config file.

Additionally all options can now be specified as environment variables.
The syntax for variable names is `INVIDIOUS_` followed by the option name in
upper case. The values are parsed as YAML.

These new env vars only update the provided main configuration, but it is
possible to point the config file at the example config and then use env vars
for all config options:
```
INVIDIOUS_CONFIG_FILE=./config/config.example.yml \
INVIDIOUS_CHANNEL_THREADS=10 \
./invidious
```
4 years ago
TheFrenchGhosty 799f97e847 Make invidious use all the translation files 4 years ago
Andrew Zhao b7fe1db89a save host when using dash manifest 4 years ago
saltycrys c81ca187f8 Fix downloads
The `itag` is now converted to a number, matching the `itag` of
`Video.adaptive_fmts` and `Video.fmt_stream`.
4 years ago
saltycrys b0b8ba7000 Respect `use_pubsub_feeds` config
Setting `use_pubsub_feeds: false` now properly disables it.
4 years ago
saltycrys 6365ee7487 Make logger a constant
Instead of passing around `logger` there is now the global `LOGGER`.
4 years ago
saltycrys 7a8620a570 Add CLI arguments to config file
The log level can now be set with `log_level` (accepts ints and strings).
The log file can now be set with `output` (also accepts `STDOUT`).
4 years ago
Perflyst 2c24bf3222
Merge pull request #1389 from vhuynh3000/decrypt_on_demand
add config to decrypt on demand instead of polling
4 years ago
saltycrys 36e9fb9d68 Fix `watch_videos` endpoint
Playlists created by `watch_videos` do not have an author which caused a crash
previously.
4 years ago
vhuynh3000 3a2bd4e928 add config to decrypt on demand instead of polling 4 years ago
Perflyst c89632d2a8
Merge pull request #1608 from saltycrys/add-subscription-traces
Add Subscription Traces
4 years ago
TheFrenchGhosty 82c8f3b556
Merge pull request #1600 from jksladjflkjsadflkjsadf/closeclients
Close http clients after use
4 years ago
Perflyst b19524d56a
Merge pull request #1609 from saltycrys/add-popular-enabled-option
Add `popular-enabled` option
4 years ago
Andrew Zhao e0d25ff887 Close http clients after using
The crystal http client maintains a keepalive connection to the other
server which stays alive for some time. This should be closed if the
client instance is not used again to avoid hogging resources
4 years ago
saltycrys 198dfffaeb Add `popular-enabled` option
This is similar to the removed `top-enabled` option but for the Popular feed.
The instance needs to be restarted if the feed was enabled.

Editing admin options on the preferences page is also fixed.

The handling of the feed pages now only happens in a single place.

Instead of redirecting:
  - The Top feed now displays a message that it was removed from Invidious.
  - The Popular feed now displays a message that it was disabled if it was.
4 years ago
saltycrys c4ef055248 Add RefreshChannelsJob traces
Traces can be enabled with `-l trace`.

The problem with subscriptions is that sometimes requests to YouTube never
finish. As soon as that happens `channel-threads` times subscriptions stop
being refreshed. This is most likely a problem with the lsquick bindings.
4 years ago
Perflyst 8df591e8d4
Merge pull request #1595 from saltycrys/improve-storyboards
Improve storyboards
4 years ago
saltycrys 75c6844b66 Improve storyboards
Instead of limiting the width of storyboards through CSS it is now done in the
VTT directly.
4 years ago