Commit Graph

3528 Commits

Author SHA1 Message Date
46f8b04e40 Revert "bump crystal docker image version +"
This reverts commit f2b69fd812.

Crystal 1.1.0 is not supported by Invidious due to upstream issue. See
crystal-lang/crystal#10972
2021-08-12 16:10:40 -07:00
12b46bbd41 switch to innertube API for about channels (#2255) 2021-08-12 16:00:26 -07:00
f2b69fd812 bump crystal docker image version +
use alpine:edge docker image in order to use crystal 1.1.1
2021-08-12 23:33:28 +02:00
0aae728e33 Fix "fatal role postgres doesn't exist" (#2296)
* Fix "fatal role postgres doesn't exist" 

Fix a frequent error with recent postgres docker images:
`FATAL:  role "postgres" does not exist`

* Use $$VAR so it's expanded by the shell, not docker
2021-08-12 19:55:10 +00:00
cea38de4ad Check for existance of "adaptiveFormats" in videos
Combined from commits:
- Check for existance of "adaptiveFormats" in videos
- Remove usage of ternary conditional
2021-08-12 19:26:50 +00:00
3e4fab7070 Merge pull request #2323 from unixfox/fix-comments
Fix comments - related to #2322
2021-08-12 18:52:19 +00:00
6745ca7775 fix comments using dig 2021-08-12 20:00:14 +02:00
88c5e3b6fa Use the new youtube api for comments (#2217)
* use the new youtube api for comments
* remove PG_DB & action parameter + allow force region
* support new comments data with onResponseReceivedEndpoints
2021-08-12 19:14:30 +02:00
2fdb2c7c9a Exempt "blocked" PRs from being marked as stale (#2321) 2021-08-12 08:42:09 -07:00
7afa027b95 Switch routing logic to use modules (#2298)
* Switch routing logic to use modules
* Add more macros for adding routes of different HTTP methods
2021-08-11 12:36:25 +02:00
637a5cc14f Add CI for testing arm64 docker (#2315)
* Add CI for testing build of docker-arm64

* Add specs check to dockerfiles
2021-08-09 22:34:52 -07:00
81e77693b2 Merge pull request #2294 from weblate/weblate-invidious-translations
Translations update from Weblate
2021-08-09 03:28:41 -07:00
d49f884f69 Update Indonesian translation 2021-08-06 11:08:48 +02:00
34eeb29436 Update Arabic translation 2021-08-06 11:08:48 +02:00
0495347c64 Update Portuguese (Brazil) translation 2021-08-06 11:08:48 +02:00
023f9b44d3 Update Korean translation 2021-08-06 11:08:48 +02:00
5248814053 Update Spanish translation 2021-08-06 11:08:48 +02:00
7ddab5b8cd Don't run CI on locale only changes (#2306) 2021-08-06 11:08:44 +02:00
a26adb162c Bump Crystal 1.1.0 to 1.1.1 2021-08-06 00:40:54 -07:00
ef5df36a8a Add nightly crystal to CI matrix (#2264)
* Add nightly crystal to a spec matrix

This project is very large and serves as a great test bed for breakages
in nightly builds of crystal

* Order crystal version in CI matrix

* Add daily CI runs
2021-08-06 00:40:32 -07:00
9b74cf3225 Typo 2021-08-03 23:57:48 +02:00
1321c90920 Extract channel routes (#2227)
* Extract primary channel routes from invidious.cr

Also removes timedtext_video stub since all it does is redirect to the
homepage. However, Invidious's 404 handler already does this.

--
As the template for the channel about page doesn't exist yet, the
behavior for the /channel/:ucid/about endpoint has been changed to be
the same as what's currently present on Invidious

(cherry picked from commit 8fad19d805)

* Manually extract brand_redirect from 1b569bbc99

This commit manually extracts the brand_redirect function from the
commit mentioned.

However, the redirect to the  `.../about` endpoint is removed due to the
fact that it doesn't exist yet.

This commit is also mainly just a bridge for the next few cherry picks from
\#2215

* Update brand_redirect to use youtubei resolve_url

(cherry picked from commit 53335fe7cf)

* Add additional channel endpoints to brand_redirect

(cherry picked from commit 8fc6f3add6)

* Add separate handler for /profile endpoint

* Add /channel/:ucid/home route

* Document all channel brand_urls
2021-08-03 23:46:15 +02:00
4b46313e19 Fix crystal overrides (#2295)
* Move Crystal stdlib classes overrides to a separate file
* Document known crystal overrides
* Update crystal overrides for HTTP::Client socket
* Update shard.yml to restrict crystal versions
* Fix compilation error in Crystal 1.1.x (See
   https://github.com/crystal-lang/crystal/issues/10965
   for more details about this issue).
2021-08-03 23:44:47 +02:00
e9add69e26 Fix #resolve_url by adding ClientConfig argument
The private `_post_json` method of the YoutubeAPI requires a ClientConfig
as the third parameter. This was passed in all Youtube API methods except the
`#resolve_url` method.
2021-08-03 00:48:58 -07:00
5b020e81ca Youtube api improvements (#2277)
* Put youtube API functions under the YoutubeAPI namespace

* Implement the following endpoints:
  - `next`
  - `player`
  - `resolve_url`

* Allow a ClientConfig to be passed to YoutubeAPI endpoint handlers.

* Add constants for many new clients

* Fix documentation of YoutubeAPI.browse(): Comments and search
  result aren't returned by the browse() endpoint but by the next()
  and search() endpoints, respectively.

* Accept gzip compressed data, to help save on bandwidth

* Add debug/trace logging

* Other minor fixes
2021-08-03 02:58:27 +02:00
c76bd7b45b Merge pull request #2288 from weblate/weblate-invidious-translations
Translations update from Weblate
2021-07-31 14:18:29 +00:00
21b7ae3ac3 Update Korean translation 2021-07-29 02:15:57 +02:00
e45da7161f Update Korean translation 2021-07-29 02:15:57 +02:00
7a3c000955 Update Vietnamese translation 2021-07-29 02:15:57 +02:00
f75c5db372 Update Lithuanian translation 2021-07-29 02:15:57 +02:00
7cd1d82d26 Update Danish translation 2021-07-29 02:15:57 +02:00
0085c3b0d8 Update Croatian translation 2021-07-29 02:15:57 +02:00
4251c6cb99 Update Indonesian translation 2021-07-29 02:15:57 +02:00
ac973df8e7 Update Hungarian translation 2021-07-29 02:15:57 +02:00
a76a955a1b Update Portuguese (Portugal) translation 2021-07-29 02:15:57 +02:00
c89b98a1e0 Update Portuguese (Brazil) translation 2021-07-29 02:15:57 +02:00
dda4596c0c Update Japanese translation 2021-07-29 02:15:57 +02:00
4ac863203d Update Japanese translation 2021-07-29 02:15:57 +02:00
be5831d9bd Update Turkish translation 2021-07-29 02:15:57 +02:00
1e2fa27af7 Update Chinese (Simplified) translation 2021-07-29 02:15:57 +02:00
fcbaf2a978 Update Icelandic translation 2021-07-29 02:15:56 +02:00
b5c172974e Update Spanish translation 2021-07-29 02:15:56 +02:00
7bb70924c1 Update Basque translation 2021-07-29 02:15:56 +02:00
a62fb6dcd1 Update French translation 2021-07-29 02:15:56 +02:00
e9c06237f2 Update Norwegian Bokmål translation 2021-07-29 02:15:56 +02:00
bdb1eca741 Update Polish translation 2021-07-29 02:15:56 +02:00
29000a5209 Update German translation 2021-07-29 02:15:56 +02:00
88f0867442 Update Russian translation 2021-07-29 02:15:56 +02:00
3de06174bf Update English (United States) translation 2021-07-29 02:15:56 +02:00
5187894add Update Croatian translation 2021-07-29 02:15:56 +02:00