2872 Commits

Author SHA1 Message Date
diogo
742a273df1
linting 2021-08-08 18:33:47 +02:00
diogo
b6c2242bc7
remove accidental space 2021-08-08 18:33:45 +02:00
diogo
bbdb7feaa7
typo loopback - lookback 2021-08-08 18:33:41 +02:00
diogo
c9e89b2353
set max_lookback as configurable 2021-08-08 18:33:38 +02:00
diogo
ce45203fcf
no need to normalize the offset 2021-08-08 18:33:35 +02:00
diogo
8e4df821a7
set a global MAX_LOOKBACK 2021-08-08 18:33:32 +02:00
diogo
d6485b2291
scroll the nextVideo into the top 2021-08-08 18:33:30 +02:00
diogo
ad9f210135
pass the api/v1/playlists with videos before the offset 2021-08-08 18:33:25 +02:00
diogo
88c42c15f7
linting 2021-08-08 18:33:21 +02:00
diogo
d9ad4ce4e4
fix cases when high offset video from playlist has no offset in url 2021-08-08 18:33:18 +02:00
diogo
c7f6dda66d
add index to playlist item 2021-08-08 18:33:15 +02:00
diogo
1830015e0e
playlist starts at the offset 2021-08-08 18:33:11 +02:00
syeopite
7ddab5b8cd
Don't run CI on locale only changes (#2306) 2021-08-06 11:08:44 +02:00
syeopite
a26adb162c
Bump Crystal 1.1.0 to 1.1.1 2021-08-06 00:40:54 -07:00
Caspian Baska
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
TheFrenchGhosty
9b74cf3225
Typo 2021-08-03 23:57:48 +02:00
syeopite
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 8fad19d8057d7d22e3de27ebbc88a9978c1df27b)

* Manually extract brand_redirect from 1b569bbc99207cae7c20aa285f42477ae361dd30

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 53335fe7cfdfac392365b7cac447bc7cc6478134)

* Add additional channel endpoints to brand_redirect

(cherry picked from commit 8fc6f3add637dabb09b2034f4d82fc3d039ba15c)

* Add separate handler for /profile endpoint

* Add /channel/:ucid/home route

* Document all channel brand_urls
2021-08-03 23:46:15 +02:00
Samantaz Fox
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
syeopite
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
Samantaz Fox
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
TheFrenchGhosty
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
Lee Woong Jae
e45da7161f
Update Korean translation 2021-07-29 02:15:57 +02:00
Allan Nordhøy
7a3c000955
Update Vietnamese translation 2021-07-29 02:15:57 +02:00
Allan Nordhøy
f75c5db372
Update Lithuanian translation 2021-07-29 02:15:57 +02:00
Allan Nordhøy
7cd1d82d26
Update Danish translation 2021-07-29 02:15:57 +02:00
Allan Nordhøy
0085c3b0d8
Update Croatian translation 2021-07-29 02:15:57 +02:00
Allan Nordhøy
4251c6cb99
Update Indonesian translation 2021-07-29 02:15:57 +02:00
Allan Nordhøy
ac973df8e7
Update Hungarian translation 2021-07-29 02:15:57 +02:00
Allan Nordhøy
a76a955a1b
Update Portuguese (Portugal) translation 2021-07-29 02:15:57 +02:00
Allan Nordhøy
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
Allan Nordhøy
4ac863203d
Update Japanese translation 2021-07-29 02:15:57 +02:00
Allan Nordhøy
be5831d9bd
Update Turkish translation 2021-07-29 02:15:57 +02:00
Allan Nordhøy
1e2fa27af7
Update Chinese (Simplified) translation 2021-07-29 02:15:57 +02:00
Allan Nordhøy
fcbaf2a978
Update Icelandic translation 2021-07-29 02:15:56 +02:00
Allan Nordhøy
b5c172974e
Update Spanish translation 2021-07-29 02:15:56 +02:00
Allan Nordhøy
7bb70924c1
Update Basque translation 2021-07-29 02:15:56 +02:00
Allan Nordhøy
a62fb6dcd1
Update French translation 2021-07-29 02:15:56 +02:00
Allan Nordhøy
e9c06237f2
Update Norwegian Bokmål translation 2021-07-29 02:15:56 +02:00
Allan Nordhøy
bdb1eca741
Update Polish translation 2021-07-29 02:15:56 +02:00
Allan Nordhøy
29000a5209
Update German translation 2021-07-29 02:15:56 +02:00
Allan Nordhøy
88f0867442
Update Russian translation 2021-07-29 02:15:56 +02:00
Allan Nordhøy
3de06174bf
Update English (United States) translation 2021-07-29 02:15:56 +02:00
Milo Ivir
5187894add
Update Croatian translation 2021-07-29 02:15:56 +02:00
Allan Nordhøy
d58f7bb935
Update English (United States) translation 2021-07-29 02:15:56 +02:00
Samantaz Fox
84594b0e1e
Remove workaround for decompression of proxied files (#2286)
Was used by `proxy_file` before crystal 0.35.0.
Implemented in: f7dbf2bdd4f38fed72ad823be1bc86b727aafdb0
orphaned since: d30a972a909e66d963ee953349fe045a1d9a41ee
2021-07-28 17:15:51 -07:00
syeopite
578bbcd181
Fix raw parameter for videos in listen mode (#2270) 2021-07-28 16:28:09 -07:00
TheFrenchGhosty
0cdf13742a
Merge pull request #2283 from weblate/weblate-invidious-translations
Translations update from Weblate
2021-07-28 13:38:52 +00:00
Lee Woong Jae
b00d24579d
Update Korean translation 2021-07-27 17:28:58 +02:00