Commit graph

2344 commits

Author SHA1 Message Date
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.
2021-01-23 19:45:42 +01:00
saltycrys
b45f371911 Make config a constant
Instead of passing around `config` there is now the global `CONFIG`.
2021-01-23 19:39:04 +01:00
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
```
2021-01-23 18:58:13 +01:00
Perflyst
dd2a7f91cc
Merge pull request #1691 from StuffNoOneCaresAbout/container-sha
Container sha without 2 builds
2021-01-22 12:42:05 +01:00
FireMasterK
c86e9dfc8a
build image daily at 0:00 GMT 2021-01-22 16:54:49 +05:30
FireMasterK
40a2579821
different steps depending on event. 2021-01-22 09:20:17 +05:30
Perflyst
380b64071e
Expire sha images after 6 weeks 2021-01-22 00:03:09 +01:00
Perflyst
5ce0b1c18e
Remove image digest output
Does not work with two images at the same time
2021-01-21 23:54:31 +01:00
Perflyst
a00453e151
Build latest only on master, add commit sha tag
Close #1688
2021-01-21 23:51:54 +01:00
Perflyst
a1aa40f500
Fix container build 2021-01-21 07:45:43 +01:00
TheFrenchGhosty
1ad4685bb7
Merge pull request #1629 from tenpura-shrimp/searchui
Add ui for search sort and filter
2021-01-20 12:56:41 +00:00
Perflyst
d8629e61d6
Merge pull request #1674 from iv-org/container-quay
Add container CI release
2021-01-20 12:44:16 +01:00
Perflyst
d4ddd7204d
Rename release.yml to container-release.yml 2021-01-20 12:44:01 +01:00
Perflyst
5f18799d8f
Merge pull request #1679 from Rjevski/videojs-dash-safari-bug-workaround
Fix DASH playback bug in Safari
2021-01-19 17:07:33 +01:00
Andrew Zhao
15ba3325d9 add ui for searching 2021-01-17 14:33:49 -05:00
Andre Borie
3046350cb2 Fix DASH playback bug. 2021-01-17 14:59:18 +00:00
Perflyst
8584654f11
Add container CI release 2021-01-16 22:18:22 +01:00
Perflyst
c7e65ce795
Merge pull request #1619 from tenpura-shrimp/ignorevideoplayback
do not add local to xhr when in videoplayback
2021-01-13 10:01:03 +01:00
TheFrenchGhosty
cc3f019b28
Merge pull request #1658 from jksladjflkjsadflkjsadf/dashmanifesthost
save host when using dash manifest
2021-01-12 17:56:52 +00:00
TheFrenchGhosty
920785631b
Merge pull request #1657 from jksladjflkjsadflkjsadf/fixsetinterval
fix incorrect use of setinterval in js
2021-01-12 13:52:53 +00:00
Andrew Zhao
b7fe1db89a save host when using dash manifest 2021-01-10 18:00:45 -05:00
Andrew Zhao
5a08dfa72f fix incorrect use of setinterval in js 2021-01-10 17:05:08 -05:00
saltycrys
c28b1f6fb9
Merge pull request #1654 from saltycrys/fix-downloads
Fix downloads
2021-01-09 21:17:55 +01:00
saltycrys
c81ca187f8 Fix downloads
The `itag` is now converted to a number, matching the `itag` of
`Video.adaptive_fmts` and `Video.fmt_stream`.
2021-01-09 20:40:01 +01:00
TheFrenchGhosty
ba148d749f
Merge pull request #1647 from hackerncoder/removeOmarrothMentions
Remove omarroth mentions
2021-01-08 13:02:03 +00:00
HackerNCoder
606dd11b4f
Remove admin_email. Use repos url for captcha ID and reddit header. Add note about not updating changelog 2021-01-07 21:09:24 +01:00
saltycrys
e254d2de8e
Merge pull request #1645 from saltycrys/fix-pubsub-config
Respect `use_pubsub_feeds` config
2021-01-07 20:55:10 +01:00
saltycrys
b0b8ba7000 Respect use_pubsub_feeds config
Setting `use_pubsub_feeds: false` now properly disables it.
2021-01-07 20:52:32 +01:00
HackerNCoder
4d512d908d
Remove some mentions of omarroth 2021-01-07 19:01:13 +01:00
Perflyst
168376b046
Merge pull request #1636 from saltycrys/rework-logging
Rework logging
2021-01-06 16:09:32 +01:00
saltycrys
df9e7f284c Adjust log verbosity
The default log level has been changed from `debug` to `info`.
The `debug` log level is now more verbose. `debug` now gives a general overview
of what is happening (where implemented) while `trace` gives all available
details.
2021-01-05 20:51:18 +01:00
saltycrys
6365ee7487 Make logger a constant
Instead of passing around `logger` there is now the global `LOGGER`.
2021-01-05 20:43:19 +01:00
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`).
2021-01-05 20:35:59 +01:00
Perflyst
2c24bf3222
Merge pull request #1389 from vhuynh3000/decrypt_on_demand
add config to decrypt on demand instead of polling
2021-01-05 19:32:22 +01:00
saltycrys
e036d89a86
Merge pull request #1633 from saltycrys/fix-watch_videos
Fix `watch_videos` endpoint
2021-01-04 06:03:22 +01:00
saltycrys
36e9fb9d68 Fix watch_videos endpoint
Playlists created by `watch_videos` do not have an author which caused a crash
previously.
2021-01-04 05:35:59 +01:00
saltycrys
8b56a038b7 Set content type for HTML error helpers
This fixes `Unexpected char '<' at 1:1` errors caused by content type mismatch.
2021-01-04 05:24:08 +01:00
TheFrenchGhosty
d5f0e23e29
Merge pull request #1631 from saltycrys/lsquic-static-alpine
Download liblsquic.a from iv-org/liblsquic-static-alpine
2021-01-03 23:06:00 +00:00
vhuynh3000
3a2bd4e928 add config to decrypt on demand instead of polling 2021-01-03 20:50:52 +01:00
saltycrys
c5136ca4d6 Download liblsquic.a from iv-org/liblsquic-static-alpine
This only affects Docker installs.
Regular builds still use the binary shipped with `lsquic.cr`.
2021-01-03 19:23:54 +01:00
Perflyst
28dac81a90
Merge pull request #999 from notpushkin/patch-1
Add audio mode link to items
2021-01-03 13:58:23 +01:00
Perflyst
c89632d2a8
Merge pull request #1608 from saltycrys/add-subscription-traces
Add Subscription Traces
2020-12-31 11:30:04 +01:00
TheFrenchGhosty
82c8f3b556
Merge pull request #1600 from jksladjflkjsadflkjsadf/closeclients
Close http clients after use
2020-12-30 01:14:31 +00:00
TheFrenchGhosty
29278ff916
Merge pull request #1620 from B0pol/community
fix channel/ID/community endpoint
2020-12-30 01:13:17 +00:00
608b9e66f4 fix channel/ID/community endpoint
fixes https://github.com/iv-org/invidious/issues/1611
2020-12-30 01:09:39 +01:00
Andrew Zhao
ac0ed14eae do not add local to xhr when in videoplayback 2020-12-29 17:58:24 -05:00
TheFrenchGhosty
a06dfaf82a
Merge pull request #1618 from saltycrys/fix-video-mode-button
Fix Video Mode Button
2020-12-29 13:55:19 +00:00
saltycrys
dfd5e30015 Fix Video Mode Button
The query params that get edited for `embed_params` are now deep copied instead
of shallow copied, preventing the originals from being changed.
2020-12-29 01:22:56 +01:00
Perflyst
b19524d56a
Merge pull request #1609 from saltycrys/add-popular-enabled-option
Add `popular-enabled` option
2020-12-28 11:30:55 +01:00
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
2020-12-27 19:40:58 -05:00