Compare commits
312 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50bab26a3a | ||
|
|
ceb252986e | ||
|
|
750ef296c6 | ||
|
|
454ae8656a | ||
|
|
75450dcdbc | ||
|
|
bd2c7e3bb9 | ||
|
|
9d23cf33fd | ||
|
|
97eb01a28d | ||
|
|
9a2a636aed | ||
|
|
61c8256ef0 | ||
|
|
8e1791570e | ||
|
|
aa30d1f359 | ||
|
|
326f4bd681 | ||
|
|
7690c6c33d | ||
|
|
fece1077f2 | ||
|
|
75fc7db50d | ||
|
|
96da04576e | ||
|
|
001ec3663e | ||
|
|
21a00b77bd | ||
|
|
408f3852ec | ||
|
|
61150c74d2 | ||
|
|
7bb7003c9d | ||
|
|
920463f2ff | ||
|
|
ca1185d0be | ||
|
|
be655ee328 | ||
|
|
02d4186b11 | ||
|
|
3f97bebd69 | ||
|
|
2e378da922 | ||
|
|
b37f51bd7f | ||
|
|
eb8b0f72cc | ||
|
|
d8fe9a4d29 | ||
|
|
c97cdf551e | ||
|
|
80fc60b5e2 | ||
|
|
3b2e142542 | ||
|
|
0e58d99f4e | ||
|
|
92798abb5d | ||
|
|
bd7950b757 | ||
|
|
59a15ceef6 | ||
|
|
4011a113cc | ||
|
|
70cbe91776 | ||
|
|
f92027c44b | ||
|
|
1443335315 | ||
|
|
6ff2229a09 | ||
|
|
bb72672dd9 | ||
|
|
d96dee3aa6 | ||
|
|
bd0aaa343b | ||
|
|
3126e1ac94 | ||
|
|
a117d87f33 | ||
|
|
9dc4f8a1aa | ||
|
|
0d536d11e3 | ||
|
|
72a4962fd0 | ||
|
|
a3045a3953 | ||
|
|
c620a22017 | ||
|
|
856ec03cc7 | ||
|
|
c80c5631f0 | ||
|
|
ef70668a77 | ||
|
|
ebd4691462 | ||
|
|
28554235be | ||
|
|
efbbb6fd20 | ||
|
|
9de57021a3 | ||
|
|
e21f770485 | ||
|
|
697c00dccf | ||
|
|
1caf6a3298 | ||
|
|
02fd02d482 | ||
|
|
239fb0db94 | ||
|
|
fe1d73c3e5 | ||
|
|
43da06a354 | ||
|
|
fea6b67067 | ||
|
|
f065ae54d5 | ||
|
|
3cf417766d | ||
|
|
0fb41b10e9 | ||
|
|
bc9dc3bf1e | ||
|
|
3cde5e28a8 | ||
|
|
cb8e7181c4 | ||
|
|
9a3becdecc | ||
|
|
e3c10d779d | ||
|
|
dd9f1024f4 | ||
|
|
9841f74adc | ||
|
|
b56e493d92 | ||
|
|
a2c5211b20 | ||
|
|
b7a7abed48 | ||
|
|
72bfdfd925 | ||
|
|
b80d34612a | ||
|
|
648cc0f006 | ||
|
|
830692dd60 | ||
|
|
95a6759381 | ||
|
|
960b37b1c2 | ||
|
|
b1d17dea4f | ||
|
|
6b06471953 | ||
|
|
4ca957d3eb | ||
|
|
eb9b63477c | ||
|
|
80c01b055c | ||
|
|
50aec67069 | ||
|
|
7baced75e5 | ||
|
|
99743a94fb | ||
|
|
9bdfd6025b | ||
|
|
91400d2ce0 | ||
|
|
7b88d0efe3 | ||
|
|
4aada65dae | ||
|
|
0560d2cfb7 | ||
|
|
58c1a68ad9 | ||
|
|
588fc6df85 | ||
|
|
2c9e4ded40 | ||
|
|
88a538e71b | ||
|
|
513363504f | ||
|
|
0e844edacb | ||
|
|
5751bb2481 | ||
|
|
28669d940a | ||
|
|
3d87bdb6b4 | ||
|
|
1499ce43bf | ||
|
|
4d22b43d65 | ||
|
|
823603650f | ||
|
|
062867a38d | ||
|
|
f3e0c5d653 | ||
|
|
fc7f48b7db | ||
|
|
04d56420d1 | ||
|
|
a017574f74 | ||
|
|
ae24360c02 | ||
|
|
3fea1976c8 | ||
|
|
cf97dd9fcd | ||
|
|
0e3a48ff76 | ||
|
|
276bf09238 | ||
|
|
05988c1c49 | ||
|
|
d46b26e3bc | ||
|
|
236c172c6f | ||
|
|
59fcb56972 | ||
|
|
c07cd3a856 | ||
|
|
37766347a5 | ||
|
|
79da61782b | ||
|
|
8af87f1a8b | ||
|
|
494c954cbb | ||
|
|
71bc9eea28 | ||
|
|
e3b2bcfd06 | ||
|
|
142d974641 | ||
|
|
e56129111a | ||
|
|
0e1d6aa85c | ||
|
|
bcdb8cd770 | ||
|
|
7b2ca55089 | ||
|
|
f6ef0b684a | ||
|
|
02e1cdf210 | ||
|
|
b58950c574 | ||
|
|
833a60f29c | ||
|
|
f776d67c03 | ||
|
|
13e7cca1a4 | ||
|
|
0f3c477ff3 | ||
|
|
039cc30c07 | ||
|
|
25c8cd9246 | ||
|
|
c58841100a | ||
|
|
03e24cccd0 | ||
|
|
35f011758d | ||
|
|
2ebfaf76f2 | ||
|
|
0cf187dee7 | ||
|
|
bdeb325bad | ||
|
|
a1225b6d0d | ||
|
|
f0368b02c4 | ||
|
|
202de1436d | ||
|
|
7f8746fcd4 | ||
|
|
e05a25d701 | ||
|
|
6930570fa2 | ||
|
|
aba2c5b938 | ||
|
|
d82f86dcd9 | ||
|
|
159b4f9734 | ||
|
|
46a737c7a1 | ||
|
|
a731486ab7 | ||
|
|
c3e57f1fdd | ||
|
|
a9af484412 | ||
|
|
007646774e | ||
|
|
2d78e35e16 | ||
|
|
7524b5e349 | ||
|
|
2a04a48b89 | ||
|
|
3cbdaab81e | ||
|
|
8c858a5953 | ||
|
|
1812958106 | ||
|
|
4e5324916c | ||
|
|
1a77becc6a | ||
|
|
23ccaea2ff | ||
|
|
2a4b252a9d | ||
|
|
9ae4edfee5 | ||
|
|
bf48809b61 | ||
|
|
57a80a3c10 | ||
|
|
3f3e52d7ae | ||
|
|
5c69110658 | ||
|
|
be055d9dcb | ||
|
|
1e34a61911 | ||
|
|
97bd1da2a2 | ||
|
|
330ffb803f | ||
|
|
7b77f200be | ||
|
|
15a3c8408f | ||
|
|
bc1784ed2b | ||
|
|
55f0a82249 | ||
|
|
7aada3f328 | ||
|
|
dad885c051 | ||
|
|
f5c7bbfda8 | ||
|
|
f832743009 | ||
|
|
7551de6439 | ||
|
|
e03b4b7505 | ||
|
|
2d59fdd178 | ||
|
|
e61c8046f4 | ||
|
|
c0796ac3d6 | ||
|
|
68be24ffc6 | ||
|
|
9dcc87c705 | ||
|
|
d36c536107 | ||
|
|
affeeb39de | ||
|
|
f5d8a952f2 | ||
|
|
da07f99d3d | ||
|
|
eef66de68c | ||
|
|
4aa1180fce | ||
|
|
553d52a45e | ||
|
|
347b153884 | ||
|
|
1e7c176481 | ||
|
|
e390405d0c | ||
|
|
7378a84c96 | ||
|
|
b25013c4a2 | ||
|
|
6942916f13 | ||
|
|
f69f0b97f5 | ||
|
|
4361ea9686 | ||
|
|
be2ee33273 | ||
|
|
8c2ddb0255 | ||
|
|
466a5a932b | ||
|
|
8a3c6382e9 | ||
|
|
a2b45120c5 | ||
|
|
546ad52e11 | ||
|
|
1aefc5b540 | ||
|
|
1085ca4a2d | ||
|
|
9766322e99 | ||
|
|
cfb68e3bff | ||
|
|
a006963fb8 | ||
|
|
24c95c27c3 | ||
|
|
3c40c0be6b | ||
|
|
b1fc80b79a | ||
|
|
50d793e49b | ||
|
|
34c43b8349 | ||
|
|
7002a316fd | ||
|
|
1f37faad42 | ||
|
|
68cf24d100 | ||
|
|
86491da253 | ||
|
|
90249cdafa | ||
|
|
7c75111c41 | ||
|
|
7b53b6bfef | ||
|
|
fded5fd900 | ||
|
|
950965bd4a | ||
|
|
3a359319fa | ||
|
|
d3dd82c699 | ||
|
|
81f192bccb | ||
|
|
60a23febed | ||
|
|
d0e280cbac | ||
|
|
ecb62c8659 | ||
|
|
12669df92b | ||
|
|
44b2afeffa | ||
|
|
70f435e909 | ||
|
|
512d82071e | ||
|
|
3896230199 | ||
|
|
b902880a05 | ||
|
|
418526af16 | ||
|
|
45ad212459 | ||
|
|
0f49d424d3 | ||
|
|
01e42c8d6f | ||
|
|
26107bd6c3 | ||
|
|
7d3ecd2297 | ||
|
|
16056661dd | ||
|
|
059f50dad4 | ||
|
|
4c9975a7d9 | ||
|
|
9f9cc1ffb5 | ||
|
|
e768e1e277 | ||
|
|
acaf7b969a | ||
|
|
2b94975345 | ||
|
|
e6b4e12689 | ||
|
|
7eaac995bd | ||
|
|
a19cdb5e72 | ||
|
|
f54fbd057e | ||
|
|
19eceb4ecc | ||
|
|
dcff1ec25f | ||
|
|
567cda4cd3 | ||
|
|
900d8790b3 | ||
|
|
cad284519f | ||
|
|
0727acf458 | ||
|
|
d8813179be | ||
|
|
10d690c8fb | ||
|
|
52f71cdda0 | ||
|
|
2a9a348164 | ||
|
|
00346781bb | ||
|
|
4c6e92eea1 | ||
|
|
b63f469110 | ||
|
|
f6f176afc1 | ||
|
|
3de37a61c5 | ||
|
|
2d955dae48 | ||
|
|
46577fb128 | ||
|
|
37dba6ebfd | ||
|
|
66b949bed1 | ||
|
|
c9a05187fb | ||
|
|
cc956583fb | ||
|
|
14206efb09 | ||
|
|
5e6d7f5d16 | ||
|
|
7a33831d14 | ||
|
|
4f120e19fd | ||
|
|
37d064d836 | ||
|
|
824150f89b | ||
|
|
f7dc4cca2c | ||
|
|
ea39bb4334 | ||
|
|
5680d5a7be | ||
|
|
004246124b | ||
|
|
c41beae99a | ||
|
|
fe2cffb25b | ||
|
|
f71d5c429d | ||
|
|
dce5816b18 | ||
|
|
f99a7b2a8c | ||
|
|
ec36c69984 | ||
|
|
2458db03de | ||
|
|
7528b7bc1a | ||
|
|
8af33084ed | ||
|
|
f643175156 | ||
|
|
0321dda1d7 |
31
.travis.yml
Normal file
31
.travis.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
dist: bionic
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: build
|
||||
# TODO: Shallowly clone again once the .git folder is no longer required for building
|
||||
git:
|
||||
depth: false
|
||||
language: crystal
|
||||
crystal: latest
|
||||
before_install:
|
||||
- shards update
|
||||
- shards install
|
||||
install:
|
||||
- crystal build --warnings all --error-on-warnings src/invidious.cr
|
||||
script:
|
||||
- crystal tool format --check
|
||||
- crystal spec
|
||||
|
||||
- stage: build_docker
|
||||
# TODO: Shallowly clone again once the .git folder is no longer required for building
|
||||
git:
|
||||
depth: false
|
||||
language: minimal
|
||||
services:
|
||||
- docker
|
||||
install:
|
||||
- docker-compose build
|
||||
script:
|
||||
- docker-compose up -d
|
||||
- while curl -Isf http://localhost:3000; do sleep 1; done
|
||||
135
CHANGELOG.md
135
CHANGELOG.md
@@ -1,3 +1,138 @@
|
||||
# 0.20.0 (2019-011-06)
|
||||
|
||||
# Version 0.20.0: Custom Playlists
|
||||
|
||||
It's been quite a while since the last release! There've been [198 commits](https://github.com/omarroth/invidious/compare/0.19.0..0.20.0) from 27 contributors.
|
||||
|
||||
A couple smaller features have since been added. Channel pages and playlists in particular have received a bit of a face-lift, with both now displaying their descriptions as expected, and playlists providing video count and published information. Channels will also now provide video descriptions in their RSS feed.
|
||||
|
||||
Turkish (tr), Chinese (zh-TW, in addition to zh-CN), and Japanese (jp) are all now supported languages. Thank you as always to the hard work done by translators that makes this possible.
|
||||
|
||||
The feed menu and default home page are both now configurable for registered and unregistered users, and is quite a bit of an improvement for users looking to reduce distractions for their daily use.
|
||||
|
||||
## For Administrators
|
||||
|
||||
`feed_menu` and `default_home` are now configurable by the user, and have therefore been moved into `default_user_preferences`:
|
||||
|
||||
```yaml
|
||||
feed_menu: ["Popular", "Top"]
|
||||
default_home: Top
|
||||
|
||||
# becomes:
|
||||
|
||||
default_user_preferences:
|
||||
feed_menu: ["Popular", "Top"]
|
||||
default_home: Top
|
||||
```
|
||||
|
||||
Several new options have also been added, including the ability to set a support email for the instance using `admin_email: EMAIL`, and forcing the use of a specific connection in the case of rate-limiting using `force_resolve` (see below).
|
||||
|
||||
## For Developers
|
||||
|
||||
Authenticated endpoints are now [properly documented](https://github.com/omarroth/invidious/wiki/Authenticated-Endpoints), as well how to generate and use API tokens. My hope is that this makes some of the more [interesting](https://github.com/omarroth/invidious/wiki/Authenticated-Endpoints#get-apiv1authnotifications) endpoints more accessible for developers to use in their own applications.
|
||||
|
||||
API endpoints for interacting with custom playlists have also been added with documentation available [here](https://github.com/omarroth/invidious/wiki/Authenticated-Endpoints#get-apiv1authplaylists).
|
||||
|
||||
## Custom playlists
|
||||
|
||||
This is probably the feature that has been the longest in the pipe and that I'm quite pleased is now implemented. It is now possible to create custom playlists, which can be played and edited through Invidious. API endpoints have also been added (documentation [here](https://github.com/omarroth/invidious/wiki/Authenticated-Endpoints#get-apiv1authplaylists)).
|
||||
|
||||
Overall I'm quite pleased with how smoothly it has been rolled out and with the experience so far, and I'm exctited for how it can be extended and improved in future.
|
||||
|
||||
## [instances.invidio.us](https://instances.invidio.us)
|
||||
|
||||
It is now possible to view a list of public instances (as provided in the [wiki](https://github.com/omarroth/invidious/wiki/Invidious-Instances)) through an API or a pretty new interface [here](https://instances.invidio.us). It combines uptime information, statistics from each instance and basic information already provided in the wiki. I expect it should be much more user-friendly than compiling the information yourself, and is already used by [Invidition](https://codeberg.org/Booteille/Invidition) to provide a list of instances for users to choose from.
|
||||
|
||||
The site itself is licensed under the AGPLv3 and the source is available [here](https://github.com/omarroth/instances.invidio.us).
|
||||
|
||||
## Video unavailable [#811](https://github.com/omarroth/invidious/issues/811)
|
||||
|
||||
Many users have likely noticed this error message if using Invidious directly or through another service, such as FreeTube. This issue is caused by rate-limiting by Google, and is not a new issuee for projects like Invidious (notably [youtube-dl](https://github.com/ytdl-org/youtube-dl#http-error-429-too-many-requests-or-402-payment-required)) and appears to be affecting smaller, private instances as well.
|
||||
|
||||
There is not a permanent fix for administrators currently, however there is some information available [here](https://github.com/omarroth/invidious/issues/811#issuecomment-540017772) that may provide a temporary solution. Unfortanately, in most cases the best option is to wait for the instance to be unbanned or to move the instance to a different IP. A more informative error message is also now provided, which should help an administrator more quickly diagnose the problem.
|
||||
|
||||
For those interested, I would recommend following [#811](https://github.com/omarroth/invidious/issues/811) for any future progress on the issue.
|
||||
|
||||
## BAT verified publisher
|
||||
|
||||
I'm quite late to this announcement, however I'm pleased to mention that Invidious is now a BAT verified publisher! I would recommend looking [here](https://basicattentiontoken.org/about/) or [here](https://www.reddit.com/r/BATProject/comments/7cr7yc/new_to_bat_read_this_introduction_to_basic/) for learning more about what it is and how it works. Overall I think it makes an interesting substitute for services like Liberapay, and a (hopefully) much less-intrusive alternative to direct advertising.
|
||||
|
||||
BAT is combined under other cryptocurrencies below. Currently there's a fairly significant delay in payout, which is the reason for the large fluctuation in crypto donations between September and October (and also the reason for the late announcement).
|
||||
|
||||
## Release schedule
|
||||
|
||||
Currently I'm quite pleased with the current state of the project. There's plenty of things I'd still like to add, however at this point I expect the rate of most new additions will slow down a bit, with more focus on stabililty and any long-standing bugs.
|
||||
|
||||
Because of this, I'm planning on releasing a new version quarterly, with any necessary hotfixes being pushed as a new patch release as necessary. As always it will be possible to run Invidious directly from [master](https://github.com/omarroth/invidious/wiki/Updating) if you'd still like to have the lastest version.
|
||||
|
||||
I'll plan on providing finances each release, with a similar monthly breakdown as below.
|
||||
|
||||
## Finances for September 2019
|
||||
|
||||
### Donations
|
||||
|
||||
- [Patreon](https://www.patreon.com/omarroth) : \$64.37
|
||||
- [Liberapay](https://liberapay.com/omarroth) : \$76.04
|
||||
- Crypto : ~\$99.89 (converted from BAT, BCH, BTC)
|
||||
- Total : \$240.30
|
||||
|
||||
### Expenses
|
||||
|
||||
- invidious-lb1 (nyc1) : \$10.00 (load balancer)
|
||||
- invidious-update1 (s-1vcpu-1gb) : \$5.00 (updates feeds)
|
||||
- invidious-node1 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node2 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node3 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node4 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node5 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node6 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node7 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node8 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node9 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node10 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node11 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node12 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node13 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node14 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node15 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node16 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-db1 (s-4vcpu-8gb) : \$40.00 (database)
|
||||
- Total : \$135.00
|
||||
|
||||
## Finances for October 2019
|
||||
|
||||
- [Liberapay](https://liberapay.com/omarroth) : \$134.40
|
||||
- Crypto : ~\$8.29 (converted from BAT, BCH, BTC)
|
||||
- Total : \$142.69
|
||||
|
||||
### Expenses
|
||||
|
||||
- invidious-lb1 (nyc1) : \$5.00 (load balancer)
|
||||
- invidious-lb2 (nyc1) : \$5.00 (load balancer)
|
||||
- invidious-lb3 (nyc1) : \$5.00 (load balancer)
|
||||
- invidious-lb4 (nyc1) : \$5.00 (load balancer)
|
||||
- invidious-update1 (s-1vcpu-1gb) : \$5.00 (updates feeds)
|
||||
- invidious-node1 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node2 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node3 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node4 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node5 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node6 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node7 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node8 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node9 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node10 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node11 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node12 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node13 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node14 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node15 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node16 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node17 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-node18 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||
- invidious-db1 (s-4vcpu-8gb) : \$40.00 (database)
|
||||
- Total : \$155.00
|
||||
|
||||
# 0.19.0 (2019-07-13)
|
||||
|
||||
# Version 0.19.0: Communities
|
||||
|
||||
29
README.md
29
README.md
@@ -1,5 +1,7 @@
|
||||
# Invidious
|
||||
|
||||
[](https://travis-ci.org/omarroth/invidious)
|
||||
|
||||
## Invidious is an alternative front-end to YouTube
|
||||
|
||||
- Audio-only mode (and no need to keep window open on mobile)
|
||||
@@ -23,7 +25,6 @@
|
||||
- Developer [API](https://github.com/omarroth/invidious/wiki/API)
|
||||
|
||||
Liberapay: https://liberapay.com/omarroth
|
||||
Patreon: https://patreon.com/omarroth
|
||||
BTC: 356DpZyMXu6rYd55Yqzjs29n79kGKWcYrY
|
||||
BCH: qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk
|
||||
|
||||
@@ -78,7 +79,7 @@ $ docker-compose build
|
||||
|
||||
```bash
|
||||
# Arch Linux
|
||||
$ sudo pacman -S shards crystal imagemagick librsvg postgresql
|
||||
$ sudo pacman -S base-devel shards crystal librsvg postgresql
|
||||
|
||||
# Ubuntu or Debian
|
||||
# First you have to add the repository to your APT configuration. For easy setup just run in your command line:
|
||||
@@ -87,7 +88,7 @@ $ curl -sSL https://dist.crystal-lang.org/apt/setup.sh | sudo bash
|
||||
$ curl -sL "https://keybase.io/crystal/pgp_keys.asc" | sudo apt-key add -
|
||||
$ echo "deb https://dist.crystal-lang.org/apt crystal main" | sudo tee /etc/apt/sources.list.d/crystal.list
|
||||
$ sudo apt-get update
|
||||
$ sudo apt install crystal libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev librsvg2-dev postgresql imagemagick libsqlite3-dev
|
||||
$ sudo apt install crystal libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin libsqlite3-dev
|
||||
```
|
||||
|
||||
#### Add invidious user and clone repository
|
||||
@@ -114,6 +115,8 @@ $ psql invidious kemal < /home/invidious/invidious/config/sql/users.sql
|
||||
$ psql invidious kemal < /home/invidious/invidious/config/sql/session_ids.sql
|
||||
$ psql invidious kemal < /home/invidious/invidious/config/sql/nonces.sql
|
||||
$ psql invidious kemal < /home/invidious/invidious/config/sql/annotations.sql
|
||||
$ psql invidious kemal < /home/invidious/invidious/config/sql/playlists.sql
|
||||
$ psql invidious kemal < /home/invidious/invidious/config/sql/playlist_videos.sql
|
||||
$ exit
|
||||
```
|
||||
|
||||
@@ -137,12 +140,26 @@ $ sudo systemctl enable invidious.service
|
||||
$ sudo systemctl start invidious.service
|
||||
```
|
||||
|
||||
#### Logrotate
|
||||
|
||||
```bash
|
||||
$ sudo echo "/home/invidious/invidious/invidious.log {
|
||||
rotate 4
|
||||
weekly
|
||||
notifempty
|
||||
missingok
|
||||
compress
|
||||
minsize 1048576
|
||||
}" | tee /etc/logrotate.d/invidious.logrotate
|
||||
$ sudo chmod 0644 /etc/logrotate.d/invidious.logrotate
|
||||
```
|
||||
|
||||
### OSX:
|
||||
|
||||
```bash
|
||||
# Install dependencies
|
||||
$ brew update
|
||||
$ brew install shards crystal-lang postgres imagemagick librsvg
|
||||
$ brew install shards crystal postgres imagemagick librsvg
|
||||
|
||||
# Clone repository and setup postgres database
|
||||
$ git clone https://github.com/omarroth/invidious
|
||||
@@ -157,6 +174,9 @@ $ psql invidious kemal < config/sql/users.sql
|
||||
$ psql invidious kemal < config/sql/session_ids.sql
|
||||
$ psql invidious kemal < config/sql/nonces.sql
|
||||
$ psql invidious kemal < config/sql/annotations.sql
|
||||
$ psql invidious kemal < config/sql/privacy.sql
|
||||
$ psql invidious kemal < config/sql/playlists.sql
|
||||
$ psql invidious kemal < config/sql/playlist_videos.sql
|
||||
|
||||
# Setup Invidious
|
||||
$ shards update && shards install
|
||||
@@ -208,6 +228,7 @@ $ ./sentry
|
||||
- [CloudTube](https://cadence.moe/cloudtube/subscriptions): A JS-rich alternate YouTube player
|
||||
- [PeerTubeify](https://gitlab.com/Ealhad/peertubeify): On YouTube, displays a link to the same video on PeerTube, if it exists.
|
||||
- [MusicPiped](https://github.com/deep-gaurav/MusicPiped): A materialistic music player that streams music from YouTube.
|
||||
- [LapisTube](https://github.com/blubbll/lapis-tube): A fancy and advanced (experimental) YouTube frontend. Combined streams & custom YT features.
|
||||
|
||||
## Contributing
|
||||
|
||||
|
||||
@@ -21,10 +21,9 @@ body {
|
||||
color: #f0f0f0;
|
||||
}
|
||||
|
||||
.pure-form > fieldset > input,
|
||||
.pure-control-group > input,
|
||||
.pure-form > fieldset > select,
|
||||
.pure-control-group > select {
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
color: rgba(35, 35, 35, 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
html,
|
||||
body {
|
||||
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen,
|
||||
Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica,
|
||||
Arial, sans-serif;
|
||||
}
|
||||
|
||||
.deleted {
|
||||
background-color: rgb(255, 0, 0, 0.5);
|
||||
}
|
||||
@@ -103,6 +110,7 @@ img.thumbnail {
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.length {
|
||||
@@ -113,7 +121,6 @@ img.thumbnail {
|
||||
border-radius: 2px;
|
||||
padding: 2px;
|
||||
font-size: 16px;
|
||||
font-family: sans-serif;
|
||||
right: 0.25em;
|
||||
bottom: -0.75em;
|
||||
}
|
||||
@@ -126,7 +133,6 @@ img.thumbnail {
|
||||
border-radius: 2px;
|
||||
padding: 4px 8px 4px 8px;
|
||||
font-size: 16px;
|
||||
font-family: sans-serif;
|
||||
left: 0.2em;
|
||||
top: -0.7em;
|
||||
}
|
||||
@@ -156,9 +162,12 @@ img.thumbnail {
|
||||
|
||||
.navbar .index-link {
|
||||
font-weight: bold;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.navbar > .searchbar .pure-form input[type="search"] {
|
||||
margin-bottom: 1px;
|
||||
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
@@ -169,7 +178,6 @@ img.thumbnail {
|
||||
|
||||
box-shadow: none;
|
||||
|
||||
transition: 0.1s border-bottom;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
@@ -188,6 +196,7 @@ input[type="search"]::-webkit-search-cancel-button {
|
||||
|
||||
/* attract focus to the searchbar by adding a subtle transition */
|
||||
.navbar > .searchbar .pure-form input[type="search"]:focus {
|
||||
margin-bottom: 0px;
|
||||
border-bottom: 2px solid #aaa;
|
||||
}
|
||||
|
||||
@@ -274,13 +283,17 @@ input[type="search"]::-webkit-search-cancel-button {
|
||||
}
|
||||
|
||||
/* Control Bar */
|
||||
@media screen and (max-width: 480px) {
|
||||
@media screen and (max-width: 640px) {
|
||||
.video-js .vjs-control-bar,
|
||||
.vjs-menu-button-popup .vjs-menu .vjs-menu-content {
|
||||
overflow: -webkit-paged-x;
|
||||
overflow-x: scroll;
|
||||
}
|
||||
}
|
||||
|
||||
ul.vjs-menu-content::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.vjs-user-inactive {
|
||||
cursor: none;
|
||||
}
|
||||
@@ -329,6 +342,11 @@ input[type="search"]::-webkit-search-cancel-button {
|
||||
.vjs-control-bar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.vjs-control-bar::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.video-js .vjs-icon-cog {
|
||||
@@ -385,6 +403,7 @@ span > select {
|
||||
/* ProgressBar marker */
|
||||
.vjs-marker {
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
/* Big "Play" Button */
|
||||
@@ -431,3 +450,22 @@ video.video-js {
|
||||
.pure-control-group label {
|
||||
word-wrap: normal;
|
||||
}
|
||||
|
||||
.video-js.player-style-invidious {
|
||||
/* This is already the default */
|
||||
}
|
||||
|
||||
.video-js.player-style-youtube .vjs-control-bar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
.video-js.player-style-youtube .vjs-big-play-button {
|
||||
/*
|
||||
Styles copied from video-js.min.css, definition of
|
||||
.vjs-big-play-centered .vjs-big-play-button
|
||||
*/
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-top: -0.81666em;
|
||||
margin-left: -1.5em;
|
||||
}
|
||||
|
||||
10
assets/css/embed.css
Normal file
10
assets/css/embed.css
Normal file
@@ -0,0 +1,10 @@
|
||||
#player {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
min-width: 100%;
|
||||
min-height: 100%;
|
||||
width: auto;
|
||||
height: auto;
|
||||
z-index: -100;
|
||||
}
|
||||
4
assets/css/grids-responsive-min.css
vendored
4
assets/css/grids-responsive-min.css
vendored
File diff suppressed because one or more lines are too long
4
assets/css/ionicons.min.css
vendored
4
assets/css/ionicons.min.css
vendored
File diff suppressed because one or more lines are too long
6
assets/css/pure-min.css
vendored
6
assets/css/pure-min.css
vendored
File diff suppressed because one or more lines are too long
2
assets/css/video-js.min.css
vendored
2
assets/css/video-js.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* videojs-http-source-selector
|
||||
* @version 1.1.5
|
||||
* @version 1.1.6
|
||||
* @copyright 2019 Justin Fujita <Justin@pivotshare.com>
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* videojs-share
|
||||
* @version 3.0.0
|
||||
* @version 3.2.1
|
||||
* @copyright 2019 Mikhail Khazov <mkhazov.work@gmail.com>
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
Binary file not shown.
@@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<!--
|
||||
2018-6-14: Created with FontForge (http://fontforge.org)
|
||||
2019-5-24: Created with FontForge (http://fontforge.org)
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
||||
<metadata>
|
||||
Created by FontForge 20160407 at Thu Jun 14 08:50:34 2018
|
||||
Created by FontForge 20160407 at Fri May 24 15:45:40 2019
|
||||
By Adam Bradley
|
||||
Copyright (c) 2018, Adam Bradley
|
||||
Copyright (c) 2019, Adam Bradley
|
||||
</metadata>
|
||||
<defs>
|
||||
<font id="Ionicons" horiz-adv-x="416" >
|
||||
|
||||
|
Before Width: | Height: | Size: 305 KiB After Width: | Height: | Size: 305 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,5 @@
|
||||
var community_data = JSON.parse(document.getElementById('community_data').innerHTML);
|
||||
|
||||
String.prototype.supplant = function (o) {
|
||||
return this.replace(/{([^{}]*)}/g, function (a, b) {
|
||||
var r = o[b];
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
var video_data = JSON.parse(document.getElementById('video_data').innerHTML);
|
||||
|
||||
function get_playlist(plid, retries) {
|
||||
if (retries == undefined) retries = 5;
|
||||
|
||||
@@ -12,7 +14,8 @@ function get_playlist(plid, retries) {
|
||||
'&format=html&hl=' + video_data.preferences.locale;
|
||||
} else {
|
||||
var plid_url = '/api/v1/playlists/' + plid +
|
||||
'?continuation=' + video_data.id +
|
||||
'?index=' + video_data.index +
|
||||
'&continuation' + video_data.id +
|
||||
'&format=html&hl=' + video_data.preferences.locale;
|
||||
}
|
||||
|
||||
@@ -45,6 +48,9 @@ function get_playlist(plid, retries) {
|
||||
}
|
||||
|
||||
url.searchParams.set('list', plid);
|
||||
if (!plid.startsWith('RD')) {
|
||||
url.searchParams.set('index', xhr.response.index);
|
||||
}
|
||||
location.assign(url.pathname + url.search);
|
||||
});
|
||||
}
|
||||
@@ -65,32 +71,34 @@ function get_playlist(plid, retries) {
|
||||
xhr.send();
|
||||
}
|
||||
|
||||
if (video_data.plid) {
|
||||
get_playlist(video_data.plid);
|
||||
} else if (video_data.video_series) {
|
||||
player.on('ended', function () {
|
||||
var url = new URL('https://example.com/embed/' + video_data.video_series.shift());
|
||||
window.addEventListener('load', function (e) {
|
||||
if (video_data.plid) {
|
||||
get_playlist(video_data.plid);
|
||||
} else if (video_data.video_series) {
|
||||
player.on('ended', function () {
|
||||
var url = new URL('https://example.com/embed/' + video_data.video_series.shift());
|
||||
|
||||
if (video_data.params.autoplay || video_data.params.continue_autoplay) {
|
||||
url.searchParams.set('autoplay', '1');
|
||||
}
|
||||
if (video_data.params.autoplay || video_data.params.continue_autoplay) {
|
||||
url.searchParams.set('autoplay', '1');
|
||||
}
|
||||
|
||||
if (video_data.params.listen !== video_data.preferences.listen) {
|
||||
url.searchParams.set('listen', video_data.params.listen);
|
||||
}
|
||||
if (video_data.params.listen !== video_data.preferences.listen) {
|
||||
url.searchParams.set('listen', video_data.params.listen);
|
||||
}
|
||||
|
||||
if (video_data.params.speed !== video_data.preferences.speed) {
|
||||
url.searchParams.set('speed', video_data.params.speed);
|
||||
}
|
||||
if (video_data.params.speed !== video_data.preferences.speed) {
|
||||
url.searchParams.set('speed', video_data.params.speed);
|
||||
}
|
||||
|
||||
if (video_data.params.local !== video_data.preferences.local) {
|
||||
url.searchParams.set('local', video_data.params.local);
|
||||
}
|
||||
if (video_data.params.local !== video_data.preferences.local) {
|
||||
url.searchParams.set('local', video_data.params.local);
|
||||
}
|
||||
|
||||
if (video_data.video_series.length !== 0) {
|
||||
url.searchParams.set('playlist', video_data.video_series.join(','))
|
||||
}
|
||||
if (video_data.video_series.length !== 0) {
|
||||
url.searchParams.set('playlist', video_data.video_series.join(','))
|
||||
}
|
||||
|
||||
location.assign(url.pathname + url.search);
|
||||
});
|
||||
}
|
||||
location.assign(url.pathname + url.search);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
3
assets/js/global.js
Normal file
3
assets/js/global.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// Disable Web Workers. Fixes Video.js CSP violation (created by `new Worker(objURL)`):
|
||||
// Refused to create a worker from 'blob:http://host/id' because it violates the following Content Security Policy directive: "worker-src 'self'".
|
||||
window.Worker = undefined;
|
||||
144
assets/js/handlers.js
Normal file
144
assets/js/handlers.js
Normal file
@@ -0,0 +1,144 @@
|
||||
'use strict';
|
||||
|
||||
(function () {
|
||||
var n2a = function (n) { return Array.prototype.slice.call(n); };
|
||||
|
||||
var video_player = document.getElementById('player_html5_api');
|
||||
if (video_player) {
|
||||
video_player.onmouseenter = function () { video_player['data-title'] = video_player['title']; video_player['title'] = ''; };
|
||||
video_player.onmouseleave = function () { video_player['title'] = video_player['data-title']; video_player['data-title'] = ''; };
|
||||
video_player.oncontextmenu = function () { video_player['title'] = video_player['data-title']; };
|
||||
}
|
||||
|
||||
// For dynamically inserted elements
|
||||
document.addEventListener('click', function (e) {
|
||||
if (!e || !e.target) { return; }
|
||||
e = e.target;
|
||||
var handler_name = e.getAttribute('data-onclick');
|
||||
switch (handler_name) {
|
||||
case 'jump_to_time':
|
||||
var time = e.getAttribute('data-jump-time');
|
||||
player.currentTime(time);
|
||||
break;
|
||||
case 'get_youtube_replies':
|
||||
var load_more = e.getAttribute('data-load-more') !== null;
|
||||
get_youtube_replies(e, load_more);
|
||||
break;
|
||||
case 'toggle_parent':
|
||||
toggle_parent(e);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
n2a(document.querySelectorAll('[data-mouse="switch_classes"]')).forEach(function (e) {
|
||||
var classes = e.getAttribute('data-switch-classes').split(',');
|
||||
var ec = classes[0];
|
||||
var lc = classes[1];
|
||||
var onoff = function (on, off) {
|
||||
var cs = e.getAttribute('class');
|
||||
cs = cs.split(off).join(on);
|
||||
e.setAttribute('class', cs);
|
||||
};
|
||||
e.onmouseenter = function () { onoff(ec, lc); };
|
||||
e.onmouseleave = function () { onoff(lc, ec); };
|
||||
});
|
||||
|
||||
n2a(document.querySelectorAll('[data-onsubmit="return_false"]')).forEach(function (e) {
|
||||
e.onsubmit = function () { return false; };
|
||||
});
|
||||
|
||||
n2a(document.querySelectorAll('[data-onclick="mark_watched"]')).forEach(function (e) {
|
||||
e.onclick = function () { mark_watched(e); };
|
||||
});
|
||||
n2a(document.querySelectorAll('[data-onclick="mark_unwatched"]')).forEach(function (e) {
|
||||
e.onclick = function () { mark_unwatched(e); };
|
||||
});
|
||||
n2a(document.querySelectorAll('[data-onclick="add_playlist_video"]')).forEach(function (e) {
|
||||
e.onclick = function () { add_playlist_video(e); };
|
||||
});
|
||||
n2a(document.querySelectorAll('[data-onclick="add_playlist_item"]')).forEach(function (e) {
|
||||
e.onclick = function () { add_playlist_item(e); };
|
||||
});
|
||||
n2a(document.querySelectorAll('[data-onclick="remove_playlist_item"]')).forEach(function (e) {
|
||||
e.onclick = function () { remove_playlist_item(e); };
|
||||
});
|
||||
n2a(document.querySelectorAll('[data-onclick="revoke_token"]')).forEach(function (e) {
|
||||
e.onclick = function () { revoke_token(e); };
|
||||
});
|
||||
n2a(document.querySelectorAll('[data-onclick="remove_subscription"]')).forEach(function (e) {
|
||||
e.onclick = function () { remove_subscription(e); };
|
||||
});
|
||||
n2a(document.querySelectorAll('[data-onclick="notification_requestPermission"]')).forEach(function (e) {
|
||||
e.onclick = function () { Notification.requestPermission(); };
|
||||
});
|
||||
|
||||
n2a(document.querySelectorAll('[data-onrange="update_volume_value"]')).forEach(function (e) {
|
||||
var cb = function () { update_volume_value(e); }
|
||||
e.oninput = cb;
|
||||
e.onchange = cb;
|
||||
});
|
||||
|
||||
function update_volume_value(element) {
|
||||
document.getElementById('volume-value').innerText = element.value;
|
||||
}
|
||||
|
||||
function revoke_token(target) {
|
||||
var row = target.parentNode.parentNode.parentNode.parentNode.parentNode;
|
||||
row.style.display = 'none';
|
||||
var count = document.getElementById('count');
|
||||
count.innerText = count.innerText - 1;
|
||||
|
||||
var referer = window.encodeURIComponent(document.location.href);
|
||||
var url = '/token_ajax?action_revoke_token=1&redirect=false' +
|
||||
'&referer=' + referer +
|
||||
'&session=' + target.getAttribute('data-session');
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.responseType = 'json';
|
||||
xhr.timeout = 10000;
|
||||
xhr.open('POST', url, true);
|
||||
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState == 4) {
|
||||
if (xhr.status != 200) {
|
||||
count.innerText = parseInt(count.innerText) + 1;
|
||||
row.style.display = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var csrf_token = target.parentNode.querySelector('input[name="csrf_token"]').value;
|
||||
xhr.send('csrf_token=' + csrf_token);
|
||||
}
|
||||
|
||||
function remove_subscription(target) {
|
||||
var row = target.parentNode.parentNode.parentNode.parentNode.parentNode;
|
||||
row.style.display = 'none';
|
||||
var count = document.getElementById('count');
|
||||
count.innerText = count.innerText - 1;
|
||||
|
||||
var referer = window.encodeURIComponent(document.location.href);
|
||||
var url = '/subscription_ajax?action_remove_subscriptions=1&redirect=false' +
|
||||
'&referer=' + referer +
|
||||
'&c=' + target.getAttribute('data-ucid');
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.responseType = 'json';
|
||||
xhr.timeout = 10000;
|
||||
xhr.open('POST', url, true);
|
||||
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState == 4) {
|
||||
if (xhr.status != 200) {
|
||||
count.innerText = parseInt(count.innerText) + 1;
|
||||
row.style.display = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var csrf_token = target.parentNode.querySelector('input[name="csrf_token"]').value;
|
||||
xhr.send('csrf_token=' + csrf_token);
|
||||
}
|
||||
})();
|
||||
@@ -1,3 +1,5 @@
|
||||
var notification_data = JSON.parse(document.getElementById('notification_data').innerHTML);
|
||||
|
||||
var notifications, delivered;
|
||||
|
||||
function get_subscriptions(callback, retries) {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
var player_data = JSON.parse(document.getElementById('player_data').innerHTML);
|
||||
var video_data = JSON.parse(document.getElementById('video_data').innerHTML);
|
||||
|
||||
var options = {
|
||||
preload: 'auto',
|
||||
liveui: true,
|
||||
@@ -35,72 +38,10 @@ var shareOptions = {
|
||||
title: player_data.title,
|
||||
description: player_data.description,
|
||||
image: player_data.thumbnail,
|
||||
embedCode: "<iframe id='ivplayer' type='text/html' width='640' height='360' src='" + embed_url + "' frameborder='0'></iframe>"
|
||||
embedCode: "<iframe id='ivplayer' width='640' height='360' src='" + embed_url + "' style='border:none;'></iframe>"
|
||||
}
|
||||
|
||||
var player = videojs('player', options, function () {
|
||||
this.hotkeys({
|
||||
volumeStep: 0.1,
|
||||
seekStep: 5,
|
||||
enableModifiersForNumbers: false,
|
||||
enableHoverScroll: true,
|
||||
customKeys: {
|
||||
// Toggle play with K Key
|
||||
play: {
|
||||
key: function (e) {
|
||||
return e.which === 75;
|
||||
},
|
||||
handler: function (player, options, e) {
|
||||
if (player.paused()) {
|
||||
player.play();
|
||||
} else {
|
||||
player.pause();
|
||||
}
|
||||
}
|
||||
},
|
||||
// Go backward 10 seconds
|
||||
backward: {
|
||||
key: function (e) {
|
||||
return e.which === 74;
|
||||
},
|
||||
handler: function (player, options, e) {
|
||||
player.currentTime(player.currentTime() - 10);
|
||||
}
|
||||
},
|
||||
// Go forward 10 seconds
|
||||
forward: {
|
||||
key: function (e) {
|
||||
return e.which === 76;
|
||||
},
|
||||
handler: function (player, options, e) {
|
||||
player.currentTime(player.currentTime() + 10);
|
||||
}
|
||||
},
|
||||
// Increase speed
|
||||
increase_speed: {
|
||||
key: function (e) {
|
||||
return (e.which === 190 && e.shiftKey);
|
||||
},
|
||||
handler: function (player, _, e) {
|
||||
size = options.playbackRates.length;
|
||||
index = options.playbackRates.indexOf(player.playbackRate());
|
||||
player.playbackRate(options.playbackRates[(index + 1) % size]);
|
||||
}
|
||||
},
|
||||
// Decrease speed
|
||||
decrease_speed: {
|
||||
key: function (e) {
|
||||
return (e.which === 188 && e.shiftKey);
|
||||
},
|
||||
handler: function (player, _, e) {
|
||||
size = options.playbackRates.length;
|
||||
index = options.playbackRates.indexOf(player.playbackRate());
|
||||
player.playbackRate(options.playbackRates[(size + index - 1) % size]);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
var player = videojs('player', options);
|
||||
|
||||
if (location.pathname.startsWith('/embed/')) {
|
||||
player.overlay({
|
||||
@@ -213,46 +154,321 @@ player.vttThumbnails({
|
||||
|
||||
// Enable annotations
|
||||
if (!video_data.params.listen && video_data.params.annotations) {
|
||||
var video_container = document.getElementById('player');
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.responseType = 'text';
|
||||
xhr.timeout = 60000;
|
||||
xhr.open('GET', '/api/v1/annotations/' + video_data.id, true);
|
||||
window.addEventListener('load', function (e) {
|
||||
var video_container = document.getElementById('player');
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.responseType = 'text';
|
||||
xhr.timeout = 60000;
|
||||
xhr.open('GET', '/api/v1/annotations/' + video_data.id, true);
|
||||
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState === 4) {
|
||||
if (xhr.status === 200) {
|
||||
videojs.registerPlugin('youtubeAnnotationsPlugin', youtubeAnnotationsPlugin);
|
||||
if (!player.paused()) {
|
||||
player.youtubeAnnotationsPlugin({ annotationXml: xhr.response, videoContainer: video_container });
|
||||
} else {
|
||||
player.one('play', function (event) {
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState === 4) {
|
||||
if (xhr.status === 200) {
|
||||
videojs.registerPlugin('youtubeAnnotationsPlugin', youtubeAnnotationsPlugin);
|
||||
if (!player.paused()) {
|
||||
player.youtubeAnnotationsPlugin({ annotationXml: xhr.response, videoContainer: video_container });
|
||||
});
|
||||
} else {
|
||||
player.one('play', function (event) {
|
||||
player.youtubeAnnotationsPlugin({ annotationXml: xhr.response, videoContainer: video_container });
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener('__ar_annotation_click', e => {
|
||||
const { url, target, seconds } = e.detail;
|
||||
var path = new URL(url);
|
||||
|
||||
if (path.href.startsWith('https://www.youtube.com/watch?') && seconds) {
|
||||
path.search += '&t=' + seconds;
|
||||
}
|
||||
|
||||
path = path.pathname + path.search;
|
||||
|
||||
if (target === 'current') {
|
||||
window.location.href = path;
|
||||
} else if (target === 'new') {
|
||||
window.open(path, '_blank');
|
||||
}
|
||||
});
|
||||
|
||||
xhr.send();
|
||||
});
|
||||
}
|
||||
|
||||
function increase_volume(delta) {
|
||||
const curVolume = player.volume();
|
||||
let newVolume = curVolume + delta;
|
||||
if (newVolume > 1) {
|
||||
newVolume = 1;
|
||||
} else if (newVolume < 0) {
|
||||
newVolume = 0;
|
||||
}
|
||||
player.volume(newVolume);
|
||||
}
|
||||
|
||||
function toggle_muted() {
|
||||
const isMuted = player.muted();
|
||||
player.muted(!isMuted);
|
||||
}
|
||||
|
||||
function skip_seconds(delta) {
|
||||
const duration = player.duration();
|
||||
const curTime = player.currentTime();
|
||||
let newTime = curTime + delta;
|
||||
if (newTime > duration) {
|
||||
newTime = duration;
|
||||
} else if (newTime < 0) {
|
||||
newTime = 0;
|
||||
}
|
||||
player.currentTime(newTime);
|
||||
}
|
||||
|
||||
function set_time_percent(percent) {
|
||||
const duration = player.duration();
|
||||
const newTime = duration * (percent / 100);
|
||||
player.currentTime(newTime);
|
||||
}
|
||||
|
||||
function toggle_play() {
|
||||
if (player.paused()) {
|
||||
player.play();
|
||||
} else {
|
||||
player.pause();
|
||||
}
|
||||
}
|
||||
|
||||
const toggle_captions = (function () {
|
||||
let toggledTrack = null;
|
||||
const onChange = function (e) {
|
||||
toggledTrack = null;
|
||||
};
|
||||
const bindChange = function (onOrOff) {
|
||||
player.textTracks()[onOrOff]('change', onChange);
|
||||
};
|
||||
// Wrapper function to ignore our own emitted events and only listen
|
||||
// to events emitted by Video.js on click on the captions menu items.
|
||||
const setMode = function (track, mode) {
|
||||
bindChange('off');
|
||||
track.mode = mode;
|
||||
window.setTimeout(function () {
|
||||
bindChange('on');
|
||||
}, 0);
|
||||
};
|
||||
bindChange('on');
|
||||
return function () {
|
||||
if (toggledTrack !== null) {
|
||||
if (toggledTrack.mode !== 'showing') {
|
||||
setMode(toggledTrack, 'showing');
|
||||
} else {
|
||||
setMode(toggledTrack, 'disabled');
|
||||
}
|
||||
toggledTrack = null;
|
||||
return;
|
||||
}
|
||||
|
||||
// Used as a fallback if no captions are currently active.
|
||||
// TODO: Make this more intelligent by e.g. relying on browser language.
|
||||
let fallbackCaptionsTrack = null;
|
||||
|
||||
const tracks = player.textTracks();
|
||||
for (let i = 0; i < tracks.length; i++) {
|
||||
const track = tracks[i];
|
||||
if (track.kind !== 'captions') {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (fallbackCaptionsTrack === null) {
|
||||
fallbackCaptionsTrack = track;
|
||||
}
|
||||
if (track.mode === 'showing') {
|
||||
setMode(track, 'disabled');
|
||||
toggledTrack = track;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Fallback if no captions are currently active.
|
||||
if (fallbackCaptionsTrack !== null) {
|
||||
setMode(fallbackCaptionsTrack, 'showing');
|
||||
toggledTrack = fallbackCaptionsTrack;
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
||||
function toggle_fullscreen() {
|
||||
if (player.isFullscreen()) {
|
||||
player.exitFullscreen();
|
||||
} else {
|
||||
player.requestFullscreen();
|
||||
}
|
||||
}
|
||||
|
||||
function increase_playback_rate(steps) {
|
||||
const maxIndex = options.playbackRates.length - 1;
|
||||
const curIndex = options.playbackRates.indexOf(player.playbackRate());
|
||||
let newIndex = curIndex + steps;
|
||||
if (newIndex > maxIndex) {
|
||||
newIndex = maxIndex;
|
||||
} else if (newIndex < 0) {
|
||||
newIndex = 0;
|
||||
}
|
||||
player.playbackRate(options.playbackRates[newIndex]);
|
||||
}
|
||||
|
||||
window.addEventListener('keydown', e => {
|
||||
if (e.target.tagName.toLowerCase() === 'input') {
|
||||
// Ignore input when focus is on certain elements, e.g. form fields.
|
||||
return;
|
||||
}
|
||||
// See https://github.com/ctd1500/videojs-hotkeys/blob/bb4a158b2e214ccab87c2e7b95f42bc45c6bfd87/videojs.hotkeys.js#L310-L313
|
||||
const isPlayerFocused = false
|
||||
|| e.target === document.querySelector('.video-js')
|
||||
|| e.target === document.querySelector('.vjs-tech')
|
||||
|| e.target === document.querySelector('.iframeblocker')
|
||||
|| e.target === document.querySelector('.vjs-control-bar')
|
||||
;
|
||||
let action = null;
|
||||
|
||||
const code = e.keyCode;
|
||||
const decoratedKey =
|
||||
e.key
|
||||
+ (e.altKey ? '+alt' : '')
|
||||
+ (e.ctrlKey ? '+ctrl' : '')
|
||||
+ (e.metaKey ? '+meta' : '')
|
||||
;
|
||||
switch (decoratedKey) {
|
||||
case ' ':
|
||||
case 'k':
|
||||
action = toggle_play;
|
||||
break;
|
||||
|
||||
case 'ArrowUp':
|
||||
if (isPlayerFocused) {
|
||||
action = increase_volume.bind(this, 0.1);
|
||||
}
|
||||
break;
|
||||
case 'ArrowDown':
|
||||
if (isPlayerFocused) {
|
||||
action = increase_volume.bind(this, -0.1);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'm':
|
||||
action = toggle_muted;
|
||||
break;
|
||||
|
||||
case 'ArrowRight':
|
||||
action = skip_seconds.bind(this, 5);
|
||||
break;
|
||||
case 'ArrowLeft':
|
||||
action = skip_seconds.bind(this, -5);
|
||||
break;
|
||||
case 'l':
|
||||
action = skip_seconds.bind(this, 10);
|
||||
break;
|
||||
case 'j':
|
||||
action = skip_seconds.bind(this, -10);
|
||||
break;
|
||||
|
||||
case '0':
|
||||
case '1':
|
||||
case '2':
|
||||
case '3':
|
||||
case '4':
|
||||
case '5':
|
||||
case '6':
|
||||
case '7':
|
||||
case '8':
|
||||
case '9':
|
||||
const percent = (code - 48) * 10;
|
||||
action = set_time_percent.bind(this, percent);
|
||||
break;
|
||||
|
||||
case 'c':
|
||||
action = toggle_captions;
|
||||
break;
|
||||
case 'f':
|
||||
action = toggle_fullscreen;
|
||||
break;
|
||||
|
||||
case 'N':
|
||||
action = next_video;
|
||||
break;
|
||||
case 'P':
|
||||
// TODO: Add support to play back previous video.
|
||||
break;
|
||||
|
||||
case '.':
|
||||
// TODO: Add support for next-frame-stepping.
|
||||
break;
|
||||
case ',':
|
||||
// TODO: Add support for previous-frame-stepping.
|
||||
break;
|
||||
|
||||
case '>':
|
||||
action = increase_playback_rate.bind(this, 1);
|
||||
break;
|
||||
case '<':
|
||||
action = increase_playback_rate.bind(this, -1);
|
||||
break;
|
||||
|
||||
default:
|
||||
console.info('Unhandled key down event: %s:', decoratedKey, e);
|
||||
break;
|
||||
}
|
||||
|
||||
window.addEventListener('__ar_annotation_click', e => {
|
||||
const { url, target, seconds } = e.detail;
|
||||
var path = new URL(url);
|
||||
if (action) {
|
||||
e.preventDefault();
|
||||
action();
|
||||
}
|
||||
}, false);
|
||||
|
||||
if (path.href.startsWith('https://www.youtube.com/watch?') && seconds) {
|
||||
path.search += '&t=' + seconds;
|
||||
// Add support for controlling the player volume by scrolling over it. Adapted from
|
||||
// https://github.com/ctd1500/videojs-hotkeys/blob/bb4a158b2e214ccab87c2e7b95f42bc45c6bfd87/videojs.hotkeys.js#L292-L328
|
||||
(function () {
|
||||
const volumeStep = 0.05;
|
||||
const enableVolumeScroll = true;
|
||||
const enableHoverScroll = true;
|
||||
const doc = document;
|
||||
const pEl = document.getElementById('player');
|
||||
|
||||
var volumeHover = false;
|
||||
var volumeSelector = pEl.querySelector('.vjs-volume-menu-button') || pEl.querySelector('.vjs-volume-panel');
|
||||
if (volumeSelector != null) {
|
||||
volumeSelector.onmouseover = function () { volumeHover = true; };
|
||||
volumeSelector.onmouseout = function () { volumeHover = false; };
|
||||
}
|
||||
|
||||
var mouseScroll = function mouseScroll(event) {
|
||||
var activeEl = doc.activeElement;
|
||||
if (enableHoverScroll) {
|
||||
// If we leave this undefined then it can match non-existent elements below
|
||||
activeEl = 0;
|
||||
}
|
||||
|
||||
path = path.pathname + path.search;
|
||||
// When controls are disabled, hotkeys will be disabled as well
|
||||
if (player.controls()) {
|
||||
if (volumeHover) {
|
||||
if (enableVolumeScroll) {
|
||||
event = window.event || event;
|
||||
var delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));
|
||||
event.preventDefault();
|
||||
|
||||
if (target === 'current') {
|
||||
window.location.href = path;
|
||||
} else if (target === 'new') {
|
||||
window.open(path, '_blank');
|
||||
if (delta == 1) {
|
||||
increase_volume(volumeStep);
|
||||
} else if (delta == -1) {
|
||||
increase_volume(-volumeStep);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
xhr.send();
|
||||
}
|
||||
player.on('mousewheel', mouseScroll);
|
||||
player.on("DOMMouseScroll", mouseScroll);
|
||||
}());
|
||||
|
||||
// Since videojs-share can sometimes be blocked, we defer it until last
|
||||
player.share(shareOptions);
|
||||
|
||||
73
assets/js/playlist_widget.js
Normal file
73
assets/js/playlist_widget.js
Normal file
@@ -0,0 +1,73 @@
|
||||
var playlist_data = JSON.parse(document.getElementById('playlist_data').innerHTML);
|
||||
|
||||
function add_playlist_video(target) {
|
||||
var select = target.parentNode.children[0].children[1];
|
||||
var option = select.children[select.selectedIndex];
|
||||
|
||||
var url = '/playlist_ajax?action_add_video=1&redirect=false' +
|
||||
'&video_id=' + target.getAttribute('data-id') +
|
||||
'&playlist_id=' + option.getAttribute('data-plid');
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.responseType = 'json';
|
||||
xhr.timeout = 10000;
|
||||
xhr.open('POST', url, true);
|
||||
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState == 4) {
|
||||
if (xhr.status == 200) {
|
||||
option.innerText = '✓' + option.innerText;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
xhr.send('csrf_token=' + playlist_data.csrf_token);
|
||||
}
|
||||
|
||||
function add_playlist_item(target) {
|
||||
var tile = target.parentNode.parentNode.parentNode.parentNode.parentNode;
|
||||
tile.style.display = 'none';
|
||||
|
||||
var url = '/playlist_ajax?action_add_video=1&redirect=false' +
|
||||
'&video_id=' + target.getAttribute('data-id') +
|
||||
'&playlist_id=' + target.getAttribute('data-plid');
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.responseType = 'json';
|
||||
xhr.timeout = 10000;
|
||||
xhr.open('POST', url, true);
|
||||
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState == 4) {
|
||||
if (xhr.status != 200) {
|
||||
tile.style.display = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
xhr.send('csrf_token=' + playlist_data.csrf_token);
|
||||
}
|
||||
|
||||
function remove_playlist_item(target) {
|
||||
var tile = target.parentNode.parentNode.parentNode.parentNode.parentNode;
|
||||
tile.style.display = 'none';
|
||||
|
||||
var url = '/playlist_ajax?action_remove_video=1&redirect=false' +
|
||||
'&set_video_id=' + target.getAttribute('data-index') +
|
||||
'&playlist_id=' + target.getAttribute('data-plid');
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.responseType = 'json';
|
||||
xhr.timeout = 10000;
|
||||
xhr.open('POST', url, true);
|
||||
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState == 4) {
|
||||
if (xhr.status != 200) {
|
||||
tile.style.display = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
xhr.send('csrf_token=' + playlist_data.csrf_token);
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,5 @@
|
||||
var subscribe_data = JSON.parse(document.getElementById('subscribe_data').innerHTML);
|
||||
|
||||
var subscribe_button = document.getElementById('subscribe');
|
||||
subscribe_button.parentNode['action'] = 'javascript:void(0)';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
var toggle_theme = document.getElementById('toggle_theme')
|
||||
var toggle_theme = document.getElementById('toggle_theme');
|
||||
toggle_theme.href = 'javascript:void(0);';
|
||||
|
||||
toggle_theme.addEventListener('click', function () {
|
||||
var dark_mode = document.getElementById('dark_theme').media == 'none';
|
||||
var dark_mode = document.getElementById('dark_theme').media === 'none';
|
||||
|
||||
var url = '/toggle_theme?redirect=false';
|
||||
var xhr = new XMLHttpRequest();
|
||||
@@ -11,19 +11,45 @@ toggle_theme.addEventListener('click', function () {
|
||||
xhr.open('GET', url, true);
|
||||
|
||||
set_mode(dark_mode);
|
||||
localStorage.setItem('dark_mode', dark_mode);
|
||||
window.localStorage.setItem('dark_mode', dark_mode ? 'dark' : 'light');
|
||||
|
||||
xhr.send();
|
||||
});
|
||||
|
||||
window.addEventListener('storage', function (e) {
|
||||
if (e.key == 'dark_mode') {
|
||||
var dark_mode = e.newValue === 'true';
|
||||
set_mode(dark_mode);
|
||||
if (e.key === 'dark_mode') {
|
||||
update_mode(e.newValue);
|
||||
}
|
||||
});
|
||||
|
||||
function set_mode(bool) {
|
||||
window.addEventListener('load', function () {
|
||||
window.localStorage.setItem('dark_mode', document.getElementById('dark_mode_pref').textContent);
|
||||
// Update localStorage if dark mode preference changed on preferences page
|
||||
update_mode(window.localStorage.dark_mode);
|
||||
});
|
||||
|
||||
|
||||
var darkScheme = window.matchMedia('(prefers-color-scheme: dark)');
|
||||
var lightScheme = window.matchMedia('(prefers-color-scheme: light)');
|
||||
|
||||
darkScheme.addListener(scheme_switch);
|
||||
lightScheme.addListener(scheme_switch);
|
||||
|
||||
function scheme_switch (e) {
|
||||
// ignore this method if we have a preference set
|
||||
if (localStorage.getItem('dark_mode')) {
|
||||
return;
|
||||
}
|
||||
if (e.matches) {
|
||||
if (e.media.includes("dark")) {
|
||||
set_mode(true);
|
||||
} else if (e.media.includes("light")) {
|
||||
set_mode(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function set_mode (bool) {
|
||||
document.getElementById('dark_theme').media = !bool ? 'none' : '';
|
||||
document.getElementById('light_theme').media = bool ? 'none' : '';
|
||||
|
||||
@@ -33,3 +59,21 @@ function set_mode(bool) {
|
||||
toggle_theme.children[0].setAttribute('class', 'icon ion-ios-moon');
|
||||
}
|
||||
}
|
||||
|
||||
function update_mode (mode) {
|
||||
if (mode === 'true' /* for backwards compatibility */ || mode === 'dark') {
|
||||
// If preference for dark mode indicated
|
||||
set_mode(true);
|
||||
}
|
||||
else if (mode === 'false' /* for backwards compaibility */ || mode === 'light') {
|
||||
// If preference for light mode indicated
|
||||
set_mode(false);
|
||||
}
|
||||
else if (document.getElementById('dark_mode_pref').textContent === '' && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
// If no preference indicated here and no preference indicated on the preferences page (backend), but the browser tells us that the operating system has a dark theme
|
||||
set_mode(true);
|
||||
}
|
||||
// else do nothing, falling back to the mode defined by the `dark_mode` preference on the preferences page (backend)
|
||||
}
|
||||
|
||||
|
||||
|
||||
14
assets/js/video.min.js
vendored
14
assets/js/video.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* videojs-http-source-selector
|
||||
* @version 1.1.5
|
||||
* @version 1.1.6
|
||||
* @copyright 2019 Justin Fujita <Justin@pivotshare.com>
|
||||
* @license MIT
|
||||
*/
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],t):(e=e||self)["videojs-http-source-selector"]=t(e.videojs)}(this,function(i){"use strict";function o(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}var a=function(n){function e(e,t){var o;return o=n.call(this,e,t)||this,t.selectable=!0,o}o(e,n);var t=e.prototype;return t.handleClick=function(){var e=this.options_;console.log("Changing quality to:",e.label),this.selected_=!0,this.selected(!0);for(var t=this.player().qualityLevels(),o=0;o<t.length;o++)e.index==t.length?t[o].enabled=!0:e.index==o?t[o].enabled=!0:t[o].enabled=!1},t.update=function(){var e=this.player().qualityLevels().selectedIndex;this.selected(this.options_.index==e),this.selected_=this.options_.index===e},e}((i=i&&i.hasOwnProperty("default")?i.default:i).getComponent("MenuItem")),r=i.getComponent("MenuButton"),n=function(l){function e(e,t){var o;o=l.call(this,e,t)||this,r.apply(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o),arguments);var n=o.player().qualityLevels();if(t&&t.default)if("low"==t.default)for(var i=0;i<n.length;i++)n[i].enabled=0==i;else if(t.default="high")for(i=0;i<n.length;i++)n[i].enabled=i==n.length-1;return o}o(e,l);var t=e.prototype;return t.createEl=function(){return i.dom.createEl("div",{className:"vjs-http-source-selector vjs-menu-button vjs-menu-button-popup vjs-control vjs-button"})},t.buildCSSClass=function(){return r.prototype.buildCSSClass.call(this)+" vjs-icon-cog"},t.update=function(){return r.prototype.update.call(this)},t.createItems=function(){for(var e=[],t=this.player().qualityLevels(),o=[],n=0;n<t.length;n++){var i=t.length-(n+1),l=i===t.selectedIndex,r=""+i,s=i;t[i].height?(r=t[i].height+"p",s=parseInt(t[i].height,10)):t[i].bitrate&&(r=Math.floor(t[i].bitrate/1e3)+" kbps",s=parseInt(t[i].bitrate,10)),0<=o.indexOf(r)||(o.push(r),e.push(new a(this.player_,{label:r,index:i,selected:l,sortVal:s})))}return 1<t.length&&e.push(new a(this.player_,{label:"Auto",index:t.length,selected:!1,sortVal:99999})),e.sort(function(e,t){return e.options_.sortVal<t.options_.sortVal?1:e.options_.sortVal>t.options_.sortVal?-1:0}),e},e}(r),l={},e=i.registerPlugin||i.plugin,t=function(e){var t=this;this.ready(function(){!function(n,e){if(n.addClass("vjs-http-source-selector"),console.log("videojs-http-source-selector initialized!"),console.log("player.techName_:"+n.techName_),"Html5"!=n.techName_)return;n.on(["loadedmetadata"],function(e){if(n.qualityLevels(),i.log("loadmetadata event"),"undefined"==n.videojs_http_source_selector_initialized||1==n.videojs_http_source_selector_initialized)console.log("player.videojs_http_source_selector_initialized == true");else{console.log("player.videojs_http_source_selector_initialized == false"),n.videojs_http_source_selector_initialized=!0;var t=n.controlBar,o=t.getChild("fullscreenToggle").el();t.el().insertBefore(t.addChild("SourceMenuButton").el(),o)}})}(t,i.mergeOptions(l,e))}),i.registerComponent("SourceMenuButton",n),i.registerComponent("SourceMenuItem",a)};return e("httpSourceSelector",t),t.VERSION="1.1.5",t});
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],t):(e=e||self)["videojs-http-source-selector"]=t(e.videojs)}(this,function(r){"use strict";function o(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var e=(r=r&&r.hasOwnProperty("default")?r.default:r).getComponent("MenuItem"),t=r.getComponent("Component"),a=function(n){function e(e,t){return t.selectable=!0,t.multiSelectable=!1,n.call(this,e,t)||this}o(e,n);var t=e.prototype;return t.handleClick=function(){var e=this.options_;console.log("Changing quality to:",e.label),n.prototype.handleClick.call(this);for(var t=this.player().qualityLevels(),o=0;o<t.length;o++)e.index==t.length?t[o].enabled=!0:e.index==o?t[o].enabled=!0:t[o].enabled=!1},t.update=function(){var e=this.player().qualityLevels().selectedIndex;this.selected(this.options_.index==e)},e}(e);t.registerComponent("SourceMenuItem",a);var u=r.getComponent("MenuButton"),n=function(i){function e(e,t){var o;o=i.call(this,e,t)||this,u.apply(s(o),arguments);var n=o.player().qualityLevels();if(t&&t.default)if("low"==t.default)for(var l=0;l<n.length;l++)n[l].enabled=0==l;else if(t.default="high")for(l=0;l<n.length;l++)n[l].enabled=l==n.length-1;return o.player().qualityLevels().on(["change","addqualitylevel"],r.bind(s(o),o.update)),o}o(e,i);var t=e.prototype;return t.createEl=function(){return r.dom.createEl("div",{className:"vjs-http-source-selector vjs-menu-button vjs-menu-button-popup vjs-control vjs-button"})},t.buildCSSClass=function(){return u.prototype.buildCSSClass.call(this)+" vjs-icon-cog"},t.update=function(){return u.prototype.update.call(this)},t.createItems=function(){for(var e=[],t=this.player().qualityLevels(),o=[],n=0;n<t.length;n++){var l=t.length-(n+1),i=l===t.selectedIndex,r=""+l,s=l;t[l].height?(r=t[l].height+"p",s=parseInt(t[l].height,10)):t[l].bitrate&&(r=Math.floor(t[l].bitrate/1e3)+" kbps",s=parseInt(t[l].bitrate,10)),0<=o.indexOf(r)||(o.push(r),e.push(new a(this.player_,{label:r,index:l,selected:i,sortVal:s})))}return 1<t.length&&e.push(new a(this.player_,{label:"Auto",index:t.length,selected:!1,sortVal:99999})),e.sort(function(e,t){return e.options_.sortVal<t.options_.sortVal?1:e.options_.sortVal>t.options_.sortVal?-1:0}),e},e}(u),l={},i=r.registerPlugin||r.plugin,c=function(e){var t=this;this.ready(function(){!function(n,e){if(n.addClass("vjs-http-source-selector"),console.log("videojs-http-source-selector initialized!"),console.log("player.techName_:"+n.techName_),"Html5"!=n.techName_)return;n.on(["loadedmetadata"],function(e){if(n.qualityLevels(),r.log("loadmetadata event"),"undefined"==n.videojs_http_source_selector_initialized||1==n.videojs_http_source_selector_initialized)console.log("player.videojs_http_source_selector_initialized == true");else{console.log("player.videojs_http_source_selector_initialized == false"),n.videojs_http_source_selector_initialized=!0;var t=n.controlBar,o=t.getChild("fullscreenToggle").el();t.el().insertBefore(t.addChild("SourceMenuButton").el(),o)}})}(t,r.mergeOptions(l,e))}),r.registerComponent("SourceMenuButton",n),r.registerComponent("SourceMenuItem",a)};return i("httpSourceSelector",c),c.VERSION="1.1.6",c});
|
||||
4
assets/js/videojs-share.min.js
vendored
4
assets/js/videojs-share.min.js
vendored
File diff suppressed because one or more lines are too long
2
assets/js/videojs.hotkeys.min.js
vendored
2
assets/js/videojs.hotkeys.min.js
vendored
@@ -1,2 +0,0 @@
|
||||
/* videojs-hotkeys v0.2.25 - https://github.com/ctd1500/videojs-hotkeys */
|
||||
!function(e,n){"undefined"!=typeof window&&window.videojs?n(window.videojs):"function"==typeof define&&define.amd?define("videojs-hotkeys",["video.js"],function(e){return n(e.default||e)}):"undefined"!=typeof module&&module.exports&&(module.exports=n(require("video.js")))}(0,function(e){"use strict";"undefined"!=typeof window&&(window.videojs_hotkeys={version:"0.2.25"});(e.registerPlugin||e.plugin)("hotkeys",function(n){function t(e){return"function"==typeof s?s(e):s}function r(e){null!=e&&"function"==typeof e.then&&e.then(null,function(e){})}var o=this,u=o.el(),l=document,i={volumeStep:.1,seekStep:5,enableMute:!0,enableVolumeScroll:!0,enableHoverScroll:!1,enableFullscreen:!0,enableNumbers:!0,enableJogStyle:!1,alwaysCaptureHotkeys:!1,enableModifiersForNumbers:!0,enableInactiveFocus:!0,skipInitialFocus:!1,playPauseKey:function(e){return 32===e.which||179===e.which},rewindKey:function(e){return 37===e.which||177===e.which},forwardKey:function(e){return 39===e.which||176===e.which},volumeUpKey:function(e){return 38===e.which},volumeDownKey:function(e){return 40===e.which},muteKey:function(e){return 77===e.which},fullscreenKey:function(e){return 70===e.which},customKeys:{}},c=e.mergeOptions||e.util.mergeOptions,a=(n=c(i,n||{})).volumeStep,s=n.seekStep,m=n.enableMute,f=n.enableVolumeScroll,y=n.enableHoverScroll,v=n.enableFullscreen,d=n.enableNumbers,p=n.enableJogStyle,b=n.alwaysCaptureHotkeys,h=n.enableModifiersForNumbers,w=n.enableInactiveFocus,k=n.skipInitialFocus,S=e.VERSION;u.hasAttribute("tabIndex")||u.setAttribute("tabIndex","-1"),u.style.outline="none",!b&&o.autoplay()||k||o.one("play",function(){u.focus()}),w&&o.on("userinactive",function(){var e=function(){clearTimeout(n)},n=setTimeout(function(){o.off("useractive",e);var n=l.activeElement,t=u.querySelector(".vjs-control-bar");n&&n.parentElement==t&&u.focus()},10);o.one("useractive",e)}),o.on("play",function(){var e=u.querySelector(".iframeblocker");e&&""===e.style.display&&(e.style.display="block",e.style.bottom="39px")});var K=!1,q=u.querySelector(".vjs-volume-menu-button")||u.querySelector(".vjs-volume-panel");null!=q&&(q.onmouseover=function(){K=!0},q.onmouseout=function(){K=!1});var j=function(e){if(y)n=0;else var n=l.activeElement;if(o.controls()&&(b||n==u||n==u.querySelector(".vjs-tech")||n==u.querySelector(".iframeblocker")||n==u.querySelector(".vjs-control-bar")||K)&&f){e=window.event||e;var t=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail));e.preventDefault(),1==t?o.volume(o.volume()+a):-1==t&&o.volume(o.volume()-a)}},F=function(e,t){return n.playPauseKey(e,t)?1:n.rewindKey(e,t)?2:n.forwardKey(e,t)?3:n.volumeUpKey(e,t)?4:n.volumeDownKey(e,t)?5:n.muteKey(e,t)?6:n.fullscreenKey(e,t)?7:void 0};return o.on("keydown",function(e){var i,c,s=e.which,f=e.preventDefault,y=o.duration();if(o.controls()){var w=l.activeElement;if(b||w==u||w==u.querySelector(".vjs-tech")||w==u.querySelector(".vjs-control-bar")||w==u.querySelector(".iframeblocker"))switch(F(e,o)){case 1:f(),b&&e.stopPropagation(),o.paused()?r(o.play()):o.pause();break;case 2:i=!o.paused(),f(),i&&o.pause(),(c=o.currentTime()-t(e))<=0&&(c=0),o.currentTime(c),i&&r(o.play());break;case 3:i=!o.paused(),f(),i&&o.pause(),(c=o.currentTime()+t(e))>=y&&(c=i?y-.001:y),o.currentTime(c),i&&r(o.play());break;case 5:f(),p?(c=o.currentTime()-1,o.currentTime()<=1&&(c=0),o.currentTime(c)):o.volume(o.volume()-a);break;case 4:f(),p?((c=o.currentTime()+1)>=y&&(c=y),o.currentTime(c)):o.volume(o.volume()+a);break;case 6:m&&o.muted(!o.muted());break;case 7:v&&(o.isFullscreen()?o.exitFullscreen():o.requestFullscreen());break;default:if((s>47&&s<59||s>95&&s<106)&&(h||!(e.metaKey||e.ctrlKey||e.altKey))&&d){var k=48;s>95&&(k=96);var S=s-k;f(),o.currentTime(o.duration()*S*.1)}for(var K in n.customKeys){var q=n.customKeys[K];q&&q.key&&q.handler&&q.key(e)&&(f(),q.handler(o,n,e))}}}}),o.on("dblclick",function(e){if(null!=S&&S<="7.1.0"&&o.controls()){var n=e.relatedTarget||e.toElement||l.activeElement;n!=u&&n!=u.querySelector(".vjs-tech")&&n!=u.querySelector(".iframeblocker")||v&&(o.isFullscreen()?o.exitFullscreen():o.requestFullscreen())}}),o.on("mousewheel",j),o.on("DOMMouseScroll",j),this})});
|
||||
@@ -1,3 +1,5 @@
|
||||
var video_data = JSON.parse(document.getElementById('video_data').innerHTML);
|
||||
|
||||
String.prototype.supplant = function (o) {
|
||||
return this.replace(/{([^{}]*)}/g, function (a, b) {
|
||||
var r = o[b];
|
||||
@@ -73,29 +75,33 @@ if (continue_button) {
|
||||
continue_button.onclick = continue_autoplay;
|
||||
}
|
||||
|
||||
function next_video() {
|
||||
var url = new URL('https://example.com/watch?v=' + video_data.next_video);
|
||||
|
||||
if (video_data.params.autoplay || video_data.params.continue_autoplay) {
|
||||
url.searchParams.set('autoplay', '1');
|
||||
}
|
||||
|
||||
if (video_data.params.listen !== video_data.preferences.listen) {
|
||||
url.searchParams.set('listen', video_data.params.listen);
|
||||
}
|
||||
|
||||
if (video_data.params.speed !== video_data.preferences.speed) {
|
||||
url.searchParams.set('speed', video_data.params.speed);
|
||||
}
|
||||
|
||||
if (video_data.params.local !== video_data.preferences.local) {
|
||||
url.searchParams.set('local', video_data.params.local);
|
||||
}
|
||||
|
||||
url.searchParams.set('continue', '1');
|
||||
location.assign(url.pathname + url.search);
|
||||
}
|
||||
|
||||
function continue_autoplay(event) {
|
||||
if (event.target.checked) {
|
||||
player.on('ended', function () {
|
||||
var url = new URL('https://example.com/watch?v=' + video_data.next_video);
|
||||
|
||||
if (video_data.params.autoplay || video_data.params.continue_autoplay) {
|
||||
url.searchParams.set('autoplay', '1');
|
||||
}
|
||||
|
||||
if (video_data.params.listen !== video_data.preferences.listen) {
|
||||
url.searchParams.set('listen', video_data.params.listen);
|
||||
}
|
||||
|
||||
if (video_data.params.speed !== video_data.preferences.speed) {
|
||||
url.searchParams.set('speed', video_data.params.speed);
|
||||
}
|
||||
|
||||
if (video_data.params.local !== video_data.preferences.local) {
|
||||
url.searchParams.set('local', video_data.params.local);
|
||||
}
|
||||
|
||||
url.searchParams.set('continue', '1');
|
||||
location.assign(url.pathname + url.search);
|
||||
next_video();
|
||||
});
|
||||
} else {
|
||||
player.off('ended');
|
||||
@@ -129,7 +135,8 @@ function get_playlist(plid, retries) {
|
||||
'&format=html&hl=' + video_data.preferences.locale;
|
||||
} else {
|
||||
var plid_url = '/api/v1/playlists/' + plid +
|
||||
'?continuation=' + video_data.id +
|
||||
'?index=' + video_data.index +
|
||||
'&continuation=' + video_data.id +
|
||||
'&format=html&hl=' + video_data.preferences.locale;
|
||||
}
|
||||
|
||||
@@ -164,6 +171,9 @@ function get_playlist(plid, retries) {
|
||||
}
|
||||
|
||||
url.searchParams.set('list', plid);
|
||||
if (!plid.startsWith('RD')) {
|
||||
url.searchParams.set('index', xhr.response.index);
|
||||
}
|
||||
location.assign(url.pathname + url.search);
|
||||
});
|
||||
}
|
||||
@@ -431,19 +441,21 @@ if (video_data.play_next) {
|
||||
});
|
||||
}
|
||||
|
||||
if (video_data.plid) {
|
||||
get_playlist(video_data.plid);
|
||||
}
|
||||
window.addEventListener('load', function (e) {
|
||||
if (video_data.plid) {
|
||||
get_playlist(video_data.plid);
|
||||
}
|
||||
|
||||
if (video_data.params.comments[0] === 'youtube') {
|
||||
get_youtube_comments();
|
||||
} else if (video_data.params.comments[0] === 'reddit') {
|
||||
get_reddit_comments();
|
||||
} else if (video_data.params.comments[1] === 'youtube') {
|
||||
get_youtube_comments();
|
||||
} else if (video_data.params.comments[1] === 'reddit') {
|
||||
get_reddit_comments();
|
||||
} else {
|
||||
comments = document.getElementById('comments');
|
||||
comments.innerHTML = '';
|
||||
}
|
||||
if (video_data.params.comments[0] === 'youtube') {
|
||||
get_youtube_comments();
|
||||
} else if (video_data.params.comments[0] === 'reddit') {
|
||||
get_reddit_comments();
|
||||
} else if (video_data.params.comments[1] === 'youtube') {
|
||||
get_youtube_comments();
|
||||
} else if (video_data.params.comments[1] === 'reddit') {
|
||||
get_reddit_comments();
|
||||
} else {
|
||||
comments = document.getElementById('comments');
|
||||
comments.innerHTML = '';
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
var watched_data = JSON.parse(document.getElementById('watched_data').innerHTML);
|
||||
|
||||
function mark_watched(target) {
|
||||
var tile = target.parentNode.parentNode.parentNode.parentNode.parentNode;
|
||||
tile.style.display = 'none';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
psql invidious < config/sql/session_ids.sql
|
||||
psql invidious kemal < config/sql/session_ids.sql
|
||||
psql invidious kemal -c "INSERT INTO session_ids (SELECT unnest(id), email, CURRENT_TIMESTAMP FROM users) ON CONFLICT (id) DO NOTHING"
|
||||
psql invidious kemal -c "ALTER TABLE users DROP COLUMN id"
|
||||
|
||||
19
config/sql/playlist_videos.sql
Normal file
19
config/sql/playlist_videos.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
-- Table: public.playlist_videos
|
||||
|
||||
-- DROP TABLE public.playlist_videos;
|
||||
|
||||
CREATE TABLE playlist_videos
|
||||
(
|
||||
title text,
|
||||
id text,
|
||||
author text,
|
||||
ucid text,
|
||||
length_seconds integer,
|
||||
published timestamptz,
|
||||
plid text references playlists(id),
|
||||
index int8,
|
||||
live_now boolean,
|
||||
PRIMARY KEY (index,plid)
|
||||
);
|
||||
|
||||
GRANT ALL ON TABLE public.playlist_videos TO kemal;
|
||||
29
config/sql/playlists.sql
Normal file
29
config/sql/playlists.sql
Normal file
@@ -0,0 +1,29 @@
|
||||
-- Type: public.privacy
|
||||
|
||||
-- DROP TYPE public.privacy;
|
||||
|
||||
CREATE TYPE public.privacy AS ENUM
|
||||
(
|
||||
'Public',
|
||||
'Unlisted',
|
||||
'Private'
|
||||
);
|
||||
|
||||
-- Table: public.playlists
|
||||
|
||||
-- DROP TABLE public.playlists;
|
||||
|
||||
CREATE TABLE public.playlists
|
||||
(
|
||||
title text,
|
||||
id text primary key,
|
||||
author text,
|
||||
description text,
|
||||
video_count integer,
|
||||
created timestamptz,
|
||||
updated timestamptz,
|
||||
privacy privacy,
|
||||
index int8[]
|
||||
);
|
||||
|
||||
GRANT ALL ON public.playlists TO kemal;
|
||||
@@ -7,6 +7,8 @@ services:
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- postgresdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "-U", "postgres"]
|
||||
invidious:
|
||||
build:
|
||||
context: .
|
||||
@@ -14,6 +16,20 @@ services:
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:3000:3000"
|
||||
environment:
|
||||
# Adapted from ./config/config.yml
|
||||
INVIDIOUS_CONFIG: |
|
||||
channel_threads: 1
|
||||
feed_threads: 1
|
||||
db:
|
||||
user: kemal
|
||||
password: kemal
|
||||
host: postgres
|
||||
port: 5432
|
||||
dbname: invidious
|
||||
full_refresh: false
|
||||
https_only: false
|
||||
domain:
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
|
||||
@@ -1,15 +1,38 @@
|
||||
FROM archlinux/base
|
||||
|
||||
RUN pacman -Sy --noconfirm shards crystal imagemagick librsvg \
|
||||
which pkgconf gcc ttf-liberation glibc
|
||||
# base-devel contains many other basic packages, that are normally assumed to already exist on a clean arch system
|
||||
|
||||
ADD . /invidious
|
||||
|
||||
FROM alpine:edge AS builder
|
||||
RUN apk add --no-cache curl crystal shards libc-dev \
|
||||
yaml-dev libxml2-dev sqlite-dev zlib-dev openssl-dev \
|
||||
yaml-static sqlite-static zlib-static openssl-libs-static
|
||||
WORKDIR /invidious
|
||||
RUN curl -Lo /etc/apk/keys/omarroth.rsa.pub https://github.com/omarroth/boringssl-alpine/releases/download/1.1.0-r0/omarroth.rsa.pub && \
|
||||
curl -Lo boringssl-dev.apk https://github.com/omarroth/boringssl-alpine/releases/download/1.1.0-r0/boringssl-dev-1.1.0-r0.apk && \
|
||||
curl -Lo lsquic.apk https://github.com/omarroth/lsquic-alpine/releases/download/2.6.3-r0/lsquic-2.6.3-r0.apk && \
|
||||
apk verify --no-cache boringssl-dev.apk lsquic.apk && \
|
||||
tar -xf boringssl-dev.apk usr/lib/libcrypto.a usr/lib/libssl.a && \
|
||||
tar -xf lsquic.apk usr/lib/liblsquic.a && \
|
||||
rm /etc/apk/keys/omarroth.rsa.pub boringssl-dev.apk lsquic.apk
|
||||
COPY ./shard.yml ./shard.yml
|
||||
RUN shards update && shards install && \
|
||||
mv ./usr/lib/* ./lib/lsquic/src/lsquic/ext && \
|
||||
rm -r ./usr /root/.cache
|
||||
COPY ./src/ ./src/
|
||||
# TODO: .git folder is required for building – this is destructive.
|
||||
# See definition of CURRENT_BRANCH, CURRENT_COMMIT and CURRENT_VERSION.
|
||||
COPY ./.git/ ./.git/
|
||||
RUN crystal build ./src/invidious.cr \
|
||||
--static --warnings all --error-on-warnings \
|
||||
--link-flags "-lxml2 -llzma"
|
||||
|
||||
RUN sed -i 's/host: localhost/host: postgres/' config/config.yml && \
|
||||
shards update && shards install && \
|
||||
crystal build src/invidious.cr
|
||||
FROM alpine:latest
|
||||
RUN apk add --no-cache librsvg ttf-opensans
|
||||
WORKDIR /invidious
|
||||
RUN addgroup -g 1000 -S invidious && \
|
||||
adduser -u 1000 -S invidious -G invidious
|
||||
COPY ./assets/ ./assets/
|
||||
COPY --chown=invidious ./config/config.yml ./config/config.yml
|
||||
RUN sed -i 's/host: \(127.0.0.1\|localhost\)/host: postgres/' config/config.yml
|
||||
COPY ./config/sql/ ./config/sql/
|
||||
COPY ./locales/ ./locales/
|
||||
COPY --from=builder /invidious/invidious .
|
||||
|
||||
USER invidious
|
||||
CMD [ "/invidious/invidious" ]
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
FROM postgres:10
|
||||
|
||||
ENV POSTGRES_USER postgres
|
||||
# Do not require a PostgreSQL superuser password.
|
||||
# See https://github.com/docker-library/postgres/issues/681.
|
||||
ENV POSTGRES_HOST_AUTH_METHOD trust
|
||||
|
||||
ADD ./config/sql /config/sql
|
||||
ADD ./docker/entrypoint.postgres.sh /entrypoint.sh
|
||||
|
||||
@@ -19,6 +19,8 @@ if [ ! -f /var/lib/postgresql/data/setupFinished ]; then
|
||||
su postgres -c 'psql invidious kemal < config/sql/session_ids.sql'
|
||||
su postgres -c 'psql invidious kemal < config/sql/nonces.sql'
|
||||
su postgres -c 'psql invidious kemal < config/sql/annotations.sql'
|
||||
su postgres -c 'psql invidious kemal < config/sql/playlists.sql'
|
||||
su postgres -c 'psql invidious kemal < config/sql/playlist_videos.sql'
|
||||
touch /var/lib/postgresql/data/setupFinished
|
||||
echo "### invidious database setup finished"
|
||||
exit
|
||||
|
||||
1
kubernetes/.gitignore
vendored
Normal file
1
kubernetes/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/charts/*.tgz
|
||||
6
kubernetes/Chart.lock
Normal file
6
kubernetes/Chart.lock
Normal file
@@ -0,0 +1,6 @@
|
||||
dependencies:
|
||||
- name: postgresql
|
||||
repository: https://kubernetes-charts.storage.googleapis.com/
|
||||
version: 8.3.0
|
||||
digest: sha256:1feec3c396cbf27573dc201831ccd3376a4a6b58b2e7618ce30a89b8f5d707fd
|
||||
generated: "2020-02-07T13:39:38.624846+01:00"
|
||||
22
kubernetes/Chart.yaml
Normal file
22
kubernetes/Chart.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: v2
|
||||
name: invidious
|
||||
description: Invidious is an alternative front-end to YouTube
|
||||
version: 1.0.0
|
||||
appVersion: 0.20.1
|
||||
keywords:
|
||||
- youtube
|
||||
- proxy
|
||||
- video
|
||||
- privacy
|
||||
home: https://invidio.us/
|
||||
icon: https://raw.githubusercontent.com/omarroth/invidious/05988c1c49851b7d0094fca16aeaf6382a7f64ab/assets/favicon-32x32.png
|
||||
sources:
|
||||
- https://github.com/omarroth/invidious
|
||||
maintainers:
|
||||
- name: Leon Klingele
|
||||
email: mail@leonklingele.de
|
||||
dependencies:
|
||||
- name: postgresql
|
||||
version: ~8.3.0
|
||||
repository: "https://kubernetes-charts.storage.googleapis.com/"
|
||||
engine: gotpl
|
||||
41
kubernetes/README.md
Normal file
41
kubernetes/README.md
Normal file
@@ -0,0 +1,41 @@
|
||||
# Invidious Helm chart
|
||||
|
||||
Easily deploy Invidious to Kubernetes.
|
||||
|
||||
## Installing Helm chart
|
||||
|
||||
```sh
|
||||
# Build Helm dependencies
|
||||
$ helm dep build
|
||||
|
||||
# Add PostgreSQL init scripts
|
||||
$ kubectl create configmap invidious-postgresql-init \
|
||||
--from-file=../config/sql/channels.sql \
|
||||
--from-file=../config/sql/videos.sql \
|
||||
--from-file=../config/sql/channel_videos.sql \
|
||||
--from-file=../config/sql/users.sql \
|
||||
--from-file=../config/sql/session_ids.sql \
|
||||
--from-file=../config/sql/nonces.sql \
|
||||
--from-file=../config/sql/annotations.sql \
|
||||
--from-file=../config/sql/playlists.sql \
|
||||
--from-file=../config/sql/playlist_videos.sql
|
||||
|
||||
# Install Helm app to your Kubernetes cluster
|
||||
$ helm install invidious ./
|
||||
```
|
||||
|
||||
## Upgrading
|
||||
|
||||
```sh
|
||||
# Upgrading is easy, too!
|
||||
$ helm upgrade invidious ./
|
||||
```
|
||||
|
||||
## Uninstall
|
||||
|
||||
```sh
|
||||
# Get rid of everything (except database)
|
||||
$ helm delete invidious
|
||||
|
||||
# To also delete the database, remove all invidious-postgresql PVCs
|
||||
```
|
||||
16
kubernetes/templates/_helpers.tpl
Normal file
16
kubernetes/templates/_helpers.tpl
Normal file
@@ -0,0 +1,16 @@
|
||||
{{/* vim: set filetype=mustache: */}}
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "invidious.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
*/}}
|
||||
{{- define "invidious.fullname" -}}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
11
kubernetes/templates/configmap.yaml
Normal file
11
kubernetes/templates/configmap.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "invidious.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "invidious.name" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
release: {{ .Release.Name }}
|
||||
data:
|
||||
INVIDIOUS_CONFIG: |
|
||||
{{ toYaml .Values.config | indent 4 }}
|
||||
53
kubernetes/templates/deployment.yaml
Normal file
53
kubernetes/templates/deployment.yaml
Normal file
@@ -0,0 +1,53 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "invidious.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "invidious.name" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
release: {{ .Release.Name }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ template "invidious.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ template "invidious.name" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
release: {{ .Release.Name }}
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: {{ .Values.securityContext.runAsUser }}
|
||||
runAsGroup: {{ .Values.securityContext.runAsGroup }}
|
||||
fsGroup: {{ .Values.securityContext.fsGroup }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
env:
|
||||
- name: INVIDIOUS_CONFIG
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: INVIDIOUS_CONFIG
|
||||
name: {{ template "invidious.fullname" . }}
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }}
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
resources:
|
||||
{{ toYaml .Values.resources | indent 10 }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
port: 3000
|
||||
path: /
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
port: 3000
|
||||
path: /
|
||||
restartPolicy: Always
|
||||
18
kubernetes/templates/hpa.yaml
Normal file
18
kubernetes/templates/hpa.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
{{- if .Values.autoscaling.enabled }}
|
||||
apiVersion: autoscaling/v1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ template "invidious.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "invidious.name" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
release: {{ .Release.Name }}
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: {{ template "invidious.fullname" . }}
|
||||
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
||||
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
||||
targetCPUUtilizationPercentage: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
|
||||
{{- end }}
|
||||
16
kubernetes/templates/service.yaml
Normal file
16
kubernetes/templates/service.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "invidious.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "invidious.name" . }}
|
||||
chart: {{ .Chart.Name }}
|
||||
release: {{ .Release.Name }}
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
selector:
|
||||
app: {{ template "invidious.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
51
kubernetes/values.yaml
Normal file
51
kubernetes/values.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
name: invidious
|
||||
|
||||
image:
|
||||
repository: omarroth/invidious
|
||||
tag: latest
|
||||
pullPolicy: Always
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
autoscaling:
|
||||
enabled: false
|
||||
minReplicas: 1
|
||||
maxReplicas: 16
|
||||
targetCPUUtilizationPercentage: 50
|
||||
|
||||
resources: {}
|
||||
#requests:
|
||||
# cpu: 100m
|
||||
# memory: 64Mi
|
||||
#limits:
|
||||
# cpu: 800m
|
||||
# memory: 512Mi
|
||||
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
|
||||
# See https://github.com/helm/charts/tree/master/stable/postgresql
|
||||
postgresql:
|
||||
postgresqlUsername: kemal
|
||||
postgresqlPassword: kemal
|
||||
postgresqlDatabase: invidious
|
||||
initdbUsername: kemal
|
||||
initdbPassword: kemal
|
||||
initdbScriptsConfigMap: invidious-postgresql-init
|
||||
|
||||
# Adapted from ../config/config.yml
|
||||
config:
|
||||
channel_threads: 1
|
||||
feed_threads: 1
|
||||
db:
|
||||
user: kemal
|
||||
password: kemal
|
||||
host: invidious-postgresql
|
||||
port: 5432
|
||||
dbname: invidious
|
||||
full_refresh: false
|
||||
https_only: false
|
||||
domain:
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"`x` subscribers": "`x` المشتركين",
|
||||
"`x` videos": "`x` الفيديوهات",
|
||||
"`x` playlists": "`x` قوائم التشغيل",
|
||||
"LIVE": "مباشر",
|
||||
"Shared `x` ago": "تم رفع الفيديو منذ `x`",
|
||||
"Unsubscribe": "إلغاء الإشتراك",
|
||||
@@ -9,7 +10,7 @@
|
||||
"View playlist on YouTube": "عرض قائمة التشغيل على اليوتيوب",
|
||||
"newest": "الأجدد",
|
||||
"oldest": "الأقدم",
|
||||
"popular": "الاكثر شعبية",
|
||||
"popular": "الأكثر شعبية",
|
||||
"last": "اخر قوائم التشغيل المعدلة",
|
||||
"Next page": "الصفحة الثانية",
|
||||
"Previous page": "الصفحة السابقة",
|
||||
@@ -18,7 +19,7 @@
|
||||
"New passwords must match": "الأرقام السرية يجب ان تكون متطابقة",
|
||||
"Cannot change password for Google accounts": "لا يستطيع تغيير الرقم السرى لحساب جوجل",
|
||||
"Authorize token?": "رمز الإذن ؟",
|
||||
"Authorize token for `x`?": "رمز الإذن لـ `x` ?",
|
||||
"Authorize token for `x`?": "تصريح الرمز لـ `x` ؟",
|
||||
"Yes": "نعم",
|
||||
"No": "لا",
|
||||
"Import and Export Data": "استخراج و إضافة البيانات",
|
||||
@@ -53,10 +54,10 @@
|
||||
"Player preferences": "التفضيلات المشغل",
|
||||
"Always loop: ": "كرر الفيديو دائما: ",
|
||||
"Autoplay: ": "تشغيل تلقائى: ",
|
||||
"Play next by default: ": "شغل الفيديو التالى تلقائيا",
|
||||
"Autoplay next video: ": " شغل الفيديو التالى تلقائيا (فى قوائم التشغيل)",
|
||||
"Play next by default: ": "شغل الفيديو التالي تلقائيا: ",
|
||||
"Autoplay next video: ": "شغل الفيديو التالي تلقائيا (في قوائم التشغيل) ",
|
||||
"Listen by default: ": "تشغيل النسخة السمعية تلقائى: ",
|
||||
"Proxy videos: ": "عرض الفيديوهات عن طريق الوكيل(proxy) ؟",
|
||||
"Proxy videos: ": "عرض الفيديوهات عن طريق البروكسي؟ ",
|
||||
"Default speed: ": "السرعة الإفتراضية: ",
|
||||
"Preferred video quality: ": "الجودة المفضلة للفيديوهات: ",
|
||||
"Player volume: ": "صوت المشغل: ",
|
||||
@@ -65,13 +66,17 @@
|
||||
"reddit": "Reddit",
|
||||
"Default captions: ": "الترجمات الإفتراضية: ",
|
||||
"Fallback captions: ": "الترجمات المصاحبة: ",
|
||||
"Show related videos: ": "عرض مقاطع الفيديو ذات الصلة؟",
|
||||
"Show annotations by default: ": "عرض الملاحظات فى الفيديو تلقائيا ؟",
|
||||
"Show related videos: ": "اعرض الفيديوهات ذات الصلة: ",
|
||||
"Show annotations by default: ": "اعرض الملاحظات في الفيديو تلقائيا: ",
|
||||
"Visual preferences": "التفضيلات المرئية",
|
||||
"Player style: ": "شكل مشغل الفيديوهات: ",
|
||||
"Dark mode: ": "الوضع الليلى: ",
|
||||
"Theme: ": "المظهر: ",
|
||||
"dark": "غامق (اسود)",
|
||||
"light": "فاتح (ابيض)",
|
||||
"Thin mode: ": "الوضع الخفيف: ",
|
||||
"Subscription preferences": "تفضيلات الإشتراك",
|
||||
"Show annotations by default for subscribed channels: ": "عرض الملاحظات فى الفيديوهات تلقائيا فى القنوات المشترك بها فقط ؟",
|
||||
"Show annotations by default for subscribed channels: ": "عرض الملاحظات في الفيديوهات تلقائيا في القنوات المشترك بها فقط: ",
|
||||
"Redirect homepage to feed: ": "إعادة التوجية من الصفحة الرئيسية لصفحة المشتركين (لرؤية اخر فيديوهات المشتركين): ",
|
||||
"Number of videos shown in feed: ": "عدد الفيديوهات التى ستظهر فى صفحة المشتركين: ",
|
||||
"Sort videos by: ": "ترتيب الفيديو بـ: ",
|
||||
@@ -98,12 +103,12 @@
|
||||
"Delete account": "حذف الحساب",
|
||||
"Administrator preferences": "إعدادات المدير",
|
||||
"Default homepage: ": "الصفحة الرئيسية الافتراضية ",
|
||||
"Feed menu: ": "قائمة التغذية",
|
||||
"Feed menu: ": "قائمة التدفقات: ",
|
||||
"Top enabled: ": "تفعيل 'الأفضل' ؟ ",
|
||||
"CAPTCHA enabled: ": "تفعيل الكابتشا ؟",
|
||||
"Login enabled: ": "تفعيل تسجيل الدخول ؟",
|
||||
"Registration enabled: ": "تفعيل التسجيل ؟",
|
||||
"Report statistics: ": "إبلاغ الإحصائيات",
|
||||
"CAPTCHA enabled: ": "تفعيل الكابتشا: ",
|
||||
"Login enabled: ": "تفعيل الولوج: ",
|
||||
"Registration enabled: ": "تفعيل التسجيل: ",
|
||||
"Report statistics: ": "الإبلاغ عن الإحصائيات: ",
|
||||
"Save preferences": "حفظ التفضيلات",
|
||||
"Subscription manager": "مدير الإشتراكات",
|
||||
"Token manager": "إداره الرمز",
|
||||
@@ -114,15 +119,25 @@
|
||||
"unsubscribe": "إلغاء الإشتراك",
|
||||
"revoke": "مسح",
|
||||
"Subscriptions": "الإشتراكات",
|
||||
"`x` unseen notifications": "`x` إشعارات لم تشاهدها بعد ",
|
||||
"`x` unseen notifications": "`x` إشعارات لم تشاهدها بعد",
|
||||
"search": "بحث",
|
||||
"Log out": "تسجيل الخروج",
|
||||
"Released under the AGPLv3 by Omar Roth.": "تم الإنشاء تحت AGPLv3 بواسطة عمر روث.",
|
||||
"Source available here.": "الأكواد متوفرة هنا.",
|
||||
"View JavaScript license information.": "مشاهدة معلومات حول تراخيص الجافاسكريبت.",
|
||||
"View privacy policy.": "عرض سياسة الخصوصية",
|
||||
"View privacy policy.": "عرض سياسة الخصوصية.",
|
||||
"Trending": "الشائع",
|
||||
"Public": "عام",
|
||||
"Unlisted": "غير مصنف",
|
||||
"Private": "خاص",
|
||||
"View all playlists": "عرض جميع قوائم التشغيل",
|
||||
"Updated `x` ago": "تم تحديثه منذ `x`",
|
||||
"Delete playlist `x`?": "حذف قائمه التشغيل `x` ?",
|
||||
"Delete playlist": "حذف قائمه التغشيل",
|
||||
"Create playlist": "إنشاء قائمه تشغيل",
|
||||
"Title": "العنوان",
|
||||
"Playlist privacy": "إعدادات الخصوصيه",
|
||||
"Editing playlist `x`": "تعديل قائمه التشفيل `x`",
|
||||
"Watch on YouTube": "مشاهدة الفيديو على اليوتيوب",
|
||||
"Hide annotations": "إخفاء الملاحظات فى الفيديو",
|
||||
"Show annotations": "عرض الملاحظات فى الفيديو",
|
||||
@@ -134,7 +149,7 @@
|
||||
"Whitelisted regions: ": "الدول المسموح فيها هذا الفيديو: ",
|
||||
"Blacklisted regions: ": "الدول الحظور فيها هذا الفيديو: ",
|
||||
"Shared `x`": "شارك منذ `x`",
|
||||
"`x` views": "`x` مشاهدون",
|
||||
"`x` views": "`x` مشاهدات",
|
||||
"Premieres in `x`": "يعرض فى `x`",
|
||||
"Premieres `x`": "يعرض `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "اهلا! يبدو ان الجافاسكريبت معطلة. اضغط هنا لعرض التعليقات, ضع فى إعتبارك انها ستأخذ وقت اطول للعرض.",
|
||||
@@ -293,21 +308,21 @@
|
||||
"`x` hours": "`x` ساعات",
|
||||
"`x` minutes": "`x` دقائق",
|
||||
"`x` seconds": "`x` ثوانى",
|
||||
"Fallback comments: ": "التعليقات المصاحبة",
|
||||
"Popular": "لاكثر شعبية",
|
||||
"Fallback comments: ": "التعليقات البديلة: ",
|
||||
"Popular": "الأكثر شعبية",
|
||||
"Top": "الأفضل",
|
||||
"About": "حول",
|
||||
"Rating: ": "التقييم",
|
||||
"Language: ": "اللغة",
|
||||
"Rating: ": "التقييم: ",
|
||||
"Language: ": "اللغة: ",
|
||||
"View as playlist": "عرض كا قائمة التشغيل",
|
||||
"Default": "الكل",
|
||||
"Music": "الاغانى",
|
||||
"Gaming": "الألعاب",
|
||||
"News": "الأخبار",
|
||||
"Movies": "الأفلام",
|
||||
"Download": "تحميل كـ",
|
||||
"Download as: ": "تحميل",
|
||||
"%A %B %-d, %Y": "",
|
||||
"Download": "نزّل",
|
||||
"Download as: ": "نزّله كـ: ",
|
||||
"%A %B %-d, %Y": "%A %-d %B %Y",
|
||||
"(edited)": "(تم تعديلة)",
|
||||
"YouTube comment permalink": "رابط التعليق على اليوتيوب",
|
||||
"permalink": "الرابط",
|
||||
@@ -317,5 +332,5 @@
|
||||
"Videos": "الفيديوهات",
|
||||
"Playlists": "قوائم التشغيل",
|
||||
"Community": "المجتمع",
|
||||
"Current version: ": "الإصدار الحالى"
|
||||
"Current version: ": "الإصدار الحالي: "
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"`x` subscribers": "`x` Abonnenten",
|
||||
"`x` videos": "`x` Videos",
|
||||
"`x` playlists": "`x` Wiedergabelisten",
|
||||
"LIVE": "LIVE",
|
||||
"Shared `x` ago": "Vor `x` geteilt",
|
||||
"Unsubscribe": "Abbestellen",
|
||||
@@ -15,13 +16,13 @@
|
||||
"Previous page": "Vorherige Seite",
|
||||
"Clear watch history?": "Verlauf löschen?",
|
||||
"New password": "Neues Passwort",
|
||||
"New passwords must match": "Neue Passwörter müssen übereinstimmen",
|
||||
"Cannot change password for Google accounts": "Das Passwort für Google -Konten kann nicht geändert werden",
|
||||
"New passwords must match": "Neue Passwörter müssen gleich sein",
|
||||
"Cannot change password for Google accounts": "Ich kann das Passwort deines Google Kontos nicht ändern",
|
||||
"Authorize token?": "Token autorisieren?",
|
||||
"Authorize token for `x`?": "Token für `x` autorisieren?",
|
||||
"Yes": "Ja",
|
||||
"No": "Nein",
|
||||
"Import and Export Data": "Import und Export Daten",
|
||||
"Import and Export Data": "Daten importieren und exportieren",
|
||||
"Import": "Importieren",
|
||||
"Import Invidious data": "Invidious Daten importieren",
|
||||
"Import YouTube subscriptions": "YouTube Abonnements importieren",
|
||||
@@ -39,27 +40,27 @@
|
||||
"source": "Quelle",
|
||||
"Log in": "Einloggen",
|
||||
"Log in/register": "Einloggen/Registrieren",
|
||||
"Log in with Google": "In Google einloggen",
|
||||
"Log in with Google": "Mit Google einloggen",
|
||||
"User ID": "Benutzer ID",
|
||||
"Password": "Passwort",
|
||||
"Time (h:mm:ss):": "Zeit (h:mm:ss):",
|
||||
"Text CAPTCHA": "Text CAPTCHA",
|
||||
"Image CAPTCHA": "Image CAPTCHA",
|
||||
"Sign In": "Einloggen",
|
||||
"Image CAPTCHA": "Bild CAPTCHA",
|
||||
"Sign In": "Anmelden",
|
||||
"Register": "Registrieren",
|
||||
"E-mail": "Email",
|
||||
"Google verification code": "Google Bestätigungscode",
|
||||
"E-mail": "E-Mail",
|
||||
"Google verification code": "Google-Bestätigungscode",
|
||||
"Preferences": "Einstellungen",
|
||||
"Player preferences": "Playereinstellungen",
|
||||
"Player preferences": "Wiedergabeeinstellungen",
|
||||
"Always loop: ": "Immer wiederholen: ",
|
||||
"Autoplay: ": "Automatisch abspielen: ",
|
||||
"Play next by default: ": "Standardmäßig als nächstes abspielen: ",
|
||||
"Play next by default: ": "Immer automatisch nächstes Video spielen: ",
|
||||
"Autoplay next video: ": "nächstes Video automatisch abspielen: ",
|
||||
"Listen by default: ": "Nur Ton als Standard: ",
|
||||
"Proxy videos: ": "Proxy-Videos? ",
|
||||
"Proxy videos: ": "Proxy-Videos: ",
|
||||
"Default speed: ": "Standardgeschwindigkeit: ",
|
||||
"Preferred video quality: ": "Bevorzugte Videoqualität: ",
|
||||
"Player volume: ": "Playerlautstärke: ",
|
||||
"Player volume: ": "Wiedergabelautstärke: ",
|
||||
"Default comments: ": "Standardkommentare: ",
|
||||
"youtube": "youtube",
|
||||
"reddit": "reddit",
|
||||
@@ -68,7 +69,11 @@
|
||||
"Show related videos: ": "Ähnliche Videos anzeigen? ",
|
||||
"Show annotations by default: ": "Standardmäßig Anmerkungen anzeigen? ",
|
||||
"Visual preferences": "Anzeigeeinstellungen",
|
||||
"Player style: ": "Abspielgeräterstil: ",
|
||||
"Dark mode: ": "Nachtmodus: ",
|
||||
"Theme: ": "Modus: ",
|
||||
"dark": "Nachtmodus",
|
||||
"light": "klarer Modus",
|
||||
"Thin mode: ": "Schlanker Modus: ",
|
||||
"Subscription preferences": "Abonnementeinstellungen",
|
||||
"Show annotations by default for subscribed channels: ": "Anmerkungen für abonnierte Kanäle standardmäßig anzeigen? ",
|
||||
@@ -90,14 +95,14 @@
|
||||
"`x` is live": "`x` ist live",
|
||||
"Data preferences": "Dateneinstellungen",
|
||||
"Clear watch history": "Verlauf löschen",
|
||||
"Import/export data": "Daten im- exportieren",
|
||||
"Import/export data": "Daten im-/exportieren",
|
||||
"Change password": "Passwort ändern",
|
||||
"Manage subscriptions": "Abonnements verwalten",
|
||||
"Manage tokens": "Token verwalten",
|
||||
"Manage tokens": "Tokens verwalten",
|
||||
"Watch history": "Verlauf",
|
||||
"Delete account": "Account löschen",
|
||||
"Administrator preferences": "Administratoreinstellungen",
|
||||
"Default homepage: ": "Standard-Homepage: ",
|
||||
"Administrator preferences": "Administrator-Einstellungen",
|
||||
"Default homepage: ": "Standard-Startseite: ",
|
||||
"Feed menu: ": "Feed-Menü: ",
|
||||
"Top enabled: ": "Top aktiviert? ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA aktiviert? ",
|
||||
@@ -106,7 +111,7 @@
|
||||
"Report statistics: ": "Statistiken berichten? ",
|
||||
"Save preferences": "Einstellungen speichern",
|
||||
"Subscription manager": "Abonnementverwaltung",
|
||||
"Token manager": "Token-Manager",
|
||||
"Token manager": "Tokenverwalter",
|
||||
"Token": "Token",
|
||||
"`x` subscriptions": "`x` Abonnements",
|
||||
"`x` tokens": "`x` Tokens",
|
||||
@@ -122,7 +127,17 @@
|
||||
"View JavaScript license information.": "Javascript Lizenzinformationen anzeigen.",
|
||||
"View privacy policy.": "Datenschutzerklärung einsehen.",
|
||||
"Trending": "Trending",
|
||||
"Public": "Öffentlich",
|
||||
"Unlisted": "Nicht aufgeführt",
|
||||
"Private": "Privat",
|
||||
"View all playlists": "Alle Wiedergabelisten anzeigen",
|
||||
"Updated `x` ago": "Aktualisiert `x` vor",
|
||||
"Delete playlist `x`?": "Wiedergabeliste löschen `x`?",
|
||||
"Delete playlist": "Wiedergabeliste löschen",
|
||||
"Create playlist": "Wiedergabeliste erstellen",
|
||||
"Title": "Titel",
|
||||
"Playlist privacy": "Vertrauliche Wiedergabeliste",
|
||||
"Editing playlist `x`": "Wiedergabeliste bearbeiten `x`",
|
||||
"Watch on YouTube": "Video auf YouTube ansehen",
|
||||
"Hide annotations": "Anmerkungen ausblenden",
|
||||
"Show annotations": "Anmerkungen anzeigen",
|
||||
@@ -134,9 +149,9 @@
|
||||
"Whitelisted regions: ": "Erlaubte Regionen: ",
|
||||
"Blacklisted regions: ": "Unerlaubte Regionen: ",
|
||||
"Shared `x`": "Geteilt `x`",
|
||||
"`x` views": "`x` Ansichten",
|
||||
"Premieres in `x`": "Premieren in `x`",
|
||||
"Premieres `x`": "",
|
||||
"`x` views": "`x` Aufrufe",
|
||||
"Premieres in `x`": "Zuerst gesehen in `x`",
|
||||
"Premieres `x`": "Erster Start `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Hallo! Anscheinend haben Sie JavaScript deaktiviert. Klicken Sie hier um Kommentare anzuzeigen, beachten sie dass es etwas länger dauern kann um sie zu laden.",
|
||||
"View YouTube comments": "YouTube Kommentare anzeigen",
|
||||
"View more comments on Reddit": "Mehr Kommentare auf Reddit anzeigen",
|
||||
@@ -177,9 +192,9 @@
|
||||
"Hidden field \"challenge\" is a required field": "Verstecktes Feld \"challenge\" ist eine erforderliche Eingabe",
|
||||
"Hidden field \"token\" is a required field": "Verstecktes Feld \"token\" ist eine erforderliche Eingabe",
|
||||
"Erroneous challenge": "Ungültiger Test",
|
||||
"Erroneous token": "Ungöltige Marke",
|
||||
"Erroneous token": "Ungültiger Token",
|
||||
"No such user": "Ungültiger Benutzer",
|
||||
"Token is expired, please try again": "Marke ist abgelaufen, bitte erneut versuchen",
|
||||
"Token is expired, please try again": "Token ist abgelaufen, bitte erneut versuchen",
|
||||
"English": "Englisch",
|
||||
"English (auto-generated)": "Englisch (automatisch erzeugt)",
|
||||
"Afrikaans": "Afrikaans",
|
||||
@@ -310,12 +325,12 @@
|
||||
"%A %B %-d, %Y": "%A %B %-d, %Y",
|
||||
"(edited)": "(editiert)",
|
||||
"YouTube comment permalink": "YouTube-Kommentar Permalink",
|
||||
"permalink": "",
|
||||
"permalink": "Permalink",
|
||||
"`x` marked it with a ❤": "`x` markierte es mit einem ❤",
|
||||
"Audio mode": "Audiomodus",
|
||||
"Video mode": "Videomodus",
|
||||
"Videos": "Videos",
|
||||
"Playlists": "Wiedergabelisten",
|
||||
"Community": "",
|
||||
"Community": "Gemeinschaft",
|
||||
"Current version: ": "Aktuelle Version: "
|
||||
}
|
||||
@@ -1,12 +1,13 @@
|
||||
{
|
||||
"`x` subscribers": {
|
||||
"(\\D|^)1(\\D|$)": "`x` συνδρομητής",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` συνδρομητής",
|
||||
"": "`x` συνδρομητές"
|
||||
},
|
||||
"`x` videos": {
|
||||
"(\\D|^)1(\\D|$)": "`x` βίντεο",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` βίντεο",
|
||||
"": "`x` βίντεο"
|
||||
},
|
||||
"`x` playlists": "",
|
||||
"LIVE": "ΖΩΝΤΑΝΑ",
|
||||
"Shared `x` ago": "Μοιράστηκε πριν `x`",
|
||||
"Unsubscribe": "Απεγγραφή",
|
||||
@@ -74,7 +75,11 @@
|
||||
"Show related videos: ": "Προβολή σχετικών βίντεο; ",
|
||||
"Show annotations by default: ": "Αυτόματη προβολή σημειώσεων; :",
|
||||
"Visual preferences": "Προτιμήσεις εμφάνισης",
|
||||
"Player style: ": "",
|
||||
"Dark mode: ": "Σκοτεινή λειτουργία: ",
|
||||
"Theme: ": "",
|
||||
"dark": "",
|
||||
"light": "",
|
||||
"Thin mode: ": "Ελαφριά λειτουργία: ",
|
||||
"Subscription preferences": "Προτιμήσεις συνδρομών",
|
||||
"Show annotations by default for subscribed channels: ": "Προβολή σημειώσεων μόνο για κανάλια στα οποία είστε συνδρομητής; ",
|
||||
@@ -115,11 +120,11 @@
|
||||
"Token manager": "Διαχειριστής διασυνδέσεων",
|
||||
"Token": "Διασύνδεση",
|
||||
"`x` subscriptions": {
|
||||
"(\\D|^)1(\\D|$)": "`x` συνδρομή",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` συνδρομή",
|
||||
"": "`x` συνδρομές"
|
||||
},
|
||||
"`x` tokens": {
|
||||
"(\\D|^)1(\\D|$)": "`x` διασύνδεση",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` διασύνδεση",
|
||||
"": "`x` διασυνδέσεις"
|
||||
},
|
||||
"Import/export": "Εισαγωγή/εξαγωγή",
|
||||
@@ -127,7 +132,7 @@
|
||||
"revoke": "ανάκληση",
|
||||
"Subscriptions": "Συνδρομές",
|
||||
"`x` unseen notifications": {
|
||||
"(\\D|^)1(\\D|$)": "`x` καινούρια ειδοποίηση",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` καινούρια ειδοποίηση",
|
||||
"": "`x` καινούριες ειδοποιήσεις"
|
||||
},
|
||||
"search": "αναζήτηση",
|
||||
@@ -137,7 +142,17 @@
|
||||
"View JavaScript license information.": "Προβολή πληροφοριών άδειας JavaScript.",
|
||||
"View privacy policy.": "Προβολή πολιτικής απορρήτου.",
|
||||
"Trending": "Τάσεις",
|
||||
"Public": "",
|
||||
"Unlisted": "Κρυφό",
|
||||
"Private": "",
|
||||
"View all playlists": "",
|
||||
"Updated `x` ago": "",
|
||||
"Delete playlist `x`?": "",
|
||||
"Delete playlist": "",
|
||||
"Create playlist": "",
|
||||
"Title": "",
|
||||
"Playlist privacy": "",
|
||||
"Editing playlist `x`": "",
|
||||
"Watch on YouTube": "Προβολή στο YouTube",
|
||||
"Hide annotations": "Απόκρυψη σημειώσεων",
|
||||
"Show annotations": "Προβολή σημειώσεων",
|
||||
@@ -150,7 +165,7 @@
|
||||
"Blacklisted regions: ": "Μη-επιτρεπτές περιοχές: ",
|
||||
"Shared `x`": "Μοιράστηκε το `x`",
|
||||
"`x` views": {
|
||||
"(\\D|^)1(\\D|$)": "`x` προβολή",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` προβολή",
|
||||
"": "`x` προβολές"
|
||||
},
|
||||
"Premieres in `x`": "Πρώτη προβολή σε `x`",
|
||||
@@ -184,13 +199,13 @@
|
||||
"Could not get channel info.": "Αδύναμια εύρεσης πληροφοριών καναλιού.",
|
||||
"Could not fetch comments": "Αδυναμία λήψης σχολίων",
|
||||
"View `x` replies": {
|
||||
"(\\D|^)1(\\D|$)": "Προβολή `x` απάντησης",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "Προβολή `x` απάντησης",
|
||||
"": "Προβολή `x` απαντήσεων"
|
||||
},
|
||||
"`x` ago": "Πριν `x`",
|
||||
"Load more": "Φόρτωση περισσότερων",
|
||||
"`x` points": {
|
||||
"(\\D|^)1(\\D|$)": "`x` βαθμός",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` βαθμός",
|
||||
"": "`x` βαθμοί"
|
||||
},
|
||||
"Could not create mix.": "Αδυναμία δημιουργίας μίξης.",
|
||||
@@ -311,31 +326,31 @@
|
||||
"Yoruba": "Γιορούμπα",
|
||||
"Zulu": "Ζουλού",
|
||||
"`x` years": {
|
||||
"(\\D|^)1(\\D|$)": "`x` χρόνο",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` χρόνο",
|
||||
"": "`x` χρόνια"
|
||||
},
|
||||
"`x` months": {
|
||||
"(\\D|^)1(\\D|$)": "`x` μήνα",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` μήνα",
|
||||
"": "`x` μήνες"
|
||||
},
|
||||
"`x` weeks": {
|
||||
"(\\D|^)1(\\D|$)": "`x` εβδομάδα",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` εβδομάδα",
|
||||
"": "`x` εβδομάδες"
|
||||
},
|
||||
"`x` days": {
|
||||
"(\\D|^)1(\\D|$)": "`x` ημέρα",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` ημέρα",
|
||||
"": "`x` ημέρες"
|
||||
},
|
||||
"`x` hours": {
|
||||
"(\\D|^)1(\\D|$)": "`x` ώρα",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` ώρα",
|
||||
"": "`x` ώρες"
|
||||
},
|
||||
"`x` minutes": {
|
||||
"(\\D|^)1(\\D|$)": "`x` λεπτό",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` λεπτό",
|
||||
"": "`x` λεπτά"
|
||||
},
|
||||
"`x` seconds": {
|
||||
"(\\D|^)1(\\D|$)": "`x` δευτερόλεπτο",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` δευτερόλεπτο",
|
||||
"": "`x` δευτερόλεπτα"
|
||||
},
|
||||
"Fallback comments: ": "Εναλλακτικά σχόλια: ",
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
{
|
||||
"`x` subscribers": {
|
||||
"(\\D|^)1(\\D|$)": "`x` subscriber",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` subscriber",
|
||||
"": "`x` subscribers"
|
||||
},
|
||||
"`x` videos": {
|
||||
"(\\D|^)1(\\D|$)": "`x` video",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` video",
|
||||
"": "`x` videos"
|
||||
},
|
||||
"`x` playlists": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` playlist",
|
||||
"": "`x` playlists"
|
||||
},
|
||||
"LIVE": "LIVE",
|
||||
"Shared `x` ago": "Shared `x` ago",
|
||||
"Unsubscribe": "Unsubscribe",
|
||||
@@ -74,7 +78,11 @@
|
||||
"Show related videos: ": "Show related videos: ",
|
||||
"Show annotations by default: ": "Show annotations by default: ",
|
||||
"Visual preferences": "Visual preferences",
|
||||
"Player style: ": "Player style: ",
|
||||
"Dark mode: ": "Dark mode: ",
|
||||
"Theme: ": "Theme: ",
|
||||
"dark": "dark",
|
||||
"light": "light",
|
||||
"Thin mode: ": "Thin mode: ",
|
||||
"Subscription preferences": "Subscription preferences",
|
||||
"Show annotations by default for subscribed channels: ": "Show annotations by default for subscribed channels? ",
|
||||
@@ -107,19 +115,19 @@
|
||||
"Feed menu: ": "Feed menu: ",
|
||||
"Top enabled: ": "Top enabled: ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA enabled: ",
|
||||
"Login enabled: ": "Login enabled? ",
|
||||
"Registration enabled: ": "Registration enabled? ",
|
||||
"Report statistics: ": "Report statistics? ",
|
||||
"Login enabled: ": "Login enabled: ",
|
||||
"Registration enabled: ": "Registration enabled: ",
|
||||
"Report statistics: ": "Report statistics: ",
|
||||
"Save preferences": "Save preferences",
|
||||
"Subscription manager": "Subscription manager",
|
||||
"Token manager": "Token manager",
|
||||
"Token": "Token",
|
||||
"`x` subscriptions": {
|
||||
"(\\D|^)1(\\D|$)": "`x` subscription",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` subscription",
|
||||
"": "`x` subscriptions"
|
||||
},
|
||||
"`x` tokens": {
|
||||
"(\\D|^)1(\\D|$)": "`x` token",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` token",
|
||||
"": "`x` tokens"
|
||||
},
|
||||
"Import/export": "Import/export",
|
||||
@@ -127,7 +135,7 @@
|
||||
"revoke": "revoke",
|
||||
"Subscriptions": "Subscriptions",
|
||||
"`x` unseen notifications": {
|
||||
"(\\D|^)1(\\D|$)": "`x` unseen notification",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` unseen notification",
|
||||
"": "`x` unseen notifications"
|
||||
},
|
||||
"search": "search",
|
||||
@@ -137,7 +145,17 @@
|
||||
"View JavaScript license information.": "View JavaScript license information.",
|
||||
"View privacy policy.": "View privacy policy.",
|
||||
"Trending": "Trending",
|
||||
"Public": "Public",
|
||||
"Unlisted": "Unlisted",
|
||||
"Private": "Private",
|
||||
"View all playlists": "View all playlists",
|
||||
"Updated `x` ago": "Updated `x` ago",
|
||||
"Delete playlist `x`?": "Delete playlist `x`?",
|
||||
"Delete playlist": "Delete playlist",
|
||||
"Create playlist": "Create playlist",
|
||||
"Title": "Title",
|
||||
"Playlist privacy": "Playlist privacy",
|
||||
"Editing playlist `x`": "Editing playlist `x`",
|
||||
"Watch on YouTube": "Watch on YouTube",
|
||||
"Hide annotations": "Hide annotations",
|
||||
"Show annotations": "Show annotations",
|
||||
@@ -150,7 +168,7 @@
|
||||
"Blacklisted regions: ": "Blacklisted regions: ",
|
||||
"Shared `x`": "Shared `x`",
|
||||
"`x` views": {
|
||||
"(\\D|^)1(\\D|$)": "`x` views",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` view",
|
||||
"": "`x` views"
|
||||
},
|
||||
"Premieres in `x`": "Premieres in `x`",
|
||||
@@ -158,7 +176,10 @@
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.",
|
||||
"View YouTube comments": "View YouTube comments",
|
||||
"View more comments on Reddit": "View more comments on Reddit",
|
||||
"View `x` comments": "View `x` comments",
|
||||
"View `x` comments": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "View `x` comment",
|
||||
"": "View `x` comments"
|
||||
},
|
||||
"View Reddit comments": "View Reddit comments",
|
||||
"Hide replies": "Hide replies",
|
||||
"Show replies": "Show replies",
|
||||
@@ -184,13 +205,13 @@
|
||||
"Could not get channel info.": "Could not get channel info.",
|
||||
"Could not fetch comments": "Could not fetch comments",
|
||||
"View `x` replies": {
|
||||
"(\\D|^)1(\\D|$)": "View `x` reply",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "View `x` reply",
|
||||
"": "View `x` replies"
|
||||
},
|
||||
"`x` ago": "`x` ago",
|
||||
"Load more": "Load more",
|
||||
"`x` points": {
|
||||
"(\\D|^)1(\\D|$)": "`x` point",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` point",
|
||||
"": "`x` points"
|
||||
},
|
||||
"Could not create mix.": "Could not create mix.",
|
||||
@@ -311,31 +332,31 @@
|
||||
"Yoruba": "Yoruba",
|
||||
"Zulu": "Zulu",
|
||||
"`x` years": {
|
||||
"(\\D|^)1(\\D|$)": "`x` year",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` year",
|
||||
"": "`x` years"
|
||||
},
|
||||
"`x` months": {
|
||||
"(\\D|^)1(\\D|$)": "`x` month",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` month",
|
||||
"": "`x` months"
|
||||
},
|
||||
"`x` weeks": {
|
||||
"(\\D|^)1(\\D|$)": "`x` week",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` week",
|
||||
"": "`x` weeks"
|
||||
},
|
||||
"`x` days": {
|
||||
"(\\D|^)1(\\D|$)": "`x` day",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` day",
|
||||
"": "`x` days"
|
||||
},
|
||||
"`x` hours": {
|
||||
"(\\D|^)1(\\D|$)": "`x` hour",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` hour",
|
||||
"": "`x` hours"
|
||||
},
|
||||
"`x` minutes": {
|
||||
"(\\D|^)1(\\D|$)": "`x` minute",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` minute",
|
||||
"": "`x` minutes"
|
||||
},
|
||||
"`x` seconds": {
|
||||
"(\\D|^)1(\\D|$)": "`x` second",
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` second",
|
||||
"": "`x` seconds"
|
||||
},
|
||||
"Fallback comments: ": "Fallback comments: ",
|
||||
@@ -355,7 +376,7 @@
|
||||
"%A %B %-d, %Y": "%A %B %-d, %Y",
|
||||
"(edited)": "(edited)",
|
||||
"YouTube comment permalink": "YouTube comment permalink",
|
||||
"permalink": "",
|
||||
"permalink": "permalink",
|
||||
"`x` marked it with a ❤": "`x` marked it with a ❤",
|
||||
"Audio mode": "Audio mode",
|
||||
"Video mode": "Video mode",
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
{
|
||||
"`x` subscribers": "`x` abonantoj",
|
||||
"`x` videos": "`x` videoj",
|
||||
"`x` videos": "`x` filmetoj",
|
||||
"`x` playlists": "`x` ludlistoj",
|
||||
"LIVE": "NUNA",
|
||||
"Shared `x` ago": "Konigita antaŭ `x`",
|
||||
"Unsubscribe": "Malaboni",
|
||||
"Subscribe": "Aboni",
|
||||
"View channel on YouTube": "Vidi kanalon en YouTube",
|
||||
"View playlist on YouTube": "Vidi ludliston en YouTube",
|
||||
"View channel on YouTube": "Vidi kanalon en JuTubo",
|
||||
"View playlist on YouTube": "Vidi ludliston en JuTubo",
|
||||
"newest": "pli novaj",
|
||||
"oldest": "pli malnovaj",
|
||||
"popular": "popularaj",
|
||||
@@ -24,7 +25,7 @@
|
||||
"Import and Export Data": "Importi kaj Eksporti Datumojn",
|
||||
"Import": "Importi",
|
||||
"Import Invidious data": "Importi datumojn de Invidious",
|
||||
"Import YouTube subscriptions": "Importi abonojn de YouTube",
|
||||
"Import YouTube subscriptions": "Importi abonojn de JuTubo",
|
||||
"Import FreeTube subscriptions (.db)": "Importi abonojn de FreeTube (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "Importi abonojn de NewPipe (.json)",
|
||||
"Import NewPipe data (.zip)": "Importi datumojn de NewPipe (.zip)",
|
||||
@@ -34,7 +35,7 @@
|
||||
"Export data as JSON": "Eksporti datumojn kiel JSON",
|
||||
"Delete account?": "Ĉu forigi konton?",
|
||||
"History": "Historio",
|
||||
"An alternative front-end to YouTube": "Alternativa fasado al YouTube",
|
||||
"An alternative front-end to YouTube": "Alternativa fasado al JuTubo",
|
||||
"JavaScript license information": "Ĝavoskripta licenca informo",
|
||||
"source": "fonto",
|
||||
"Log in": "Ensaluti",
|
||||
@@ -54,39 +55,43 @@
|
||||
"Always loop: ": "Ĉiam ripeti: ",
|
||||
"Autoplay: ": "Aŭtomate ludi: ",
|
||||
"Play next by default: ": "Ludi sekvan defaŭlte: ",
|
||||
"Autoplay next video: ": "Aŭtomate ludi sekvan videon: ",
|
||||
"Autoplay next video: ": "Aŭtomate ludi sekvan filmeton: ",
|
||||
"Listen by default: ": "Aŭskulti defaŭlte: ",
|
||||
"Proxy videos: ": "Ĉu uzi prokuran servilon por videoj? ",
|
||||
"Proxy videos: ": "Ĉu uzi prokuran servilon por filmetojn? ",
|
||||
"Default speed: ": "Defaŭlta rapido: ",
|
||||
"Preferred video quality: ": "Preferita videkvalito: ",
|
||||
"Preferred video quality: ": "Preferita filmetkvalito: ",
|
||||
"Player volume: ": "Ludila sonforteco: ",
|
||||
"Default comments: ": "Defaŭltaj komentoj: ",
|
||||
"youtube": "youtube",
|
||||
"reddit": "reddit",
|
||||
"youtube": "JuTubo",
|
||||
"reddit": "Reddit",
|
||||
"Default captions: ": "Defaŭltaj subtekstoj: ",
|
||||
"Fallback captions: ": "Retrodefaŭltaj subtekstoj: ",
|
||||
"Show related videos: ": "Ĉu montri rilatajn videojn? ",
|
||||
"Show related videos: ": "Ĉu montri rilatajn filmetojn? ",
|
||||
"Show annotations by default: ": "Ĉu montri prinotojn defaŭlte? ",
|
||||
"Visual preferences": "Vidaj preferoj",
|
||||
"Player style: ": "Ludila stilo: ",
|
||||
"Dark mode: ": "Malhela reĝimo: ",
|
||||
"Theme: ": "Etoso: ",
|
||||
"dark": "malhela",
|
||||
"light": "hela",
|
||||
"Thin mode: ": "Maldika reĝimo: ",
|
||||
"Subscription preferences": "Abonaj agordoj",
|
||||
"Show annotations by default for subscribed channels: ": "Ĉu montri prinotojn defaŭlte por abonitaj kanaloj? ",
|
||||
"Redirect homepage to feed: ": "Alidirekti hejmpâgon al fluo: ",
|
||||
"Number of videos shown in feed: ": "Nombro da videoj montritaj en fluo: ",
|
||||
"Sort videos by: ": "Ordi videojn laŭ: ",
|
||||
"Number of videos shown in feed: ": "Nombro da filmetoj montritaj en fluo: ",
|
||||
"Sort videos by: ": "Ordi filmetojn per: ",
|
||||
"published": "publikigo",
|
||||
"published - reverse": "publitigo - renverse",
|
||||
"alphabetically": "alfabete",
|
||||
"alphabetically - reverse": "alfabete - renverse",
|
||||
"channel name": "kanala nombro",
|
||||
"channel name - reverse": "kanala nombro - renverse",
|
||||
"Only show latest video from channel: ": "Nur montri pli novan videon el kanalo: ",
|
||||
"Only show latest unwatched video from channel: ": "Nur montri pli novan malviditan videon el kanalo: ",
|
||||
"Only show latest video from channel: ": "Nur montri pli novan filmeton el kanalo: ",
|
||||
"Only show latest unwatched video from channel: ": "Nur montri pli novan malviditan filmeton el kanalo: ",
|
||||
"Only show unwatched: ": "Nur montri malviditajn: ",
|
||||
"Only show notifications (if there are any): ": "Nur montri sciigojn (se estas): ",
|
||||
"Enable web notifications": "Ebligi retejajn sciigojn",
|
||||
"`x` uploaded a video": "`x` alŝutis videon",
|
||||
"`x` uploaded a video": "`x` alŝutis filmeton",
|
||||
"`x` is live": "`x` estas nuna",
|
||||
"Data preferences": "Datumagordoj",
|
||||
"Clear watch history": "Forigi vidohistorion",
|
||||
@@ -122,8 +127,18 @@
|
||||
"View JavaScript license information.": "Vidi Ĝavoskriptan licencan informon.",
|
||||
"View privacy policy.": "Vidi regularon pri privateco.",
|
||||
"Trending": "Tendencoj",
|
||||
"Public": "Publika",
|
||||
"Unlisted": "Ne listigita",
|
||||
"Watch on YouTube": "Vidi videon en Youtube",
|
||||
"Private": "Privata",
|
||||
"View all playlists": "Vidi ĉiujn ludlistojn",
|
||||
"Updated `x` ago": "Ĝisdatigita antaŭ `x`",
|
||||
"Delete playlist `x`?": "Ĉu forigi ludliston `x`?",
|
||||
"Delete playlist": "Forigi ludliston",
|
||||
"Create playlist": "Krei ludliston",
|
||||
"Title": "Titolo",
|
||||
"Playlist privacy": "Privateco de ludlisto",
|
||||
"Editing playlist `x`": "Redaktante ludlisto `x`",
|
||||
"Watch on YouTube": "Vidi filmeton en JuTubo",
|
||||
"Hide annotations": "Kaŝi prinotojn",
|
||||
"Show annotations": "Montri prinotojn",
|
||||
"Genre: ": "Ĝenro: ",
|
||||
@@ -138,7 +153,7 @@
|
||||
"Premieres in `x`": "Premieras en `x`",
|
||||
"Premieres `x`": "Premieras `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Saluton! Ŝajnas, ke vi havas Ĝavoskripton malebligitan. Klaku ĉi tie por vidi komentojn, memoru, ke la ŝargado povus daŭri iom pli.",
|
||||
"View YouTube comments": "Vidi komentojn de YouTube",
|
||||
"View YouTube comments": "Vidi komentojn de JuTubo",
|
||||
"View more comments on Reddit": "Vidi pli komentoj en Reddit",
|
||||
"View `x` comments": "Vidi `x` komentojn",
|
||||
"View Reddit comments": "Vidi komentojn de Reddit",
|
||||
@@ -309,12 +324,12 @@
|
||||
"Download as: ": "Elŝuti kiel: ",
|
||||
"%A %B %-d, %Y": "%A %-d de %B %Y",
|
||||
"(edited)": "(redaktita)",
|
||||
"YouTube comment permalink": "Fiksligilo de la komento en YouTube",
|
||||
"YouTube comment permalink": "Fiksligilo de la komento en JuTubo",
|
||||
"permalink": "konstanta ligilo",
|
||||
"`x` marked it with a ❤": "`x` markis ĝin per ❤",
|
||||
"Audio mode": "Aŭda reĝimo",
|
||||
"Video mode": "Videa reĝimo",
|
||||
"Videos": "Videoj",
|
||||
"Videos": "Filmetoj",
|
||||
"Playlists": "Ludlistoj",
|
||||
"Community": "Komunumo",
|
||||
"Current version: ": "Nuna versio: "
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
{
|
||||
"`x` subscribers": "`x` suscriptores",
|
||||
"`x` videos": "`x` vídeos",
|
||||
"`x` playlists": "`x` listas de reproducción",
|
||||
"LIVE": "DIRECTO",
|
||||
"Shared `x` ago": "Compartido hace `x`",
|
||||
"Unsubscribe": "Desuscribirse",
|
||||
"Subscribe": "Suscribirse",
|
||||
"View channel on YouTube": "Ver el canal en YouTube",
|
||||
"View playlist on YouTube": "",
|
||||
"View playlist on YouTube": "Ver lista de reproducción en YouTube",
|
||||
"newest": "más nuevos",
|
||||
"oldest": "más viejos",
|
||||
"popular": "populares",
|
||||
@@ -68,7 +69,11 @@
|
||||
"Show related videos: ": "¿Mostrar vídeos relacionados? ",
|
||||
"Show annotations by default: ": "¿Mostrar anotaciones por defecto? ",
|
||||
"Visual preferences": "Preferencias visuales",
|
||||
"Player style: ": "Estilo de reproductor: ",
|
||||
"Dark mode: ": "Modo oscuro: ",
|
||||
"Theme: ": "Tema: ",
|
||||
"dark": "oscuro",
|
||||
"light": "claro",
|
||||
"Thin mode: ": "Modo compacto: ",
|
||||
"Subscription preferences": "Preferencias de la suscripción",
|
||||
"Show annotations by default for subscribed channels: ": "¿Mostrar anotaciones por defecto para los canales suscritos? ",
|
||||
@@ -85,9 +90,9 @@
|
||||
"Only show latest unwatched video from channel: ": "Mostrar solo el último vídeo sin ver del canal: ",
|
||||
"Only show unwatched: ": "Mostrar solo los no vistos: ",
|
||||
"Only show notifications (if there are any): ": "Mostrar solo notificaciones (si hay alguna): ",
|
||||
"Enable web notifications": "",
|
||||
"`x` uploaded a video": "",
|
||||
"`x` is live": "",
|
||||
"Enable web notifications": "Habilitar notificaciones web",
|
||||
"`x` uploaded a video": "`x` subió un video",
|
||||
"`x` is live": "`x` esta en vivo",
|
||||
"Data preferences": "Preferencias de los datos",
|
||||
"Clear watch history": "Borrar el historial de reproducción",
|
||||
"Import/export data": "Importar/Exportar datos",
|
||||
@@ -122,7 +127,17 @@
|
||||
"View JavaScript license information.": "Ver información de licencia de JavaScript.",
|
||||
"View privacy policy.": "Ver la política de privacidad.",
|
||||
"Trending": "Tendencias",
|
||||
"Public": "Público",
|
||||
"Unlisted": "No listado",
|
||||
"Private": "Privado",
|
||||
"View all playlists": "Ver todas las listas de reproducción",
|
||||
"Updated `x` ago": "Actualizado hace `x`",
|
||||
"Delete playlist `x`?": "¿Eliminar la lista de reproducción `x`?",
|
||||
"Delete playlist": "Eliminar lista de reproducción",
|
||||
"Create playlist": "Crear lista de reproducción",
|
||||
"Title": "Título",
|
||||
"Playlist privacy": "Privacidad de la lista de reproducción",
|
||||
"Editing playlist `x`": "Editando la lista de reproducción 'x'",
|
||||
"Watch on YouTube": "Ver el vídeo en Youtube",
|
||||
"Hide annotations": "Ocultar anotaciones",
|
||||
"Show annotations": "Mostrar anotaciones",
|
||||
@@ -136,7 +151,7 @@
|
||||
"Shared `x`": "Compartido `x`",
|
||||
"`x` views": "`x` visualizaciones",
|
||||
"Premieres in `x`": "Se estrena en `x`",
|
||||
"Premieres `x`": "",
|
||||
"Premieres `x`": "Estrenos `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "¡Hola! Parece que tiene JavaScript desactivado. Haga clic aquí para ver los comentarios, pero tenga en cuenta que pueden tardar un poco más en cargarse.",
|
||||
"View YouTube comments": "Ver los comentarios de YouTube",
|
||||
"View more comments on Reddit": "Ver más comentarios en Reddit",
|
||||
@@ -310,12 +325,12 @@
|
||||
"%A %B %-d, %Y": "%A %B %-d, %Y",
|
||||
"(edited)": "(editado)",
|
||||
"YouTube comment permalink": "Enlace permanente de YouTube del comentario",
|
||||
"permalink": "",
|
||||
"permalink": "permalink",
|
||||
"`x` marked it with a ❤": "`x` lo ha marcado con un ❤",
|
||||
"Audio mode": "Modo de audio",
|
||||
"Video mode": "Modo de vídeo",
|
||||
"Videos": "Vídeos",
|
||||
"Playlists": "Listas de reproducción",
|
||||
"Community": "",
|
||||
"Community": "Comunidad",
|
||||
"Current version: ": "Versión actual: "
|
||||
}
|
||||
@@ -1,12 +1,13 @@
|
||||
{
|
||||
"`x` subscribers": "`x` harpidedun",
|
||||
"`x` videos": "`x` bideo",
|
||||
"`x` playlists": "`x` erreprodukzio-zerrenda",
|
||||
"LIVE": "ZUZENEAN",
|
||||
"Shared `x` ago": "Duela `x` partekatua",
|
||||
"Unsubscribe": "Harpidetza kendu",
|
||||
"Subscribe": "Harpidetu",
|
||||
"View channel on YouTube": "Ikusi kanala YouTuben",
|
||||
"View playlist on YouTube": "",
|
||||
"View playlist on YouTube": "Ikusi erreprodukzio-zerrenda YouTuben",
|
||||
"newest": "berrienak",
|
||||
"oldest": "zaharrenak",
|
||||
"popular": "ospetsuenak",
|
||||
@@ -15,62 +16,66 @@
|
||||
"Previous page": "Aurreko orria",
|
||||
"Clear watch history?": "Garbitu ikusitakoen historia?",
|
||||
"New password": "Pasahitz berria",
|
||||
"New passwords must match": "",
|
||||
"Cannot change password for Google accounts": "",
|
||||
"Authorize token?": "",
|
||||
"New passwords must match": "Pasahitza berriek bat egin behar dute",
|
||||
"Cannot change password for Google accounts": "Ezin da pasahitza aldatu Google kontuetan",
|
||||
"Authorize token?": "Baimendu tokena?",
|
||||
"Authorize token for `x`?": "",
|
||||
"Yes": "Bai",
|
||||
"No": "Ez",
|
||||
"Import and Export Data": "Datuak inportatu eta esportatu",
|
||||
"Import": "Inportatu",
|
||||
"Import Invidious data": "Invidiouseko datuak inportatu",
|
||||
"Import YouTube subscriptions": "YouTubeko harpidetzak inportatu",
|
||||
"Import FreeTube subscriptions (.db)": "FreeTubeko harpidetzak inportatu (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "NewPipeko harpidetzak inportatu (.json)",
|
||||
"Import NewPipe data (.zip)": "NewPipeko datuak inportatu (.zip)",
|
||||
"Import Invidious data": "Inportatu Invidiouseko datuak",
|
||||
"Import YouTube subscriptions": "Inportatu YouTubeko harpidetzak",
|
||||
"Import FreeTube subscriptions (.db)": "Inportatu FreeTubeko harpidetzak (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "Inportatu NewPipeko harpidetzak (.json)",
|
||||
"Import NewPipe data (.zip)": "Inportatu NewPipeko datuak (.zip)",
|
||||
"Export": "Esportatu",
|
||||
"Export subscriptions as OPML": "Esportatu harpidetzak OPML bezala",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Harpidetzak OPML bezala esportatu (NewPipe eta FreeTuberako)",
|
||||
"Export data as JSON": "Datuak JSON bezala esportatu",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Esportatu harpidetzak OPML bezala (NewPipe eta FreeTuberako)",
|
||||
"Export data as JSON": "Esportatu datuak JSON bezala",
|
||||
"Delete account?": "Kontua ezabatu?",
|
||||
"History": "Historia",
|
||||
"An alternative front-end to YouTube": "YouTuberako interfaze alternatibo bat",
|
||||
"JavaScript license information": "JavaScript lizentzia informazioa",
|
||||
"source": "iturburua",
|
||||
"Log in": "Saioa hasi",
|
||||
"Log in/register": "Saioa hasi/Izena eman",
|
||||
"Log in with Google": "Googlekin hasi saioa",
|
||||
"Log in/register": "Hasi saioa / Eman izena",
|
||||
"Log in with Google": "Hasi saioa Googlekin",
|
||||
"User ID": "Erabiltzaile IDa",
|
||||
"Password": "Pasahitza",
|
||||
"Time (h:mm:ss):": "Denbora (o:mm:ss):",
|
||||
"Text CAPTCHA": "Testu CAPTCHA",
|
||||
"Image CAPTCHA": "Irudi CAPTCHA",
|
||||
"Sign In": "",
|
||||
"Register": "",
|
||||
"E-mail": "",
|
||||
"Time (h:mm:ss):": "Denbora (h:mm:ss):",
|
||||
"Text CAPTCHA": "CAPTCHA testua",
|
||||
"Image CAPTCHA": "CAPTCHA irudia",
|
||||
"Sign In": "Hasi saioa",
|
||||
"Register": "Eman izena",
|
||||
"E-mail": "E-posta",
|
||||
"Google verification code": "",
|
||||
"Preferences": "",
|
||||
"Player preferences": "",
|
||||
"Preferences": "Hobespenak",
|
||||
"Player preferences": "Erreproduzigailuaren hobespenak",
|
||||
"Always loop: ": "",
|
||||
"Autoplay: ": "",
|
||||
"Autoplay: ": "Automatikoki erreproduzitu: ",
|
||||
"Play next by default: ": "",
|
||||
"Autoplay next video: ": "",
|
||||
"Autoplay next video: ": "Erreproduzitu automatikoki hurrengo bideoa: ",
|
||||
"Listen by default: ": "",
|
||||
"Proxy videos: ": "",
|
||||
"Default speed: ": "",
|
||||
"Preferred video quality: ": "",
|
||||
"Player volume: ": "",
|
||||
"Default comments: ": "",
|
||||
"youtube": "",
|
||||
"reddit": "",
|
||||
"Default captions: ": "",
|
||||
"Preferred video quality: ": "Hobetsitako bideoaren kalitatea: ",
|
||||
"Player volume: ": "Erreproduzigailuaren bolumena: ",
|
||||
"Default comments: ": "Lehenetsitako iruzkinak: ",
|
||||
"youtube": "youtube",
|
||||
"reddit": "reddit",
|
||||
"Default captions: ": "Lehenetsitako azpitituluak: ",
|
||||
"Fallback captions: ": "",
|
||||
"Show related videos: ": "",
|
||||
"Show annotations by default: ": "",
|
||||
"Visual preferences": "",
|
||||
"Dark mode: ": "",
|
||||
"Show related videos: ": "Erakutsi erlazionatutako bideoak: ",
|
||||
"Show annotations by default: ": "Erakutsi oharrak modu lehenetsian: ",
|
||||
"Visual preferences": "Hobespen bisualak",
|
||||
"Player style: ": "Erreproduzigailu mota: ",
|
||||
"Dark mode: ": "Gai iluna: ",
|
||||
"Theme: ": "Gaia: ",
|
||||
"dark": "iluna",
|
||||
"light": "argia",
|
||||
"Thin mode: ": "",
|
||||
"Subscription preferences": "",
|
||||
"Subscription preferences": "Harpidetzen hobespenak",
|
||||
"Show annotations by default for subscribed channels: ": "",
|
||||
"Redirect homepage to feed: ": "",
|
||||
"Number of videos shown in feed: ": "",
|
||||
@@ -122,7 +127,17 @@
|
||||
"View JavaScript license information.": "",
|
||||
"View privacy policy.": "",
|
||||
"Trending": "",
|
||||
"Public": "",
|
||||
"Unlisted": "",
|
||||
"Private": "",
|
||||
"View all playlists": "",
|
||||
"Updated `x` ago": "",
|
||||
"Delete playlist `x`?": "",
|
||||
"Delete playlist": "",
|
||||
"Create playlist": "",
|
||||
"Title": "",
|
||||
"Playlist privacy": "",
|
||||
"Editing playlist `x`": "",
|
||||
"Watch on YouTube": "",
|
||||
"Hide annotations": "",
|
||||
"Show annotations": "",
|
||||
@@ -136,6 +151,7 @@
|
||||
"Shared `x`": "",
|
||||
"`x` views": "",
|
||||
"Premieres in `x`": "",
|
||||
"Premieres `x`": "",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "",
|
||||
"View YouTube comments": "",
|
||||
"View more comments on Reddit": "",
|
||||
@@ -313,5 +329,8 @@
|
||||
"`x` marked it with a ❤": "",
|
||||
"Audio mode": "",
|
||||
"Video mode": "",
|
||||
"Videos": ""
|
||||
"Videos": "",
|
||||
"Playlists": "",
|
||||
"Community": "",
|
||||
"Current version: ": ""
|
||||
}
|
||||
127
locales/fr.json
127
locales/fr.json
@@ -1,12 +1,13 @@
|
||||
{
|
||||
"`x` subscribers": "`x` abonnés",
|
||||
"`x` videos": "`x` vidéos",
|
||||
"`x` playlists": "`x` listes de lecture",
|
||||
"LIVE": "EN DIRECT",
|
||||
"Shared `x` ago": "Ajoutée il y a `x`",
|
||||
"Unsubscribe": "Se désabonner",
|
||||
"Subscribe": "S'abonner",
|
||||
"View channel on YouTube": "Voir la chaîne sur YouTube",
|
||||
"View playlist on YouTube": "",
|
||||
"View playlist on YouTube": "Voir la liste de lecture sur YouTube",
|
||||
"newest": "Date d'ajout (la plus récente)",
|
||||
"oldest": "Date d'ajout (la plus ancienne)",
|
||||
"popular": "Les plus populaires",
|
||||
@@ -15,8 +16,8 @@
|
||||
"Previous page": "Page précédente",
|
||||
"Clear watch history?": "Êtes-vous sûr de vouloir supprimer l'historique des vidéos regardées ?",
|
||||
"New password": "Nouveau mot de passe",
|
||||
"New passwords must match": "Les nouveaux mots de passe doivent être identiques",
|
||||
"Cannot change password for Google accounts": "Le mot de passe d'un compte Google ne peut pas être changé",
|
||||
"New passwords must match": "Les champs \"Nouveau mot de passe\" doivent être identiques",
|
||||
"Cannot change password for Google accounts": "Le mot de passe d'un compte Google ne peut pas être changé depuis Invidious",
|
||||
"Authorize token?": "Autoriser le token ?",
|
||||
"Authorize token for `x`?": "Autoriser le token pour `x` ?",
|
||||
"Yes": "Oui",
|
||||
@@ -29,8 +30,8 @@
|
||||
"Import NewPipe subscriptions (.json)": "Importer des abonnements NewPipe (.json)",
|
||||
"Import NewPipe data (.zip)": "Importer des données NewPipe (.zip)",
|
||||
"Export": "Exporter",
|
||||
"Export subscriptions as OPML": "Exporter les abonnements en OPML",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exporter les abonnements en OPML (pour NewPipe & FreeTube)",
|
||||
"Export subscriptions as OPML": "Exporter les abonnements au format OPML",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exporter les abonnements au format OPML (pour NewPipe & FreeTube)",
|
||||
"Export data as JSON": "Exporter les données au format JSON",
|
||||
"Delete account?": "Êtes-vous sûr de vouloir supprimer votre compte ?",
|
||||
"History": "Historique",
|
||||
@@ -52,11 +53,11 @@
|
||||
"Preferences": "Préférences",
|
||||
"Player preferences": "Préférences du lecteur",
|
||||
"Always loop: ": "Lire en boucle : ",
|
||||
"Autoplay: ": "Lire automatiquement : ",
|
||||
"Play next by default: ": "Jouer suirvante par défaut : ",
|
||||
"Autoplay next video: ": "Lire automatiquement la vidéo suivante : ",
|
||||
"Autoplay: ": "Lancer la lecture automatiquement : ",
|
||||
"Play next by default: ": "Lire les vidéos suivantes par défaut : ",
|
||||
"Autoplay next video: ": "Lancer la lecture automatiquement pour la vidéo suivant la vidéo regardée : ",
|
||||
"Listen by default: ": "Audio uniquement : ",
|
||||
"Proxy videos: ": "Charger les vidéos à travers un proxy ? ",
|
||||
"Proxy videos: ": "Charger les vidéos à travers un proxy : ",
|
||||
"Default speed: ": "Vitesse par défaut : ",
|
||||
"Preferred video quality: ": "Qualité vidéo souhaitée : ",
|
||||
"Player volume: ": "Volume du lecteur : ",
|
||||
@@ -64,16 +65,20 @@
|
||||
"youtube": "YouTube",
|
||||
"reddit": "Reddit",
|
||||
"Default captions: ": "Sous-titres par défaut : ",
|
||||
"Fallback captions: ": "Sous-titres de repli : ",
|
||||
"Show related videos: ": "Voir les vidéos liées ? ",
|
||||
"Show annotations by default: ": "Voir les annotations par défaut ? ",
|
||||
"Fallback captions: ": "Sous-titres alternatifs : ",
|
||||
"Show related videos: ": "Voir les vidéos liées : ",
|
||||
"Show annotations by default: ": "Afficher les annotations par défaut : ",
|
||||
"Visual preferences": "Préférences du site",
|
||||
"Dark mode: ": "Mode Sombre : ",
|
||||
"Thin mode: ": "Mode Simplifié : ",
|
||||
"Player style: ": "Style du lecteur : ",
|
||||
"Dark mode: ": "Mode sombre : ",
|
||||
"Theme: ": "Thème : ",
|
||||
"dark": "sombre",
|
||||
"light": "clair",
|
||||
"Thin mode: ": "Mode léger : ",
|
||||
"Subscription preferences": "Préférences de la page d'abonnements",
|
||||
"Show annotations by default for subscribed channels: ": "Voir les annotations par défaut sur les chaînes suivies ? ",
|
||||
"Show annotations by default for subscribed channels: ": "Afficher les annotations par défaut sur les chaînes auxquelles vous êtes abonnés : ",
|
||||
"Redirect homepage to feed: ": "Rediriger la page d'accueil vers la page d'abonnements : ",
|
||||
"Number of videos shown in feed: ": "Nombre de vidéos montrées dans la page d'abonnements : ",
|
||||
"Number of videos shown in feed: ": "Nombre de vidéos affichées dans la page d'abonnements : ",
|
||||
"Sort videos by: ": "Trier les vidéos par : ",
|
||||
"published": "date de publication",
|
||||
"published - reverse": "date de publication - inversé",
|
||||
@@ -81,13 +86,13 @@
|
||||
"alphabetically - reverse": "alphabétiquement - inversé",
|
||||
"channel name": "nom de la chaîne",
|
||||
"channel name - reverse": "nom de la chaîne - inversé",
|
||||
"Only show latest video from channel: ": "Afficher uniquement la dernière vidéo de la chaîne : ",
|
||||
"Only show latest unwatched video from channel: ": "Afficher uniquement la dernière vidéo de la chaîne non regardée : ",
|
||||
"Only show unwatched: ": "Afficher uniquement les vidéos non regardées : ",
|
||||
"Only show latest video from channel: ": "Afficher uniquement la dernière vidéo des chaînes auxquelles vous êtes abonnés : ",
|
||||
"Only show latest unwatched video from channel: ": "Afficher uniquement la dernière vidéo des chaînes auxquelles vous êtes abonnés qui n'a pas été regardée : ",
|
||||
"Only show unwatched: ": "Afficher uniquement les vidéos qui n'ont pas été regardées : ",
|
||||
"Only show notifications (if there are any): ": "Afficher uniquement les notifications (s'il y en a) : ",
|
||||
"Enable web notifications": "",
|
||||
"`x` uploaded a video": "",
|
||||
"`x` is live": "",
|
||||
"Enable web notifications": "Activer les notifications web",
|
||||
"`x` uploaded a video": "`x` a partagé(e) une vidéo",
|
||||
"`x` is live": "`x` est en direct",
|
||||
"Data preferences": "Préférences liées aux données",
|
||||
"Clear watch history": "Supprimer l'historique des vidéos regardées",
|
||||
"Import/export data": "Importer/exporter les données",
|
||||
@@ -96,14 +101,14 @@
|
||||
"Manage tokens": "Gérer les tokens",
|
||||
"Watch history": "Historique de visionnage",
|
||||
"Delete account": "Supprimer votre compte",
|
||||
"Administrator preferences": "Préferences d'Administrateur",
|
||||
"Administrator preferences": "Préferences d'Administration",
|
||||
"Default homepage: ": "Page d'accueil par défaut : ",
|
||||
"Feed menu: ": "Menu des Flux : ",
|
||||
"Top enabled: ": "Top activé ? ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA activé ? ",
|
||||
"Login enabled: ": "Connexion activé ? ",
|
||||
"Registration enabled: ": "Inscription activée ? ",
|
||||
"Report statistics: ": "Télémétrie activé ? ",
|
||||
"Feed menu: ": "Préferences des abonnements : ",
|
||||
"Top enabled: ": "Top activé : ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA activé : ",
|
||||
"Login enabled: ": "Connexion activé : ",
|
||||
"Registration enabled: ": "Inscription activée : ",
|
||||
"Report statistics: ": "Télémétrie activé : ",
|
||||
"Save preferences": "Enregistrer les préférences",
|
||||
"Subscription manager": "Gestionnaire d'abonnement",
|
||||
"Token manager": "Gestionnaire de tokens",
|
||||
@@ -112,32 +117,42 @@
|
||||
"`x` tokens": "`x` tokens",
|
||||
"Import/export": "Importer/Exporter",
|
||||
"unsubscribe": "se désabonner",
|
||||
"revoke": "annuler",
|
||||
"revoke": "révoquer",
|
||||
"Subscriptions": "Abonnements",
|
||||
"`x` unseen notifications": "`x` notifications non vues",
|
||||
"search": "Rechercher",
|
||||
"search": "rechercher",
|
||||
"Log out": "Déconnexion",
|
||||
"Released under the AGPLv3 by Omar Roth.": "Publié sous licence AGPLv3 par Omar Roth.",
|
||||
"Source available here.": "Code Source.",
|
||||
"View JavaScript license information.": "Voir les informations des licences JavaScript.",
|
||||
"View privacy policy.": "Voir la politique de confidentialité.",
|
||||
"Source available here.": "Code source disponible ici.",
|
||||
"View JavaScript license information.": "Informations des licences JavaScript.",
|
||||
"View privacy policy.": "Politique de confidentialité.",
|
||||
"Trending": "Tendances",
|
||||
"Public": "Publique",
|
||||
"Unlisted": "Non répertoriée",
|
||||
"Private": "Privée",
|
||||
"View all playlists": "Voir toutes vos playlists",
|
||||
"Updated `x` ago": "Dernière mise à jour il y a `x`",
|
||||
"Delete playlist `x`?": "Êtes-vous sûr de vouloir supprimer la liste de lecture ?",
|
||||
"Delete playlist": "Supprimer la liste de lecture",
|
||||
"Create playlist": "Créer une liste de lecture",
|
||||
"Title": "Titre",
|
||||
"Playlist privacy": "Paramètres de confidentialité de la liste de lecture",
|
||||
"Editing playlist `x`": "Liste de lecture modifier le `x`",
|
||||
"Watch on YouTube": "Voir la vidéo sur Youtube",
|
||||
"Hide annotations": "Masquer les annotations",
|
||||
"Show annotations": "Afficher les annotations",
|
||||
"Genre: ": "Genre : ",
|
||||
"License: ": "Licence : ",
|
||||
"Family friendly? ": "Tout Public ? ",
|
||||
"Family friendly? ": "Vidéo tout public ? ",
|
||||
"Wilson score: ": "Score de Wilson : ",
|
||||
"Engagement: ": "Poucentage de spectateur aillant aimé Like ou Dislike la vidéo : ",
|
||||
"Whitelisted regions: ": "Régions en liste blanche : ",
|
||||
"Engagement: ": "Pourcentage de spectateur aillant appuyé sur \"J'aime\" ou \"J'aime Pas\" : ",
|
||||
"Whitelisted regions: ": "Régions sur liste blanche : ",
|
||||
"Blacklisted regions: ": "Régions sur liste noire : ",
|
||||
"Shared `x`": "Ajoutée le `x`",
|
||||
"`x` views": "`x` vues",
|
||||
"Premieres in `x`": "Première dans `x`",
|
||||
"Premieres `x`": "",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Il semblerait que JavaScript soit désactivé. Cliquez ici pour voir les commentaires sans. Gardez à l'esprit que le chargement peut prendre plus de temps.",
|
||||
"Premieres `x`": "Première le `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Il semblerait que JavaScript soit désactivé. Cliquez ici pour voir les commentaires, mais gardez à l'esprit que le chargement peut prendre plus de temps.",
|
||||
"View YouTube comments": "Voir les commentaires YouTube",
|
||||
"View more comments on Reddit": "Voir plus de commentaires sur Reddit",
|
||||
"View `x` comments": "Voir `x` commentaires",
|
||||
@@ -145,8 +160,8 @@
|
||||
"Hide replies": "Masquer les réponses",
|
||||
"Show replies": "Afficher les réponses",
|
||||
"Incorrect password": "Mot de passe incorrect",
|
||||
"Quota exceeded, try again in a few hours": "Nombre de tentative de connexion dépassé, réessayez dans quelques heures",
|
||||
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Si vous ne parvenez pas à vous connecter, assurez-vous que l'authentification à deux facteurs (Authenticator ou SMS) est activée.",
|
||||
"Quota exceeded, try again in a few hours": "Nombre de tentatives de connexion dépassé, réessayez dans quelques heures",
|
||||
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Impossible de se connecter, si après plusieurs tentative vous ne parvenez toujours pas à vous connecter, assurez-vous que l'authentification à deux facteurs (Authenticator ou SMS) est activée.",
|
||||
"Invalid TFA code": "Code d'authentification à deux facteurs invalide",
|
||||
"Login failed. This may be because two-factor authentication is not turned on for your account.": "La connexion a échoué. Cela peut être dû au fait que l'authentification à deux facteurs n'est pas activée sur votre compte.",
|
||||
"Wrong answer": "Réponse invalide",
|
||||
@@ -167,19 +182,19 @@
|
||||
"Could not fetch comments": "Impossible de charger les commentaires",
|
||||
"View `x` replies": "Voir `x` réponses",
|
||||
"`x` ago": "il y a `x`",
|
||||
"Load more": "Charger plus",
|
||||
"Load more": "Voir plus",
|
||||
"`x` points": "`x` points",
|
||||
"Could not create mix.": "Impossible de charger cette liste de lecture.",
|
||||
"Empty playlist": "La liste de lecture est vide",
|
||||
"Not a playlist.": "Liste de lecture invalide.",
|
||||
"Not a playlist.": "La liste de lecture est invalide.",
|
||||
"Playlist does not exist.": "La liste de lecture n'existe pas.",
|
||||
"Could not pull trending pages.": "Impossible de charger les pages de tendances.",
|
||||
"Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field",
|
||||
"Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field",
|
||||
"Erroneous challenge": "Erroneous challenge",
|
||||
"Erroneous token": "Erroneous token",
|
||||
"No such user": "No such user",
|
||||
"Token is expired, please try again": "Token is expired, please try again",
|
||||
"Hidden field \"challenge\" is a required field": "Le champ masqué \"challenge\" est un champ obligatoire",
|
||||
"Hidden field \"token\" is a required field": "Le champ caché \"token\" est requis",
|
||||
"Erroneous challenge": "Challenge invalide",
|
||||
"Erroneous token": "Token invalide",
|
||||
"No such user": "Cet utilisateur n'existe pas",
|
||||
"Token is expired, please try again": "Le token est expiré, veuillez réessayer",
|
||||
"English": "Anglais",
|
||||
"English (auto-generated)": "Anglais (générés automatiquement)",
|
||||
"Afrikaans": "Afrikaans",
|
||||
@@ -293,7 +308,7 @@
|
||||
"`x` hours": "`x` heures",
|
||||
"`x` minutes": "`x` minutes",
|
||||
"`x` seconds": "`x` secondes",
|
||||
"Fallback comments: ": "Fallback comments: ",
|
||||
"Fallback comments: ": "Commentaires alternatifs : ",
|
||||
"Popular": "Populaire",
|
||||
"Top": "Top",
|
||||
"About": "À propos",
|
||||
@@ -309,13 +324,13 @@
|
||||
"Download as: ": "Télécharger en : ",
|
||||
"%A %B %-d, %Y": "%A %-d %B %Y",
|
||||
"(edited)": "(modifié)",
|
||||
"YouTube comment permalink": "Lien YouTube permanent vers le commentaire",
|
||||
"permalink": "",
|
||||
"YouTube comment permalink": "Lien permanent vers le commentaire sur YouTube",
|
||||
"permalink": "Lien permanent",
|
||||
"`x` marked it with a ❤": "`x` l'a marqué d'un ❤",
|
||||
"Audio mode": "Mode Audio",
|
||||
"Video mode": "Mode Vidéo",
|
||||
"Audio mode": "Mode audio",
|
||||
"Video mode": "Mode vidéo",
|
||||
"Videos": "Vidéos",
|
||||
"Playlists": "Liste de lecture",
|
||||
"Community": "",
|
||||
"Playlists": "Listes de lecture",
|
||||
"Community": "Communauté",
|
||||
"Current version: ": "Version actuelle : "
|
||||
}
|
||||
335
locales/hu-HU.json
Normal file
335
locales/hu-HU.json
Normal file
@@ -0,0 +1,335 @@
|
||||
{
|
||||
"`x` subscribers": "`x` feliratkozó",
|
||||
"`x` videos": "`x` videó",
|
||||
"`x` playlists": "`x` playlist",
|
||||
"LIVE": "ÉLŐ",
|
||||
"Shared `x` ago": "`x` óta megosztva",
|
||||
"Unsubscribe": "Leiratkozás",
|
||||
"Subscribe": "Feliratkozás",
|
||||
"View channel on YouTube": "Csatokrna megtekintése a YouTube-on",
|
||||
"View playlist on YouTube": "Playlist megtekintése a YouTube-on",
|
||||
"newest": "legújabb",
|
||||
"oldest": "legrégibb",
|
||||
"popular": "népszerű",
|
||||
"last": "utolsó",
|
||||
"Next page": "Következő oldal",
|
||||
"Previous page": "Előző oldal",
|
||||
"Clear watch history?": "Megtekintési napló törlése?",
|
||||
"New password": "Új jelszó",
|
||||
"New passwords must match": "Az új jelszavaknak egyezniük kell",
|
||||
"Cannot change password for Google accounts": "Google fiók jelszavát nem lehet cserélni",
|
||||
"Authorize token?": "Token felhatalmazása?",
|
||||
"Authorize token for `x`?": "Token felhatalmazása `x`-ra?",
|
||||
"Yes": "Igen",
|
||||
"No": "Nem",
|
||||
"Import and Export Data": "Adatok importálása és exportálása",
|
||||
"Import": "Importálás",
|
||||
"Import Invidious data": "Invidious adatainak importálása",
|
||||
"Import YouTube subscriptions": "YouTube feliratkozások importálása",
|
||||
"Import FreeTube subscriptions (.db)": "FreeTube feliratkozások importálása (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "NewPipe feliratkozások importálása (.json)",
|
||||
"Import NewPipe data (.zip)": "NewPipe adatainak importálása (.zip)",
|
||||
"Export": "Exportálás",
|
||||
"Export subscriptions as OPML": "Feliratkozások exportálása OPML-ként",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Feliratkozások exportálása OPML-ként (NewPipe és FreeTube számára)",
|
||||
"Export data as JSON": "Adat exportálása JSON-ként",
|
||||
"Delete account?": "Fiók törlése?",
|
||||
"History": "Megtekintési napló",
|
||||
"An alternative front-end to YouTube": "Alternatív YouTube front-end",
|
||||
"JavaScript license information": "JavaScript licensz információ",
|
||||
"source": "forrás",
|
||||
"Log in": "Bejelentkezés",
|
||||
"Log in/register": "Bejelentkezés/Regisztráció",
|
||||
"Log in with Google": "Bejelentkezés Google fiókkal",
|
||||
"User ID": "Felhasználó-ID",
|
||||
"Password": "Jelszó",
|
||||
"Time (h:mm:ss):": "Idő (h:mm:ss):",
|
||||
"Text CAPTCHA": "Szöveg-CAPTCHA",
|
||||
"Image CAPTCHA": "Kép-CAPTCHA",
|
||||
"Sign In": "Bejelentkezés",
|
||||
"Register": "Regisztráció",
|
||||
"E-mail": "E-mail",
|
||||
"Google verification code": "Google verifikációs kód",
|
||||
"Preferences": "Beállítások",
|
||||
"Player preferences": "Lejátszó beállítások",
|
||||
"Always loop: ": "Mindig loop-ol: ",
|
||||
"Autoplay: ": "Automatikus lejátszás: ",
|
||||
"Play next by default: ": "Következő lejátszása alapértelmezésben: ",
|
||||
"Autoplay next video: ": "Következő automatikus lejátszása: ",
|
||||
"Listen by default: ": "Hallgatás alapértelmezésben: ",
|
||||
"Proxy videos: ": "Proxy videók: ",
|
||||
"Default speed: ": "Alapértelmezett sebesség: ",
|
||||
"Preferred video quality: ": "Kívánt video minőség: ",
|
||||
"Player volume: ": "Hangerő: ",
|
||||
"Default comments: ": "Alapértelmezett kommentek: ",
|
||||
"youtube": "YouTube",
|
||||
"reddit": "Reddit",
|
||||
"Default captions: ": "Alapértelmezett feliratok: ",
|
||||
"Fallback captions: ": "Másodlagos feliratok: ",
|
||||
"Show related videos: ": "Kapcsolódó videók mutatása: ",
|
||||
"Show annotations by default: ": "Annotációk mutatása alapértelmetésben: ",
|
||||
"Visual preferences": "Vizuális preferenciák",
|
||||
"Player style: ": "Lejátszó stílusa: ",
|
||||
"Dark mode: ": "Sötét mód: ",
|
||||
"Theme: ": "Téma: ",
|
||||
"dark": "Sötét",
|
||||
"light": "Világos",
|
||||
"Thin mode: ": "Vékony mód: ",
|
||||
"Subscription preferences": "Feliratkozási beállítások",
|
||||
"Show annotations by default for subscribed channels: ": "Annotációk mutatása alapértelmezésben feliratkozott csatornák esetében: ",
|
||||
"Redirect homepage to feed: ": "Kezdő oldal átirányitása a feed-re: ",
|
||||
"Number of videos shown in feed: ": "Feed-ben mutatott videók száma: ",
|
||||
"Sort videos by: ": "Videók sorrendje: ",
|
||||
"published": "közzétéve",
|
||||
"published - reverse": "közzétéve (ford.)",
|
||||
"alphabetically": "ABC sorrend",
|
||||
"alphabetically - reverse": "ABC sorrend (ford.)",
|
||||
"channel name": "csatorna neve",
|
||||
"channel name - reverse": "csatorna neve (ford.)",
|
||||
"Only show latest video from channel: ": "Csak a legutolsó videó mutatása a csatornából: ",
|
||||
"Only show latest unwatched video from channel: ": "Csak a legutolsó nem megtekintett videó mutatása a csatornából: ",
|
||||
"Only show unwatched: ": "Csak a nem megtekintettek mutatása: ",
|
||||
"Only show notifications (if there are any): ": "Csak értesítések mutatása (ha van): ",
|
||||
"Enable web notifications": "Web értesítések bekapcsolása",
|
||||
"`x` uploaded a video": "`x` feltöltött egy videót",
|
||||
"`x` is live": "`x` élő",
|
||||
"Data preferences": "Adat beállítások",
|
||||
"Clear watch history": "Megtekintési napló törlése",
|
||||
"Import/export data": "Adat Import/Export",
|
||||
"Change password": "Jelszócsere",
|
||||
"Manage subscriptions": "Feliratkozások kezelése",
|
||||
"Manage tokens": "Tokenek kezelése",
|
||||
"Watch history": "Megtekintési napló",
|
||||
"Delete account": "Fiók törlése",
|
||||
"Administrator preferences": "Adminisztrátor beállítások",
|
||||
"Default homepage: ": "Alapértelmezett honlap: ",
|
||||
"Feed menu: ": "Feed menü: ",
|
||||
"Top enabled: ": "Top lista engedélyezve: ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA engedélyezve: ",
|
||||
"Login enabled: ": "Bejelentkezés engedélyezve: ",
|
||||
"Registration enabled: ": "Registztráció engedélyezve: ",
|
||||
"Report statistics: ": "Statisztikák gyűjtése: ",
|
||||
"Save preferences": "Beállítások mentése",
|
||||
"Subscription manager": "Feliratkozás kezelő",
|
||||
"Token manager": "Token kezelő",
|
||||
"Token": "Token",
|
||||
"`x` subscriptions": "`x` feliratkozás",
|
||||
"`x` tokens": "`x` token",
|
||||
"Import/export": "Import/export",
|
||||
"unsubscribe": "leiratkozás",
|
||||
"revoke": "visszavonás",
|
||||
"Subscriptions": "Feliratkozások",
|
||||
"`x` unseen notifications": "`x` kimaradt érdesítés",
|
||||
"search": "keresés",
|
||||
"Log out": "Kijelentkezés",
|
||||
"Released under the AGPLv3 by Omar Roth.": "Omar Roth által release-elve AGPLv3 licensz alatt.",
|
||||
"Source available here.": "Forrás elérhető itt.",
|
||||
"View JavaScript license information.": "JavaScript licensz inforkációk megtekintése.",
|
||||
"View privacy policy.": "Adatvédelem irányelv megtekintése.",
|
||||
"Trending": "Trending",
|
||||
"Public": "Nyilvános",
|
||||
"Unlisted": "Nem nyilvános",
|
||||
"Private": "Privát",
|
||||
"View all playlists": "Minden playlist megtekintése",
|
||||
"Updated `x` ago": "Frissitve `x`",
|
||||
"Delete playlist `x`?": "`x` playlist törlése?",
|
||||
"Delete playlist": "Playlist törlése",
|
||||
"Create playlist": "Playlist létrehozása",
|
||||
"Title": "Címe",
|
||||
"Playlist privacy": "Playlist láthatósága",
|
||||
"Editing playlist `x`": "`x` playlist szerkesztése",
|
||||
"Watch on YouTube": "Megtekintés a YouTube-on",
|
||||
"Hide annotations": "Annotációk elrejtése",
|
||||
"Show annotations": "Annotációk mutatása",
|
||||
"Genre: ": "Zsáner: ",
|
||||
"License: ": "Licensz: ",
|
||||
"Family friendly? ": "Családbarát? ",
|
||||
"Wilson score: ": "Wilson-ponstszém: ",
|
||||
"Engagement: ": "Engagement: ",
|
||||
"Whitelisted regions: ": "Engedélyezett régiók: ",
|
||||
"Blacklisted regions: ": "Tiltott régiók: ",
|
||||
"Shared `x`": "Megosztva `x`",
|
||||
"`x` views": "`x` megtekintés",
|
||||
"Premieres in `x`": "Premier `x`",
|
||||
"Premieres `x`": "Premier `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.",
|
||||
"View YouTube comments": "YouTube kommentek megtekintése",
|
||||
"View more comments on Reddit": "További Reddit kommentek megtekintése",
|
||||
"View `x` comments": "`x` komment megtekintése",
|
||||
"View Reddit comments": "Reddit kommentek megtekintése",
|
||||
"Hide replies": "Válaszok elrejtése",
|
||||
"Show replies": "Válaszok mutatása",
|
||||
"Incorrect password": "Helytelen jelszó",
|
||||
"Quota exceeded, try again in a few hours": "Kvóta túllépve, próbálkozz pár órával később",
|
||||
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Sikertelen belépés, győződj meg róla hogy a 2FA (Authenticator vagy SMS) engedélyezve van.",
|
||||
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Sikertelen belépés, győződj meg róla hogy a 2FA (Authenticator vagy SMS) engedélyezve van.",
|
||||
"Wrong answer": "Rossz válasz",
|
||||
"Erroneous CAPTCHA": "Hibás CAPTCHA",
|
||||
"CAPTCHA is a required field": "A CAPTCHA kötelező",
|
||||
"User ID is a required field": "A felhasználó-ID kötelező",
|
||||
"Password is a required field": "A jelszó kötelező",
|
||||
"Wrong username or password": "Rossz felhasználónév vagy jelszó",
|
||||
"Please sign in using 'Log in with Google'": "Kérem, jelentkezzen be a \"Bejelentkezés Google-el\"",
|
||||
"Password cannot be empty": "A jelszó nem lehet üres",
|
||||
"Password cannot be longer than 55 characters": "A jelszó nem lehet hosszabb 55 betűnél",
|
||||
"Please log in": "Kérem lépjen be",
|
||||
"Invidious Private Feed for `x`": "`x` Invidious privát feed-je",
|
||||
"channel:`x`": "`x` csatorna",
|
||||
"Deleted or invalid channel": "Törölt vagy nemlétező csatorna",
|
||||
"This channel does not exist.": "Ez a csatorna nem létezik.",
|
||||
"Could not get channel info.": "Nem megszerezhető a csatorna információ.",
|
||||
"Could not fetch comments": "Nem megszerezhetőek a kommentek",
|
||||
"View `x` replies": "`x` válasz megtekintése",
|
||||
"`x` ago": "`x` óta",
|
||||
"Load more": "További betöltése",
|
||||
"`x` points": "`x` pont",
|
||||
"Could not create mix.": "Nem tudok mix-et készíteni.",
|
||||
"Empty playlist": "Üres playlist",
|
||||
"Not a playlist.": "Nem playlist.",
|
||||
"Playlist does not exist.": "Nem létező playlist.",
|
||||
"Could not pull trending pages.": "Nem tudom letölteni a trendek adatait.",
|
||||
"Hidden field \"challenge\" is a required field": "A rejtett \"challenge\" mező kötelező",
|
||||
"Hidden field \"token\" is a required field": "A rejtett \"token\" mező kötelező",
|
||||
"Erroneous challenge": "Hibás challenge",
|
||||
"Erroneous token": "Hibás token",
|
||||
"No such user": "Nincs ilyen felhasználó",
|
||||
"Token is expired, please try again": "Lejárt token, kérem próbáld újra",
|
||||
"English": "",
|
||||
"English (auto-generated)": "English (auto-genererat)",
|
||||
"Afrikaans": "",
|
||||
"Albanian": "",
|
||||
"Amharic": "",
|
||||
"Arabic": "",
|
||||
"Armenian": "",
|
||||
"Azerbaijani": "",
|
||||
"Bangla": "",
|
||||
"Basque": "",
|
||||
"Belarusian": "",
|
||||
"Bosnian": "",
|
||||
"Bulgarian": "",
|
||||
"Burmese": "",
|
||||
"Catalan": "",
|
||||
"Cebuano": "",
|
||||
"Chinese (Simplified)": "",
|
||||
"Chinese (Traditional)": "",
|
||||
"Corsican": "",
|
||||
"Croatian": "",
|
||||
"Czech": "",
|
||||
"Danish": "",
|
||||
"Dutch": "",
|
||||
"Esperanto": "",
|
||||
"Estonian": "",
|
||||
"Filipino": "",
|
||||
"Finnish": "",
|
||||
"French": "",
|
||||
"Galician": "",
|
||||
"Georgian": "",
|
||||
"German": "",
|
||||
"Greek": "",
|
||||
"Gujarati": "",
|
||||
"Haitian Creole": "",
|
||||
"Hausa": "",
|
||||
"Hawaiian": "",
|
||||
"Hebrew": "",
|
||||
"Hindi": "",
|
||||
"Hmong": "",
|
||||
"Hungarian": "",
|
||||
"Icelandic": "",
|
||||
"Igbo": "",
|
||||
"Indonesian": "",
|
||||
"Irish": "",
|
||||
"Italian": "",
|
||||
"Japanese": "",
|
||||
"Javanese": "",
|
||||
"Kannada": "",
|
||||
"Kazakh": "",
|
||||
"Khmer": "",
|
||||
"Korean": "",
|
||||
"Kurdish": "",
|
||||
"Kyrgyz": "",
|
||||
"Lao": "",
|
||||
"Latin": "",
|
||||
"Latvian": "",
|
||||
"Lithuanian": "",
|
||||
"Luxembourgish": "",
|
||||
"Macedonian": "",
|
||||
"Malagasy": "",
|
||||
"Malay": "",
|
||||
"Malayalam": "",
|
||||
"Maltese": "",
|
||||
"Maori": "",
|
||||
"Marathi": "",
|
||||
"Mongolian": "",
|
||||
"Nepali": "",
|
||||
"Norwegian Bokmål": "",
|
||||
"Nyanja": "",
|
||||
"Pashto": "",
|
||||
"Persian": "",
|
||||
"Polish": "",
|
||||
"Portuguese": "",
|
||||
"Punjabi": "",
|
||||
"Romanian": "",
|
||||
"Russian": "",
|
||||
"Samoan": "",
|
||||
"Scottish Gaelic": "",
|
||||
"Serbian": "",
|
||||
"Shona": "",
|
||||
"Sindhi": "",
|
||||
"Sinhala": "",
|
||||
"Slovak": "",
|
||||
"Slovenian": "",
|
||||
"Somali": "",
|
||||
"Southern Sotho": "",
|
||||
"Spanish": "",
|
||||
"Spanish (Latin America)": "",
|
||||
"Sundanese": "",
|
||||
"Swahili": "",
|
||||
"Swedish": "",
|
||||
"Tajik": "",
|
||||
"Tamil": "",
|
||||
"Telugu": "",
|
||||
"Thai": "",
|
||||
"Turkish": "",
|
||||
"Ukrainian": "",
|
||||
"Urdu": "",
|
||||
"Uzbek": "",
|
||||
"Vietnamese": "",
|
||||
"Welsh": "",
|
||||
"Western Frisian": "",
|
||||
"Xhosa": "",
|
||||
"Yiddish": "",
|
||||
"Yoruba": "",
|
||||
"Zulu": "",
|
||||
"`x` years": "`x` év",
|
||||
"`x` months": "`x` hónap",
|
||||
"`x` weeks": "`x` hét",
|
||||
"`x` days": "`x` nap",
|
||||
"`x` hours": "`x` óra",
|
||||
"`x` minutes": "`x` perc",
|
||||
"`x` seconds": "`x` másodperc",
|
||||
"Fallback comments: ": "Másodlagos kommentek: ",
|
||||
"Popular": "Népszerű",
|
||||
"Top": "Top",
|
||||
"About": "Leírás",
|
||||
"Rating: ": "Besorolás: ",
|
||||
"Language: ": "Nyelv: ",
|
||||
"View as playlist": "Megtekintés playlist-ként",
|
||||
"Default": "Alapértelmezett",
|
||||
"Music": "Zene",
|
||||
"Gaming": "Játékok",
|
||||
"News": "Hírek",
|
||||
"Movies": "Filmek",
|
||||
"Download": "Letöltés",
|
||||
"Download as: ": "Letöltés mint: ",
|
||||
"%A %B %-d, %Y": "",
|
||||
"(edited)": "(szerkesztve)",
|
||||
"YouTube comment permalink": "YouTube komment permalink",
|
||||
"permalink": "permalink",
|
||||
"`x` marked it with a ❤": "`x` jelölte ❤-vel",
|
||||
"Audio mode": "Audio mód",
|
||||
"Video mode": "Video mód",
|
||||
"Videos": "Videók",
|
||||
"Playlists": "Playlistek",
|
||||
"Community": "Közösség",
|
||||
"Current version: ": "Jelenlegi verzió: "
|
||||
}
|
||||
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"`x` subscribers": "",
|
||||
"`x` videos": "",
|
||||
"`x` playlists": "",
|
||||
"`x` subscribers.": "`x` áskrifandar.",
|
||||
"`x` videos.": "`x` myndbönd.",
|
||||
"LIVE": "BEINT",
|
||||
@@ -9,7 +12,7 @@
|
||||
"View playlist on YouTube": "Skoða spilunarlisti á YouTube",
|
||||
"newest": "nýjasta",
|
||||
"oldest": "elsta",
|
||||
"popular": "vinsællt",
|
||||
"popular": "vinsælt",
|
||||
"last": "síðast",
|
||||
"Next page": "Næsta síða",
|
||||
"Previous page": "Fyrri síða",
|
||||
@@ -59,7 +62,7 @@
|
||||
"Proxy videos: ": "Proxy myndbönd? ",
|
||||
"Default speed: ": "Sjálfgefinn hraði: ",
|
||||
"Preferred video quality: ": "Æskilegt myndbands gæði: ",
|
||||
"Player volume: ": "Spilara bindi: ",
|
||||
"Player volume: ": "Spilara hljóðstyrkur: ",
|
||||
"Default comments: ": "Sjálfgefin ummæli: ",
|
||||
"youtube": "youtube",
|
||||
"reddit": "reddit",
|
||||
@@ -68,7 +71,11 @@
|
||||
"Show related videos: ": "Sýna tengd myndbönd? ",
|
||||
"Show annotations by default: ": "Á að sýna glósur sjálfgefið? ",
|
||||
"Visual preferences": "Sjónrænar stillingar",
|
||||
"Player style: ": "",
|
||||
"Dark mode: ": "Myrkur ham: ",
|
||||
"Theme: ": "",
|
||||
"dark": "",
|
||||
"light": "",
|
||||
"Thin mode: ": "Þunnt ham: ",
|
||||
"Subscription preferences": "Áskriftarstillingar",
|
||||
"Show annotations by default for subscribed channels: ": "Á að sýna glósur sjálfgefið fyrir áskriftarrásir? ",
|
||||
@@ -106,10 +113,13 @@
|
||||
"Report statistics: ": "Skrá talnagögn? ",
|
||||
"Save preferences": "Vista stillingar",
|
||||
"Subscription manager": "Áskriftarstjóri",
|
||||
"`x` subscriptions": "",
|
||||
"`x` tokens": "",
|
||||
"Token manager": "Táknstjóri",
|
||||
"Token": "Tákn",
|
||||
"`x` subscriptions.": "`x` áskriftir.",
|
||||
"`x` tokens.": "`x` tákn.",
|
||||
"`x` unseen notifications": "",
|
||||
"Import/export": "Flytja inn/út",
|
||||
"unsubscribe": "afskrá",
|
||||
"revoke": "afturkalla",
|
||||
@@ -122,13 +132,24 @@
|
||||
"View JavaScript license information.": "Skoða JavaScript leyfisupplýsingar.",
|
||||
"View privacy policy.": "Skoða meðferð persónuupplýsinga.",
|
||||
"Trending": "Vinsælt",
|
||||
"Public": "",
|
||||
"Unlisted": "Óskráð",
|
||||
"Private": "",
|
||||
"View all playlists": "",
|
||||
"Updated `x` ago": "",
|
||||
"Delete playlist `x`?": "",
|
||||
"Delete playlist": "",
|
||||
"Create playlist": "",
|
||||
"Title": "",
|
||||
"Playlist privacy": "",
|
||||
"Editing playlist `x`": "",
|
||||
"Watch on YouTube": "Horfa á YouTube",
|
||||
"Hide annotations": "Fela glósur",
|
||||
"Show annotations": "Sýna glósur",
|
||||
"Genre: ": "Tegund: ",
|
||||
"License: ": "Notkunarleyfi: ",
|
||||
"Family friendly? ": "Fjölskylduvænt? ",
|
||||
"`x` views": "",
|
||||
"Wilson score: ": "Wilson stig: ",
|
||||
"Engagement: ": "Þátttöku: ",
|
||||
"Whitelisted regions: ": "Svæði á hvítum lista: ",
|
||||
@@ -159,21 +180,23 @@
|
||||
"Password cannot be empty": "Lykilorð má ekki vera autt",
|
||||
"Password cannot be longer than 55 characters": "Lykilorð má ekki vera lengra en 55 stafir",
|
||||
"Please log in": "Vinsamlegast skráðu þig inn",
|
||||
"View `x` replies": "",
|
||||
"Invidious Private Feed for `x`": "Invidious Persónulegur Straumur fyrir `x`",
|
||||
"channel:`x`": "rás:`x`",
|
||||
"`x` points": "",
|
||||
"Deleted or invalid channel": "Eytt eða ógild rás",
|
||||
"This channel does not exist.": "Þessi rás er ekki til.",
|
||||
"Could not get channel info.": "Ekki tókst að fá rásarupplýsingar.",
|
||||
"Could not fetch comments": "Ekki tókst að sækja ummæli",
|
||||
"View `x` replies.": "Skoða `x` svör.",
|
||||
"`x` ago": "' x ' síðan",
|
||||
"`x` ago": "`x` síðan",
|
||||
"Load more": "Hlaða meira",
|
||||
"`x` points.": "`x` stig.",
|
||||
"Could not create mix.": "Ekki tókst að búa til blöndu.",
|
||||
"Empty playlist": "Tómur spilunarlisti",
|
||||
"Not a playlist.": "Ekki spilunarlisti.",
|
||||
"Playlist does not exist.": "Spilunarlisti er ekki til.",
|
||||
"Could not pull trending pages.": "Ekki tókst að draga vinsællar síður.",
|
||||
"Could not pull trending pages.": "Ekki tókst að draga vinsælar síður.",
|
||||
"Hidden field \"challenge\" is a required field": "Falinn reitur \"áskorun\" er nauðsynlegur reitur",
|
||||
"Hidden field \"token\" is a required field": "Falinn reitur \"tákn\" er nauðsynlegur reitur",
|
||||
"Erroneous challenge": "Röng áskorun",
|
||||
@@ -278,6 +301,13 @@
|
||||
"Turkish": "Tyrkneska",
|
||||
"Ukrainian": "Úkraníska",
|
||||
"Urdu": "Úrdú",
|
||||
"`x` years": "",
|
||||
"`x` months": "",
|
||||
"`x` weeks": "",
|
||||
"`x` days": "",
|
||||
"`x` hours": "",
|
||||
"`x` minutes": "",
|
||||
"`x` seconds": "",
|
||||
"Uzbek": "Úsbekíska",
|
||||
"Vietnamese": "Víetnamska",
|
||||
"Welsh": "Velska",
|
||||
@@ -286,20 +316,22 @@
|
||||
"Yiddish": "Jiddíska",
|
||||
"Yoruba": "Jórúba",
|
||||
"Zulu": "Zúlú",
|
||||
"`x` years.": "' x ' ár.",
|
||||
"`x` months.": "' x ' mánuði.",
|
||||
"`x` years.": "`x` ár.",
|
||||
"`x` months.": "`x` mánuði.",
|
||||
"`x` weeks.": "`x` vikur.",
|
||||
"`x` days.": "' x ' dagar.",
|
||||
"`x` days.": "`x` dagar.",
|
||||
"`x` hours.": "`x` klukkustundir.",
|
||||
"`x` minutes.": "`x` mínútur.",
|
||||
"`x` seconds.": "`x` sekúndur.",
|
||||
"Fallback comments: ": "Vara ummæli: ",
|
||||
"Popular": "Vinsællt",
|
||||
"Popular": "Vinsælt",
|
||||
"permalink": "",
|
||||
"Top": "Topp",
|
||||
"About": "Um",
|
||||
"Rating: ": "Einkunn: ",
|
||||
"Language: ": "Tungumál: ",
|
||||
"View as playlist": "Skoða sem spilunarlista",
|
||||
"Community": "",
|
||||
"Default": "Sjálfgefið",
|
||||
"Music": "Tónlist",
|
||||
"Gaming": "Tólvuleikja",
|
||||
|
||||
219
locales/it.json
219
locales/it.json
@@ -1,25 +1,32 @@
|
||||
{
|
||||
"`x` subscribers": "`x` iscritti",
|
||||
"`x` videos": "`x` video",
|
||||
"`x` subscribers.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` iscritto",
|
||||
"": "`x` iscritti."
|
||||
},
|
||||
"`x` videos.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` video",
|
||||
"": "`x` video."
|
||||
},
|
||||
"`x` playlists": "`x` playlist",
|
||||
"LIVE": "IN DIRETTA",
|
||||
"Shared `x` ago": "Condiviso `x` fa",
|
||||
"Unsubscribe": "Disiscriviti",
|
||||
"Subscribe": "Iscriviti",
|
||||
"View channel on YouTube": "Vedi canale su YouTube",
|
||||
"View playlist on YouTube": "",
|
||||
"newest": "Data di aggiunta (più recente)",
|
||||
"oldest": "Data di aggiunta (più vecchia)",
|
||||
"View playlist on YouTube": "Vedi playlist su YouTube",
|
||||
"newest": "più recente",
|
||||
"oldest": "più vecchio",
|
||||
"popular": "Tendenze",
|
||||
"last": "durare",
|
||||
"Next page": "Pagina successiva",
|
||||
"Previous page": "Pagina precedente",
|
||||
"Clear watch history?": "Sei sicuro di voler cancellare la cronologia dei video guardati?",
|
||||
"Clear watch history?": "Eliminare la cronologia dei video guardati?",
|
||||
"New password": "Nuova password",
|
||||
"New passwords must match": "Le nuove password devono corrispondere",
|
||||
"Cannot change password for Google accounts": "Non è possibile modificare la password per gli account Google",
|
||||
"Authorize token?": "Autorizzare gettone?",
|
||||
"Authorize token for `x`?": "",
|
||||
"Yes": "Si",
|
||||
"Authorize token for `x`?": "Autorizzare gettone per `x`?",
|
||||
"Yes": "Sì",
|
||||
"No": "No",
|
||||
"Import and Export Data": "Importazione ed esportazione dati",
|
||||
"Import": "Importa",
|
||||
@@ -32,20 +39,20 @@
|
||||
"Export subscriptions as OPML": "Esporta gli abbonamenti come OPML",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Esporta gli abbonamenti come OPML (per NewPipe e FreeTube)",
|
||||
"Export data as JSON": "Esporta i dati in formato JSON",
|
||||
"Delete account?": "Sei sicuro di voler cancellare l'account?",
|
||||
"Delete account?": "Eliminare l'account?",
|
||||
"History": "Cronologia",
|
||||
"An alternative front-end to YouTube": "Un'interfaccia alternativa per YouTube",
|
||||
"JavaScript license information": "Info licenze JavaScript",
|
||||
"source": "sorgente",
|
||||
"Log in": "Entra",
|
||||
"Log in/register": "Entra/Registrati",
|
||||
"Log in with Google": "Entra con Google",
|
||||
"Log in": "Accedi",
|
||||
"Log in/register": "Accedi/Registrati",
|
||||
"Log in with Google": "Accedi con Google",
|
||||
"User ID": "ID utente",
|
||||
"Password": "Password",
|
||||
"Time (h:mm:ss):": "Orario (h:mm:ss):",
|
||||
"Text CAPTCHA": "Testo del CAPTCHA",
|
||||
"Image CAPTCHA": "Immagine CAPTCHA",
|
||||
"Sign In": "Entra",
|
||||
"Sign In": "Accedi",
|
||||
"Register": "Registrati",
|
||||
"E-mail": "Email",
|
||||
"Google verification code": "Codice di verifica Google",
|
||||
@@ -53,28 +60,32 @@
|
||||
"Player preferences": "Preferenze del riproduttore",
|
||||
"Always loop: ": "Ripeti sempre: ",
|
||||
"Autoplay: ": "Riproduzione automatica: ",
|
||||
"Play next by default: ": "Riproduzione successiva per impostazione predefinita: ",
|
||||
"Autoplay next video: ": "Riproduci automaticamente il prossimo video: ",
|
||||
"Listen by default: ": "Modalità solo audio come predefinita: ",
|
||||
"Proxy videos: ": "",
|
||||
"Default speed: ": "Velocità di riproduzione predefinita: ",
|
||||
"Preferred video quality: ": "Preferenza sulla qualità video: ",
|
||||
"Play next by default: ": "Riproduzione successiva predefinita: ",
|
||||
"Autoplay next video: ": "Riproduci automaticamente il video successivo: ",
|
||||
"Listen by default: ": "Modalità solo audio predefinita: ",
|
||||
"Proxy videos: ": "Proxy per i video: ",
|
||||
"Default speed: ": "Velocità predefinita: ",
|
||||
"Preferred video quality: ": "Qualità video preferita: ",
|
||||
"Player volume: ": "Volume di riproduzione: ",
|
||||
"Default comments: ": "Origine dei commenti: ",
|
||||
"youtube": "",
|
||||
"reddit": "",
|
||||
"youtube": "YouTube",
|
||||
"reddit": "Reddit",
|
||||
"Default captions: ": "Sottotitoli predefiniti: ",
|
||||
"Fallback captions: ": "Sottotitoli alternativi: ",
|
||||
"Show related videos: ": "Mostra video correlati? ",
|
||||
"Show annotations by default: ": "Mostra le annotazioni per impostazione predefinita? ",
|
||||
"Show related videos: ": "Mostra video correlati: ",
|
||||
"Show annotations by default: ": "Mostra le annotazioni in modo predefinito: ",
|
||||
"Visual preferences": "Preferenze grafiche",
|
||||
"Player style: ": "Stile riproduttore: ",
|
||||
"Dark mode: ": "Tema scuro: ",
|
||||
"Theme: ": "Tema: ",
|
||||
"dark": "scuro",
|
||||
"light": "chiaro",
|
||||
"Thin mode: ": "Modalità per connessioni lente: ",
|
||||
"Subscription preferences": "Preferenze iscrizioni",
|
||||
"Show annotations by default for subscribed channels: ": "",
|
||||
"Show annotations by default for subscribed channels: ": "Mostrare annotazioni in modo predefinito per i canali sottoscritti: ",
|
||||
"Redirect homepage to feed: ": "Reindirizza la pagina principale a quella delle iscrizioni: ",
|
||||
"Number of videos shown in feed: ": "Numero di video da mostrare nelle iscrizioni: ",
|
||||
"Sort videos by: ": "Ordinare i video per: ",
|
||||
"Sort videos by: ": "Ordina i video per: ",
|
||||
"published": "data di pubblicazione",
|
||||
"published - reverse": "data di pubblicazione - decrescente",
|
||||
"alphabetically": "ordine alfabetico",
|
||||
@@ -85,57 +96,80 @@
|
||||
"Only show latest unwatched video from channel: ": "Mostra solo il video più recente non guardato del canale: ",
|
||||
"Only show unwatched: ": "Mostra solo i video non guardati: ",
|
||||
"Only show notifications (if there are any): ": "Mostra solo le notifiche (se presenti): ",
|
||||
"Enable web notifications": "",
|
||||
"`x` uploaded a video": "",
|
||||
"`x` is live": "",
|
||||
"Enable web notifications": "Attiva le notifiche web",
|
||||
"`x` uploaded a video": "`x` ha caricato un video",
|
||||
"`x` is live": "`x` è in diretta",
|
||||
"Data preferences": "Preferenze dati",
|
||||
"Clear watch history": "Cancella la cronologia dei video guardati",
|
||||
"Import/export data": "Importazione/esportazione dati",
|
||||
"Change password": "",
|
||||
"Change password": "Modifica password",
|
||||
"Manage subscriptions": "Gestisci le iscrizioni",
|
||||
"Manage tokens": "",
|
||||
"Manage tokens": "Gestisci i gettoni",
|
||||
"Watch history": "Cronologia dei video",
|
||||
"Delete account": "Elimina l'account",
|
||||
"Administrator preferences": "",
|
||||
"Default homepage: ": "",
|
||||
"Feed menu: ": "",
|
||||
"Top enabled: ": "",
|
||||
"CAPTCHA enabled: ": "",
|
||||
"Login enabled: ": "",
|
||||
"Registration enabled: ": "",
|
||||
"Report statistics: ": "",
|
||||
"Administrator preferences": "Preferenze amministratore",
|
||||
"Default homepage: ": "Pagina principale predefinita: ",
|
||||
"Feed menu: ": "Menu iscrizioni: ",
|
||||
"Top enabled: ": "Top abilitato: ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA attivati: ",
|
||||
"Login enabled: ": "Accesso attivato: ",
|
||||
"Registration enabled: ": "Registrazione attivata: ",
|
||||
"Report statistics: ": "Resoconto delle statistiche: ",
|
||||
"Save preferences": "Salva le preferenze",
|
||||
"Subscription manager": "Gestisci le iscrizioni",
|
||||
"Token manager": "",
|
||||
"Token": "",
|
||||
"`x` subscriptions": "`x` iscrizioni",
|
||||
"`x` tokens": "",
|
||||
"Subscription manager": "Gestione delle iscrizioni",
|
||||
"Token manager": "Gestione dei gettoni",
|
||||
"Token": "Gettone",
|
||||
"`x` subscriptions.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` iscrizione",
|
||||
"": "`x` iscrizioni."
|
||||
},
|
||||
"`x` tokens.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` gettone",
|
||||
"": "`x` gettoni."
|
||||
},
|
||||
"Import/export": "Importa/esporta",
|
||||
"unsubscribe": "disiscriviti",
|
||||
"revoke": "",
|
||||
"revoke": "revoca",
|
||||
"Subscriptions": "Iscrizioni",
|
||||
"`x` unseen notifications": "`x` notifiche non visualizzate",
|
||||
"`x` unseen notifications.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` notifica non visualizzata",
|
||||
"": "`x` notifiche non visualizzate."
|
||||
},
|
||||
"search": "Cerca",
|
||||
"Log out": "Esci",
|
||||
"Released under the AGPLv3 by Omar Roth.": "Pubblicato con licenza AGPLv3 da Omar Roth.",
|
||||
"Source available here.": "Codice sorgente.",
|
||||
"View JavaScript license information.": "Guarda le informazioni di licenza del codice JavaScript.",
|
||||
"View privacy policy.": "",
|
||||
"View privacy policy.": "Vedi la politica sulla privacy.",
|
||||
"Trending": "Tendenze",
|
||||
"Unlisted": "",
|
||||
"Watch on YouTube": "Guarda il video su YouTube",
|
||||
"Hide annotations": "",
|
||||
"Show annotations": "",
|
||||
"Public": "Pubblico",
|
||||
"Unlisted": "Non elencati",
|
||||
"Private": "Privato",
|
||||
"View all playlists": "Visualizza tutte le playlist",
|
||||
"Updated `x` ago": "Aggiornato `x` fa",
|
||||
"Delete playlist `x`?": "Eliminare la playlist `x`?",
|
||||
"Delete playlist": "Elimina playlist",
|
||||
"Create playlist": "Crea playlist",
|
||||
"Title": "Titolo",
|
||||
"Playlist privacy": "Privacy playlist",
|
||||
"Editing playlist `x`": "Modificando la playlist `x`",
|
||||
"Watch on YouTube": "Guarda su YouTube",
|
||||
"Hide annotations": "Nascondi annotazioni",
|
||||
"Show annotations": "Mostra annotazioni",
|
||||
"Genre: ": "Genere: ",
|
||||
"License: ": "Licenza: ",
|
||||
"Family friendly? ": "Per tutti? ",
|
||||
"Wilson score: ": "Punteggio di Wilson: ",
|
||||
"Engagement: ": "Tasso di coinvolgimento: ",
|
||||
"Whitelisted regions: ": "Regioni nella lista bianca: ",
|
||||
"Blacklisted regions: ": "Regioni nella lista nera: ",
|
||||
"Whitelisted regions: ": "Regioni in lista bianca: ",
|
||||
"Blacklisted regions: ": "Regioni in lista nera: ",
|
||||
"Shared `x`": "Condiviso `x`",
|
||||
"`x` views": "",
|
||||
"Premieres in `x`": "",
|
||||
"`x` views.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` visualizzazione",
|
||||
"": "`x` visualizzazioni."
|
||||
},
|
||||
"Premieres in `x`": "In anteprima in `x`",
|
||||
"Premieres `x`": "In anteprima `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Ciao! Sembra che tu abbia disattivato JavaScript. Clicca qui per visualizzare i commenti. Considera che potrebbe volerci più tempo.",
|
||||
"View YouTube comments": "Visualizza i commenti da YouTube",
|
||||
"View more comments on Reddit": "Visualizza più commenti su Reddit",
|
||||
@@ -157,28 +191,34 @@
|
||||
"Please sign in using 'Log in with Google'": "Per favore accedi con \"Entra con Google\"",
|
||||
"Password cannot be empty": "La password non può essere vuota",
|
||||
"Password cannot be longer than 55 characters": "La password non può contenere più di 55 caratteri",
|
||||
"Please log in": "Per favore, entra",
|
||||
"Please log in": "Per favore, accedi",
|
||||
"Invidious Private Feed for `x`": "Feed privato Invidious per `x`",
|
||||
"channel:`x`": "canale:`x`",
|
||||
"Deleted or invalid channel": "Canale cancellato o invalido",
|
||||
"This channel does not exist.": "Canale inesistente.",
|
||||
"Deleted or invalid channel": "Canale eliminato o non valido",
|
||||
"This channel does not exist.": "Questo canale non esiste.",
|
||||
"Could not get channel info.": "Impossibile ottenere le informazioni del canale.",
|
||||
"Could not fetch comments": "Impossibile recuperare i commenti",
|
||||
"View `x` replies": "Visualizza `x` risposte",
|
||||
"View `x` replies.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "Visualizza `x` risposta",
|
||||
"": "Visualizza `x` risposte."
|
||||
},
|
||||
"`x` ago": "`x` fa",
|
||||
"Load more": "Carica altro",
|
||||
"`x` points": "`x` punti",
|
||||
"`x` points.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` punto",
|
||||
"": "`x` punti."
|
||||
},
|
||||
"Could not create mix.": "Impossibile creare il mix.",
|
||||
"Empty playlist": "Playlist vuota",
|
||||
"Not a playlist.": "Playlist invalida.",
|
||||
"Playlist does not exist.": "Playlist inesistente.",
|
||||
"Not a playlist.": "Non è una playlist.",
|
||||
"Playlist does not exist.": "La playlist non esiste.",
|
||||
"Could not pull trending pages.": "Impossibile recuperare le tendenze.",
|
||||
"Hidden field \"challenge\" is a required field": "Il campo nascosto \"challenge\" è obbligatorio",
|
||||
"Hidden field \"token\" is a required field": "Il campo nascosto \"token\" è obbligatorio",
|
||||
"Erroneous challenge": "Campo \"challenge\" invalido",
|
||||
"Erroneous token": "Campo \"token\" invalido",
|
||||
"No such user": "Utente invalido",
|
||||
"Token is expired, please try again": "Token scaduto, riprova",
|
||||
"Erroneous challenge": "Campo \"challenge\" non valido",
|
||||
"Erroneous token": "Campo \"token\" non valido",
|
||||
"No such user": "Utente non valido",
|
||||
"Token is expired, please try again": "Gettone scaduto, riprova",
|
||||
"English": "Inglese",
|
||||
"English (auto-generated)": "Inglese (generati automaticamente)",
|
||||
"Afrikaans": "Afrikaans",
|
||||
@@ -285,20 +325,41 @@
|
||||
"Yiddish": "Yiddish",
|
||||
"Yoruba": "Yoruba",
|
||||
"Zulu": "Zulu",
|
||||
"`x` years": "`x` anni",
|
||||
"`x` months": "`x` mesi",
|
||||
"`x` weeks": "`x` settimane",
|
||||
"`x` days": "`x` giorni",
|
||||
"`x` hours": "`x` ore",
|
||||
"`x` minutes": "`x` minuti",
|
||||
"`x` seconds": "`x` secondi",
|
||||
"`x` years.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` anno",
|
||||
"": "`x` anni."
|
||||
},
|
||||
"`x` months.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` mese",
|
||||
"": "`x` mesi."
|
||||
},
|
||||
"`x` weeks.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` settimana",
|
||||
"": "`x` settimane."
|
||||
},
|
||||
"`x` days.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` giorno",
|
||||
"": "`x` giorni."
|
||||
},
|
||||
"`x` hours.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` ora",
|
||||
"": "`x` ore."
|
||||
},
|
||||
"`x` minutes.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` minuto",
|
||||
"": "`x` minuti."
|
||||
},
|
||||
"`x` seconds.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` secondo",
|
||||
"": "`x` secondi."
|
||||
},
|
||||
"Fallback comments: ": "Commenti alternativi: ",
|
||||
"Popular": "Popolare",
|
||||
"Top": "Top",
|
||||
"About": "A proposito",
|
||||
"About": "Al riguardo",
|
||||
"Rating: ": "Punteggio: ",
|
||||
"Language: ": "Lingua: ",
|
||||
"View as playlist": "",
|
||||
"View as playlist": "Vedi come playlist",
|
||||
"Default": "Predefinito",
|
||||
"Music": "Musica",
|
||||
"Gaming": "Videogiochi",
|
||||
@@ -309,12 +370,12 @@
|
||||
"%A %B %-d, %Y": "%A %-d %B %Y",
|
||||
"(edited)": "(modificato)",
|
||||
"YouTube comment permalink": "Link permanente al commento di YouTube",
|
||||
"permalink": "",
|
||||
"permalink": "permalink",
|
||||
"`x` marked it with a ❤": "`x` l'ha contrassegnato con un ❤",
|
||||
"Audio mode": "Modalità audio",
|
||||
"Video mode": "Modalità video",
|
||||
"Videos": "",
|
||||
"Playlists": "",
|
||||
"Community": "",
|
||||
"Current version: ": ""
|
||||
"Videos": "Video",
|
||||
"Playlists": "Playlist",
|
||||
"Community": "Comunità",
|
||||
"Current version: ": "Versione attuale: "
|
||||
}
|
||||
387
locales/ja.json
Normal file
387
locales/ja.json
Normal file
@@ -0,0 +1,387 @@
|
||||
{
|
||||
"`x` subscribers": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 人の登録者",
|
||||
"": "`x` 人の登録者"
|
||||
},
|
||||
"`x` videos": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 個の動画",
|
||||
"": "`x` 個の動画"
|
||||
},
|
||||
"`x` playlists": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 個の再生リスト",
|
||||
"": "`x` 個の再生リスト"
|
||||
},
|
||||
"LIVE": "ライブ",
|
||||
"Shared `x` ago": "`x`前に共有",
|
||||
"Unsubscribe": "登録解除",
|
||||
"Subscribe": "登録",
|
||||
"View channel on YouTube": "YouTube でチャンネルを見る",
|
||||
"View playlist on YouTube": "YouTube で再生リストを見る",
|
||||
"newest": "新しい順",
|
||||
"oldest": "古い順",
|
||||
"popular": "人気順",
|
||||
"last": "追加順",
|
||||
"Next page": "次のページ",
|
||||
"Previous page": "前のページ",
|
||||
"Clear watch history?": "再生履歴を削除しますか?",
|
||||
"New password": "新しいパスワード",
|
||||
"New passwords must match": "新しいパスワードが一致していません",
|
||||
"Cannot change password for Google accounts": "Google アカウントのパスワードは変更できません",
|
||||
"Authorize token?": "トークンを認証しますか?",
|
||||
"Authorize token for `x`?": "トークン `x` を認証しますか?",
|
||||
"Yes": "はい",
|
||||
"No": "いいえ",
|
||||
"Import and Export Data": "データのインポートとエクスポート",
|
||||
"Import": "インポート",
|
||||
"Import Invidious data": "Invidious データをインポート",
|
||||
"Import YouTube subscriptions": "YouTube 登録チャンネルをインポート",
|
||||
"Import FreeTube subscriptions (.db)": "FreeTube 登録チャンネルをインポート (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "NewPipe 登録チャンネルをインポート (.json)",
|
||||
"Import NewPipe data (.zip)": "NewPipe データをインポート (.zip)",
|
||||
"Export": "エクスポート",
|
||||
"Export subscriptions as OPML": "登録チャンネルを OPML でエクスポート",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "登録チャンネルを OPML でエクスポート (NewPipe & FreeTube 用)",
|
||||
"Export data as JSON": "データを JSON でエクスポート",
|
||||
"Delete account?": "アカウントを削除しますか?",
|
||||
"History": "履歴",
|
||||
"An alternative front-end to YouTube": "YouTube の代わりとなる新しいフロントエンド",
|
||||
"JavaScript license information": "JavaScript ライセンス情報",
|
||||
"source": "ソース",
|
||||
"Log in": "ログイン",
|
||||
"Log in/register": "ログイン/登録",
|
||||
"Log in with Google": "Google でログイン",
|
||||
"User ID": "ユーザー ID",
|
||||
"Password": "パスワード",
|
||||
"Time (h:mm:ss):": "時間 (時:分分:秒秒):",
|
||||
"Text CAPTCHA": "テキスト CAPTCHA",
|
||||
"Image CAPTCHA": "画像 CAPTCHA",
|
||||
"Sign In": "サインイン",
|
||||
"Register": "登録",
|
||||
"E-mail": "メールアドレス",
|
||||
"Google verification code": "Google 認証コード",
|
||||
"Preferences": "設定",
|
||||
"Player preferences": "プレイヤー設定",
|
||||
"Always loop: ": "常にループ: ",
|
||||
"Autoplay: ": "自動再生: ",
|
||||
"Play next by default: ": "デフォルトで次を再生: ",
|
||||
"Autoplay next video: ": "次の動画を自動再生: ",
|
||||
"Listen by default: ": "デフォルトでオーディオモードを使用: ",
|
||||
"Proxy videos: ": "動画をプロキシーに通す: ",
|
||||
"Default speed: ": "デフォルトの再生速度: ",
|
||||
"Preferred video quality: ": "優先する画質: ",
|
||||
"Player volume: ": "プレイヤーの音量: ",
|
||||
"Default comments: ": "デフォルトのコメント: ",
|
||||
"youtube": "youtube",
|
||||
"reddit": "reddit",
|
||||
"Default captions: ": "デフォルトの字幕: ",
|
||||
"Fallback captions: ": "フォールバック時の字幕: ",
|
||||
"Show related videos: ": "関連動画を表示: ",
|
||||
"Show annotations by default: ": "デフォルトでアノテーションを表示: ",
|
||||
"Visual preferences": "外観設定",
|
||||
"Player style: ": "プレイヤースタイル: ",
|
||||
"Dark mode: ": "ダークモード: ",
|
||||
"Theme: ": "テーマ: ",
|
||||
"dark": "ダーク",
|
||||
"light": "ライト",
|
||||
"Thin mode: ": "最小モード: ",
|
||||
"Subscription preferences": "登録チャンネル設定",
|
||||
"Show annotations by default for subscribed channels: ": "デフォルトで登録チャンネルのアノテーションを表示しますか? ",
|
||||
"Redirect homepage to feed: ": "ホームからフィードにリダイレクト: ",
|
||||
"Number of videos shown in feed: ": "フィードに表示する動画の量: ",
|
||||
"Sort videos by: ": "動画を並び替え: ",
|
||||
"published": "投稿日",
|
||||
"published - reverse": "投稿日 - 逆順",
|
||||
"alphabetically": "アルファベット",
|
||||
"alphabetically - reverse": "アルファベット - 逆順",
|
||||
"channel name": "チャンネル名",
|
||||
"channel name - reverse": "チャンネル名 - 逆順",
|
||||
"Only show latest video from channel: ": "チャンネルの最新動画のみを表示: ",
|
||||
"Only show latest unwatched video from channel: ": "チャンネルの最新未視聴動画のみを表示: ",
|
||||
"Only show unwatched: ": "未視聴のみを表示: ",
|
||||
"Only show notifications (if there are any): ": "通知のみを表示 (ある場合): ",
|
||||
"Enable web notifications": "ウェブ通知を有効化",
|
||||
"`x` uploaded a video": "`x` が動画を投稿しました",
|
||||
"`x` is live": "`x` がライブ中です",
|
||||
"Data preferences": "データ設定",
|
||||
"Clear watch history": "再生履歴の削除",
|
||||
"Import/export data": "データのインポート/エクスポート",
|
||||
"Change password": "パスワードを変更",
|
||||
"Manage subscriptions": "登録チャンネルを管理",
|
||||
"Manage tokens": "トークンを管理",
|
||||
"Watch history": "再生履歴",
|
||||
"Delete account": "アカウントを削除",
|
||||
"Administrator preferences": "管理者設定",
|
||||
"Default homepage: ": "デフォルトのホーム: ",
|
||||
"Feed menu: ": "フィードメニュー: ",
|
||||
"Top enabled: ": "Top enabled: ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA を有効化: ",
|
||||
"Login enabled: ": "ログインを有効化: ",
|
||||
"Registration enabled: ": "登録を有効化: ",
|
||||
"Report statistics: ": "統計を報告: ",
|
||||
"Save preferences": "設定を保存",
|
||||
"Subscription manager": "登録チャンネルマネージャー",
|
||||
"Token manager": "トークンマネージャー",
|
||||
"Token": "トークン",
|
||||
"`x` subscriptions": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 個の登録チャンネル",
|
||||
"": "`x` 個の登録チャンネル"
|
||||
},
|
||||
"`x` tokens": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 個のトークン",
|
||||
"": "`x` 個のトークン"
|
||||
},
|
||||
"Import/export": "インポート/エクスポート",
|
||||
"unsubscribe": "登録解除",
|
||||
"revoke": "revoke",
|
||||
"Subscriptions": "登録チャンネル",
|
||||
"`x` unseen notifications": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 個の未読通知",
|
||||
"": "`x` 個の未読通知"
|
||||
},
|
||||
"search": "検索",
|
||||
"Log out": "ログアウト",
|
||||
"Released under the AGPLv3 by Omar Roth.": "Omar Roth によって AGPLv3 でリリースされています。",
|
||||
"Source available here.": "ソースはここで閲覧可能です。",
|
||||
"View JavaScript license information.": "JavaScript ライセンス情報を見る。",
|
||||
"View privacy policy.": "プライバシーポリシーを見る。",
|
||||
"Trending": "急上昇",
|
||||
"Public": "公開",
|
||||
"Unlisted": "限定公開",
|
||||
"Private": "非公開",
|
||||
"View all playlists": "再生リストをすべて見る",
|
||||
"Updated `x` ago": "`x`前に更新",
|
||||
"Delete playlist `x`?": "再生リスト `x` を削除しますか?",
|
||||
"Delete playlist": "再生リストを削除",
|
||||
"Create playlist": "再生リストを作成",
|
||||
"Title": "タイトル",
|
||||
"Playlist privacy": "再生リストのプライバシー",
|
||||
"Editing playlist `x`": "再生リスト `x` を編集中",
|
||||
"Watch on YouTube": "YouTube で視聴",
|
||||
"Hide annotations": "アノテーションを隠す",
|
||||
"Show annotations": "アノテーションを表示",
|
||||
"Genre: ": "ジャンル: ",
|
||||
"License: ": "ライセンス: ",
|
||||
"Family friendly? ": "家族向け? ",
|
||||
"Wilson score: ": "ウィルソンスコア: ",
|
||||
"Engagement: ": "エンゲージメント: ",
|
||||
"Whitelisted regions: ": "ホワイトリストの地域: ",
|
||||
"Blacklisted regions: ": "ブラックリストの地域: ",
|
||||
"Shared `x`": "`x`に共有",
|
||||
"`x` views": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 回視聴",
|
||||
"": "`x` 回視聴"
|
||||
},
|
||||
"Premieres in `x`": "Premieres in `x`",
|
||||
"Premieres `x`": "Premieres `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "やあ!君は JavaScript を無効にしているのかな?ここをクリックしてコメントを見れるけど、読み込みには少し時間がかかることがあるのを覚えておいてね。",
|
||||
"View YouTube comments": "YouTube のコメントを見る",
|
||||
"View more comments on Reddit": "Reddit でコメントをもっと見る",
|
||||
"View `x` comments": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 件のコメントを見る",
|
||||
"": "`x` 件のコメントを見る"
|
||||
},
|
||||
"View Reddit comments": "Reddit のコメントを見る",
|
||||
"Hide replies": "返信を非表示",
|
||||
"Show replies": "返信を表示",
|
||||
"Incorrect password": "パスワードが間違っています",
|
||||
"Quota exceeded, try again in a few hours": "試行を制限中です。数時間後にやり直してください",
|
||||
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "ログインできませんでした。2段階認証 (認証アプリまたは SMS) が有効になっていることを確認してください。",
|
||||
"Invalid TFA code": "TFA (2段階認証) コードが無効です",
|
||||
"Login failed. This may be because two-factor authentication is not turned on for your account.": "ログインに失敗しました。あなたのアカウントで2段階認証が有効になっていない可能性があります。",
|
||||
"Wrong answer": "回答が間違っています",
|
||||
"Erroneous CAPTCHA": "CAPTCHA が間違っています",
|
||||
"CAPTCHA is a required field": "CAPTCHA は必須項目です",
|
||||
"User ID is a required field": "ユーザー ID は必須項目です",
|
||||
"Password is a required field": "パスワードは必須項目です",
|
||||
"Wrong username or password": "ユーザー名またはパスワードが間違っています",
|
||||
"Please sign in using 'Log in with Google'": "'Google でログイン' を使用してログインしてください",
|
||||
"Password cannot be empty": "パスワードを空にすることはできません",
|
||||
"Password cannot be longer than 55 characters": "パスワードは55文字より長くできません",
|
||||
"Please log in": "ログインをしてください",
|
||||
"Invidious Private Feed for `x`": "`x` の Invidious プライベートフィード",
|
||||
"channel:`x`": "チャンネル:`x`",
|
||||
"Deleted or invalid channel": "削除済みまたは無効なチャンネルです",
|
||||
"This channel does not exist.": "このチャンネルは存在していません",
|
||||
"Could not get channel info.": "チャンネル情報を取得できませんでした。",
|
||||
"Could not fetch comments": "コメントを取得できませんでした",
|
||||
"View `x` replies": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 件の返信を見る",
|
||||
"": "`x` 件の返信を見る"
|
||||
},
|
||||
"`x` ago": "`x`前",
|
||||
"Load more": "もっと読み込む",
|
||||
"`x` points": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` ポイント",
|
||||
"": "`x` ポイント"
|
||||
},
|
||||
"Could not create mix.": "ミックスを作成できませんでした。",
|
||||
"Empty playlist": "空の再生リスト",
|
||||
"Not a playlist.": "再生リストではありません。",
|
||||
"Playlist does not exist.": "再生リストが存在していません・",
|
||||
"Could not pull trending pages.": "急上昇ページを取得できませんでした。",
|
||||
"Hidden field \"challenge\" is a required field": "非表示項目 \"challenge\" は必須項目です",
|
||||
"Hidden field \"token\" is a required field": "非表示項目 \"token\" は必須項目です",
|
||||
"Erroneous challenge": "チャレンジが間違っています",
|
||||
"Erroneous token": "トークンが間違っています",
|
||||
"No such user": "ユーザーが存在しません",
|
||||
"Token is expired, please try again": "トークンが期限切れです。再度試してください",
|
||||
"English": "英語",
|
||||
"English (auto-generated)": "英語 (自動生成)",
|
||||
"Afrikaans": "アフリカーンス語",
|
||||
"Albanian": "アルバニア語",
|
||||
"Amharic": "アムハラ語",
|
||||
"Arabic": "アラビア語",
|
||||
"Armenian": "アルメニア語",
|
||||
"Azerbaijani": "アゼルバイジャン語",
|
||||
"Bangla": "ベンガル語",
|
||||
"Basque": "バスク語",
|
||||
"Belarusian": "ベラルーシ語",
|
||||
"Bosnian": "ボスニア語",
|
||||
"Bulgarian": "ブルガリア語",
|
||||
"Burmese": "ビルマ語",
|
||||
"Catalan": "カタルーニャ語",
|
||||
"Cebuano": "セブアノ語",
|
||||
"Chinese (Simplified)": "中国語 (簡体字)",
|
||||
"Chinese (Traditional)": "中国語 (繁体字)",
|
||||
"Corsican": "コルシカ語",
|
||||
"Croatian": "クロアチア語",
|
||||
"Czech": "チェコ語",
|
||||
"Danish": "デンマーク語",
|
||||
"Dutch": "オランダ語",
|
||||
"Esperanto": "エスペラント語",
|
||||
"Estonian": "エストニア語",
|
||||
"Filipino": "フィリピン語",
|
||||
"Finnish": "フィンランド語",
|
||||
"French": "フランス語",
|
||||
"Galician": "ガルシア語",
|
||||
"Georgian": "グルジア語",
|
||||
"German": "ドイツ語",
|
||||
"Greek": "ギリシャ語",
|
||||
"Gujarati": "グジャラート語",
|
||||
"Haitian Creole": "ハイチ語",
|
||||
"Hausa": "ハウサ語",
|
||||
"Hawaiian": "ハワイ語",
|
||||
"Hebrew": "ヘブライ語",
|
||||
"Hindi": "ヒンディー語",
|
||||
"Hmong": "ミャオ語",
|
||||
"Hungarian": "ハンガリー語",
|
||||
"Icelandic": "アイスランド語",
|
||||
"Igbo": "イボ語",
|
||||
"Indonesian": "インドネシア語",
|
||||
"Irish": "アイルランド語",
|
||||
"Italian": "イタリア語",
|
||||
"Japanese": "日本語",
|
||||
"Javanese": "ジャワ語",
|
||||
"Kannada": "カンナダ語",
|
||||
"Kazakh": "カザフ語",
|
||||
"Khmer": "クメール語",
|
||||
"Korean": "韓国語",
|
||||
"Kurdish": "クルド語",
|
||||
"Kyrgyz": "キルギス語",
|
||||
"Lao": "ラーオ語",
|
||||
"Latin": "ラテン語",
|
||||
"Latvian": "ラトビア語",
|
||||
"Lithuanian": "リトアニア語",
|
||||
"Luxembourgish": "ルクセンブルク語",
|
||||
"Macedonian": "マケドニア語",
|
||||
"Malagasy": "マダガスカル語",
|
||||
"Malay": "マレー語",
|
||||
"Malayalam": "マラヤーラム語",
|
||||
"Maltese": "マルタ語",
|
||||
"Maori": "マオリ語",
|
||||
"Marathi": "マラーティー語",
|
||||
"Mongolian": "モンゴル語",
|
||||
"Nepali": "ネパール語",
|
||||
"Norwegian Bokmål": "ノルウェー語",
|
||||
"Nyanja": "チェワ語",
|
||||
"Pashto": "パシュトー語",
|
||||
"Persian": "ペルシア語",
|
||||
"Polish": "ポーランド語",
|
||||
"Portuguese": "ポルトガル語",
|
||||
"Punjabi": "パンジャーブ語",
|
||||
"Romanian": "ルーマニア語",
|
||||
"Russian": "ロシア語",
|
||||
"Samoan": "サモア語",
|
||||
"Scottish Gaelic": "スコットランド・ゲール語",
|
||||
"Serbian": "セルビア語",
|
||||
"Shona": "ショナ語",
|
||||
"Sindhi": "シンド語",
|
||||
"Sinhala": "シンハラ語",
|
||||
"Slovak": "スロバキア語",
|
||||
"Slovenian": "スロベニア語",
|
||||
"Somali": "ソマリ語",
|
||||
"Southern Sotho": "南ソト語",
|
||||
"Spanish": "スペイン語",
|
||||
"Spanish (Latin America)": "スペイン語 (ラテンアメリカ)",
|
||||
"Sundanese": "スンダ語",
|
||||
"Swahili": "スワヒリ語",
|
||||
"Swedish": "スウェーデン語",
|
||||
"Tajik": "タジク語",
|
||||
"Tamil": "タミル語",
|
||||
"Telugu": "テルグ語",
|
||||
"Thai": "タイ語",
|
||||
"Turkish": "トルコ語",
|
||||
"Ukrainian": "ウクライナ語",
|
||||
"Urdu": "ウルドゥー語",
|
||||
"Uzbek": "ウズベク語",
|
||||
"Vietnamese": "ベトナム語",
|
||||
"Welsh": "ウェールズ語",
|
||||
"Western Frisian": "西フリジア語",
|
||||
"Xhosa": "コサ語",
|
||||
"Yiddish": "イディッシュ語",
|
||||
"Yoruba": "ヨルバ語",
|
||||
"Zulu": "ズール語",
|
||||
"`x` years": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`年",
|
||||
"": "`x`年"
|
||||
},
|
||||
"`x` months": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`月",
|
||||
"": "`x`月"
|
||||
},
|
||||
"`x` weeks": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`週",
|
||||
"": "`x`週"
|
||||
},
|
||||
"`x` days": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`日",
|
||||
"": "`x`日"
|
||||
},
|
||||
"`x` hours": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`時間",
|
||||
"": "`x`時間"
|
||||
},
|
||||
"`x` minutes": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`分",
|
||||
"": "`x`分"
|
||||
},
|
||||
"`x` seconds": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`秒",
|
||||
"": "`x`秒"
|
||||
},
|
||||
"Fallback comments: ": "フォールバック時のコメント: ",
|
||||
"Popular": "人気",
|
||||
"Top": "トップ",
|
||||
"About": "このサービスについて",
|
||||
"Rating: ": "評価: ",
|
||||
"Language: ": "言語: ",
|
||||
"View as playlist": "再生リストで見る",
|
||||
"Default": "デフォルト",
|
||||
"Music": "音楽",
|
||||
"Gaming": "ゲーム",
|
||||
"News": "ニュース",
|
||||
"Movies": "映画",
|
||||
"Download": "ダウンロード",
|
||||
"Download as: ": "ダウンロード: ",
|
||||
"%A %B %-d, %Y": "%Y %B %-d %A",
|
||||
"(edited)": "(編集済み)",
|
||||
"YouTube comment permalink": "YouTube コメントのパーマリンク",
|
||||
"permalink": "パーマリンク",
|
||||
"`x` marked it with a ❤": "`x` が❤を込めてマークしました",
|
||||
"Audio mode": "オーディオモード",
|
||||
"Video mode": "ビデオモード",
|
||||
"Videos": "動画",
|
||||
"Playlists": "プレイリスト",
|
||||
"Community": "コミュニティ",
|
||||
"Current version: ": "現在のバージョン: "
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"`x` subscribers": "`x` abonnenter",
|
||||
"`x` videos": "`x` videoer",
|
||||
"`x` playlists": "`x` spillelister",
|
||||
"LIVE": "SANNTIDSVISNING",
|
||||
"Shared `x` ago": "Delt for `x` siden",
|
||||
"Unsubscribe": "Opphev abonnement",
|
||||
@@ -24,13 +25,13 @@
|
||||
"Import and Export Data": "Importer- og eksporter data",
|
||||
"Import": "Importer",
|
||||
"Import Invidious data": "Importer Invidious-data",
|
||||
"Import YouTube subscriptions": "Importer YouTube-abonnenter",
|
||||
"Import FreeTube subscriptions (.db)": "Importer FreeTube-abonnenter (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "Importer NewPipe-abonnenter (.json)",
|
||||
"Import YouTube subscriptions": "Importer YouTube-abonnementer",
|
||||
"Import FreeTube subscriptions (.db)": "Importer FreeTube-abonnementer (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "Importer NewPipe-abonnementer (.json)",
|
||||
"Import NewPipe data (.zip)": "Importer NewPipe-data (.zip)",
|
||||
"Export": "Eksporter",
|
||||
"Export subscriptions as OPML": "Eksporter abonnenter som OPML",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksporter abonnenter som OPML (for NewPipe og FreeTube)",
|
||||
"Export subscriptions as OPML": "Eksporter abonnementer som OPML",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksporter abonnementer som OPML (for NewPipe og FreeTube)",
|
||||
"Export data as JSON": "Eksporter data som JSON",
|
||||
"Delete account?": "Slett konto?",
|
||||
"History": "Historikk",
|
||||
@@ -68,7 +69,11 @@
|
||||
"Show related videos: ": "Vis relaterte videoer? ",
|
||||
"Show annotations by default: ": "Vis merknader som forvalg? ",
|
||||
"Visual preferences": "Visuelle innstillinger",
|
||||
"Player style: ": "Avspillerstil: ",
|
||||
"Dark mode: ": "Mørk drakt: ",
|
||||
"Theme: ": "Drakt: ",
|
||||
"dark": "Mørk",
|
||||
"light": "Lys",
|
||||
"Thin mode: ": "Tynt modus: ",
|
||||
"Subscription preferences": "Abonnementsinnstillinger",
|
||||
"Show annotations by default for subscribed channels: ": "Vis merknader som forvalg for kanaler det abonneres på? ",
|
||||
@@ -122,7 +127,17 @@
|
||||
"View JavaScript license information.": "Vis JavaScript-lisensinfo.",
|
||||
"View privacy policy.": "Vis personvernspraksis.",
|
||||
"Trending": "Trendsettende",
|
||||
"Public": "Offentlig",
|
||||
"Unlisted": "Ulistet",
|
||||
"Private": "Privat",
|
||||
"View all playlists": "Vis alle spillelister",
|
||||
"Updated `x` ago": "Oppdatert `x` siden",
|
||||
"Delete playlist `x`?": "Slett spillelisten `x`?",
|
||||
"Delete playlist": "Slett spilleliste",
|
||||
"Create playlist": "Opprett spilleliste",
|
||||
"Title": "Tittel",
|
||||
"Playlist privacy": "Vern av spilleliste",
|
||||
"Editing playlist `x`": "Redigerer spillelisten `x`",
|
||||
"Watch on YouTube": "Vis video på YouTube",
|
||||
"Hide annotations": "Skjul merknader",
|
||||
"Show annotations": "Vis merknader",
|
||||
@@ -136,7 +151,7 @@
|
||||
"Shared `x`": "Delt `x`",
|
||||
"`x` views": "`x` visninger",
|
||||
"Premieres in `x`": "Premiere om `x`",
|
||||
"Premieres `x`": "",
|
||||
"Premieres `x`": "Première `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Hei. Det ser ut til at du har JavaScript avslått. Klikk her for å vise kommentarer, ha i minnet at innlasting tar lengre tid.",
|
||||
"View YouTube comments": "Vis YouTube-kommentarer",
|
||||
"View more comments on Reddit": "Vis flere kommenterer på Reddit",
|
||||
@@ -182,12 +197,12 @@
|
||||
"Token is expired, please try again": "Symbol utløpt, prøv igjen",
|
||||
"English": "Engelsk",
|
||||
"English (auto-generated)": "Engelsk (auto-generert)",
|
||||
"Afrikaans": "",
|
||||
"Afrikaans": "Afrikansk",
|
||||
"Albanian": "Albansk",
|
||||
"Amharic": "",
|
||||
"Amharic": "Amharisk",
|
||||
"Arabic": "Arabisk",
|
||||
"Armenian": "Armensk",
|
||||
"Azerbaijani": "",
|
||||
"Azerbaijani": "Aserbajdsjansk",
|
||||
"Bangla": "",
|
||||
"Basque": "",
|
||||
"Belarusian": "Hviterussisk",
|
||||
@@ -202,16 +217,16 @@
|
||||
"Croatian": "",
|
||||
"Czech": "Tsjekkisk",
|
||||
"Danish": "Dansk",
|
||||
"Dutch": "",
|
||||
"Dutch": "Nederlandsk",
|
||||
"Esperanto": "Esperanto",
|
||||
"Estonian": "",
|
||||
"Filipino": "",
|
||||
"Estonian": "Estisk",
|
||||
"Filipino": "Filippinsk",
|
||||
"Finnish": "Finsk",
|
||||
"French": "Fransk",
|
||||
"Galician": "",
|
||||
"Georgian": "",
|
||||
"German": "",
|
||||
"Greek": "",
|
||||
"German": "Tysk",
|
||||
"Greek": "Gresk",
|
||||
"Gujarati": "",
|
||||
"Haitian Creole": "",
|
||||
"Hausa": "",
|
||||
@@ -294,7 +309,7 @@
|
||||
"`x` minutes": "`x` minutter",
|
||||
"`x` seconds": "`x` sekunder",
|
||||
"Fallback comments: ": "Tilbakefallskommentarer: ",
|
||||
"Popular": "Pupulært",
|
||||
"Popular": "Populært",
|
||||
"Top": "Topp",
|
||||
"About": "Om",
|
||||
"Rating: ": "Vurdering: ",
|
||||
@@ -316,6 +331,6 @@
|
||||
"Video mode": "Video-modus",
|
||||
"Videos": "Videoer",
|
||||
"Playlists": "Spillelister",
|
||||
"Community": "",
|
||||
"Community": "Gemenskap",
|
||||
"Current version: ": "Nåværende versjon: "
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"`x` subscribers": "`x` abonnees",
|
||||
"`x` videos": "`x` video's",
|
||||
"`x` playlists": "`x` afspeellijsten",
|
||||
"LIVE": "LIVE",
|
||||
"Shared `x` ago": "Gedeeld: `x` geleden",
|
||||
"Unsubscribe": "Deabonneren",
|
||||
@@ -68,7 +69,11 @@
|
||||
"Show related videos: ": "Gerelateerde video's tonen? ",
|
||||
"Show annotations by default: ": "Standaard annotaties tonen? ",
|
||||
"Visual preferences": "Visuele instellingen",
|
||||
"Player style: ": "Speler vormgeving",
|
||||
"Dark mode: ": "Donkere modus: ",
|
||||
"Theme: ": "Thema: ",
|
||||
"dark": "donker",
|
||||
"light": "licht",
|
||||
"Thin mode: ": "Smalle modus: ",
|
||||
"Subscription preferences": "Abonnementsinstellingen",
|
||||
"Show annotations by default for subscribed channels: ": "Standaard annotaties tonen voor geabonneerde kanalen? ",
|
||||
@@ -122,7 +127,17 @@
|
||||
"View JavaScript license information.": "JavaScript-licentieinformatie tonen.",
|
||||
"View privacy policy.": "Privacybeleid tonen",
|
||||
"Trending": "Uitgelicht",
|
||||
"Public": "Publiek",
|
||||
"Unlisted": "Verborgen",
|
||||
"Private": "Privé",
|
||||
"View all playlists": "Bekijk alle afspeellijsten",
|
||||
"Updated `x` ago": "`x` geleden aangepast",
|
||||
"Delete playlist `x`?": "Afspeellijst `x` verwijderen?",
|
||||
"Delete playlist": "Verwijder afspeellijst",
|
||||
"Create playlist": "Nieuwe afspeellijst",
|
||||
"Title": "Titel",
|
||||
"Playlist privacy": "Afspeellijst privacy",
|
||||
"Editing playlist `x`": "Afspeellijst `x` wijzigen",
|
||||
"Watch on YouTube": "Video bekijken op YouTube",
|
||||
"Hide annotations": "Annotaties verbergen",
|
||||
"Show annotations": "Annotaties tonen",
|
||||
@@ -316,6 +331,7 @@
|
||||
"Video mode": "Videomodus",
|
||||
"Videos": "Video's",
|
||||
"Playlists": "Afspeellijsten",
|
||||
"Community": "",
|
||||
"Current version: ": "Huidige versie: "
|
||||
"Community": "Gemeenschap",
|
||||
"Current version: ": "Huidige versie: ",
|
||||
"Download is disabled.": "Downloaden is uitgeschakeld."
|
||||
}
|
||||
@@ -1,12 +1,13 @@
|
||||
{
|
||||
"`x` subscribers": "`x` subskrybcji",
|
||||
"`x` videos": "`x` filmów",
|
||||
"`x` playlists": "`x` playlist",
|
||||
"LIVE": "NA ŻYWO",
|
||||
"Shared `x` ago": "Udostępniono `x` temu",
|
||||
"Unsubscribe": "Odsubskrybuj",
|
||||
"Subscribe": "Subskrybuj",
|
||||
"View channel on YouTube": "Wyświetl kanał na YouTube",
|
||||
"View playlist on YouTube": "",
|
||||
"View playlist on YouTube": "Zobacz playlistę na YouTube",
|
||||
"newest": "najnowsze",
|
||||
"oldest": "najstarsze",
|
||||
"popular": "popularne",
|
||||
@@ -14,11 +15,11 @@
|
||||
"Next page": "Następna strona",
|
||||
"Previous page": "Poprzednia strona",
|
||||
"Clear watch history?": "Wyczyścić historię?",
|
||||
"New password": "",
|
||||
"New passwords must match": "",
|
||||
"Cannot change password for Google accounts": "",
|
||||
"Authorize token?": "",
|
||||
"Authorize token for `x`?": "",
|
||||
"New password": "Nowe hasło",
|
||||
"New passwords must match": "Nowe hasła muszą być identyczne",
|
||||
"Cannot change password for Google accounts": "Nie można zmienić hasła do konta Google",
|
||||
"Authorize token?": "Autoryzować token?",
|
||||
"Authorize token for `x`?": "Autoryzować token dla `x`?",
|
||||
"Yes": "Tak",
|
||||
"No": "Nie",
|
||||
"Import and Export Data": "Import i eksport danych",
|
||||
@@ -53,7 +54,7 @@
|
||||
"Player preferences": "Ustawienia odtwarzacza",
|
||||
"Always loop: ": "Zawsze zapętlaj: ",
|
||||
"Autoplay: ": "Autoodtwarzanie: ",
|
||||
"Play next by default: ": "",
|
||||
"Play next by default: ": "Domyślnie odtwarzaj następny: ",
|
||||
"Autoplay next video: ": "Odtwórz następny film: ",
|
||||
"Listen by default: ": "Tryb dźwiękowy: ",
|
||||
"Proxy videos: ": "Filmy przez proxy? ",
|
||||
@@ -61,17 +62,21 @@
|
||||
"Preferred video quality: ": "Preferowana jakość filmów: ",
|
||||
"Player volume: ": "Głośność odtwarzacza: ",
|
||||
"Default comments: ": "Domyślne komentarze: ",
|
||||
"youtube": "",
|
||||
"reddit": "",
|
||||
"youtube": "youtube",
|
||||
"reddit": "reddit",
|
||||
"Default captions: ": "Domyślne napisy: ",
|
||||
"Fallback captions: ": "Zastępcze napisy: ",
|
||||
"Show related videos: ": "Pokaż powiązane filmy? ",
|
||||
"Show annotations by default: ": "",
|
||||
"Show annotations by default: ": "Domyślnie pokazuj adnotacje: ",
|
||||
"Visual preferences": "Preferencje Wizualne",
|
||||
"Player style: ": "Styl odtwarzacza: ",
|
||||
"Dark mode: ": "Ciemny motyw: ",
|
||||
"Theme: ": "Motyw: ",
|
||||
"dark": "ciemny",
|
||||
"light": "jasny",
|
||||
"Thin mode: ": "Tryb minimalny: ",
|
||||
"Subscription preferences": "Preferencje subskrybcji",
|
||||
"Show annotations by default for subscribed channels: ": "",
|
||||
"Show annotations by default for subscribed channels: ": "Domyślnie wyświetlaj adnotacje dla subskrybowanych kanałów: ",
|
||||
"Redirect homepage to feed: ": "Przekieruj stronę główną do subskrybcji: ",
|
||||
"Number of videos shown in feed: ": "Liczba filmów widoczna na stronie subskrybcji: ",
|
||||
"Sort videos by: ": "Sortuj filmy: ",
|
||||
@@ -85,34 +90,34 @@
|
||||
"Only show latest unwatched video from channel: ": "Pokazuj tylko najnowszy nie obejrzany film z kanału: ",
|
||||
"Only show unwatched: ": "Pokazuj tylko nie obejrzane: ",
|
||||
"Only show notifications (if there are any): ": "Pokazuj tylko powiadomienia (jeśli są): ",
|
||||
"Enable web notifications": "",
|
||||
"`x` uploaded a video": "",
|
||||
"`x` is live": "",
|
||||
"Enable web notifications": "Włącz powiadomienia",
|
||||
"`x` uploaded a video": "`x` dodał film",
|
||||
"`x` is live": "'x ' jest na żywo",
|
||||
"Data preferences": "Preferencje danych",
|
||||
"Clear watch history": "Wyczyść historię",
|
||||
"Import/export data": "Import/Eksport danych",
|
||||
"Change password": "",
|
||||
"Change password": "Zmień hasło",
|
||||
"Manage subscriptions": "Organizuj subskrybcje",
|
||||
"Manage tokens": "",
|
||||
"Manage tokens": "Zarządzaj tokenami",
|
||||
"Watch history": "Historia",
|
||||
"Delete account": "Usuń konto",
|
||||
"Administrator preferences": "Preferencje administratora",
|
||||
"Default homepage: ": "Domyślna strona główna: ",
|
||||
"Feed menu: ": "",
|
||||
"Top enabled: ": "",
|
||||
"Top enabled: ": "\"Top\" aktywne: ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA aktywna? ",
|
||||
"Login enabled: ": "Logowanie włączone? ",
|
||||
"Registration enabled: ": "Rejestracja włączona? ",
|
||||
"Report statistics: ": "Raportować statystyki? ",
|
||||
"Save preferences": "Zapisz preferencje",
|
||||
"Subscription manager": "Manager subskrybcji",
|
||||
"Token manager": "",
|
||||
"Token": "",
|
||||
"Token manager": "Menedżer tokenów",
|
||||
"Token": "Token",
|
||||
"`x` subscriptions": "`x` subskrybcji",
|
||||
"`x` tokens": "",
|
||||
"Import/export": "Import/Eksport",
|
||||
"unsubscribe": "odsubskrybuj",
|
||||
"revoke": "",
|
||||
"revoke": "cofnij",
|
||||
"Subscriptions": "Subskrybcje",
|
||||
"`x` unseen notifications": "`x` nowych powiadomień",
|
||||
"search": "szukaj",
|
||||
@@ -122,10 +127,20 @@
|
||||
"View JavaScript license information.": "Wyświetl informację o licencji JavaScript.",
|
||||
"View privacy policy.": "Polityka prywatności.",
|
||||
"Trending": "Na czasie",
|
||||
"Unlisted": "",
|
||||
"Public": "Publiczne",
|
||||
"Unlisted": "Niewidoczne",
|
||||
"Private": "Prywatne",
|
||||
"View all playlists": "Pokaż wszystkie playlisty",
|
||||
"Updated `x` ago": "Zaktualizowano `x` temu",
|
||||
"Delete playlist `x`?": "Usunąć playlistę 'x '?",
|
||||
"Delete playlist": "Usuń playlistę",
|
||||
"Create playlist": "Utwórz playlistę",
|
||||
"Title": "Tytuł",
|
||||
"Playlist privacy": "Widoczność playlisty",
|
||||
"Editing playlist `x`": "Edycja playlisty `x`",
|
||||
"Watch on YouTube": "Zobacz film na YouTube",
|
||||
"Hide annotations": "",
|
||||
"Show annotations": "",
|
||||
"Hide annotations": "Ukryj adnotacje",
|
||||
"Show annotations": "Pokaż adnotacje",
|
||||
"Genre: ": "Gatunek: ",
|
||||
"License: ": "Licencja: ",
|
||||
"Family friendly? ": "Przyjazny rodzinie? ",
|
||||
@@ -136,7 +151,7 @@
|
||||
"Shared `x`": "Udostępniono `x`",
|
||||
"`x` views": "`x` wyświetleń",
|
||||
"Premieres in `x`": "Publikacja za `x`",
|
||||
"Premieres `x`": "",
|
||||
"Premieres `x`": "Publikacja za `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Cześć! Wygląda na to, że masz wyłączoną obsługę JavaScriptu. Kliknij tutaj, żeby zobaczyć komentarze. Pamiętaj, że wczytywanie może potrwać dłużej.",
|
||||
"View YouTube comments": "Wyświetl komentarze z YouTube",
|
||||
"View more comments on Reddit": "Wyświetl więcej komentarzy na Reddicie",
|
||||
@@ -295,7 +310,7 @@
|
||||
"`x` seconds": "`x` sekund",
|
||||
"Fallback comments: ": "Zastępcze komentarze: ",
|
||||
"Popular": "Popularne",
|
||||
"Top": "Najczęściej oglądane",
|
||||
"Top": "Top",
|
||||
"About": "Informacje",
|
||||
"Rating: ": "Ocena: ",
|
||||
"Language: ": "Język: ",
|
||||
@@ -310,12 +325,12 @@
|
||||
"%A %B %-d, %Y": "",
|
||||
"(edited)": "(edytowany)",
|
||||
"YouTube comment permalink": "Odnośnik bezpośredni do komentarza na YouTube",
|
||||
"permalink": "",
|
||||
"permalink": "bezpośredni odnośnik",
|
||||
"`x` marked it with a ❤": "`x` oznaczonych ❤",
|
||||
"Audio mode": "Tryb audio",
|
||||
"Video mode": "Tryb wideo",
|
||||
"Videos": "Filmy",
|
||||
"Playlists": "Playlisty",
|
||||
"Community": "",
|
||||
"Community": "Społeczność",
|
||||
"Current version: ": "Aktualna wersja: "
|
||||
}
|
||||
336
locales/pt-BR.json
Normal file
336
locales/pt-BR.json
Normal file
@@ -0,0 +1,336 @@
|
||||
{
|
||||
"`x` subscribers": "`x` inscritos",
|
||||
"`x` videos": "`x` videos",
|
||||
"`x` playlists": "`x` lista de reprodução",
|
||||
"LIVE": "AO VIVO",
|
||||
"Shared `x` ago": "Compartilhado `x` atrás",
|
||||
"Unsubscribe": "Desinscrever-se",
|
||||
"Subscribe": "Inscrever-se",
|
||||
"View channel on YouTube": "Ver canal no YouTube",
|
||||
"View playlist on YouTube": "Ver lista de reprodução no YouTube",
|
||||
"newest": "mais recentes",
|
||||
"oldest": "mais antigos",
|
||||
"popular": "populares",
|
||||
"last": "último",
|
||||
"Next page": "Próxima página",
|
||||
"Previous page": "Página anterior",
|
||||
"Clear watch history?": "Limpar histórico de reprodução?",
|
||||
"New password": "Nova senha",
|
||||
"New passwords must match": "Nova senha deve ser igual",
|
||||
"Cannot change password for Google accounts": "Não é possível alterar sua senha da conta Google",
|
||||
"Authorize token?": "Autorizar o token?",
|
||||
"Authorize token for `x`?": "Autorizar o token para `x`?",
|
||||
"Yes": "Sim",
|
||||
"No": "Não",
|
||||
"Import and Export Data": "Importar e Exportar Dados",
|
||||
"Import": "Importar",
|
||||
"Import Invidious data": "Importar datos do Invidious",
|
||||
"Import YouTube subscriptions": "Importar inscrições do YouTube",
|
||||
"Import FreeTube subscriptions (.db)": "Importar inscrições do FreeTube (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "Importar inscrições do NewPipe (.json)",
|
||||
"Import NewPipe data (.zip)": "Importar dados do NewPipe (.zip)",
|
||||
"Export": "Exportar",
|
||||
"Export subscriptions as OPML": "Exportar inscrições como OPML",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exportar inscrições como OPML (para NewPipe e FreeTube)",
|
||||
"Export data as JSON": "Exportar dados como JSON",
|
||||
"Delete account?": "Deletar conta?",
|
||||
"History": "Histórico",
|
||||
"An alternative front-end to YouTube": "Uma interface alternativa para o YouTube",
|
||||
"JavaScript license information": "Informação de licença do JavaScript",
|
||||
"source": "código fonte",
|
||||
"Log in": "Entrar",
|
||||
"Log in/register": "Entrar/Registrar",
|
||||
"Log in with Google": "Entrar com conta Google",
|
||||
"User ID": "Usuário",
|
||||
"Password": "Senha",
|
||||
"Time (h:mm:ss):": "Hora (h:mm:ss):",
|
||||
"Text CAPTCHA": "CAPTCHA em texto",
|
||||
"Image CAPTCHA": "CAPTCHA em imagen",
|
||||
"Sign In": "Entrar",
|
||||
"Register": "Registrar",
|
||||
"E-mail": "E-mail",
|
||||
"Google verification code": "Código de verificação do Google",
|
||||
"Preferences": "Preferências",
|
||||
"Player preferences": "Preferências do reprodutor",
|
||||
"Always loop: ": "Repetir sempre: ",
|
||||
"Autoplay: ": "Reprodução automática: ",
|
||||
"Play next by default: ": "Sempre reproduzir próximo: ",
|
||||
"Autoplay next video: ": "Reproduzir próximo video automaticamente: ",
|
||||
"Listen by default: ": "Sempre ativar som: ",
|
||||
"Proxy videos: ": "Usar proxy nos videos: ",
|
||||
"Default speed: ": "Velocidade preferida: ",
|
||||
"Preferred video quality: ": "Qualidade de video preferida: ",
|
||||
"Player volume: ": "Volume de reprodução: ",
|
||||
"Default comments: ": "Preferência de comentários: ",
|
||||
"youtube": "youtube",
|
||||
"reddit": "reddit",
|
||||
"Default captions: ": "Preferência de legendas: ",
|
||||
"Fallback captions: ": "Legendas alternativas: ",
|
||||
"Show related videos: ": "Ver videos relacionados: ",
|
||||
"Show annotations by default: ": "Sempre mostrar anotações: ",
|
||||
"Visual preferences": "Preferências visuais",
|
||||
"Player style: ": "Estilo do reprodutor",
|
||||
"Dark mode: ": "Modo escuro: ",
|
||||
"Theme: ": "Tema",
|
||||
"dark": "escuro",
|
||||
"light": "claro",
|
||||
"Thin mode: ": "Modo compacto: ",
|
||||
"Subscription preferences": "Preferências de inscrições",
|
||||
"Show annotations by default for subscribed channels: ": "Sempre mostrar anotações nos videos de canais inscritos ",
|
||||
"Redirect homepage to feed: ": "Redirecionar página inicial para o feed: ",
|
||||
"Number of videos shown in feed: ": "Número de videos no feed: ",
|
||||
"Sort videos by: ": "Ordenar videos por: ",
|
||||
"published": "publicado",
|
||||
"published - reverse": "publicado - ordem inversa",
|
||||
"alphabetically": "alfabética",
|
||||
"alphabetically - reverse": "alfabética - ordem inversa",
|
||||
"channel name": "nome do canal",
|
||||
"channel name - reverse": "nome do canal - ordem inversa",
|
||||
"Only show latest video from channel: ": "Mostrar apenas o video mais recente do canal: ",
|
||||
"Only show latest unwatched video from channel: ": "Mostrar apenas o video mais recente não visualizados do canal: ",
|
||||
"Only show unwatched: ": "Mostrar apenas videos não visualizados: ",
|
||||
"Only show notifications (if there are any): ": "Mostrar apenas notificações (se existentes): ",
|
||||
"Enable web notifications": "Ativar notificações pela web",
|
||||
"`x` uploaded a video": "`x` publicou um novo video",
|
||||
"`x` is live": "`x` está ao vivo",
|
||||
"Data preferences": "Preferências de dados",
|
||||
"Clear watch history": "Limpar histórico de reprodução",
|
||||
"Import/export data": "Importar/Exportar dados",
|
||||
"Change password": "Alterar senha",
|
||||
"Manage subscriptions": "Gerenciar inscrições",
|
||||
"Manage tokens": "Gerenciar tokens",
|
||||
"Watch history": "Histórico de reprodução",
|
||||
"Delete account": "Apagar sua conta",
|
||||
"Administrator preferences": "Preferências de administrador",
|
||||
"Default homepage: ": "Página de inicio padrão: ",
|
||||
"Feed menu: ": "Menú do feed: ",
|
||||
"Top enabled: ": "Habilitar destaques: ",
|
||||
"CAPTCHA enabled: ": "Habilitar CAPTCHA: ",
|
||||
"Login enabled: ": "Habilitar login: ",
|
||||
"Registration enabled: ": "Habilitar registro: ",
|
||||
"Report statistics: ": "Habilitar estatísticas: ",
|
||||
"Save preferences": "Salvar preferências",
|
||||
"Subscription manager": "Gerenciador de inscrições",
|
||||
"Token manager": "Gerenciador de tokens",
|
||||
"Token": "Token",
|
||||
"`x` subscriptions": "`x` inscrições",
|
||||
"`x` tokens": "`x` tokens",
|
||||
"Import/export": "Importar/Exportar",
|
||||
"unsubscribe": "desinscrever-se",
|
||||
"revoke": "revogar",
|
||||
"Subscriptions": "Inscrições",
|
||||
"`x` unseen notifications": "`x` notificações não visualizadas",
|
||||
"search": "procurar",
|
||||
"Log out": "Sair",
|
||||
"Released under the AGPLv3 by Omar Roth.": "Publicado sob a licença AGPLv3, por Omar Roth.",
|
||||
"Source available here.": "Código fonte disponível aqui.",
|
||||
"View JavaScript license information.": "Ver informações da licença do JavaScript.",
|
||||
"View privacy policy.": "Ver a política de privacidade",
|
||||
"Trending": "Trending",
|
||||
"Public": "Público",
|
||||
"Unlisted": "No listado",
|
||||
"Private": "Privado",
|
||||
"View all playlists": "Mostrar todas listas de reprodução",
|
||||
"Updated `x` ago": "Enviado `x` atrás",
|
||||
"Delete playlist `x`?": "Apagar a playlist `x`?",
|
||||
"Delete playlist": "Apagar playlist",
|
||||
"Create playlist": "Criar playlist",
|
||||
"Title": "Título",
|
||||
"Playlist privacy": "Privacidade da playlist",
|
||||
"Editing playlist `x`": "Editando playlist",
|
||||
"Watch on YouTube": "Assistir vídeo no YouTube",
|
||||
"Hide annotations": "Ocultar anotações",
|
||||
"Show annotations": "Mostrar anotações",
|
||||
"Genre: ": "Gênero: ",
|
||||
"License: ": "Licença: ",
|
||||
"Family friendly? ": "Fistrar conteúdo impróprio: ",
|
||||
"Wilson score: ": "Pontuação de Wilson: ",
|
||||
"Engagement: ": "Engagement: ",
|
||||
"Whitelisted regions: ": "Regiões permitidas: ",
|
||||
"Blacklisted regions: ": "Regiões bloqueadas: ",
|
||||
"Shared `x`": "Compartilhado `x`",
|
||||
"`x` views": "`x` visualizações",
|
||||
"Premieres in `x`": "Estreias em `x`",
|
||||
"Premieres `x`": "Estreia `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Oi! Parece que seu JavaScript está desativado. Clique aqui para ver os comentários, entretanto eles podem levar um pouco mais de tempo para carregar.",
|
||||
"View YouTube comments": "Ver comentários do YouTube",
|
||||
"View more comments on Reddit": "Ver mais comentários do Reddit",
|
||||
"View `x` comments": "Ver `x` comentários",
|
||||
"View Reddit comments": "Ver comentários do Reddit",
|
||||
"Hide replies": "Ocultar respostas",
|
||||
"Show replies": "Mostrar respostas",
|
||||
"Incorrect password": "Senha incorreta",
|
||||
"Quota exceeded, try again in a few hours": "Cota excedida, tente novamente em algumas horas",
|
||||
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Não foi possível fazer login, sua autenticação por dois passos (app autenticador ou sms) deve estar ativada.",
|
||||
"Invalid TFA code": "Código TFA inválido",
|
||||
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Falha no login. Isso pode acontecer pois a autenticação por dois passos está desativada para sua conta.",
|
||||
"Wrong answer": "Respuesta inválida",
|
||||
"Erroneous CAPTCHA": "CAPTCHA inválido",
|
||||
"CAPTCHA is a required field": "O CAPTCHA é um campo obrigatório",
|
||||
"User ID is a required field": "O nome de usuário é um campo obrigatório",
|
||||
"Password is a required field": "A senha é um campo obrigatório",
|
||||
"Wrong username or password": "Nome de usuário ou senha inválidos",
|
||||
"Please sign in using 'Log in with Google'": "Por favor, entre usando 'Entrar com conta Google'",
|
||||
"Password cannot be empty": "A senha não pode estar vazia",
|
||||
"Password cannot be longer than 55 characters": "A senha não pode ter mais que 55 caracteres",
|
||||
"Please log in": "Por favor, inicie sua seção",
|
||||
"Invidious Private Feed for `x`": "Feed Privado do Invidious para `x`",
|
||||
"channel:`x`": "canal: `x`",
|
||||
"Deleted or invalid channel": "Este canal foi apagado ou é inválido",
|
||||
"This channel does not exist.": "Este canal não existe.",
|
||||
"Could not get channel info.": "Não foi possível obter as informações do canal.",
|
||||
"Could not fetch comments": "Não foi possível obter os comentários",
|
||||
"View `x` replies": "Ver `x` respostas",
|
||||
"`x` ago": "`x` atrás",
|
||||
"Load more": "Carregar mais",
|
||||
"`x` points": "`x` pontos",
|
||||
"Could not create mix.": "Não foi possível criar o mix.",
|
||||
"Empty playlist": "A lista de reprodução está vazia",
|
||||
"Not a playlist.": "Lista de reprodução inválida.",
|
||||
"Playlist does not exist.": "A lista de reprodução não existe.",
|
||||
"Could not pull trending pages.": "Não foi possível oberter as páginas dos videos em alta.",
|
||||
"Hidden field \"challenge\" is a required field": "O campo oculto \"desafio\" é obrigatório",
|
||||
"Hidden field \"token\" is a required field": "O campo oculto \"token\" é obrigatório",
|
||||
"Erroneous challenge": "Desafío inválido",
|
||||
"Erroneous token": "Símbolo inválido",
|
||||
"No such user": "Usuario inválido",
|
||||
"Token is expired, please try again": "Token expirou, tente novamente",
|
||||
"English": "Inglês",
|
||||
"English (auto-generated)": "Inglês (gerado automaticamente)",
|
||||
"Afrikaans": "Africâner",
|
||||
"Albanian": "Albanês",
|
||||
"Amharic": "Amárico",
|
||||
"Arabic": "Árabe",
|
||||
"Armenian": "Armênio",
|
||||
"Azerbaijani": "Azeri",
|
||||
"Bangla": "Bengalês",
|
||||
"Basque": "Basco",
|
||||
"Belarusian": "Bielorrusso",
|
||||
"Bosnian": "Língua Bósnia",
|
||||
"Bulgarian": "Búlgaro",
|
||||
"Burmese": "Birmanês",
|
||||
"Catalan": "Catalão",
|
||||
"Cebuano": "Cebuano",
|
||||
"Chinese (Simplified)": "Chinês Simplificado",
|
||||
"Chinese (Traditional)": "Chinês Tradicional",
|
||||
"Corsican": "Corso",
|
||||
"Croatian": "Croata",
|
||||
"Czech": "Checo",
|
||||
"Danish": "Dinamarquês",
|
||||
"Dutch": "Holandês",
|
||||
"Esperanto": "Esperanto",
|
||||
"Estonian": "Estoniano",
|
||||
"Filipino": "Filipino",
|
||||
"Finnish": "Finlandês",
|
||||
"French": "Francês",
|
||||
"Galician": "Galego",
|
||||
"Georgian": "Georgiano",
|
||||
"German": "Alemão",
|
||||
"Greek": "Grego",
|
||||
"Gujarati": "Guzerate",
|
||||
"Haitian Creole": "Crioulo Haitiano",
|
||||
"Hausa": "Hauçá",
|
||||
"Hawaiian": "Havaiano",
|
||||
"Hebrew": "Hebraico",
|
||||
"Hindi": "Hindi",
|
||||
"Hmong": "Hmong",
|
||||
"Hungarian": "Húngaro",
|
||||
"Icelandic": "Islandês",
|
||||
"Igbo": "Igbo",
|
||||
"Indonesian": "Indonésio",
|
||||
"Irish": "Irlandês",
|
||||
"Italian": "Italiano",
|
||||
"Japanese": "Japonês",
|
||||
"Javanese": "Javanês",
|
||||
"Kannada": "Canarẽs",
|
||||
"Kazakh": "Cazaque",
|
||||
"Khmer": "Khmer",
|
||||
"Korean": "Coreano",
|
||||
"Kurdish": "Curdo",
|
||||
"Kyrgyz": "Quirguiz",
|
||||
"Lao": "Laosiano",
|
||||
"Latin": "Latim",
|
||||
"Latvian": "Letão",
|
||||
"Lithuanian": "Lituano",
|
||||
"Luxembourgish": "Luxemburguês",
|
||||
"Macedonian": "Macedônio",
|
||||
"Malagasy": "Malgaxe",
|
||||
"Malay": "Malaia",
|
||||
"Malayalam": "Malaiala",
|
||||
"Maltese": "Maltês",
|
||||
"Maori": "Maori",
|
||||
"Marathi": "Marathi",
|
||||
"Mongolian": "Mongol",
|
||||
"Nepali": "Nepalês",
|
||||
"Norwegian Bokmål": "Bokmål Norueguês",
|
||||
"Nyanja": "Nianja",
|
||||
"Pashto": "Pachto",
|
||||
"Persian": "Persa",
|
||||
"Polish": "Polaco",
|
||||
"Portuguese": "Português",
|
||||
"Punjabi": "Panjábi",
|
||||
"Romanian": "Língua Romena",
|
||||
"Russian": "Russo",
|
||||
"Samoan": "Samoano",
|
||||
"Scottish Gaelic": "Ânglico Escocês",
|
||||
"Serbian": "Língua Sérvia",
|
||||
"Shona": "Xona",
|
||||
"Sindhi": "Sindi",
|
||||
"Sinhala": "Cingalês",
|
||||
"Slovak": "Eslovaco",
|
||||
"Slovenian": "Esloveno",
|
||||
"Somali": "Língua Somalí",
|
||||
"Southern Sotho": "Sesoto",
|
||||
"Spanish": "Espanhol",
|
||||
"Spanish (Latin America)": "Espanhol (América)",
|
||||
"Sundanese": "Sondanese",
|
||||
"Swahili": "Suaíli",
|
||||
"Swedish": "Suéco",
|
||||
"Tajik": "Tajiques",
|
||||
"Tamil": "Tâmil",
|
||||
"Telugu": "Telugo",
|
||||
"Thai": "Tailandês",
|
||||
"Turkish": "Turco",
|
||||
"Ukrainian": "Ucraniano",
|
||||
"Urdu": "Urdu",
|
||||
"Uzbek": "Uzbeque",
|
||||
"Vietnamese": "Vietnamita",
|
||||
"Welsh": "Galês",
|
||||
"Western Frisian": "Língua Frísia",
|
||||
"Xhosa": "Xhosa",
|
||||
"Yiddish": "Iídiche",
|
||||
"Yoruba": "Iorubá",
|
||||
"Zulu": "Língua Zulú",
|
||||
"`x` years": "`x` anos",
|
||||
"`x` months": "`x` meses",
|
||||
"`x` weeks": "`x` semanas",
|
||||
"`x` days": "`x` dias",
|
||||
"`x` hours": "`x` horas",
|
||||
"`x` minutes": "`x` minutos",
|
||||
"`x` seconds": "`x` segundos",
|
||||
"Fallback comments: ": "Comentários alternativos: ",
|
||||
"Popular": "Populares",
|
||||
"Top": "No topo",
|
||||
"About": "Sobre",
|
||||
"Rating: ": "Avaliação: ",
|
||||
"Language: ": "Idioma: ",
|
||||
"View as playlist": "Ver como lista de reprodução",
|
||||
"Default": "Configuração padrão",
|
||||
"Music": "Música",
|
||||
"Gaming": "Video Games",
|
||||
"News": "Notícias",
|
||||
"Movies": "Filmes",
|
||||
"Download": "Baixar",
|
||||
"Download as: ": "Baixar como: ",
|
||||
"%A %B %-d, %Y": "%A %-d %B %Y",
|
||||
"(edited)": "(editado)",
|
||||
"YouTube comment permalink": "Link permanente do comentário do YouTube",
|
||||
"permalink": "Link permanente",
|
||||
"`x` marked it with a ❤": "`x` foi marcado como ❤",
|
||||
"Audio mode": "Modo de audio",
|
||||
"Video mode": "Modo de video",
|
||||
"Videos": "Vídeos",
|
||||
"Playlists": "Listas de reprodução",
|
||||
"Community": "Comunidade",
|
||||
"Current version: ": "Versão atual: "
|
||||
}
|
||||
387
locales/pt-PT.json
Normal file
387
locales/pt-PT.json
Normal file
@@ -0,0 +1,387 @@
|
||||
{
|
||||
"`x` subscribers.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` subscritores.",
|
||||
"": "`x` subscritores."
|
||||
},
|
||||
"`x` videos.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` vídeos.",
|
||||
"": "`x` vídeos."
|
||||
},
|
||||
"`x` playlists.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` listas de reprodução.",
|
||||
"": "`x` listas de reprodução."
|
||||
},
|
||||
"LIVE": "Em direto",
|
||||
"Shared `x` ago": "Partilhado `x` atrás",
|
||||
"Unsubscribe": "Anular subscrição",
|
||||
"Subscribe": "Subscrever",
|
||||
"View channel on YouTube": "Ver canal no YouTube",
|
||||
"View playlist on YouTube": "Ver lista de reprodução no YouTube",
|
||||
"newest": "mais recentes",
|
||||
"oldest": "mais antigos",
|
||||
"popular": "popular",
|
||||
"last": "últimos",
|
||||
"Next page": "Próxima página",
|
||||
"Previous page": "Página anterior",
|
||||
"Clear watch history?": "Limpar histórico de reprodução?",
|
||||
"New password": "Nova palavra-chave",
|
||||
"New passwords must match": "As novas palavra-chaves devem corresponder",
|
||||
"Cannot change password for Google accounts": "Não é possível alterar palavra-chave para contas do Google",
|
||||
"Authorize token?": "Autorizar token?",
|
||||
"Authorize token for `x`?": "Autorizar token para `x`?",
|
||||
"Yes": "Sim",
|
||||
"No": "Não",
|
||||
"Import and Export Data": "Importar e Exportar Dados",
|
||||
"Import": "Importar",
|
||||
"Import Invidious data": "Importar dados do Invidious",
|
||||
"Import YouTube subscriptions": "Importar subscrições do YouTube",
|
||||
"Import FreeTube subscriptions (.db)": "Importar subscrições do FreeTube (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "Importar subscrições do NewPipe (.json)",
|
||||
"Import NewPipe data (.zip)": "Importar dados do NewPipe (.zip)",
|
||||
"Export": "Exportar",
|
||||
"Export subscriptions as OPML": "Exportar subscrições como OPML",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exportar subscrições como OPML (para NewPipe e FreeTube)",
|
||||
"Export data as JSON": "Exportar dados como JSON",
|
||||
"Delete account?": "Eliminar conta?",
|
||||
"History": "Histórico",
|
||||
"An alternative front-end to YouTube": "Uma interface alternativa para o YouTube",
|
||||
"JavaScript license information": "Informação de licença do JavaScript",
|
||||
"source": "código-fonte",
|
||||
"Log in": "Iniciar sessão",
|
||||
"Log in/register": "Iniciar sessão/Registar",
|
||||
"Log in with Google": "Iniciar sessão com o Google",
|
||||
"User ID": "Utilizador",
|
||||
"Password": "Palavra-chave",
|
||||
"Time (h:mm:ss):": "Tempo (h:mm:ss):",
|
||||
"Text CAPTCHA": "Texto CAPTCHA",
|
||||
"Image CAPTCHA": "Imagem CAPTCHA",
|
||||
"Sign In": "Iniciar Sessão",
|
||||
"Register": "Registar",
|
||||
"E-mail": "E-mail",
|
||||
"Google verification code": "Código de verificação do Google",
|
||||
"Preferences": "Preferências",
|
||||
"Player preferences": "Preferências do reprodutor",
|
||||
"Always loop: ": "Repetir sempre: ",
|
||||
"Autoplay: ": "Reprodução automática: ",
|
||||
"Play next by default: ": "Sempre reproduzir próximo: ",
|
||||
"Autoplay next video: ": "Reproduzir próximo vídeo automaticamente: ",
|
||||
"Listen by default: ": "Apenas áudio: ",
|
||||
"Proxy videos: ": "Usar proxy nos vídeos: ",
|
||||
"Default speed: ": "Velocidade preferida: ",
|
||||
"Preferred video quality: ": "Qualidade de vídeo preferida: ",
|
||||
"Player volume: ": "Volume da reprodução: ",
|
||||
"Default comments: ": "Preferência dos comentários: ",
|
||||
"youtube": "youtube",
|
||||
"reddit": "reddit",
|
||||
"Default captions: ": "Legendas predefinidas: ",
|
||||
"Fallback captions: ": "Legendas alternativas: ",
|
||||
"Show related videos: ": "Mostrar vídeos relacionados: ",
|
||||
"Show annotations by default: ": "Mostrar sempre anotações: ",
|
||||
"Visual preferences": "Preferências visuais",
|
||||
"Player style: ": "Estilo do reprodutor: ",
|
||||
"Dark mode: ": "Modo escuro: ",
|
||||
"Theme: ": "Tema: ",
|
||||
"dark": "escuro",
|
||||
"light": "claro",
|
||||
"Thin mode: ": "Modo compacto: ",
|
||||
"Subscription preferences": "Preferências de subscrições",
|
||||
"Show annotations by default for subscribed channels: ": "Mostrar sempre anotações para os canais subscritos: ",
|
||||
"Redirect homepage to feed: ": "Redirecionar página inicial para subscrições: ",
|
||||
"Number of videos shown in feed: ": "Número de vídeos nas subscrições: ",
|
||||
"Sort videos by: ": "Ordenar vídeos por: ",
|
||||
"published": "publicado",
|
||||
"published - reverse": "publicado - inverso",
|
||||
"alphabetically": "alfabeticamente",
|
||||
"alphabetically - reverse": "alfabeticamente - inverso",
|
||||
"channel name": "nome do canal",
|
||||
"channel name - reverse": "nome do canal - inverso",
|
||||
"Only show latest video from channel: ": "Mostrar apenas o vídeo mais recente do canal: ",
|
||||
"Only show latest unwatched video from channel: ": "Mostrar apenas vídeos mais recentes não visualizados do canal: ",
|
||||
"Only show unwatched: ": "Mostrar apenas vídeos não visualizados: ",
|
||||
"Only show notifications (if there are any): ": "Mostrar apenas notificações (se existirem): ",
|
||||
"Enable web notifications": "Ativar notificações pela web",
|
||||
"`x` uploaded a video": "`x` publicou um novo vídeo",
|
||||
"`x` is live": "`x` está em direto",
|
||||
"Data preferences": "Preferências de dados",
|
||||
"Clear watch history": "Limpar histórico de reprodução",
|
||||
"Import/export data": "Importar/Exportar dados",
|
||||
"Change password": "Alterar palavra-chave",
|
||||
"Manage subscriptions": "Gerir as subscrições",
|
||||
"Manage tokens": "Gerir tokens",
|
||||
"Watch history": "Histórico de reprodução",
|
||||
"Delete account": "Eliminar conta",
|
||||
"Administrator preferences": "Preferências de administrador",
|
||||
"Default homepage: ": "Página inicial padrão: ",
|
||||
"Feed menu: ": "Menu de subscrições: ",
|
||||
"Top enabled: ": "Top ativado: ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA ativado: ",
|
||||
"Login enabled: ": "Iniciar sessão ativado: ",
|
||||
"Registration enabled: ": "Registar ativado: ",
|
||||
"Report statistics: ": "Relatório de estatísticas: ",
|
||||
"Save preferences": "Gravar preferências",
|
||||
"Subscription manager": "Gerir subscrições",
|
||||
"Token manager": "Gerir tokens",
|
||||
"Token": "Token",
|
||||
"`x` subscriptions.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` subscrições.",
|
||||
"": "`x` subscrições."
|
||||
},
|
||||
"`x` tokens.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` tokens.",
|
||||
"": "`x` tokens."
|
||||
},
|
||||
"Import/export": "Importar/Exportar",
|
||||
"unsubscribe": "Anular subscrição",
|
||||
"revoke": "revogar",
|
||||
"Subscriptions": "Subscrições",
|
||||
"`x` unseen notifications.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` notificações não vistas.",
|
||||
"": "`x` notificações não vistas."
|
||||
},
|
||||
"search": "Pesquisar",
|
||||
"Log out": "Terminar sessão",
|
||||
"Released under the AGPLv3 by Omar Roth.": "Publicado sob a licença AGPLv3, por Omar Roth.",
|
||||
"Source available here.": "Código-fonte disponível aqui.",
|
||||
"View JavaScript license information.": "Ver informações da licença do JavaScript.",
|
||||
"View privacy policy.": "Ver a política de privacidade.",
|
||||
"Trending": "Tendências",
|
||||
"Public": "Público",
|
||||
"Unlisted": "Não listado",
|
||||
"Private": "Privado",
|
||||
"View all playlists": "Ver todas as listas de reprodução",
|
||||
"Updated `x` ago": "Atualizado `x` atrás",
|
||||
"Delete playlist `x`?": "Eliminar a lista de reprodução 'x'?",
|
||||
"Delete playlist": "Eliminar lista de reprodução",
|
||||
"Create playlist": "Criar lista de reprodução",
|
||||
"Title": "Título",
|
||||
"Playlist privacy": "Privacidade da lista de reprodução",
|
||||
"Editing playlist `x`": "A editar lista de reprodução 'x'",
|
||||
"Watch on YouTube": "Ver no YouTube",
|
||||
"Hide annotations": "Ocultar anotações",
|
||||
"Show annotations": "Mostrar anotações",
|
||||
"Genre: ": "Género: ",
|
||||
"License: ": "Licença: ",
|
||||
"Family friendly? ": "Filtrar conteúdo impróprio: ",
|
||||
"Wilson score: ": "Pontuação de Wilson: ",
|
||||
"Engagement: ": "Compromisso: ",
|
||||
"Whitelisted regions: ": "Regiões permitidas: ",
|
||||
"Blacklisted regions: ": "Regiões bloqueadas: ",
|
||||
"Shared `x`": "Partilhado `x`",
|
||||
"`x` views.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` visualizações.",
|
||||
"": "`x` visualizações."
|
||||
},
|
||||
"Premieres in `x`": "Estreias em 'x'",
|
||||
"Premieres `x`": "Estreias 'x'",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Oi! Parece que JavaScript está desativado. Clique aqui para ver os comentários, entretanto eles podem levar mais tempo para carregar.",
|
||||
"View YouTube comments": "Ver comentários do YouTube",
|
||||
"View more comments on Reddit": "Ver mais comentários no Reddit",
|
||||
"View `x` comments.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "Ver `x` comentários.",
|
||||
"": "Ver `x` comentários."
|
||||
},
|
||||
"View Reddit comments": "Ver comentários do Reddit",
|
||||
"Hide replies": "Ocultar respostas",
|
||||
"Show replies": "Mostrar respostas",
|
||||
"Incorrect password": "Palavra-chave incorreta",
|
||||
"Quota exceeded, try again in a few hours": "Cota excedida. Tente novamente dentro de algumas horas",
|
||||
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Não é possível iniciar sessão, certifique-se de que a autenticação de dois fatores (Autenticador ou SMS) está ativada.",
|
||||
"Invalid TFA code": "Código TFA inválido",
|
||||
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Falhou o início de sessão. Isto pode ser devido a dois fatores de autenticação não está ativado para sua conta.",
|
||||
"Wrong answer": "Resposta errada",
|
||||
"Erroneous CAPTCHA": "CAPTCHA inválido",
|
||||
"CAPTCHA is a required field": "CAPTCHA é um campo obrigatório",
|
||||
"User ID is a required field": "O nome de utilizador é um campo obrigatório",
|
||||
"Password is a required field": "Palavra-chave é um campo obrigatório",
|
||||
"Wrong username or password": "Nome de utilizador ou palavra-chave incorreto",
|
||||
"Please sign in using 'Log in with Google'": "Por favor, inicie sessão usando 'Iniciar sessão com o Google'",
|
||||
"Password cannot be empty": "A palavra-chave não pode estar vazia",
|
||||
"Password cannot be longer than 55 characters": "A palavra-chave não pode ser superior a 55 caracteres",
|
||||
"Please log in": "Por favor, inicie sessão",
|
||||
"Invidious Private Feed for `x`": "Feed Privado do Invidious para `x`",
|
||||
"channel:`x`": "canal:'x'",
|
||||
"Deleted or invalid channel": "Canal apagado ou inválido",
|
||||
"This channel does not exist.": "Este canal não existe.",
|
||||
"Could not get channel info.": "Não foi possível obter as informações do canal.",
|
||||
"Could not fetch comments": "Não foi possível obter os comentários",
|
||||
"View `x` replies.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "Ver `x` respostas.",
|
||||
"": "Ver `x` respostas."
|
||||
},
|
||||
"`x` ago": "`x` atrás",
|
||||
"Load more": "Carregar mais",
|
||||
"`x` points.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "'x' pontos.",
|
||||
"": "'x' pontos."
|
||||
},
|
||||
"Could not create mix.": "Não foi possível criar mistura.",
|
||||
"Empty playlist": "Lista de reprodução vazia",
|
||||
"Not a playlist.": "Não é uma lista de reprodução.",
|
||||
"Playlist does not exist.": "A lista de reprodução não existe.",
|
||||
"Could not pull trending pages.": "Não foi possível obter páginas de tendências.",
|
||||
"Hidden field \"challenge\" is a required field": "O campo oculto \"desafio\" é obrigatório",
|
||||
"Hidden field \"token\" is a required field": "O campo oculto \"token\" é um campo obrigatório",
|
||||
"Erroneous challenge": "Desafio inválido",
|
||||
"Erroneous token": "Token inválido",
|
||||
"No such user": "Utilizador inválido",
|
||||
"Token is expired, please try again": "Token expirou, tente novamente",
|
||||
"English": "Inglês",
|
||||
"English (auto-generated)": "Inglês (auto-gerado)",
|
||||
"Afrikaans": "Africano",
|
||||
"Albanian": "Albanês",
|
||||
"Amharic": "Amárico",
|
||||
"Arabic": "Árabe",
|
||||
"Armenian": "Arménio",
|
||||
"Azerbaijani": "Azerbaijano",
|
||||
"Bangla": "Bangla",
|
||||
"Basque": "Basco",
|
||||
"Belarusian": "Bielorrusso",
|
||||
"Bosnian": "Bósnio",
|
||||
"Bulgarian": "Búlgaro",
|
||||
"Burmese": "Birmanês",
|
||||
"Catalan": "Catalão",
|
||||
"Cebuano": "Cebuano",
|
||||
"Chinese (Simplified)": "Chinês (Simplificado)",
|
||||
"Chinese (Traditional)": "Chinês (Tradicional)",
|
||||
"Corsican": "Corso",
|
||||
"Croatian": "Croata",
|
||||
"Czech": "Checo",
|
||||
"Danish": "Dinamarquês",
|
||||
"Dutch": "Holandês",
|
||||
"Esperanto": "Esperanto",
|
||||
"Estonian": "Estónio",
|
||||
"Filipino": "Filipino",
|
||||
"Finnish": "Finlandês",
|
||||
"French": "Francês",
|
||||
"Galician": "Galego",
|
||||
"Georgian": "Georgiano",
|
||||
"German": "Alemão",
|
||||
"Greek": "Grego",
|
||||
"Gujarati": "Guzerate",
|
||||
"Haitian Creole": "Crioulo haitiano",
|
||||
"Hausa": "Hauçá",
|
||||
"Hawaiian": "Havaiano",
|
||||
"Hebrew": "Hebraico",
|
||||
"Hindi": "Hindi",
|
||||
"Hmong": "Hmong",
|
||||
"Hungarian": "Húngaro",
|
||||
"Icelandic": "Islandês",
|
||||
"Igbo": "Igbo",
|
||||
"Indonesian": "Indonésio",
|
||||
"Irish": "Irlandês",
|
||||
"Italian": "Italiano",
|
||||
"Japanese": "Japonês",
|
||||
"Javanese": "Javanês",
|
||||
"Kannada": "Canarim",
|
||||
"Kazakh": "Cazaque",
|
||||
"Khmer": "Khmer",
|
||||
"Korean": "Coreano",
|
||||
"Kurdish": "Curdo",
|
||||
"Kyrgyz": "Quirguiz",
|
||||
"Lao": "Laosiano",
|
||||
"Latin": "Latim",
|
||||
"Latvian": "Letão",
|
||||
"Lithuanian": "Lituano",
|
||||
"Luxembourgish": "Luxemburguês",
|
||||
"Macedonian": "Macedónio",
|
||||
"Malagasy": "Malgaxe",
|
||||
"Malay": "Malaio",
|
||||
"Malayalam": "Malaiala",
|
||||
"Maltese": "Maltês",
|
||||
"Maori": "Maori",
|
||||
"Marathi": "Marathi",
|
||||
"Mongolian": "Mongol",
|
||||
"Nepali": "Nepalês",
|
||||
"Norwegian Bokmål": "Bokmål norueguês",
|
||||
"Nyanja": "Nyanja",
|
||||
"Pashto": "Pashto",
|
||||
"Persian": "Persa",
|
||||
"Polish": "Polaco",
|
||||
"Portuguese": "Português",
|
||||
"Punjabi": "Punjabi",
|
||||
"Romanian": "Romeno",
|
||||
"Russian": "Russo",
|
||||
"Samoan": "Samoano",
|
||||
"Scottish Gaelic": "Gaélico escocês",
|
||||
"Serbian": "Sérvio",
|
||||
"Shona": "Shona",
|
||||
"Sindhi": "Sindhi",
|
||||
"Sinhala": "Cingalês",
|
||||
"Slovak": "Eslovaco",
|
||||
"Slovenian": "Esloveno",
|
||||
"Somali": "Somali",
|
||||
"Southern Sotho": "Sotho do Sul",
|
||||
"Spanish": "Espanhol",
|
||||
"Spanish (Latin America)": "Espanhol (América Latina)",
|
||||
"Sundanese": "Sudanês",
|
||||
"Swahili": "Suaíli",
|
||||
"Swedish": "Sueco",
|
||||
"Tajik": "Tajique",
|
||||
"Tamil": "Tâmil",
|
||||
"Telugu": "Telugu",
|
||||
"Thai": "Tailandês",
|
||||
"Turkish": "Turco",
|
||||
"Ukrainian": "Ucraniano",
|
||||
"Urdu": "Urdu",
|
||||
"Uzbek": "Uzbeque",
|
||||
"Vietnamese": "Vietnamita",
|
||||
"Welsh": "Galês",
|
||||
"Western Frisian": "Frísio Ocidental",
|
||||
"Xhosa": "Xhosa",
|
||||
"Yiddish": "Iídiche",
|
||||
"Yoruba": "Ioruba",
|
||||
"Zulu": "Zulu",
|
||||
"`x` years.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` anos.",
|
||||
"": "`x` anos."
|
||||
},
|
||||
"`x` months.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` meses.",
|
||||
"": "`x` meses."
|
||||
},
|
||||
"`x` weeks.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` semanas.",
|
||||
"": "`x` semanas."
|
||||
},
|
||||
"`x` days.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` dias.",
|
||||
"": "`x` dias."
|
||||
},
|
||||
"`x` hours.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` horas.",
|
||||
"": "`x` horas."
|
||||
},
|
||||
"`x` minutes.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` minutos.",
|
||||
"": "`x` minutos."
|
||||
},
|
||||
"`x` seconds.": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` segundos.",
|
||||
"": "`x` segundos."
|
||||
},
|
||||
"Fallback comments: ": "Comentários alternativos: ",
|
||||
"Popular": "Popular",
|
||||
"Top": "Top",
|
||||
"About": "Sobre",
|
||||
"Rating: ": "Avaliação: ",
|
||||
"Language: ": "Idioma: ",
|
||||
"View as playlist": "Ver como lista de reprodução",
|
||||
"Default": "Predefinição",
|
||||
"Music": "Música",
|
||||
"Gaming": "Jogos",
|
||||
"News": "Notícias",
|
||||
"Movies": "Filmes",
|
||||
"Download": "Transferir",
|
||||
"Download as: ": "Transferir como: ",
|
||||
"%A %B %-d, %Y": "%A %B %-d, %Y",
|
||||
"(edited)": "(editado)",
|
||||
"YouTube comment permalink": "Link permanente do comentário do YouTube",
|
||||
"permalink": "ligação permanente",
|
||||
"`x` marked it with a ❤": "`x` foi marcado como ❤",
|
||||
"Audio mode": "Modo de áudio",
|
||||
"Video mode": "Modo de vídeo",
|
||||
"Videos": "Vídeos",
|
||||
"Playlists": "Listas de reprodução",
|
||||
"Community": "Comunidade",
|
||||
"Current version: ": "Versão atual: "
|
||||
}
|
||||
336
locales/ro.json
Normal file
336
locales/ro.json
Normal file
@@ -0,0 +1,336 @@
|
||||
{
|
||||
"`x` subscribers": "`x` abonați",
|
||||
"`x` videos": "`x` videoclipuri",
|
||||
"`x` playlists": "`x` liste de redare",
|
||||
"LIVE": "ÎN DIRECT",
|
||||
"Shared `x` ago": "Adăugat acum `x`",
|
||||
"Unsubscribe": "Dezabonați-vă",
|
||||
"Subscribe": "Abonați-vă",
|
||||
"View channel on YouTube": "Vedeți canalul pe YouTube",
|
||||
"View playlist on YouTube": "Vedeți lista de redare pe YouTube",
|
||||
"newest": "Data adăugării (cea mai recentă)",
|
||||
"oldest": "Data adăugării (cea mai veche)",
|
||||
"popular": "Cele mai populare",
|
||||
"last": "Ultimele",
|
||||
"Next page": "Pagina următoare",
|
||||
"Previous page": "Pagina precedentă",
|
||||
"Clear watch history?": "Doriți să ștergeți istoricul?",
|
||||
"New password": "Parola nouă",
|
||||
"New passwords must match": "Câmpurile \"Parolă nouă\" trebuie să fie identice",
|
||||
"Cannot change password for Google accounts": "Parola pentru un cont Google nu poate fi schimbată de pe Invidious",
|
||||
"Authorize token?": "Autorizați token-ul?",
|
||||
"Authorize token for `x`?": "Autorizați token-ul pentru `x` ?",
|
||||
"Yes": "Da",
|
||||
"No": "Nu",
|
||||
"Import and Export Data": "Importați și Exportați Datele",
|
||||
"Import": "Importați",
|
||||
"Import Invidious data": "Importați Datele de pe Invidious",
|
||||
"Import YouTube subscriptions": "Importați abonamentele de pe YouTube",
|
||||
"Import FreeTube subscriptions (.db)": "Importați abonamentele de pe FreeTube (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "Importați abonamentele de pe NewPipe (.json)",
|
||||
"Import NewPipe data (.zip)": "Importați datele de pe NewPipe (.zip)",
|
||||
"Export": "Exportați",
|
||||
"Export subscriptions as OPML": "Exportați abonamentele în format OPML",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exportați abonamentele în format OPML (pentru NewPipe și FreeTube)",
|
||||
"Export data as JSON": "Exportați datele în format JSON",
|
||||
"Delete account?": "Sunteți siguri că doriți să vă ștergeți contul?",
|
||||
"History": "Istoric",
|
||||
"An alternative front-end to YouTube": "O alternativă front-end pentru YouTube",
|
||||
"JavaScript license information": "Informații despre licențele JavaScript",
|
||||
"source": "sursă",
|
||||
"Log in": "Conectați-vă",
|
||||
"Log in/register": "Conectați-vă/Creați-vă un cont",
|
||||
"Log in with Google": "Conectați-vă cu Google",
|
||||
"User ID": "ID Utilizator",
|
||||
"Password": "Parolă",
|
||||
"Time (h:mm:ss):": "Ora (h:mm:ss) :",
|
||||
"Text CAPTCHA": "Text CAPTCHA",
|
||||
"Image CAPTCHA": "Imagine CAPTCHA",
|
||||
"Sign In": "Conectați-vă",
|
||||
"Register": "Înregistrați-vă",
|
||||
"E-mail": "E-mail",
|
||||
"Google verification code": "Cod de verificare Google",
|
||||
"Preferences": "Preferințe",
|
||||
"Player preferences": "Setări de redare",
|
||||
"Always loop: ": "Reluați videoclipul la nesfârșit: ",
|
||||
"Autoplay: ": "Porniți videoclipurile automat: ",
|
||||
"Play next by default: ": "Vizionați următoarele videoclipuri în mod implicit: ",
|
||||
"Autoplay next video: ": "Porniți următorul videoclip automat: ",
|
||||
"Listen by default: ": "Numai audio: ",
|
||||
"Proxy videos: ": "Redați videoclipurile printr-un proxy: ",
|
||||
"Default speed: ": "Viteza de redare implicită: ",
|
||||
"Preferred video quality: ": "Calitatea videoclipurilor: ",
|
||||
"Player volume: ": "Volumul videoclipurilor: ",
|
||||
"Default comments: ": "Sursa comentariilor: ",
|
||||
"youtube": "YouTube",
|
||||
"reddit": "Reddit",
|
||||
"Default captions: ": "Subtitrări implicite: ",
|
||||
"Fallback captions: ": "Subtitrări alternative: ",
|
||||
"Show related videos: ": "Afișați videoclipurile asemănătoare: ",
|
||||
"Show annotations by default: ": "Afișați adnotările în mod implicit: ",
|
||||
"Visual preferences": "Preferințele site-ului",
|
||||
"Player style: ": "Stilul player-ului : ",
|
||||
"Dark mode: ": "Modul întunecat : ",
|
||||
"Theme: ": "Tema : ",
|
||||
"dark": "întunecat",
|
||||
"light": "luminos",
|
||||
"Thin mode: ": "Mod lejer: ",
|
||||
"Subscription preferences": "Preferințele paginii de abonamente",
|
||||
"Show annotations by default for subscribed channels: ": "Afișați adnotările în mod implicit pentru canalele la care v-ați abonat: ",
|
||||
"Redirect homepage to feed: ": "Redirecționați pagina principală la pagina de abonamente: ",
|
||||
"Number of videos shown in feed: ": "Numărul de videoclipuri afișate pe pagina de abonamente: ",
|
||||
"Sort videos by: ": "Sortați videoclipurile în funcție de: ",
|
||||
"published": "data publicării",
|
||||
"published - reverse": "data publicării - inversată",
|
||||
"alphabetically": "în ordine alfabetică",
|
||||
"alphabetically - reverse": "în ordine alfabetică - inversată",
|
||||
"channel name": "numele canalului",
|
||||
"channel name - reverse": "numele canalului - inversat",
|
||||
"Only show latest video from channel: ": "Afișați numai cel mai recent videoclip publicat de canalele la care v-ați abonat: ",
|
||||
"Only show latest unwatched video from channel: ": "Afișați numai cel mai recent videoclip nevizionat publicat de canalele la care v-ați abonat: ",
|
||||
"Only show unwatched: ": "Afișați numai videoclipurile nevizionate: ",
|
||||
"Only show notifications (if there are any): ": "Afișați numai notificările (dacă există): ",
|
||||
"Enable web notifications": "Activați notificările web",
|
||||
"`x` uploaded a video": "`x` a publicat un videoclip",
|
||||
"`x` is live": "`x` este în direct",
|
||||
"Data preferences": "Preferințe legate de date",
|
||||
"Clear watch history": "Ștergeți istoricul videoclipurilor vizionate",
|
||||
"Import/export data": "Importați/exportați datele",
|
||||
"Change password": "Schimbați parola",
|
||||
"Manage subscriptions": "Gestionați abonamentele",
|
||||
"Manage tokens": "Gestionați tokenele",
|
||||
"Watch history": "Istoricul videoclipurilor vizionate",
|
||||
"Delete account": "Ștergeți contul",
|
||||
"Administrator preferences": "Preferințele Administratorului",
|
||||
"Default homepage: ": "Pagina principală implicită: ",
|
||||
"Feed menu: ": "Preferințe legate de pagina de abonamente: ",
|
||||
"Top enabled: ": "Top activat: ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA activat : ",
|
||||
"Login enabled: ": "Autentificare activată : ",
|
||||
"Registration enabled: ": "Înregistrate activată: ",
|
||||
"Report statistics: ": "Raportarea statisticilor: ",
|
||||
"Save preferences": "Salvați preferințele",
|
||||
"Subscription manager": "Gestionați abonamentele",
|
||||
"Token manager": "Manager de Tokene",
|
||||
"Token": "Token",
|
||||
"`x` subscriptions": "`x` abonamente",
|
||||
"`x` tokens": "`x` tokens",
|
||||
"Import/export": "Importați/Exportați",
|
||||
"unsubscribe": "dezabonați-vă",
|
||||
"revoke": "revocați",
|
||||
"Subscriptions": "Abonamente",
|
||||
"`x` unseen notifications": "`x` notificări nevăzute",
|
||||
"search": "căutați",
|
||||
"Log out": "Deconectați-vă",
|
||||
"Released under the AGPLv3 by Omar Roth.": "Publicat sub licența AGPLv3 de Omar Roth.",
|
||||
"Source available here.": "Codul sursă este disponibil aici.",
|
||||
"View JavaScript license information.": "Informații legate de licența JavaScript.",
|
||||
"View privacy policy.": "Politica de confidențialitate.",
|
||||
"Trending": "Tendințe",
|
||||
"Public": "Public",
|
||||
"Unlisted": "Necatalogat",
|
||||
"Private": "Privat",
|
||||
"View all playlists": "Afișați toate listele de redare",
|
||||
"Updated `x` ago": "Actualizat acum `x`",
|
||||
"Delete playlist `x`?": "Sigur doriți să ștergeți lista de redare?",
|
||||
"Delete playlist": "Ștergeți lista de redare",
|
||||
"Create playlist": "Creați o listă de redare",
|
||||
"Title": "Titlu",
|
||||
"Playlist privacy": "Parametrii de confidențialitate ai listei de redare",
|
||||
"Editing playlist `x`": "Modificați lista de redare `x`",
|
||||
"Watch on YouTube": "Urmăriți videoclipul pe YouTube",
|
||||
"Hide annotations": "Ascundeți adnotările",
|
||||
"Show annotations": "Afișați adnotările",
|
||||
"Genre: ": "Categorie: ",
|
||||
"License: ": "Licență: ",
|
||||
"Family friendly? ": "Adecvat pentru întreaga familie? ",
|
||||
"Wilson score: ": "Scor Wilson: ",
|
||||
"Engagement: ": "Procentul celor care au apăsat pe \"Îmi place\" sau \"Nu îmi place\" : ",
|
||||
"Whitelisted regions: ": "Regiunile de pe lista albă: ",
|
||||
"Blacklisted regions: ": "Regiunile de pe lista neagră: ",
|
||||
"Shared `x`": "Publicat pe `x`",
|
||||
"`x` views": "`x` vizionări",
|
||||
"Premieres in `x`": "Premiera în `x`",
|
||||
"Premieres `x`": "Premiera pe `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Se pare că ați dezactivat JavaScript. Apăsați aici pentru a vizualiza comentariile. Țineți minte faptul că încărcarea lor ar putea să dureze puțin mai mult.",
|
||||
"View YouTube comments": "Vedeți comentariile de pe YouTube",
|
||||
"View more comments on Reddit": "Vedeți mai multe comentarii pe Reddit",
|
||||
"View `x` comments": "Afișați `x` comentarii",
|
||||
"View Reddit comments": "Afișați comentariile de pe Reddit",
|
||||
"Hide replies": "Ascundeți replicile",
|
||||
"Show replies": "Afișați replicile",
|
||||
"Incorrect password": "Parolă incorectă",
|
||||
"Quota exceeded, try again in a few hours": "Numărul de tentative de conectare a fost depășit. Va rugăm să încercați din nou în câteva ore.",
|
||||
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Conectare eșuată. Dacă nu reușiți să vă conectați, verificați dacă ați activat autentificarea cu doi factori (Autentificator sau SMS).",
|
||||
"Invalid TFA code": "Codul de autentificare cu doi factori este invalid",
|
||||
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Conectare eșuată. Acest lucru ar putea fi cauzat de faptul că nu ați activat autentificarea cu doi factori.",
|
||||
"Wrong answer": "Răspuns invalid",
|
||||
"Erroneous CAPTCHA": "CAPTCHA invalid",
|
||||
"CAPTCHA is a required field": "Câmpul CAPTCHA este obligatoriu",
|
||||
"User ID is a required field": "Câmpul ID Utilizator este obligatoriu",
|
||||
"Password is a required field": "Câmpul Parolă este obligatoriu",
|
||||
"Wrong username or password": "Nume de utilizator sau parolă invalidă",
|
||||
"Please sign in using 'Log in with Google'": "Vă rog conectați-vă folosind \"Conectați-vă cu Google\"",
|
||||
"Password cannot be empty": "Parola nu poate fi goală",
|
||||
"Password cannot be longer than 55 characters": "Parola nu poate să conțină mai mult de 55 de caractere",
|
||||
"Please log in": "Vă rog conectați-vă",
|
||||
"Invidious Private Feed for `x`": "Feed RSS privat pentru `x`",
|
||||
"channel:`x`": "canal:`x`",
|
||||
"Deleted or invalid channel": "Canal șters sau invalid",
|
||||
"This channel does not exist.": "Acest canal nu există.",
|
||||
"Could not get channel info.": "Nu am putut primi informații despre acest canal.",
|
||||
"Could not fetch comments": "Încărcarea comentariilor a eșuat.",
|
||||
"View `x` replies": "Afișați `x` replici",
|
||||
"`x` ago": "acum `x`",
|
||||
"Load more": "Vedeți mai mult",
|
||||
"`x` points": "`x` puncte",
|
||||
"Could not create mix.": "Nu am putut crea această listă de redare.",
|
||||
"Empty playlist": "Lista de redare este goală",
|
||||
"Not a playlist.": "Lista de redare este invalidă.",
|
||||
"Playlist does not exist.": "Această listă de redare nu există.",
|
||||
"Could not pull trending pages.": "Încărcarea paginilor de tendințe a eșuat.",
|
||||
"Hidden field \"challenge\" is a required field": "Câmpul ascuns \"challenge\" este un câmp obligatoriu",
|
||||
"Hidden field \"token\" is a required field": "Câmpul ascuns \"token\" este un câmp obligatoriu",
|
||||
"Erroneous challenge": "Challenge invalid",
|
||||
"Erroneous token": "Token invalid",
|
||||
"No such user": "Acest utilizator nu există",
|
||||
"Token is expired, please try again": "Token-ul este expirat, vă rugăm să reîncercați.",
|
||||
"English": "Engleză",
|
||||
"English (auto-generated)": "Engleză (generată automat)",
|
||||
"Afrikaans": "Afrikaans",
|
||||
"Albanian": "Albaneză",
|
||||
"Amharic": "Amharică",
|
||||
"Arabic": "Arabă",
|
||||
"Armenian": "Arméniană",
|
||||
"Azerbaijani": "Azeră",
|
||||
"Bangla": "Bangla",
|
||||
"Basque": "Basque",
|
||||
"Belarusian": "Belarusă",
|
||||
"Bosnian": "Bosniacă",
|
||||
"Bulgarian": "Bulgară",
|
||||
"Burmese": "Birmană",
|
||||
"Catalan": "Catalană",
|
||||
"Cebuano": "Cebuano",
|
||||
"Chinese (Simplified)": "Chineză (Simplificată)",
|
||||
"Chinese (Traditional)": "Chinois (Tradițională)",
|
||||
"Corsican": "Corsicană",
|
||||
"Croatian": "Croată",
|
||||
"Czech": "Cehă",
|
||||
"Danish": "Daneză",
|
||||
"Dutch": "Olandeză",
|
||||
"Esperanto": "Esperanto",
|
||||
"Estonian": "Estoniană",
|
||||
"Filipino": "Filipineză",
|
||||
"Finnish": "Finlandeză",
|
||||
"French": "Franceză",
|
||||
"Galician": "Galiciană",
|
||||
"Georgian": "Georgiană",
|
||||
"German": "Germană",
|
||||
"Greek": "Greacă",
|
||||
"Gujarati": "Gujarati",
|
||||
"Haitian Creole": "Creola Haitiană",
|
||||
"Hausa": "Haousa",
|
||||
"Hawaiian": "Hawaiană",
|
||||
"Hebrew": "Ebraică",
|
||||
"Hindi": "Hindi",
|
||||
"Hmong": "Hmong",
|
||||
"Hungarian": "Ungară",
|
||||
"Icelandic": "Islandeză",
|
||||
"Igbo": "Igbo",
|
||||
"Indonesian": "Indoneziană",
|
||||
"Irish": "Irlandeză",
|
||||
"Italian": "Italiană",
|
||||
"Japanese": "Japoneză",
|
||||
"Javanese": "Javaneză",
|
||||
"Kannada": "Kannada",
|
||||
"Kazakh": "Kazakh",
|
||||
"Khmer": "Khmer",
|
||||
"Korean": "Coreană",
|
||||
"Kurdish": "Kurdă",
|
||||
"Kyrgyz": "Kirghize",
|
||||
"Lao": "Lao",
|
||||
"Latin": "Latină",
|
||||
"Latvian": "Letonă",
|
||||
"Lithuanian": "Lituaniană",
|
||||
"Luxembourgish": "Luxemburgheză",
|
||||
"Macedonian": "Macedoniană",
|
||||
"Malagasy": "Malgașă",
|
||||
"Malay": "Malaieză",
|
||||
"Malayalam": "Malayalam",
|
||||
"Maltese": "Malteză",
|
||||
"Maori": "Maori",
|
||||
"Marathi": "Marathi",
|
||||
"Mongolian": "Mongoliană",
|
||||
"Nepali": "Nepaleză",
|
||||
"Norwegian Bokmål": "Norvegiană",
|
||||
"Nyanja": "Nyanja",
|
||||
"Pashto": "Pachtou",
|
||||
"Persian": "Persană",
|
||||
"Polish": "Poloneză",
|
||||
"Portuguese": "Portugheză",
|
||||
"Punjabi": "Punjabi",
|
||||
"Romanian": "Română",
|
||||
"Russian": "Rusă",
|
||||
"Samoan": "Samoan",
|
||||
"Scottish Gaelic": "Galic Scoțian",
|
||||
"Serbian": "Sârbă",
|
||||
"Shona": "Shona",
|
||||
"Sindhi": "Sindhi",
|
||||
"Sinhala": "Sinhala",
|
||||
"Slovak": "Slovacă",
|
||||
"Slovenian": "Slovenă",
|
||||
"Somali": "Somaleză",
|
||||
"Southern Sotho": "Sotho de Sud",
|
||||
"Spanish": "Spaniolă",
|
||||
"Spanish (Latin America)": "Spaniolă (America Latină)",
|
||||
"Sundanese": "Sundaneză",
|
||||
"Swahili": "Swahili",
|
||||
"Swedish": "Suedeză",
|
||||
"Tajik": "Tajik",
|
||||
"Tamil": "Tamil",
|
||||
"Telugu": "Telugu",
|
||||
"Thai": "Tailandeză",
|
||||
"Turkish": "Turcă",
|
||||
"Ukrainian": "Ucrainiană",
|
||||
"Urdu": "Urdu",
|
||||
"Uzbek": "Uzbek",
|
||||
"Vietnamese": "Vietnameză",
|
||||
"Welsh": "Galeză",
|
||||
"Western Frisian": "Frisiană de Vest",
|
||||
"Xhosa": "Xhosa",
|
||||
"Yiddish": "Yiddish",
|
||||
"Yoruba": "Yoruba",
|
||||
"Zulu": "Zoulou",
|
||||
"`x` years": "`x` ani",
|
||||
"`x` months": "`x` luni",
|
||||
"`x` weeks": "`x` săptămâni",
|
||||
"`x` days": "`x` zile",
|
||||
"`x` hours": "`x` ore",
|
||||
"`x` minutes": "`x` minute",
|
||||
"`x` seconds": "`x` secunde",
|
||||
"Fallback comments: ": "Comentarii alternative: ",
|
||||
"Popular": "Popular",
|
||||
"Top": "Top",
|
||||
"About": "Despre",
|
||||
"Rating: ": "Evaluare: ",
|
||||
"Language: ": "Limbă: ",
|
||||
"View as playlist": "Vizualizați ca listă de redare",
|
||||
"Default": "Implicit",
|
||||
"Music": "Muzică",
|
||||
"Gaming": "Jocuri Video",
|
||||
"News": "Noutăți",
|
||||
"Movies": "Filme",
|
||||
"Download": "Descărcați",
|
||||
"Download as: ": "Descărcați ca: ",
|
||||
"%A %B %-d, %Y": "%A %-d %B %Y",
|
||||
"(edited)": "(editat)",
|
||||
"YouTube comment permalink": "Permalink pentru comentariul de pe YouTube",
|
||||
"permalink": "permalink",
|
||||
"`x` marked it with a ❤": "`x` l-a marcat cu o ❤",
|
||||
"Audio mode": "Mod audio",
|
||||
"Video mode": "Mod video",
|
||||
"Videos": "Videoclipuri",
|
||||
"Playlists": "Liste de redare",
|
||||
"Community": "Comunitate",
|
||||
"Current version: ": "Versiunea actuală: "
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"`x` subscribers": "`x` подписчиков",
|
||||
"`x` videos": "`x` видео",
|
||||
"`x` playlists": "`x` плейлистов",
|
||||
"LIVE": "ПРЯМОЙ ЭФИР",
|
||||
"Shared `x` ago": "Опубликовано `x` назад",
|
||||
"Unsubscribe": "Отписаться",
|
||||
@@ -68,7 +69,11 @@
|
||||
"Show related videos: ": "Показывать похожие видео? ",
|
||||
"Show annotations by default: ": "Всегда показывать аннотации? ",
|
||||
"Visual preferences": "Настройки сайта",
|
||||
"Player style: ": "Стиль проигрывателя: ",
|
||||
"Dark mode: ": "Тёмное оформление: ",
|
||||
"Theme: ": "Тема: ",
|
||||
"dark": "темная",
|
||||
"light": "светлая",
|
||||
"Thin mode: ": "Облегчённое оформление: ",
|
||||
"Subscription preferences": "Настройки подписок",
|
||||
"Show annotations by default for subscribed channels: ": "Всегда показывать аннотации в видео каналов, на которые вы подписаны? ",
|
||||
@@ -122,7 +127,17 @@
|
||||
"View JavaScript license information.": "Посмотреть информацию по лицензии JavaScript.",
|
||||
"View privacy policy.": "Посмотреть политику конфиденциальности.",
|
||||
"Trending": "В тренде",
|
||||
"Public": "Публичный",
|
||||
"Unlisted": "Нет в списке",
|
||||
"Private": "Приватный",
|
||||
"View all playlists": "Посмотреть все плейлисты",
|
||||
"Updated `x` ago": "Обновлено `x` назад",
|
||||
"Delete playlist `x`?": "Удалить плейлист `x`?",
|
||||
"Delete playlist": "Удалить плейлист",
|
||||
"Create playlist": "Создать плейлист",
|
||||
"Title": "Заголовок",
|
||||
"Playlist privacy": "Конфиденциальность плейлиста",
|
||||
"Editing playlist `x`": "Редактирование плейлиста `x`",
|
||||
"Watch on YouTube": "Смотреть на YouTube",
|
||||
"Hide annotations": "Скрыть аннотации",
|
||||
"Show annotations": "Показать аннотации",
|
||||
@@ -310,12 +325,12 @@
|
||||
"%A %B %-d, %Y": "%-d %B %Y, %A",
|
||||
"(edited)": "(изменено)",
|
||||
"YouTube comment permalink": "Прямая ссылка на YouTube",
|
||||
"permalink": "",
|
||||
"permalink": "постоянная ссылка",
|
||||
"`x` marked it with a ❤": "❤ от автора канала \"`x`\"",
|
||||
"Audio mode": "Аудио режим",
|
||||
"Video mode": "Видео режим",
|
||||
"Videos": "Видео",
|
||||
"Playlists": "Плейлисты",
|
||||
"Community": "",
|
||||
"Community": "Сообщество",
|
||||
"Current version: ": "Текущая версия: "
|
||||
}
|
||||
336
locales/sr_Cyrl.json
Normal file
336
locales/sr_Cyrl.json
Normal file
@@ -0,0 +1,336 @@
|
||||
{
|
||||
"`x` subscribers.": "",
|
||||
"`x` videos.": "",
|
||||
"`x` playlists.": "",
|
||||
"LIVE": "",
|
||||
"Shared `x` ago": "",
|
||||
"Unsubscribe": "",
|
||||
"Subscribe": "Пратите",
|
||||
"View channel on YouTube": "Погледајте канал на YouTube-у",
|
||||
"View playlist on YouTube": "Погледајте плејлисту на YouTube-у",
|
||||
"newest": "",
|
||||
"oldest": "",
|
||||
"popular": "",
|
||||
"last": "",
|
||||
"Next page": "",
|
||||
"Previous page": "",
|
||||
"Clear watch history?": "",
|
||||
"New password": "",
|
||||
"New passwords must match": "",
|
||||
"Cannot change password for Google accounts": "",
|
||||
"Authorize token?": "",
|
||||
"Authorize token for `x`?": "",
|
||||
"Yes": "",
|
||||
"No": "",
|
||||
"Import and Export Data": "",
|
||||
"Import": "",
|
||||
"Import Invidious data": "",
|
||||
"Import YouTube subscriptions": "",
|
||||
"Import FreeTube subscriptions (.db)": "",
|
||||
"Import NewPipe subscriptions (.json)": "",
|
||||
"Import NewPipe data (.zip)": "",
|
||||
"Export": "",
|
||||
"Export subscriptions as OPML": "",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "",
|
||||
"Export data as JSON": "",
|
||||
"Delete account?": "",
|
||||
"History": "",
|
||||
"An alternative front-end to YouTube": "",
|
||||
"JavaScript license information": "",
|
||||
"source": "",
|
||||
"Log in": "",
|
||||
"Log in/register": "",
|
||||
"Log in with Google": "",
|
||||
"User ID": "",
|
||||
"Password": "",
|
||||
"Time (h:mm:ss):": "",
|
||||
"Text CAPTCHA": "",
|
||||
"Image CAPTCHA": "",
|
||||
"Sign In": "",
|
||||
"Register": "",
|
||||
"E-mail": "",
|
||||
"Google verification code": "",
|
||||
"Preferences": "",
|
||||
"Player preferences": "",
|
||||
"Always loop: ": "",
|
||||
"Autoplay: ": "",
|
||||
"Play next by default: ": "",
|
||||
"Autoplay next video: ": "",
|
||||
"Listen by default: ": "",
|
||||
"Proxy videos: ": "",
|
||||
"Default speed: ": "",
|
||||
"Preferred video quality: ": "",
|
||||
"Player volume: ": "",
|
||||
"Default comments: ": "",
|
||||
"youtube": "",
|
||||
"reddit": "",
|
||||
"Default captions: ": "",
|
||||
"Fallback captions: ": "",
|
||||
"Show related videos: ": "",
|
||||
"Show annotations by default: ": "",
|
||||
"Visual preferences": "",
|
||||
"Player style: ": "",
|
||||
"Dark mode: ": "",
|
||||
"Theme: ": "",
|
||||
"dark": "",
|
||||
"light": "",
|
||||
"Thin mode: ": "",
|
||||
"Subscription preferences": "",
|
||||
"Show annotations by default for subscribed channels: ": "",
|
||||
"Redirect homepage to feed: ": "",
|
||||
"Number of videos shown in feed: ": "",
|
||||
"Sort videos by: ": "",
|
||||
"published": "",
|
||||
"published - reverse": "",
|
||||
"alphabetically": "",
|
||||
"alphabetically - reverse": "",
|
||||
"channel name": "",
|
||||
"channel name - reverse": "",
|
||||
"Only show latest video from channel: ": "",
|
||||
"Only show latest unwatched video from channel: ": "",
|
||||
"Only show unwatched: ": "",
|
||||
"Only show notifications (if there are any): ": "",
|
||||
"Enable web notifications": "",
|
||||
"`x` uploaded a video": "",
|
||||
"`x` is live": "",
|
||||
"Data preferences": "",
|
||||
"Clear watch history": "",
|
||||
"Import/export data": "",
|
||||
"Change password": "",
|
||||
"Manage subscriptions": "",
|
||||
"Manage tokens": "",
|
||||
"Watch history": "",
|
||||
"Delete account": "",
|
||||
"Administrator preferences": "",
|
||||
"Default homepage: ": "",
|
||||
"Feed menu: ": "",
|
||||
"Top enabled: ": "",
|
||||
"CAPTCHA enabled: ": "",
|
||||
"Login enabled: ": "",
|
||||
"Registration enabled: ": "",
|
||||
"Report statistics: ": "",
|
||||
"Save preferences": "",
|
||||
"Subscription manager": "",
|
||||
"Token manager": "",
|
||||
"Token": "",
|
||||
"`x` subscriptions.": "",
|
||||
"`x` tokens.": "",
|
||||
"Import/export": "",
|
||||
"unsubscribe": "",
|
||||
"revoke": "",
|
||||
"Subscriptions": "",
|
||||
"`x` unseen notifications.": "",
|
||||
"search": "",
|
||||
"Log out": "",
|
||||
"Released under the AGPLv3 by Omar Roth.": "",
|
||||
"Source available here.": "",
|
||||
"View JavaScript license information.": "",
|
||||
"View privacy policy.": "",
|
||||
"Trending": "",
|
||||
"Public": "",
|
||||
"Unlisted": "",
|
||||
"Private": "",
|
||||
"View all playlists": "",
|
||||
"Updated `x` ago": "",
|
||||
"Delete playlist `x`?": "",
|
||||
"Delete playlist": "",
|
||||
"Create playlist": "",
|
||||
"Title": "",
|
||||
"Playlist privacy": "",
|
||||
"Editing playlist `x`": "",
|
||||
"Watch on YouTube": "",
|
||||
"Hide annotations": "",
|
||||
"Show annotations": "",
|
||||
"Genre: ": "",
|
||||
"License: ": "",
|
||||
"Family friendly? ": "",
|
||||
"Wilson score: ": "",
|
||||
"Engagement: ": "",
|
||||
"Whitelisted regions: ": "",
|
||||
"Blacklisted regions: ": "",
|
||||
"Shared `x`": "",
|
||||
"`x` views.": "",
|
||||
"Premieres in `x`": "",
|
||||
"Premieres `x`": "",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "",
|
||||
"View YouTube comments": "",
|
||||
"View more comments on Reddit": "",
|
||||
"View `x` comments.": "",
|
||||
"View Reddit comments": "",
|
||||
"Hide replies": "",
|
||||
"Show replies": "",
|
||||
"Incorrect password": "",
|
||||
"Quota exceeded, try again in a few hours": "",
|
||||
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "",
|
||||
"Invalid TFA code": "",
|
||||
"Login failed. This may be because two-factor authentication is not turned on for your account.": "",
|
||||
"Wrong answer": "",
|
||||
"Erroneous CAPTCHA": "",
|
||||
"CAPTCHA is a required field": "",
|
||||
"User ID is a required field": "",
|
||||
"Password is a required field": "",
|
||||
"Wrong username or password": "",
|
||||
"Please sign in using 'Log in with Google'": "",
|
||||
"Password cannot be empty": "",
|
||||
"Password cannot be longer than 55 characters": "",
|
||||
"Please log in": "",
|
||||
"Invidious Private Feed for `x`": "",
|
||||
"channel:`x`": "",
|
||||
"Deleted or invalid channel": "",
|
||||
"This channel does not exist.": "",
|
||||
"Could not get channel info.": "",
|
||||
"Could not fetch comments": "",
|
||||
"View `x` replies.": "",
|
||||
"`x` ago": "",
|
||||
"Load more": "",
|
||||
"`x` points.": "",
|
||||
"Could not create mix.": "",
|
||||
"Empty playlist": "",
|
||||
"Not a playlist.": "",
|
||||
"Playlist does not exist.": "",
|
||||
"Could not pull trending pages.": "",
|
||||
"Hidden field \"challenge\" is a required field": "",
|
||||
"Hidden field \"token\" is a required field": "",
|
||||
"Erroneous challenge": "",
|
||||
"Erroneous token": "",
|
||||
"No such user": "",
|
||||
"Token is expired, please try again": "",
|
||||
"English": "",
|
||||
"English (auto-generated)": "",
|
||||
"Afrikaans": "",
|
||||
"Albanian": "",
|
||||
"Amharic": "",
|
||||
"Arabic": "",
|
||||
"Armenian": "",
|
||||
"Azerbaijani": "",
|
||||
"Bangla": "",
|
||||
"Basque": "",
|
||||
"Belarusian": "",
|
||||
"Bosnian": "",
|
||||
"Bulgarian": "",
|
||||
"Burmese": "",
|
||||
"Catalan": "",
|
||||
"Cebuano": "",
|
||||
"Chinese (Simplified)": "",
|
||||
"Chinese (Traditional)": "",
|
||||
"Corsican": "",
|
||||
"Croatian": "",
|
||||
"Czech": "",
|
||||
"Danish": "",
|
||||
"Dutch": "",
|
||||
"Esperanto": "",
|
||||
"Estonian": "",
|
||||
"Filipino": "",
|
||||
"Finnish": "",
|
||||
"French": "",
|
||||
"Galician": "",
|
||||
"Georgian": "",
|
||||
"German": "",
|
||||
"Greek": "",
|
||||
"Gujarati": "",
|
||||
"Haitian Creole": "",
|
||||
"Hausa": "",
|
||||
"Hawaiian": "",
|
||||
"Hebrew": "",
|
||||
"Hindi": "",
|
||||
"Hmong": "",
|
||||
"Hungarian": "",
|
||||
"Icelandic": "",
|
||||
"Igbo": "",
|
||||
"Indonesian": "",
|
||||
"Irish": "",
|
||||
"Italian": "",
|
||||
"Japanese": "",
|
||||
"Javanese": "",
|
||||
"Kannada": "",
|
||||
"Kazakh": "",
|
||||
"Khmer": "",
|
||||
"Korean": "",
|
||||
"Kurdish": "",
|
||||
"Kyrgyz": "",
|
||||
"Lao": "",
|
||||
"Latin": "",
|
||||
"Latvian": "",
|
||||
"Lithuanian": "",
|
||||
"Luxembourgish": "",
|
||||
"Macedonian": "",
|
||||
"Malagasy": "",
|
||||
"Malay": "",
|
||||
"Malayalam": "",
|
||||
"Maltese": "",
|
||||
"Maori": "",
|
||||
"Marathi": "",
|
||||
"Mongolian": "",
|
||||
"Nepali": "",
|
||||
"Norwegian Bokmål": "",
|
||||
"Nyanja": "",
|
||||
"Pashto": "",
|
||||
"Persian": "",
|
||||
"Polish": "",
|
||||
"Portuguese": "",
|
||||
"Punjabi": "",
|
||||
"Romanian": "",
|
||||
"Russian": "",
|
||||
"Samoan": "",
|
||||
"Scottish Gaelic": "",
|
||||
"Serbian": "",
|
||||
"Shona": "",
|
||||
"Sindhi": "",
|
||||
"Sinhala": "",
|
||||
"Slovak": "",
|
||||
"Slovenian": "",
|
||||
"Somali": "",
|
||||
"Southern Sotho": "",
|
||||
"Spanish": "",
|
||||
"Spanish (Latin America)": "",
|
||||
"Sundanese": "",
|
||||
"Swahili": "",
|
||||
"Swedish": "",
|
||||
"Tajik": "",
|
||||
"Tamil": "",
|
||||
"Telugu": "",
|
||||
"Thai": "",
|
||||
"Turkish": "",
|
||||
"Ukrainian": "",
|
||||
"Urdu": "",
|
||||
"Uzbek": "",
|
||||
"Vietnamese": "",
|
||||
"Welsh": "",
|
||||
"Western Frisian": "",
|
||||
"Xhosa": "",
|
||||
"Yiddish": "",
|
||||
"Yoruba": "",
|
||||
"Zulu": "",
|
||||
"`x` years.": "",
|
||||
"`x` months.": "",
|
||||
"`x` weeks.": "",
|
||||
"`x` days.": "",
|
||||
"`x` hours.": "",
|
||||
"`x` minutes.": "",
|
||||
"`x` seconds.": "",
|
||||
"Fallback comments: ": "",
|
||||
"Popular": "",
|
||||
"Top": "",
|
||||
"About": "",
|
||||
"Rating: ": "",
|
||||
"Language: ": "",
|
||||
"View as playlist": "",
|
||||
"Default": "",
|
||||
"Music": "",
|
||||
"Gaming": "",
|
||||
"News": "",
|
||||
"Movies": "",
|
||||
"Download": "",
|
||||
"Download as: ": "",
|
||||
"%A %B %-d, %Y": "",
|
||||
"(edited)": "",
|
||||
"YouTube comment permalink": "",
|
||||
"permalink": "",
|
||||
"`x` marked it with a ❤": "",
|
||||
"Audio mode": "",
|
||||
"Video mode": "",
|
||||
"Videos": "",
|
||||
"Playlists": "",
|
||||
"Community": "",
|
||||
"Current version: ": "Тренутна верзија: "
|
||||
}
|
||||
336
locales/sv-SE.json
Normal file
336
locales/sv-SE.json
Normal file
@@ -0,0 +1,336 @@
|
||||
{
|
||||
"`x` subscribers": "`x` prenumeranter",
|
||||
"`x` videos": "`x` videor",
|
||||
"`x` playlists": "`x` spellistor",
|
||||
"LIVE": "LIVE",
|
||||
"Shared `x` ago": "Delad `x` sedan",
|
||||
"Unsubscribe": "Avprenumerera",
|
||||
"Subscribe": "Prenumerera",
|
||||
"View channel on YouTube": "Visa kanalen på YouTube",
|
||||
"View playlist on YouTube": "Visa spellistan på YouTube",
|
||||
"newest": "nyaste",
|
||||
"oldest": "äldsta",
|
||||
"popular": "populärt",
|
||||
"last": "sista",
|
||||
"Next page": "Nästa sida",
|
||||
"Previous page": "Tidigare sida",
|
||||
"Clear watch history?": "Töm visningshistorik?",
|
||||
"New password": "Nytt lösenord",
|
||||
"New passwords must match": "Nya lösenord måste stämma överens",
|
||||
"Cannot change password for Google accounts": "Kan inte ändra lösenord på Google-konton",
|
||||
"Authorize token?": "Auktorisera åtkomsttoken?",
|
||||
"Authorize token for `x`?": "Auktorisera åtkomsttoken för `x`?",
|
||||
"Yes": "Ja",
|
||||
"No": "Nej",
|
||||
"Import and Export Data": "Importera och exportera data",
|
||||
"Import": "Importera",
|
||||
"Import Invidious data": "Importera Invidious-data",
|
||||
"Import YouTube subscriptions": "Importera YouTube-prenumerationer",
|
||||
"Import FreeTube subscriptions (.db)": "Importera FreeTube-prenumerationer (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "Importera NewPipe-prenumerationer (.json)",
|
||||
"Import NewPipe data (.zip)": "Importera NewPipe-data (.zip)",
|
||||
"Export": "Exportera",
|
||||
"Export subscriptions as OPML": "Exportera prenumerationer som OPML",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exportera prenumerationer som OPML (för NewPipe och FreeTube)",
|
||||
"Export data as JSON": "Exportera data som JSON",
|
||||
"Delete account?": "Radera konto?",
|
||||
"History": "Historik",
|
||||
"An alternative front-end to YouTube": "Ett alternativt gränssnitt till YouTube",
|
||||
"JavaScript license information": "JavaScript-licensinformation",
|
||||
"source": "källa",
|
||||
"Log in": "Logga in",
|
||||
"Log in/register": "Logga in/registrera",
|
||||
"Log in with Google": "Logga in med Google",
|
||||
"User ID": "Användar-ID",
|
||||
"Password": "Lösenord",
|
||||
"Time (h:mm:ss):": "Tid (h:mm:ss):",
|
||||
"Text CAPTCHA": "Text-CAPTCHA",
|
||||
"Image CAPTCHA": "Bild-CAPTCHA",
|
||||
"Sign In": "Inloggning",
|
||||
"Register": "Registrera",
|
||||
"E-mail": "E-post",
|
||||
"Google verification code": "Google-bekräftelsekod",
|
||||
"Preferences": "Inställningar",
|
||||
"Player preferences": "Spelarinställningar",
|
||||
"Always loop: ": "Loopa alltid: ",
|
||||
"Autoplay: ": "Autouppspelning: ",
|
||||
"Play next by default: ": "Spela nästa som förval: ",
|
||||
"Autoplay next video: ": "Autouppspela nästa video: ",
|
||||
"Listen by default: ": "Lyssna som förval: ",
|
||||
"Proxy videos: ": "Proxy:a videor: ",
|
||||
"Default speed: ": "Förvald hastighet: ",
|
||||
"Preferred video quality: ": "Föredragen videokvalitet: ",
|
||||
"Player volume: ": "Volym: ",
|
||||
"Default comments: ": "Förvalda kommentarer: ",
|
||||
"youtube": "YouTube",
|
||||
"reddit": "Reddit",
|
||||
"Default captions: ": "Förvalda undertexter: ",
|
||||
"Fallback captions: ": "Ersättningsundertexter: ",
|
||||
"Show related videos: ": "Visa relaterade videor? ",
|
||||
"Show annotations by default: ": "Visa länkar-i-videon som förval? ",
|
||||
"Visual preferences": "Visuella inställningar",
|
||||
"Player style: ": "Spelarstil: ",
|
||||
"Dark mode: ": "Mörkt läge: ",
|
||||
"Theme: ": "Tema: ",
|
||||
"dark": "Mörkt",
|
||||
"light": "Ljust",
|
||||
"Thin mode: ": "Lättviktigt läge: ",
|
||||
"Subscription preferences": "Prenumerationsinställningar",
|
||||
"Show annotations by default for subscribed channels: ": "Visa länkar-i-videor som förval för kanaler som prenumereras på? ",
|
||||
"Redirect homepage to feed: ": "Omdirigera hemsida till flöde: ",
|
||||
"Number of videos shown in feed: ": "Antal videor att visa i flödet: ",
|
||||
"Sort videos by: ": "Sortera videor: ",
|
||||
"published": "publicering",
|
||||
"published - reverse": "publicering - omvänd",
|
||||
"alphabetically": "alfabetiskt",
|
||||
"alphabetically - reverse": "alfabetiskt - omvänd",
|
||||
"channel name": "kanalnamn",
|
||||
"channel name - reverse": "kanalnamn - omvänd",
|
||||
"Only show latest video from channel: ": "Visa bara senaste videon från kanal: ",
|
||||
"Only show latest unwatched video from channel: ": "Visa bara senaste osedda videon från kanal: ",
|
||||
"Only show unwatched: ": "Visa bara osedda: ",
|
||||
"Only show notifications (if there are any): ": "Visa endast aviseringar (om det finns några): ",
|
||||
"Enable web notifications": "Slå på aviseringar",
|
||||
"`x` uploaded a video": "`x` laddade upp en video",
|
||||
"`x` is live": "`x` sänder live",
|
||||
"Data preferences": "Datainställningar",
|
||||
"Clear watch history": "Töm visningshistorik",
|
||||
"Import/export data": "Importera/Exportera data",
|
||||
"Change password": "Byt lösenord",
|
||||
"Manage subscriptions": "Hantera prenumerationer",
|
||||
"Manage tokens": "Hantera åtkomst-tokens",
|
||||
"Watch history": "Visningshistorik",
|
||||
"Delete account": "Radera konto",
|
||||
"Administrator preferences": "Administratörsinställningar",
|
||||
"Default homepage: ": "Förvald hemsida: ",
|
||||
"Feed menu: ": "Flödesmeny: ",
|
||||
"Top enabled: ": "Topp påslaget? ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA påslaget? ",
|
||||
"Login enabled: ": "Inloggning påslaget? ",
|
||||
"Registration enabled: ": "Registrering påslaget? ",
|
||||
"Report statistics: ": "Rapportera in statistik? ",
|
||||
"Save preferences": "Spara inställningar",
|
||||
"Subscription manager": "Prenumerationshanterare",
|
||||
"Token manager": "Åtkomst-token-hanterare",
|
||||
"Token": "Åtkomst-token",
|
||||
"`x` subscriptions": "`x` prenumerationer",
|
||||
"`x` tokens": "`x` åtkomst-token",
|
||||
"Import/export": "Importera/exportera",
|
||||
"unsubscribe": "avprenumerera",
|
||||
"revoke": "återkalla",
|
||||
"Subscriptions": "Prenumerationer",
|
||||
"`x` unseen notifications": "`x` osedda aviseringar",
|
||||
"search": "sök",
|
||||
"Log out": "Logga ut",
|
||||
"Released under the AGPLv3 by Omar Roth.": "Utgiven under AGPLv3-licens av Omar Roth.",
|
||||
"Source available here.": "Källkod tillgänglig här.",
|
||||
"View JavaScript license information.": "Visa JavaScript-licensinformation.",
|
||||
"View privacy policy.": "Visa privatlivspolicy.",
|
||||
"Trending": "Trendar",
|
||||
"Public": "Offentlig",
|
||||
"Unlisted": "Olistad",
|
||||
"Private": "Privat",
|
||||
"View all playlists": "Visa alla spellistor",
|
||||
"Updated `x` ago": "Uppdaterad `x` sedan",
|
||||
"Delete playlist `x`?": "Radera spellistan `x`?",
|
||||
"Delete playlist": "Radera spellista",
|
||||
"Create playlist": "Skapa spellista",
|
||||
"Title": "Titel",
|
||||
"Playlist privacy": "Privatläge på spellista",
|
||||
"Editing playlist `x`": "Redigerer spellistan `x`",
|
||||
"Watch on YouTube": "Titta på YouTube",
|
||||
"Hide annotations": "Dölj länkar-i-video",
|
||||
"Show annotations": "Visa länkar-i-video",
|
||||
"Genre: ": "Genre: ",
|
||||
"License: ": "Licens: ",
|
||||
"Family friendly? ": "Familjevänlig? ",
|
||||
"Wilson score: ": "Wilson-poängsumma: ",
|
||||
"Engagement: ": "Engagement: ",
|
||||
"Whitelisted regions: ": "Vitlistade regioner: ",
|
||||
"Blacklisted regions: ": "Svartlistade regioner: ",
|
||||
"Shared `x`": "Delade `x`",
|
||||
"`x` views": "`x` visningar",
|
||||
"Premieres in `x`": "Premiär om `x`",
|
||||
"Premieres `x`": "Premiär av `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Hej. Det ser ut som att du har JavaScript avstängt. Klicka här för att visa kommentarer, ha i åtanke att nedladdning tar längre tid.",
|
||||
"View YouTube comments": "Visa YouTube-kommentarer",
|
||||
"View more comments on Reddit": "Visa flera kommentarer på Reddit",
|
||||
"View `x` comments": "Visa `x` kommentarer",
|
||||
"View Reddit comments": "Visa Reddit-kommentarer",
|
||||
"Hide replies": "Dölj svar",
|
||||
"Show replies": "Visa svar",
|
||||
"Incorrect password": "Fel lösenord",
|
||||
"Quota exceeded, try again in a few hours": "Kvoten överskriden, försök igen om ett par timmar",
|
||||
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Kunde inte logga in, försäkra dig om att tvåfaktors-autentisering (Authenticator eller SMS) är påslagen.",
|
||||
"Invalid TFA code": "Ogiltig tvåfaktor-kod",
|
||||
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Inloggning misslyckades. Detta kan vara för att tvåfaktors-autentisering inte är påslaget på ditt konto.",
|
||||
"Wrong answer": "Fel svar",
|
||||
"Erroneous CAPTCHA": "Ogiltig CAPTCHA",
|
||||
"CAPTCHA is a required field": "CAPTCHA är ett obligatoriskt fält",
|
||||
"User ID is a required field": "Användar-ID är ett obligatoriskt fält",
|
||||
"Password is a required field": "Lösenord är ett obligatoriskt fält",
|
||||
"Wrong username or password": "Ogiltigt användarnamn eller lösenord",
|
||||
"Please sign in using 'Log in with Google'": "Logga in genom \"Google-inloggning\"",
|
||||
"Password cannot be empty": "Lösenordet kan inte vara tomt",
|
||||
"Password cannot be longer than 55 characters": "Lösenordet kan inte vara längre än 55 tecken",
|
||||
"Please log in": "Logga in",
|
||||
"Invidious Private Feed for `x`": "Ogiltig privat flöde för `x`",
|
||||
"channel:`x`": "kanal `x`",
|
||||
"Deleted or invalid channel": "Raderad eller ogiltig kanal",
|
||||
"This channel does not exist.": "Denna kanal finns inte.",
|
||||
"Could not get channel info.": "Kunde inte hämta kanalinfo.",
|
||||
"Could not fetch comments": "Kunde inte hämta kommentarer",
|
||||
"View `x` replies": "Visa `x` svar",
|
||||
"`x` ago": "`x` sedan",
|
||||
"Load more": "Ladda fler",
|
||||
"`x` points": "`x` poäng",
|
||||
"Could not create mix.": "Kunde inte skapa mix.",
|
||||
"Empty playlist": "Spellistan är tom",
|
||||
"Not a playlist.": "Ogiltig spellista.",
|
||||
"Playlist does not exist.": "Spellistan finns inte.",
|
||||
"Could not pull trending pages.": "Kunde inte hämta trendande sidor.",
|
||||
"Hidden field \"challenge\" is a required field": "Dolt fält \"challenge\" är ett obligatoriskt fält",
|
||||
"Hidden field \"token\" is a required field": "Dolt fält \"token\" är ett obligatoriskt fält",
|
||||
"Erroneous challenge": "Felaktig challenge",
|
||||
"Erroneous token": "Felaktig token",
|
||||
"No such user": "Ogiltig användare",
|
||||
"Token is expired, please try again": "Token föråldrad, försök igen",
|
||||
"English": "",
|
||||
"English (auto-generated)": "English (auto-genererat)",
|
||||
"Afrikaans": "",
|
||||
"Albanian": "",
|
||||
"Amharic": "",
|
||||
"Arabic": "",
|
||||
"Armenian": "",
|
||||
"Azerbaijani": "",
|
||||
"Bangla": "",
|
||||
"Basque": "",
|
||||
"Belarusian": "",
|
||||
"Bosnian": "",
|
||||
"Bulgarian": "",
|
||||
"Burmese": "",
|
||||
"Catalan": "",
|
||||
"Cebuano": "",
|
||||
"Chinese (Simplified)": "",
|
||||
"Chinese (Traditional)": "",
|
||||
"Corsican": "",
|
||||
"Croatian": "",
|
||||
"Czech": "",
|
||||
"Danish": "",
|
||||
"Dutch": "",
|
||||
"Esperanto": "",
|
||||
"Estonian": "",
|
||||
"Filipino": "",
|
||||
"Finnish": "",
|
||||
"French": "",
|
||||
"Galician": "",
|
||||
"Georgian": "",
|
||||
"German": "",
|
||||
"Greek": "",
|
||||
"Gujarati": "",
|
||||
"Haitian Creole": "",
|
||||
"Hausa": "",
|
||||
"Hawaiian": "",
|
||||
"Hebrew": "",
|
||||
"Hindi": "",
|
||||
"Hmong": "",
|
||||
"Hungarian": "",
|
||||
"Icelandic": "",
|
||||
"Igbo": "",
|
||||
"Indonesian": "",
|
||||
"Irish": "",
|
||||
"Italian": "",
|
||||
"Japanese": "",
|
||||
"Javanese": "",
|
||||
"Kannada": "",
|
||||
"Kazakh": "",
|
||||
"Khmer": "",
|
||||
"Korean": "",
|
||||
"Kurdish": "",
|
||||
"Kyrgyz": "",
|
||||
"Lao": "",
|
||||
"Latin": "",
|
||||
"Latvian": "",
|
||||
"Lithuanian": "",
|
||||
"Luxembourgish": "",
|
||||
"Macedonian": "",
|
||||
"Malagasy": "",
|
||||
"Malay": "",
|
||||
"Malayalam": "",
|
||||
"Maltese": "",
|
||||
"Maori": "",
|
||||
"Marathi": "",
|
||||
"Mongolian": "",
|
||||
"Nepali": "",
|
||||
"Norwegian Bokmål": "",
|
||||
"Nyanja": "",
|
||||
"Pashto": "",
|
||||
"Persian": "",
|
||||
"Polish": "",
|
||||
"Portuguese": "",
|
||||
"Punjabi": "",
|
||||
"Romanian": "",
|
||||
"Russian": "",
|
||||
"Samoan": "",
|
||||
"Scottish Gaelic": "",
|
||||
"Serbian": "",
|
||||
"Shona": "",
|
||||
"Sindhi": "",
|
||||
"Sinhala": "",
|
||||
"Slovak": "",
|
||||
"Slovenian": "",
|
||||
"Somali": "",
|
||||
"Southern Sotho": "",
|
||||
"Spanish": "",
|
||||
"Spanish (Latin America)": "",
|
||||
"Sundanese": "",
|
||||
"Swahili": "",
|
||||
"Swedish": "",
|
||||
"Tajik": "",
|
||||
"Tamil": "",
|
||||
"Telugu": "",
|
||||
"Thai": "",
|
||||
"Turkish": "",
|
||||
"Ukrainian": "",
|
||||
"Urdu": "",
|
||||
"Uzbek": "",
|
||||
"Vietnamese": "",
|
||||
"Welsh": "",
|
||||
"Western Frisian": "",
|
||||
"Xhosa": "",
|
||||
"Yiddish": "",
|
||||
"Yoruba": "",
|
||||
"Zulu": "",
|
||||
"`x` years": "`x` år",
|
||||
"`x` months": "`x` månader",
|
||||
"`x` weeks": "`x` veckor",
|
||||
"`x` days": "`x` dagar",
|
||||
"`x` hours": "`x` timmar",
|
||||
"`x` minutes": "`x` minuter",
|
||||
"`x` seconds": "`x` sekunder",
|
||||
"Fallback comments: ": "Fallback-kommentarer: ",
|
||||
"Popular": "Populärt",
|
||||
"Top": "Topp",
|
||||
"About": "Om",
|
||||
"Rating: ": "Betyg: ",
|
||||
"Language: ": "Språk: ",
|
||||
"View as playlist": "Visa som spellista",
|
||||
"Default": "Förvalt",
|
||||
"Music": "Musik",
|
||||
"Gaming": "Spel",
|
||||
"News": "Nyheter",
|
||||
"Movies": "Filmer",
|
||||
"Download": "Ladda ned",
|
||||
"Download as: ": "Ladda ned som: ",
|
||||
"%A %B %-d, %Y": "",
|
||||
"(edited)": "(redigerad)",
|
||||
"YouTube comment permalink": "Permanent YouTube-länk till innehållet",
|
||||
"permalink": "permalänk",
|
||||
"`x` marked it with a ❤": "`x` lämnade ett ❤",
|
||||
"Audio mode": "Ljudläge",
|
||||
"Video mode": "Videoläge",
|
||||
"Videos": "Videor",
|
||||
"Playlists": "Spellistor",
|
||||
"Community": "Gemenskap",
|
||||
"Current version: ": "Nuvarande version: "
|
||||
}
|
||||
344
locales/tr.json
Normal file
344
locales/tr.json
Normal file
@@ -0,0 +1,344 @@
|
||||
{
|
||||
"`x` subscribers": "`x` abone",
|
||||
"`x` videos": "`x` video",
|
||||
"`x` playlists": "`x` çalma listesi",
|
||||
"`x` subscribers.": "`x` abone.",
|
||||
"`x` videos.": "`x` video.",
|
||||
"LIVE": "CANLI",
|
||||
"Shared `x` ago": "`x` önce paylaşıldı",
|
||||
"Unsubscribe": "Abonelikten çık",
|
||||
"Subscribe": "Abone ol",
|
||||
"View channel on YouTube": "Kanalı YouTube'da görüntüle",
|
||||
"View playlist on YouTube": "Çalma listesini YouTube'da görüntüle",
|
||||
"newest": "en yeni",
|
||||
"oldest": "en eski",
|
||||
"popular": "popüler",
|
||||
"last": "son",
|
||||
"Next page": "Sonraki sayfa",
|
||||
"Previous page": "Önceki sayfa",
|
||||
"Clear watch history?": "İzleme geçmisini temizle?",
|
||||
"New password": "Yeni parola",
|
||||
"New passwords must match": "Yeni parolalar eşleşmek zorunda",
|
||||
"Cannot change password for Google accounts": "Google hesapları için parola değiştirilemez",
|
||||
"Authorize token?": "Jetonu yetkilendir?",
|
||||
"Authorize token for `x`?": "`x` için jetonu yetkilendir?",
|
||||
"Yes": "Evet",
|
||||
"No": "Hayır",
|
||||
"Import and Export Data": "Verileri İçe ve Dışa Aktar",
|
||||
"Import": "İçe aktar",
|
||||
"Import Invidious data": "İnvidious verilerini içe aktar",
|
||||
"Import YouTube subscriptions": "YouTube aboneliklerini içe aktar",
|
||||
"Import FreeTube subscriptions (.db)": "FreeTube aboneliklerini içe aktar (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "NewPipe aboneliklerini içe aktar (.json)",
|
||||
"Import NewPipe data (.zip)": "NewPipe verilerini içe aktar (.zip)",
|
||||
"Export": "Dışa aktar",
|
||||
"Export subscriptions as OPML": "Abonelikleri OPML olarak dışa aktar",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Abonelikleri OPML olarak dışa aktar (NewPipe ve FreeTube için)",
|
||||
"Export data as JSON": "Verileri JSON olarak dışa aktar",
|
||||
"Delete account?": "Hesabı sil?",
|
||||
"History": "Geçmiş",
|
||||
"An alternative front-end to YouTube": "YouTube için alternatif bir ön-yüz",
|
||||
"JavaScript license information": "JavaScript lisans bilgileri",
|
||||
"source": "kaynak",
|
||||
"Log in": "Oturum aç",
|
||||
"Log in/register": "Oturum aç/kayıt ol",
|
||||
"Log in with Google": "Google ile oturum aç",
|
||||
"User ID": "Kullanıcı kimliği",
|
||||
"Password": "Parola",
|
||||
"Time (h:mm:ss):": "Zaman (h:mm:ss):",
|
||||
"Text CAPTCHA": "Metin CAPTCHA",
|
||||
"Image CAPTCHA": "Resim CAPTCHA",
|
||||
"Sign In": "Oturum Aç",
|
||||
"Register": "Kayıt Ol",
|
||||
"E-mail": "E-posta",
|
||||
"Google verification code": "Google doğrulama kodu",
|
||||
"Preferences": "Tercihler",
|
||||
"Player preferences": "Oynatıcı tercihleri",
|
||||
"Always loop: ": "Sürekli döngü: ",
|
||||
"Autoplay: ": "Otomatik oynat: ",
|
||||
"Play next by default: ": "Öntanımlı olarak sonrakini oynat: ",
|
||||
"Autoplay next video: ": "Sonraki videoyu otomatik oynat: ",
|
||||
"Listen by default: ": "Öntanımlı olarak dinle: ",
|
||||
"Proxy videos: ": "Videoları proxy'le: ",
|
||||
"Default speed: ": "Öntanımlı hız: ",
|
||||
"Preferred video quality: ": "Tercih edilen video kalitesi: ",
|
||||
"Player volume: ": "Oynatıcı ses seviyesi: ",
|
||||
"Default comments: ": "Öntanımlı yorumlar: ",
|
||||
"youtube": "youtube",
|
||||
"reddit": "reddit",
|
||||
"Default captions: ": "Öntanımlı altyazılar: ",
|
||||
"Fallback captions: ": "Yedek altyazılar: ",
|
||||
"Show related videos: ": "İlgili videoları göster: ",
|
||||
"Show annotations by default: ": "Öntanımlı olarak ek açıklamaları göster: ",
|
||||
"Visual preferences": "Görsel tercihler",
|
||||
"Player style: ": "Oynatıcı biçimi: ",
|
||||
"Dark mode: ": "Karanlık mod: ",
|
||||
"Theme: ": "Tema: ",
|
||||
"dark": "karanlık",
|
||||
"light": "aydınlık",
|
||||
"Thin mode: ": "İnce mod: ",
|
||||
"Subscription preferences": "Abonelik tercihleri",
|
||||
"Show annotations by default for subscribed channels: ": "Abone olunan kanallar için ek açıklamaları öntanımlı olarak göster: ",
|
||||
"Redirect homepage to feed: ": "Ana sayfayı akışa yönlendir: ",
|
||||
"Number of videos shown in feed: ": "Akışta gösterilen video sayısı: ",
|
||||
"Sort videos by: ": "Videoları sıralama kriteri: ",
|
||||
"published": "yayınlandı",
|
||||
"published - reverse": "yayınlandı - ters",
|
||||
"alphabetically": "alfabetik olarak",
|
||||
"alphabetically - reverse": "alfabetik olarak - ters",
|
||||
"channel name": "kanal adı",
|
||||
"channel name - reverse": "kanal adı - ters",
|
||||
"Only show latest video from channel: ": "Sadece kanaldaki en son videoyu göster: ",
|
||||
"Only show latest unwatched video from channel: ": "Sadece kanaldaki en son izlenmemiş videoyu göster: ",
|
||||
"Only show unwatched: ": "Sadece izlenmemişleri göster: ",
|
||||
"Only show notifications (if there are any): ": "Sadece bildirimleri göster (eğer varsa): ",
|
||||
"Enable web notifications": "Ağ bildirimlerini etkinleştir",
|
||||
"`x` uploaded a video": "`x` bir video yükledi",
|
||||
"`x` is live": "`x` canlı yayında",
|
||||
"Data preferences": "Veri tercihleri",
|
||||
"Clear watch history": "İzleme geçmişini temizle",
|
||||
"Import/export data": "Verileri içe/dışa aktar",
|
||||
"Change password": "Parolayı değiştir",
|
||||
"Manage subscriptions": "Abonelikleri yönet",
|
||||
"Manage tokens": "Jetonları yönet",
|
||||
"Watch history": "İzleme geçmişi",
|
||||
"Delete account": "Hesap silme",
|
||||
"Administrator preferences": "Yönetici tercihleri",
|
||||
"Default homepage: ": "Öntanımlı ana sayfa: ",
|
||||
"Feed menu: ": "Akış menüsü: ",
|
||||
"Top enabled: ": "Top etkin: ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA etkin: ",
|
||||
"Login enabled: ": "Oturum açma etkin: ",
|
||||
"Registration enabled: ": "Kayıt olma etkin: ",
|
||||
"Report statistics: ": "Rapor istatistikleri: ",
|
||||
"Save preferences": "Tercihleri kaydet",
|
||||
"Subscription manager": "Abonelik yöneticisi",
|
||||
"`x` subscriptions": "`x` abonelik",
|
||||
"`x` tokens": "`x` belirteç",
|
||||
"Token manager": "Jeton yöneticisi",
|
||||
"Token": "Jeton",
|
||||
"`x` subscriptions.": "`x` abonelik.",
|
||||
"`x` tokens.": "`x` jeton.",
|
||||
"`x` unseen notifications": "`x` okunmamış bildirim",
|
||||
"Import/export": "İçe/dışa aktar",
|
||||
"unsubscribe": "abonelikten çık",
|
||||
"revoke": "geri al",
|
||||
"Subscriptions": "Abonelikler",
|
||||
"`x` unseen notifications.": "`x` okunmamış bildirim.",
|
||||
"search": "ara",
|
||||
"Log out": "Çıkış yap",
|
||||
"Public": "Genel",
|
||||
"Released under the AGPLv3 by Omar Roth.": "Omar Roth tarafından AGPLv3 altında yayımlandı.",
|
||||
"Private": "Özel",
|
||||
"View all playlists": "Tüm çalma listelerini görüntüle",
|
||||
"Updated `x` ago": "`x` önce güncellendi",
|
||||
"Delete playlist `x`?": "`x` çalma listesini sil?",
|
||||
"Delete playlist": "Çalma listesini sil",
|
||||
"Create playlist": "Çalma listesi oluştur",
|
||||
"Title": "Başlık",
|
||||
"Playlist privacy": "Çalma listesi gizliliği",
|
||||
"Editing playlist `x`": "`x` çalma listesi düzenleniyor",
|
||||
"Source available here.": "Kaynak kodları burada bulunabilir.",
|
||||
"View JavaScript license information.": "JavaScript lisans bilgilerini görüntüle.",
|
||||
"View privacy policy.": "Gizlilik politikasını görüntüle.",
|
||||
"Trending": "Trendler",
|
||||
"Unlisted": "Listelenmemiş",
|
||||
"Watch on YouTube": "YouTube'da izle",
|
||||
"Hide annotations": "Ek açıklamaları gizle",
|
||||
"Show annotations": "Ek açıklamaları göster",
|
||||
"Genre: ": "Tür: ",
|
||||
"License: ": "Lisans: ",
|
||||
"Family friendly? ": "Aile için uygun? ",
|
||||
"`x` views": "`x` görüntüleme",
|
||||
"Wilson score: ": "Wilson puanı: ",
|
||||
"Engagement: ": "İzleyenlerin oy verme oranı: ",
|
||||
"Whitelisted regions: ": "Beyaz listeye alınan bölgeler: ",
|
||||
"Blacklisted regions: ": "Kara listeye alınan bölgeler: ",
|
||||
"Shared `x`": "`x` paylaşıldı",
|
||||
"`x` views.": "`x` izlenme.",
|
||||
"Premieres in `x`": "`x`içinde ilk gösterim",
|
||||
"Premieres `x`": "`x` ilk gösterim",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Merhaba! JavaScript'i kapatmış gibi görünüyorsun. Yorumları görüntülemek için buraya tıkla, yüklenmelerinin biraz uzun sürebileceğini unutma.",
|
||||
"View YouTube comments": "YouTube yorumlarını görüntüle",
|
||||
"View more comments on Reddit": "Reddit'te daha fazla yorum görüntüle",
|
||||
"View `x` comments": "`x` yorum görüntüle",
|
||||
"View Reddit comments": "Reddit yorumlarını görüntüle",
|
||||
"Hide replies": "Cevapları gizle",
|
||||
"Show replies": "Cevapları göster",
|
||||
"Incorrect password": "Yanlış parola",
|
||||
"Quota exceeded, try again in a few hours": "Kota aşıldı, birkaç saat içinde tekrar deneyin",
|
||||
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Oturum açılamadı, iki faktörlü kimlik doğrulamanın (Authenticator ya da SMS) açık olduğundan emin olun.",
|
||||
"Invalid TFA code": "Geçersiz TFA kodu",
|
||||
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Giriş başarısız. Bunun nedeni, hesabınız için iki faktörlü kimlik doğrulamanın açık olmaması olabilir.",
|
||||
"Wrong answer": "Yanlış cevap",
|
||||
"Erroneous CAPTCHA": "Hatalı CAPTCHA",
|
||||
"CAPTCHA is a required field": "CAPTCHA zorunlu bir alandır",
|
||||
"User ID is a required field": "Kullanıcı kimliği zorunlu bir alandır",
|
||||
"Password is a required field": "Parola zorunlu bir alandır",
|
||||
"Wrong username or password": "Yanlış kullanıcı adı ya da parola",
|
||||
"Please sign in using 'Log in with Google'": "Lütfen 'Google ile giriş yap' seçeneğini kullanarak oturum açın",
|
||||
"Password cannot be empty": "Parola boş olamaz",
|
||||
"Password cannot be longer than 55 characters": "Parola 55 karakterden uzun olamaz",
|
||||
"Please log in": "Lütfen oturum açın",
|
||||
"View `x` replies": "`x` yanıtı görüntüle",
|
||||
"Invidious Private Feed for `x`": "`x` için İnvidious Özel Akışı",
|
||||
"channel:`x`": "kanal:`x`",
|
||||
"`x` points": "`x` puan",
|
||||
"Deleted or invalid channel": "Silinmiş ya da geçersiz kanal",
|
||||
"This channel does not exist.": "Bu kanal mevcut değil.",
|
||||
"Could not get channel info.": "Kanal bilgisi alınamadı.",
|
||||
"Could not fetch comments": "Yorumlar alınamadı",
|
||||
"View `x` replies.": "`x` yanıtı görüntüle.",
|
||||
"`x` ago": "`x` önce",
|
||||
"Load more": "Daha fazla yükle",
|
||||
"`x` points.": "`x` puan.",
|
||||
"Could not create mix.": "Mix oluşturulamadı.",
|
||||
"Empty playlist": "Boş oynatma listesi",
|
||||
"Not a playlist.": "Oynatma listesi değil.",
|
||||
"Playlist does not exist.": "Oynatma listesi mevcut değil.",
|
||||
"Could not pull trending pages.": "Trend sayfaları alınamıyor.",
|
||||
"Hidden field \"challenge\" is a required field": "Gizli alan \"challenge\" zorunlu bir alandır",
|
||||
"Hidden field \"token\" is a required field": "Gizli alan \"jeton\" zorunlu bir alandır",
|
||||
"Erroneous challenge": "Hatalı challenge",
|
||||
"Erroneous token": "Hatalı jeton",
|
||||
"No such user": "Böyle bir kullanıcı yok",
|
||||
"Token is expired, please try again": "Jetonun süresi doldu, lütfen tekrar deneyin",
|
||||
"English": "İngilizce",
|
||||
"English (auto-generated)": "İngilizce (otomatik oluşturuldu)",
|
||||
"Afrikaans": "Afrikanca",
|
||||
"Albanian": "Arnavutça",
|
||||
"Amharic": "Amharca",
|
||||
"Arabic": "Arapça",
|
||||
"Armenian": "Ermenice",
|
||||
"Azerbaijani": "Azerice",
|
||||
"Bangla": "Bengalce",
|
||||
"Basque": "Baskça",
|
||||
"Belarusian": "Belarusça",
|
||||
"Bosnian": "Boşnakça",
|
||||
"Bulgarian": "Bulgarca",
|
||||
"Burmese": "Birmanca",
|
||||
"Catalan": "Katalanca",
|
||||
"Cebuano": "Sebuanca",
|
||||
"Chinese (Simplified)": "Çince (Basitleştirilmiş)",
|
||||
"Chinese (Traditional)": "Çince (Geleneksel)",
|
||||
"Corsican": "Korsikaca",
|
||||
"Croatian": "Hırvatça",
|
||||
"Czech": "Çekçe",
|
||||
"Danish": "Danca",
|
||||
"Dutch": "Flemenkçe",
|
||||
"Esperanto": "Esperanto",
|
||||
"Estonian": "Estonca",
|
||||
"Filipino": "Filipince",
|
||||
"Finnish": "Fince",
|
||||
"French": "Fransızca",
|
||||
"Galician": "Galiçyaca",
|
||||
"Georgian": "Gürcüce",
|
||||
"German": "Almanca",
|
||||
"Greek": "Yunanca",
|
||||
"Gujarati": "Guceratça",
|
||||
"Haitian Creole": "Haiti Creole dili",
|
||||
"Hausa": "Hausaca",
|
||||
"Hawaiian": "Hawaii dili",
|
||||
"Hebrew": "İbranice",
|
||||
"Hindi": "Hintçe",
|
||||
"Hmong": "Hmong",
|
||||
"Hungarian": "Macarca",
|
||||
"Icelandic": "İzlandaca",
|
||||
"Igbo": "İgbo",
|
||||
"Indonesian": "Endonezce",
|
||||
"Irish": "İrlandaca",
|
||||
"Italian": "İtalyanca",
|
||||
"Japanese": "Japonca",
|
||||
"Javanese": "Cava dili",
|
||||
"Kannada": "Kannada dili",
|
||||
"Kazakh": "Kazakça",
|
||||
"Khmer": "Kmerce",
|
||||
"Korean": "Korece",
|
||||
"Kurdish": "Kürtçe",
|
||||
"Kyrgyz": "Kırgızca",
|
||||
"Lao": "Laoca",
|
||||
"Latin": "Latince",
|
||||
"Latvian": "Letonca",
|
||||
"Lithuanian": "Litvanyaca",
|
||||
"Luxembourgish": "Lüksemburgca",
|
||||
"Macedonian": "Makedonca",
|
||||
"Malagasy": "Malgaşça",
|
||||
"Malay": "Malayca",
|
||||
"Malayalam": "Malayalam dili",
|
||||
"Maltese": "Maltaca",
|
||||
"Maori": "Maori dili",
|
||||
"Marathi": "Marati dili",
|
||||
"Mongolian": "Moğolca",
|
||||
"Nepali": "Nepalce",
|
||||
"Norwegian Bokmål": "Norveççe Bokmål",
|
||||
"Nyanja": "Çevaca",
|
||||
"Pashto": "Peştuca",
|
||||
"Persian": "Farsça",
|
||||
"Polish": "Lehçe",
|
||||
"Portuguese": "Portekizce",
|
||||
"Punjabi": "Pencap dili",
|
||||
"Romanian": "Rumence",
|
||||
"Russian": "Rusça",
|
||||
"Samoan": "Samoa dili",
|
||||
"Scottish Gaelic": "İskoç Galcesi",
|
||||
"Serbian": "Sırpça",
|
||||
"Shona": "Şona dili",
|
||||
"Sindhi": "Sintçe",
|
||||
"Sinhala": "Seylanca",
|
||||
"Slovak": "Slovakça",
|
||||
"Slovenian": "Slovence",
|
||||
"Somali": "Somalice",
|
||||
"Southern Sotho": "Güney Sotho dili",
|
||||
"Spanish": "İspanyolca",
|
||||
"Spanish (Latin America)": "İspanyolca (Latin Amerika)",
|
||||
"Sundanese": "Sundaca",
|
||||
"Swahili": "Svahili dili",
|
||||
"Swedish": "İsveççe",
|
||||
"Tajik": "Tacikçe",
|
||||
"Tamil": "Tamilce",
|
||||
"Telugu": "Telugu dili",
|
||||
"Thai": "Tayca",
|
||||
"Turkish": "Türkçe",
|
||||
"Ukrainian": "Ukraynaca",
|
||||
"Urdu": "Urduca",
|
||||
"Uzbek": "Özbekçe",
|
||||
"Vietnamese": "Vietnamca",
|
||||
"Welsh": "Galce",
|
||||
"Western Frisian": "Batı Frizcesi",
|
||||
"Xhosa": "Xhosa dili",
|
||||
"Yiddish": "Yiddiş",
|
||||
"Yoruba": "Yoruba dili",
|
||||
"Zulu": "Zuluca",
|
||||
"`x` years": "`x` yıl",
|
||||
"`x` months": "`x` ay",
|
||||
"`x` weeks": "`x` hafta",
|
||||
"`x` days": "`x` gün",
|
||||
"`x` hours": "`x` saat",
|
||||
"`x` minutes": "`x` dakika",
|
||||
"`x` seconds": "`x` saniye",
|
||||
"Fallback comments: ": "Yedek yorumlar: ",
|
||||
"Popular": "Popüler",
|
||||
"Top": "Enler",
|
||||
"About": "Hakkında",
|
||||
"Rating: ": "Değerlendirme: ",
|
||||
"Language: ": "Dil: ",
|
||||
"View as playlist": "Oynatma listesi olarak görüntüle",
|
||||
"Default": "Öntanımlı",
|
||||
"Music": "Müzik",
|
||||
"Gaming": "Oyun",
|
||||
"News": "Haberler",
|
||||
"Movies": "Filmler",
|
||||
"Download": "İndir",
|
||||
"Download as: ": "Şu şekilde indir: ",
|
||||
"%A %B %-d, %Y": "%A %B %-d, %Y",
|
||||
"(edited)": "(düzenlendi)",
|
||||
"YouTube comment permalink": "YouTube yorumu kalıcı linki",
|
||||
"permalink": "kalıcı link",
|
||||
"`x` marked it with a ❤": "`x` ❤ ile işaretlendi",
|
||||
"Audio mode": "Ses modu",
|
||||
"Video mode": "Video modu",
|
||||
"Videos": "Videolar",
|
||||
"Playlists": "Oynatma listeleri",
|
||||
"Community": "Topluluk",
|
||||
"Current version: ": "Şu anki sürüm: "
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"`x` subscribers": "`x` підписників",
|
||||
"`x` videos": "`x` відео",
|
||||
"`x` playlists": "списки відтворення \"x\"",
|
||||
"LIVE": "ПРЯМИЙ ЕФІР",
|
||||
"Shared `x` ago": "Розміщено `x` назад",
|
||||
"Unsubscribe": "Відписатися",
|
||||
@@ -68,7 +69,11 @@
|
||||
"Show related videos: ": "Показувати схожі відео? ",
|
||||
"Show annotations by default: ": "Завжди показувати анотації? ",
|
||||
"Visual preferences": "Налаштування сайту",
|
||||
"Player style: ": "Стиль програвача: ",
|
||||
"Dark mode: ": "Темне оформлення: ",
|
||||
"Theme: ": "Тема: ",
|
||||
"dark": "темна",
|
||||
"light": "Світла",
|
||||
"Thin mode: ": "Полегшене оформлення: ",
|
||||
"Subscription preferences": "Налаштування підписок",
|
||||
"Show annotations by default for subscribed channels: ": "Завжди показувати анотації у відео каналів, на які ви підписані? ",
|
||||
@@ -122,7 +127,17 @@
|
||||
"View JavaScript license information.": "Переглянути інформацію щодо ліцензії JavaScript.",
|
||||
"View privacy policy.": "Переглянути політику приватності.",
|
||||
"Trending": "У тренді",
|
||||
"Public": "Прилюдний",
|
||||
"Unlisted": "Немає в списку",
|
||||
"Private": "Особистий",
|
||||
"View all playlists": "Переглянути всі списки відтворення",
|
||||
"Updated `x` ago": "Оновлено `x` тому",
|
||||
"Delete playlist `x`?": "Видалити список відтворення \"x\"?",
|
||||
"Delete playlist": "Видалити список відтворення",
|
||||
"Create playlist": "Створити список відтворення",
|
||||
"Title": "Заголовок",
|
||||
"Playlist privacy": "Конфіденційність списку відтворення",
|
||||
"Editing playlist `x`": "Редагування списку відтворення \"x\"",
|
||||
"Watch on YouTube": "Дивитися на YouTube",
|
||||
"Hide annotations": "Приховати анотації",
|
||||
"Show annotations": "Показати анотації",
|
||||
@@ -310,12 +325,12 @@
|
||||
"%A %B %-d, %Y": "%-d %B %Y, %A",
|
||||
"(edited)": "(змінено)",
|
||||
"YouTube comment permalink": "Пряме посилання на коментар в YouTube",
|
||||
"permalink": "",
|
||||
"permalink": "постійне посилання",
|
||||
"`x` marked it with a ❤": "❤ цьому від каналу `x`",
|
||||
"Audio mode": "Аудіорежим",
|
||||
"Video mode": "Відеорежим",
|
||||
"Videos": "Відео",
|
||||
"Playlists": "Плейлисти",
|
||||
"Community": "",
|
||||
"Community": "Спільнота",
|
||||
"Current version: ": "Поточна версія: "
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"`x` subscribers": "`x` 订阅者",
|
||||
"`x` videos": "`x` 视频",
|
||||
"`x` subscribers": "`x` 位订阅者",
|
||||
"`x` videos": "`x` 个视频",
|
||||
"`x` playlists": "`x` 个播放列表",
|
||||
"LIVE": "直播",
|
||||
"Shared `x` ago": "`x` 前分享",
|
||||
"Unsubscribe": "取消订阅",
|
||||
@@ -68,7 +69,11 @@
|
||||
"Show related videos: ": "显示相关视频?",
|
||||
"Show annotations by default: ": "默认显示视频注释?",
|
||||
"Visual preferences": "视觉选项",
|
||||
"Player style: ": "播放器样式:",
|
||||
"Dark mode: ": "暗色模式:",
|
||||
"Theme: ": "主题",
|
||||
"dark": "暗色",
|
||||
"light": "亮色",
|
||||
"Thin mode: ": "窄页模式:",
|
||||
"Subscription preferences": "订阅设置",
|
||||
"Show annotations by default for subscribed channels: ": "在订阅频道的视频默认显示注释?",
|
||||
@@ -122,7 +127,17 @@
|
||||
"View JavaScript license information.": "查看 JavaScript 协议信息。",
|
||||
"View privacy policy.": "查看隐私政策。",
|
||||
"Trending": "时下流行",
|
||||
"Public": "公开",
|
||||
"Unlisted": "不公开",
|
||||
"Private": "私享",
|
||||
"View all playlists": "查看所有播放列表",
|
||||
"Updated `x` ago": "`x` 前更新",
|
||||
"Delete playlist `x`?": "是否删除播放列表 `x`?",
|
||||
"Delete playlist": "删除播放列表",
|
||||
"Create playlist": "创建播放列表",
|
||||
"Title": "标题",
|
||||
"Playlist privacy": "播放列表隐私设置",
|
||||
"Editing playlist `x`": "正在编辑播放列表 `x`",
|
||||
"Watch on YouTube": "在 YouTube 观看",
|
||||
"Hide annotations": "隐藏注释",
|
||||
"Show annotations": "显示注释",
|
||||
@@ -310,12 +325,12 @@
|
||||
"%A %B %-d, %Y": "%Y年%-m月%-d日 %a",
|
||||
"(edited)": "(已编辑)",
|
||||
"YouTube comment permalink": "YouTube 评论永久链接",
|
||||
"permalink": "",
|
||||
"permalink": "永久链接",
|
||||
"`x` marked it with a ❤": "`x` 为此加 ❤",
|
||||
"Audio mode": "音频模式",
|
||||
"Video mode": "视频模式",
|
||||
"Videos": "视频",
|
||||
"Playlists": "播放列表",
|
||||
"Community": "",
|
||||
"Community": "社区",
|
||||
"Current version: ": "当前版本:"
|
||||
}
|
||||
381
locales/zh-TW.json
Normal file
381
locales/zh-TW.json
Normal file
@@ -0,0 +1,381 @@
|
||||
{
|
||||
"`x` subscribers": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 個訂閱者",
|
||||
"": "`x` 個訂閱者。"
|
||||
},
|
||||
"`x` videos": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 部影片",
|
||||
"": "`x` 部影片。"
|
||||
},
|
||||
"`x` playlists": "`x` 播放清單",
|
||||
"LIVE": "直播",
|
||||
"Shared `x` ago": "`x` 前分享",
|
||||
"Unsubscribe": "取消訂閱",
|
||||
"Subscribe": "訂閱",
|
||||
"View channel on YouTube": "在 YouTube 上檢視頻道",
|
||||
"View playlist on YouTube": "在 YouTube 上檢視播放清單",
|
||||
"newest": "最新",
|
||||
"oldest": "最舊",
|
||||
"popular": "流行",
|
||||
"last": "上一個",
|
||||
"Next page": "下一頁",
|
||||
"Previous page": "上一頁",
|
||||
"Clear watch history?": "清除觀看歷史?",
|
||||
"New password": "新密碼",
|
||||
"New passwords must match": "新密碼必須符合",
|
||||
"Cannot change password for Google accounts": "無法變更 Google 帳號的密碼",
|
||||
"Authorize token?": "授權 token?",
|
||||
"Authorize token for `x`?": "`x` 的授權 token?",
|
||||
"Yes": "是",
|
||||
"No": "否",
|
||||
"Import and Export Data": "匯入與匯出資料",
|
||||
"Import": "匯入",
|
||||
"Import Invidious data": "匯入 Invidious 資料",
|
||||
"Import YouTube subscriptions": "匯入 YouTube 訂閱",
|
||||
"Import FreeTube subscriptions (.db)": "匯入 FreeTube 訂閱 (.db)",
|
||||
"Import NewPipe subscriptions (.json)": "匯入 NewPipe 訂閱 (.json)",
|
||||
"Import NewPipe data (.zip)": "匯入 NewPipe 資料 (.zip)",
|
||||
"Export": "匯出",
|
||||
"Export subscriptions as OPML": "將訂閱匯出為 OPML",
|
||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "將訂閱匯出為 OPML(供 NewPipe 與 FreeTube 使用)",
|
||||
"Export data as JSON": "將 JSON 匯出為 JSON",
|
||||
"Delete account?": "刪除帳號?",
|
||||
"History": "歷史",
|
||||
"An alternative front-end to YouTube": "一個 YouTube 的替代前端",
|
||||
"JavaScript license information": "JavaScript 授權條款資訊",
|
||||
"source": "來源",
|
||||
"Log in": "登入",
|
||||
"Log in/register": "登入/註冊",
|
||||
"Log in with Google": "使用 Google 登入",
|
||||
"User ID": "使用者 ID",
|
||||
"Password": "密碼",
|
||||
"Time (h:mm:ss):": "時間 (h:mm:ss):",
|
||||
"Text CAPTCHA": "文字 CAPTCHA",
|
||||
"Image CAPTCHA": "圖片 CAPTCHA",
|
||||
"Sign In": "登入",
|
||||
"Register": "註冊",
|
||||
"E-mail": "電子郵件",
|
||||
"Google verification code": "Google 驗證碼",
|
||||
"Preferences": "偏好設定",
|
||||
"Player preferences": "播放器偏好設定",
|
||||
"Always loop: ": "總是循環播放: ",
|
||||
"Autoplay: ": "自動播放: ",
|
||||
"Play next by default: ": "預設播放下一部: ",
|
||||
"Autoplay next video: ": "自動播放下一部影片: ",
|
||||
"Listen by default: ": "預設聆聽: ",
|
||||
"Proxy videos: ": "代理影片: ",
|
||||
"Default speed: ": "預設速度: ",
|
||||
"Preferred video quality: ": "偏好的影片畫質: ",
|
||||
"Player volume: ": "播放器音量: ",
|
||||
"Default comments: ": "預設留言: ",
|
||||
"youtube": "youtube",
|
||||
"reddit": "reddit",
|
||||
"Default captions: ": "預設字幕: ",
|
||||
"Fallback captions: ": "汰退字幕: ",
|
||||
"Show related videos: ": "顯示相關的影片: ",
|
||||
"Show annotations by default: ": "預設顯示註釋: ",
|
||||
"Visual preferences": "視覺偏好設定",
|
||||
"Player style: ": "播放器樣式: ",
|
||||
"Dark mode: ": "深色模式: ",
|
||||
"Theme: ": "佈景主題: ",
|
||||
"dark": "深色",
|
||||
"light": "淺色",
|
||||
"Thin mode: ": "精簡模式: ",
|
||||
"Subscription preferences": "訂閱偏好設定",
|
||||
"Show annotations by default for subscribed channels: ": "預設為已訂閱的頻道顯示註釋: ",
|
||||
"Redirect homepage to feed: ": "重新導向首頁至 feed: ",
|
||||
"Number of videos shown in feed: ": "顯示在 feed 中的影片數量: ",
|
||||
"Sort videos by: ": "以此種方式排序影片: ",
|
||||
"published": "已發佈",
|
||||
"published - reverse": "已發佈 - 反向",
|
||||
"alphabetically": "字母",
|
||||
"alphabetically - reverse": "字母 - 反向",
|
||||
"channel name": "頻道名稱",
|
||||
"channel name - reverse": "頻道名稱 - 反向",
|
||||
"Only show latest video from channel: ": "僅顯示從頻道而來的最新影片: ",
|
||||
"Only show latest unwatched video from channel: ": "僅顯示從頻道而來的未觀看影片: ",
|
||||
"Only show unwatched: ": "僅顯示未觀看的: ",
|
||||
"Only show notifications (if there are any): ": "僅顯示通知(如果有的話): ",
|
||||
"Enable web notifications": "啟用網路通知",
|
||||
"`x` uploaded a video": "`x` 上傳了一部影片",
|
||||
"`x` is live": "`x` 正在直播",
|
||||
"Data preferences": "資料偏好設定",
|
||||
"Clear watch history": "清除觀看歷史",
|
||||
"Import/export data": "匯入/匯出資料",
|
||||
"Change password": "變更密碼",
|
||||
"Manage subscriptions": "管理訂閱",
|
||||
"Manage tokens": "管理 tokens",
|
||||
"Watch history": "觀看歷史",
|
||||
"Delete account": "刪除帳號",
|
||||
"Administrator preferences": "管理員偏好設定",
|
||||
"Default homepage: ": "預設首頁: ",
|
||||
"Feed menu: ": "Feed 選單: ",
|
||||
"Top enabled: ": "頂部啟用: ",
|
||||
"CAPTCHA enabled: ": "CAPTCHA 啟用: ",
|
||||
"Login enabled: ": "啟用登入: ",
|
||||
"Registration enabled: ": "啟用註冊: ",
|
||||
"Report statistics: ": "回報統計: ",
|
||||
"Save preferences": "儲存偏好設定",
|
||||
"Subscription manager": "訂閱管理員",
|
||||
"Token manager": "Token 管理員",
|
||||
"Token": "Token",
|
||||
"`x` subscriptions": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 個訂閱",
|
||||
"": "`x` 個訂閱。"
|
||||
},
|
||||
"`x` tokens": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` token",
|
||||
"": "`x` tokens。"
|
||||
},
|
||||
"Import/export": "匯入/匯出",
|
||||
"unsubscribe": "取消訂閱",
|
||||
"revoke": "撤銷",
|
||||
"Subscriptions": "訂閱",
|
||||
"`x` unseen notifications": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 個未讀的通知",
|
||||
"": "`x` 個未讀的通知。"
|
||||
},
|
||||
"search": "搜尋",
|
||||
"Log out": "登出",
|
||||
"Released under the AGPLv3 by Omar Roth.": "Omar Roth 以 AGPLv3 釋出。",
|
||||
"Source available here.": "原始碼在此提供。",
|
||||
"View JavaScript license information.": "檢視 JavaScript 授權條款資訊。",
|
||||
"View privacy policy.": "檢視隱私權政策。",
|
||||
"Trending": "趨勢",
|
||||
"Public": "公開",
|
||||
"Unlisted": "未列出",
|
||||
"Private": "私人",
|
||||
"View all playlists": "檢視所有播放清單",
|
||||
"Updated `x` ago": "更新於 `x` 之前",
|
||||
"Delete playlist `x`?": "刪除播放清單 `x`?",
|
||||
"Delete playlist": "刪除播放清單",
|
||||
"Create playlist": "建立播放清單",
|
||||
"Title": "標題",
|
||||
"Playlist privacy": "播放清單隱私",
|
||||
"Editing playlist `x`": "已編輯播放清單 `x`",
|
||||
"Watch on YouTube": "在 YouTube 上觀看",
|
||||
"Hide annotations": "隱藏註釋",
|
||||
"Show annotations": "顯示註釋",
|
||||
"Genre: ": "風格: ",
|
||||
"License: ": "授權條款: ",
|
||||
"Family friendly? ": "家庭友好? ",
|
||||
"Wilson score: ": "威爾遜分數: ",
|
||||
"Engagement: ": "參與度: ",
|
||||
"Whitelisted regions: ": "白名單區域: ",
|
||||
"Blacklisted regions: ": "黑名單區域: ",
|
||||
"Shared `x`": "`x` 發佈",
|
||||
"`x` views": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 次檢視",
|
||||
"": "`x` 次檢視。"
|
||||
},
|
||||
"Premieres in `x`": "首映於 `x`",
|
||||
"Premieres `x`": "首映於 `x`",
|
||||
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "嗨!看來您將 JavaScript 關閉了。點擊這裡以檢視留言,請注意,它們可能需要比較長的時間載入。",
|
||||
"View YouTube comments": "檢視 YouTube 留言",
|
||||
"View more comments on Reddit": "在 Reddit 上檢視更多留言",
|
||||
"View `x` comments": "檢視 `x` 則留言",
|
||||
"View Reddit comments": "檢視 Reddit 留言",
|
||||
"Hide replies": "隱藏回覆",
|
||||
"Show replies": "顯示回覆",
|
||||
"Incorrect password": "不正確的密碼",
|
||||
"Quota exceeded, try again in a few hours": "超過限額,請在幾個小時後再試一次",
|
||||
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "無法登入,請確定雙因素驗證(驗證器或簡訊)已開啟。",
|
||||
"Invalid TFA code": "無效的 TFA 代碼",
|
||||
"Login failed. This may be because two-factor authentication is not turned on for your account.": "登入失敗。這可能是因為您的帳號未開啟雙因素驗證的關係。",
|
||||
"Wrong answer": "錯誤的答案",
|
||||
"Erroneous CAPTCHA": "錯誤的 CAPTCHA",
|
||||
"CAPTCHA is a required field": "CAPTCHA 為必填欄位",
|
||||
"User ID is a required field": "使用者 ID 為必填欄位",
|
||||
"Password is a required field": "密碼為必填欄位",
|
||||
"Wrong username or password": "錯誤的使用者名稱或密碼",
|
||||
"Please sign in using 'Log in with Google'": "請使用「以 Google 登入」來登入",
|
||||
"Password cannot be empty": "密碼不能為空",
|
||||
"Password cannot be longer than 55 characters": "密碼不能長於55個字元",
|
||||
"Please log in": "請登入",
|
||||
"Invidious Private Feed for `x`": "`x` 的 Invidious 私密 feed",
|
||||
"channel:`x`": "頻道:`x`",
|
||||
"Deleted or invalid channel": "已刪除或無效的頻道",
|
||||
"This channel does not exist.": "此頻道不存在。",
|
||||
"Could not get channel info.": "無法取得頻道資訊。",
|
||||
"Could not fetch comments": "無法擷取留言",
|
||||
"View `x` replies": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "檢視 `x` 則回覆",
|
||||
"": "檢視 `x` 則回覆。"
|
||||
},
|
||||
"`x` ago": "`x` 以前",
|
||||
"Load more": "載入更多",
|
||||
"`x` points": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 點",
|
||||
"": "`x` 點。"
|
||||
},
|
||||
"Could not create mix.": "無法建立混合。",
|
||||
"Empty playlist": "空的播放清單",
|
||||
"Not a playlist.": "不是播放清單。",
|
||||
"Playlist does not exist.": "播放清單不存在。",
|
||||
"Could not pull trending pages.": "無法拉取趨勢頁面。",
|
||||
"Hidden field \"challenge\" is a required field": "隱藏的欄位 \"challenge\" 是必填欄位",
|
||||
"Hidden field \"token\" is a required field": "隱藏的欄位 \"token\" 是必填欄位",
|
||||
"Erroneous challenge": "錯誤的 challenge",
|
||||
"Erroneous token": "錯誤的 token",
|
||||
"No such user": "無此使用者",
|
||||
"Token is expired, please try again": "Token 已過期,請再試一次",
|
||||
"English": "英文",
|
||||
"English (auto-generated)": "英文(自動生成)",
|
||||
"Afrikaans": "南非語",
|
||||
"Albanian": "阿爾巴尼亞語",
|
||||
"Amharic": "阿姆哈拉語",
|
||||
"Arabic": "阿拉伯語",
|
||||
"Armenian": "亞美尼亞語",
|
||||
"Azerbaijani": "亞塞拜然語",
|
||||
"Bangla": "孟加拉文",
|
||||
"Basque": "巴斯克語",
|
||||
"Belarusian": "白俄羅斯語",
|
||||
"Bosnian": "波士尼亞語",
|
||||
"Bulgarian": "保加利亞語",
|
||||
"Burmese": "緬甸語",
|
||||
"Catalan": "加泰隆尼亞語",
|
||||
"Cebuano": "宿霧語",
|
||||
"Chinese (Simplified)": "簡體中文",
|
||||
"Chinese (Traditional)": "繁體中文",
|
||||
"Corsican": "科西嘉語",
|
||||
"Croatian": "克羅埃西亞語",
|
||||
"Czech": "捷克語",
|
||||
"Danish": "丹麥語",
|
||||
"Dutch": "荷蘭語",
|
||||
"Esperanto": "世界語",
|
||||
"Estonian": "愛沙尼亞語",
|
||||
"Filipino": "菲律賓語",
|
||||
"Finnish": "芬蘭語",
|
||||
"French": "法語",
|
||||
"Galician": "加利西亞語",
|
||||
"Georgian": "喬治亞語",
|
||||
"German": "德語",
|
||||
"Greek": "希臘語",
|
||||
"Gujarati": "古吉拉特語",
|
||||
"Haitian Creole": "海地克里奧爾語",
|
||||
"Hausa": "豪薩語",
|
||||
"Hawaiian": "夏威夷語",
|
||||
"Hebrew": "希伯來語",
|
||||
"Hindi": "印地語",
|
||||
"Hmong": "苗文",
|
||||
"Hungarian": "匈牙利語",
|
||||
"Icelandic": "冰島語",
|
||||
"Igbo": "伊博語",
|
||||
"Indonesian": "印尼語",
|
||||
"Irish": "愛爾蘭語",
|
||||
"Italian": "義大利語",
|
||||
"Japanese": "日語",
|
||||
"Javanese": "爪哇語",
|
||||
"Kannada": "康納達語",
|
||||
"Kazakh": "哈薩克語",
|
||||
"Khmer": "高棉文",
|
||||
"Korean": "韓語",
|
||||
"Kurdish": "庫德語",
|
||||
"Kyrgyz": "吉爾吉斯語",
|
||||
"Lao": "寮語",
|
||||
"Latin": "拉丁語",
|
||||
"Latvian": "拉脫維亞語",
|
||||
"Lithuanian": "立陶宛語",
|
||||
"Luxembourgish": "盧森堡語",
|
||||
"Macedonian": "馬其頓語",
|
||||
"Malagasy": "馬拉加斯語",
|
||||
"Malay": "馬來語",
|
||||
"Malayalam": "馬拉雅拉姆語",
|
||||
"Maltese": "馬爾他語",
|
||||
"Maori": "毛利語",
|
||||
"Marathi": "馬拉提語",
|
||||
"Mongolian": "蒙古語",
|
||||
"Nepali": "尼泊爾語",
|
||||
"Norwegian Bokmål": "書面挪威語",
|
||||
"Nyanja": "尼揚賈語",
|
||||
"Pashto": "普什圖語",
|
||||
"Persian": "波斯語",
|
||||
"Polish": "波蘭人",
|
||||
"Portuguese": "葡萄牙語",
|
||||
"Punjabi": "旁遮普語",
|
||||
"Romanian": "羅馬尼亞語",
|
||||
"Russian": "俄語",
|
||||
"Samoan": "薩摩亞語",
|
||||
"Scottish Gaelic": "蘇格蘭蓋爾語",
|
||||
"Serbian": "塞爾維亞語",
|
||||
"Shona": "修納語",
|
||||
"Sindhi": "信德語",
|
||||
"Sinhala": "僧伽羅語",
|
||||
"Slovak": "斯洛伐克語",
|
||||
"Slovenian": "斯洛維尼亞語",
|
||||
"Somali": "索馬利亞語",
|
||||
"Southern Sotho": "南塞索托語",
|
||||
"Spanish": "西班牙語",
|
||||
"Spanish (Latin America)": "西班牙語(拉丁美洲)",
|
||||
"Sundanese": "巽他語",
|
||||
"Swahili": "斯瓦希里語",
|
||||
"Swedish": "瑞典語",
|
||||
"Tajik": "塔吉克語",
|
||||
"Tamil": "坦米爾語",
|
||||
"Telugu": "泰盧固語",
|
||||
"Thai": "泰語",
|
||||
"Turkish": "土耳其語",
|
||||
"Ukrainian": "烏克蘭語",
|
||||
"Urdu": "烏爾都語",
|
||||
"Uzbek": "烏茲別克語",
|
||||
"Vietnamese": "越南語",
|
||||
"Welsh": "威爾斯語",
|
||||
"Western Frisian": "西菲士蘭語",
|
||||
"Xhosa": "科薩語",
|
||||
"Yiddish": "意第緒語",
|
||||
"Yoruba": "約魯巴語",
|
||||
"Zulu": "祖魯語",
|
||||
"`x` years": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 年",
|
||||
"": "`x` 年。"
|
||||
},
|
||||
"`x` months": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 月",
|
||||
"": "`x` 月。"
|
||||
},
|
||||
"`x` weeks": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 週",
|
||||
"": "`x` 週。"
|
||||
},
|
||||
"`x` days": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 天",
|
||||
"": "`x` 天。"
|
||||
},
|
||||
"`x` hours": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 小時",
|
||||
"": "`x` 小時。"
|
||||
},
|
||||
"`x` minutes": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 天",
|
||||
"": "`x` 分鐘。"
|
||||
},
|
||||
"`x` seconds": {
|
||||
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 秒",
|
||||
"": "`x` 秒。"
|
||||
},
|
||||
"Fallback comments: ": "汰退留言: ",
|
||||
"Popular": "熱門頻道",
|
||||
"Top": "熱門影片",
|
||||
"About": "關於",
|
||||
"Rating: ": "評分: ",
|
||||
"Language: ": "語言: ",
|
||||
"View as playlist": "以播放清單檢視",
|
||||
"Default": "預設值",
|
||||
"Music": "音樂",
|
||||
"Gaming": "遊戲",
|
||||
"News": "新聞",
|
||||
"Movies": "電影",
|
||||
"Download": "下載",
|
||||
"Download as: ": "下載為: ",
|
||||
"%A %B %-d, %Y": "%A %B %-d, %Y",
|
||||
"(edited)": "(已編輯)",
|
||||
"YouTube comment permalink": "YouTube 留言永久連結",
|
||||
"permalink": "永久連結",
|
||||
"`x` marked it with a ❤": "`x` 為此標記 ❤",
|
||||
"Audio mode": "音訊模式",
|
||||
"Video mode": "視訊模式",
|
||||
"Videos": "影片",
|
||||
"Playlists": "播放清單",
|
||||
"Community": "社群",
|
||||
"Current version: ": "目前版本: "
|
||||
}
|
||||
16
shard.yml
16
shard.yml
@@ -1,5 +1,5 @@
|
||||
name: invidious
|
||||
version: 0.19.0
|
||||
version: 0.20.1
|
||||
|
||||
authors:
|
||||
- Omar Roth <omarroth@protonmail.com>
|
||||
@@ -11,11 +11,23 @@ targets:
|
||||
dependencies:
|
||||
pg:
|
||||
github: will/crystal-pg
|
||||
version: ~> 0.21.0
|
||||
sqlite3:
|
||||
github: crystal-lang/crystal-sqlite3
|
||||
version: ~> 0.16.0
|
||||
kemal:
|
||||
github: kemalcr/kemal
|
||||
version: ~> 0.26.1
|
||||
pool:
|
||||
github: ysbaddaden/pool
|
||||
version: ~> 0.2.3
|
||||
protodec:
|
||||
github: omarroth/protodec
|
||||
version: ~> 0.1.2
|
||||
lsquic:
|
||||
github: omarroth/lsquic.cr
|
||||
branch: dev
|
||||
|
||||
crystal: 0.29.0
|
||||
crystal: 0.34.0
|
||||
|
||||
license: AGPLv3
|
||||
|
||||
File diff suppressed because one or more lines are too long
1964
src/invidious.cr
1964
src/invidious.cr
File diff suppressed because it is too large
Load Diff
@@ -41,13 +41,15 @@ struct ChannelVideo
|
||||
end
|
||||
end
|
||||
|
||||
def to_xml(locale, host_url, xml : XML::Builder)
|
||||
def to_xml(locale, host_url, query_params, xml : XML::Builder)
|
||||
query_params["v"] = self.id
|
||||
|
||||
xml.element("entry") do
|
||||
xml.element("id") { xml.text "yt:video:#{self.id}" }
|
||||
xml.element("yt:videoId") { xml.text self.id }
|
||||
xml.element("yt:channelId") { xml.text self.ucid }
|
||||
xml.element("title") { xml.text self.title }
|
||||
xml.element("link", rel: "alternate", href: "#{host_url}/watch?v=#{self.id}")
|
||||
xml.element("link", rel: "alternate", href: "#{host_url}/watch?#{query_params}")
|
||||
|
||||
xml.element("author") do
|
||||
xml.element("name") { xml.text self.author }
|
||||
@@ -56,7 +58,7 @@ struct ChannelVideo
|
||||
|
||||
xml.element("content", type: "xhtml") do
|
||||
xml.element("div", xmlns: "http://www.w3.org/1999/xhtml") do
|
||||
xml.element("a", href: "#{host_url}/watch?v=#{self.id}") do
|
||||
xml.element("a", href: "#{host_url}/watch?#{query_params}") do
|
||||
xml.element("img", src: "#{host_url}/vi/#{self.id}/mqdefault.jpg")
|
||||
end
|
||||
end
|
||||
@@ -118,7 +120,7 @@ struct AboutChannel
|
||||
description_html: String,
|
||||
paid: Bool,
|
||||
total_views: Int64,
|
||||
sub_count: Int64,
|
||||
sub_count: Int32,
|
||||
joined: Time,
|
||||
is_family_friendly: Bool,
|
||||
allowed_regions: Array(String),
|
||||
@@ -127,6 +129,13 @@ struct AboutChannel
|
||||
})
|
||||
end
|
||||
|
||||
class ChannelRedirect < Exception
|
||||
property channel_id : String
|
||||
|
||||
def initialize(@channel_id)
|
||||
end
|
||||
end
|
||||
|
||||
def get_batch_channels(channels, db, refresh = false, pull_all_videos = true, max_threads = 10)
|
||||
finished_channel = Channel(String | Nil).new
|
||||
|
||||
@@ -172,23 +181,21 @@ def get_channel(id, db, refresh = true, pull_all_videos = true)
|
||||
args = arg_array(channel_array)
|
||||
|
||||
db.exec("INSERT INTO channels VALUES (#{args}) \
|
||||
ON CONFLICT (id) DO UPDATE SET author = $2, updated = $3", channel_array)
|
||||
ON CONFLICT (id) DO UPDATE SET author = $2, updated = $3", args: channel_array)
|
||||
end
|
||||
else
|
||||
channel = fetch_channel(id, db, pull_all_videos: pull_all_videos)
|
||||
channel_array = channel.to_a
|
||||
args = arg_array(channel_array)
|
||||
|
||||
db.exec("INSERT INTO channels VALUES (#{args})", channel_array)
|
||||
db.exec("INSERT INTO channels VALUES (#{args})", args: channel_array)
|
||||
end
|
||||
|
||||
return channel
|
||||
end
|
||||
|
||||
def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
||||
client = make_client(YT_URL)
|
||||
|
||||
rss = client.get("/feeds/videos.xml?channel_id=#{ucid}").body
|
||||
rss = YT_POOL.client &.get("/feeds/videos.xml?channel_id=#{ucid}").body
|
||||
rss = XML.parse_html(rss)
|
||||
|
||||
author = rss.xpath_node(%q(//feed/title))
|
||||
@@ -207,8 +214,18 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
||||
page = 1
|
||||
|
||||
url = produce_channel_videos_url(ucid, page, auto_generated: auto_generated)
|
||||
response = client.get(url)
|
||||
json = JSON.parse(response.body)
|
||||
response = YT_POOL.client &.get(url)
|
||||
|
||||
begin
|
||||
json = JSON.parse(response.body)
|
||||
rescue ex
|
||||
if response.body.includes?("To continue with your YouTube experience, please fill out the form below.") ||
|
||||
response.body.includes?("https://www.google.com/sorry/index")
|
||||
raise "Could not extract channel info. Instance is likely blocked."
|
||||
end
|
||||
|
||||
raise "Could not extract JSON"
|
||||
end
|
||||
|
||||
if json["content_html"]? && !json["content_html"].as_s.empty?
|
||||
document = XML.parse_html(json["content_html"].as_s)
|
||||
@@ -256,7 +273,7 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
||||
views: views,
|
||||
)
|
||||
|
||||
emails = db.query_all("UPDATE users SET notifications = notifications || $1 \
|
||||
emails = db.query_all("UPDATE users SET notifications = array_append(notifications, $1) \
|
||||
WHERE updated < $2 AND $3 = ANY(subscriptions) AND $1 <> ALL(notifications) RETURNING email",
|
||||
video.id, video.published, ucid, as: String)
|
||||
|
||||
@@ -268,13 +285,13 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
||||
db.exec("INSERT INTO channel_videos VALUES (#{args}) \
|
||||
ON CONFLICT (id) DO UPDATE SET title = $2, published = $3, \
|
||||
updated = $4, ucid = $5, author = $6, length_seconds = $7, \
|
||||
live_now = $8, views = $10", video_array)
|
||||
live_now = $8, views = $10", args: video_array)
|
||||
|
||||
# Update all users affected by insert
|
||||
if emails.empty?
|
||||
values = "'{}'"
|
||||
else
|
||||
values = "VALUES #{emails.map { |id| %(('#{id}')) }.join(",")}"
|
||||
values = "VALUES #{emails.map { |email| %((E'#{email.gsub({'\'' => "\\'", '\\' => "\\\\"})}')) }.join(",")}"
|
||||
end
|
||||
|
||||
db.exec("UPDATE users SET feed_needs_update = true WHERE email = ANY(#{values})")
|
||||
@@ -287,7 +304,7 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
||||
|
||||
loop do
|
||||
url = produce_channel_videos_url(ucid, page, auto_generated: auto_generated)
|
||||
response = client.get(url)
|
||||
response = YT_POOL.client &.get(url)
|
||||
json = JSON.parse(response.body)
|
||||
|
||||
if json["content_html"]? && !json["content_html"].as_s.empty?
|
||||
@@ -325,7 +342,7 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
||||
# We are notified of Red videos elsewhere (PubSub), which includes a correct published date,
|
||||
# so since they don't provide a published date here we can safely ignore them.
|
||||
if Time.utc - video.published > 1.minute
|
||||
emails = db.query_all("UPDATE users SET notifications = notifications || $1 \
|
||||
emails = db.query_all("UPDATE users SET notifications = array_append(notifications, $1) \
|
||||
WHERE updated < $2 AND $3 = ANY(subscriptions) AND $1 <> ALL(notifications) RETURNING email",
|
||||
video.id, video.published, video.ucid, as: String)
|
||||
|
||||
@@ -336,13 +353,13 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
||||
db.exec("INSERT INTO channel_videos VALUES (#{args}) \
|
||||
ON CONFLICT (id) DO UPDATE SET title = $2, published = $3, \
|
||||
updated = $4, ucid = $5, author = $6, length_seconds = $7, \
|
||||
live_now = $8, views = $10", video_array)
|
||||
live_now = $8, views = $10", args: video_array)
|
||||
|
||||
# Update all users affected by insert
|
||||
if emails.empty?
|
||||
values = "'{}'"
|
||||
else
|
||||
values = "VALUES #{emails.map { |id| %(('#{id}')) }.join(",")}"
|
||||
values = "VALUES #{emails.map { |email| %((E'#{email.gsub({'\'' => "\\'", '\\' => "\\\\"})}')) }.join(",")}"
|
||||
end
|
||||
|
||||
db.exec("UPDATE users SET feed_needs_update = true WHERE email = ANY(#{values})")
|
||||
@@ -366,12 +383,10 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
||||
end
|
||||
|
||||
def fetch_channel_playlists(ucid, author, auto_generated, continuation, sort_by)
|
||||
client = make_client(YT_URL)
|
||||
|
||||
if continuation
|
||||
if continuation || auto_generated
|
||||
url = produce_channel_playlists_url(ucid, continuation, sort_by, auto_generated)
|
||||
|
||||
response = client.get(url)
|
||||
response = YT_POOL.client &.get(url)
|
||||
json = JSON.parse(response.body)
|
||||
|
||||
if json["load_more_widget_html"].as_s.empty?
|
||||
@@ -388,13 +403,7 @@ def fetch_channel_playlists(ucid, author, auto_generated, continuation, sort_by)
|
||||
html = XML.parse_html(json["content_html"].as_s)
|
||||
nodeset = html.xpath_nodes(%q(//li[contains(@class, "feed-item-container")]))
|
||||
else
|
||||
url = "/channel/#{ucid}/playlists?disable_polymer=1&flow=list"
|
||||
|
||||
if auto_generated
|
||||
url += "&view=50"
|
||||
else
|
||||
url += "&view=1"
|
||||
end
|
||||
url = "/channel/#{ucid}/playlists?disable_polymer=1&flow=list&view=1"
|
||||
|
||||
case sort_by
|
||||
when "last", "last_added"
|
||||
@@ -403,9 +412,10 @@ def fetch_channel_playlists(ucid, author, auto_generated, continuation, sort_by)
|
||||
url += "&sort=da"
|
||||
when "newest", "newest_created"
|
||||
url += "&sort=dd"
|
||||
else nil # Ignore
|
||||
end
|
||||
|
||||
response = client.get(url)
|
||||
response = YT_POOL.client &.get(url)
|
||||
html = XML.parse_html(response.body)
|
||||
|
||||
continuation = html.xpath_node(%q(//button[@data-uix-load-more-href]))
|
||||
@@ -426,188 +436,121 @@ def fetch_channel_playlists(ucid, author, auto_generated, continuation, sort_by)
|
||||
end
|
||||
|
||||
def produce_channel_videos_url(ucid, page = 1, auto_generated = nil, sort_by = "newest")
|
||||
object = {
|
||||
"80226972:embedded" => {
|
||||
"2:string" => ucid,
|
||||
"3:base64" => {
|
||||
"2:string" => "videos",
|
||||
"6:varint": 2_i64,
|
||||
"7:varint": 1_i64,
|
||||
"12:varint": 1_i64,
|
||||
"13:string": "",
|
||||
"23:varint": 0_i64,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
if auto_generated
|
||||
seed = Time.unix(1525757349)
|
||||
|
||||
until seed >= Time.utc
|
||||
seed += 1.month
|
||||
end
|
||||
timestamp = seed - (page - 1).months
|
||||
|
||||
page = "#{timestamp.to_unix}"
|
||||
switch = 0x36
|
||||
object["80226972:embedded"]["3:base64"].as(Hash)["4:varint"] = 0x36_i64
|
||||
object["80226972:embedded"]["3:base64"].as(Hash)["15:string"] = "#{timestamp.to_unix}"
|
||||
else
|
||||
page = "#{page}"
|
||||
switch = 0x00
|
||||
object["80226972:embedded"]["3:base64"].as(Hash)["4:varint"] = 0_i64
|
||||
object["80226972:embedded"]["3:base64"].as(Hash)["15:string"] = "#{page}"
|
||||
end
|
||||
|
||||
data = IO::Memory.new
|
||||
data.write_byte 0x12
|
||||
data.write_byte 0x06
|
||||
data.print "videos"
|
||||
|
||||
data.write Bytes[0x30, 0x02]
|
||||
data.write Bytes[0x38, 0x01]
|
||||
data.write Bytes[0x60, 0x01]
|
||||
data.write Bytes[0x6a, 0x00]
|
||||
data.write Bytes[0xb8, 0x01, 0x00]
|
||||
|
||||
data.write Bytes[0x20, switch]
|
||||
data.write_byte 0x7a
|
||||
VarInt.to_io(data, page.bytesize)
|
||||
data.print page
|
||||
|
||||
case sort_by
|
||||
when "newest"
|
||||
# Empty tags can be omitted
|
||||
# meta.write(Bytes[0x18,0x00])
|
||||
when "popular"
|
||||
data.write Bytes[0x18, 0x01]
|
||||
object["80226972:embedded"]["3:base64"].as(Hash)["3:varint"] = 0x01_i64
|
||||
when "oldest"
|
||||
data.write Bytes[0x18, 0x02]
|
||||
object["80226972:embedded"]["3:base64"].as(Hash)["3:varint"] = 0x02_i64
|
||||
else nil # Ignore
|
||||
end
|
||||
|
||||
data = Base64.urlsafe_encode(data)
|
||||
cursor = URI.escape(data)
|
||||
object["80226972:embedded"]["3:string"] = Base64.urlsafe_encode(Protodec::Any.from_json(Protodec::Any.cast_json(object["80226972:embedded"]["3:base64"])))
|
||||
object["80226972:embedded"].delete("3:base64")
|
||||
|
||||
data = IO::Memory.new
|
||||
continuation = object.try { |i| Protodec::Any.cast_json(object) }
|
||||
.try { |i| Protodec::Any.from_json(i) }
|
||||
.try { |i| Base64.urlsafe_encode(i) }
|
||||
.try { |i| URI.encode_www_form(i) }
|
||||
|
||||
data.write_byte 0x12
|
||||
VarInt.to_io(data, ucid.bytesize)
|
||||
data.print ucid
|
||||
|
||||
data.write_byte 0x1a
|
||||
VarInt.to_io(data, cursor.bytesize)
|
||||
data.print cursor
|
||||
|
||||
data.rewind
|
||||
|
||||
buffer = IO::Memory.new
|
||||
buffer.write Bytes[0xe2, 0xa9, 0x85, 0xb2, 0x02]
|
||||
VarInt.to_io(buffer, data.bytesize)
|
||||
|
||||
IO.copy data, buffer
|
||||
|
||||
continuation = Base64.urlsafe_encode(buffer)
|
||||
continuation = URI.escape(continuation)
|
||||
|
||||
url = "/browse_ajax?continuation=#{continuation}&gl=US&hl=en"
|
||||
|
||||
return url
|
||||
return "/browse_ajax?continuation=#{continuation}&gl=US&hl=en"
|
||||
end
|
||||
|
||||
def produce_channel_playlists_url(ucid, cursor, sort = "newest", auto_generated = false)
|
||||
if !auto_generated
|
||||
cursor = Base64.urlsafe_encode(cursor, false)
|
||||
object = {
|
||||
"80226972:embedded" => {
|
||||
"2:string" => ucid,
|
||||
"3:base64" => {
|
||||
"2:string" => "playlists",
|
||||
"6:varint": 2_i64,
|
||||
"7:varint": 1_i64,
|
||||
"12:varint": 1_i64,
|
||||
"13:string": "",
|
||||
"23:varint": 0_i64,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
if cursor
|
||||
cursor = Base64.urlsafe_encode(cursor, false) if !auto_generated
|
||||
object["80226972:embedded"]["3:base64"].as(Hash)["15:string"] = cursor
|
||||
end
|
||||
|
||||
data = IO::Memory.new
|
||||
|
||||
if auto_generated
|
||||
data.write Bytes[0x08, 0x0a]
|
||||
end
|
||||
|
||||
data.write Bytes[0x12, 0x09]
|
||||
data.print "playlists"
|
||||
|
||||
if auto_generated
|
||||
data.write Bytes[0x20, 0x32]
|
||||
object["80226972:embedded"]["3:base64"].as(Hash)["4:varint"] = 0x32_i64
|
||||
else
|
||||
# TODO: Look at 0x01, 0x00
|
||||
object["80226972:embedded"]["3:base64"].as(Hash)["4:varint"] = 1_i64
|
||||
case sort
|
||||
when "oldest", "oldest_created"
|
||||
data.write Bytes[0x18, 0x02]
|
||||
object["80226972:embedded"]["3:base64"].as(Hash)["3:varint"] = 2_i64
|
||||
when "newest", "newest_created"
|
||||
data.write Bytes[0x18, 0x03]
|
||||
object["80226972:embedded"]["3:base64"].as(Hash)["3:varint"] = 3_i64
|
||||
when "last", "last_added"
|
||||
data.write Bytes[0x18, 0x04]
|
||||
object["80226972:embedded"]["3:base64"].as(Hash)["3:varint"] = 4_i64
|
||||
else nil # Ignore
|
||||
end
|
||||
|
||||
data.write Bytes[0x20, 0x01]
|
||||
end
|
||||
|
||||
data.write Bytes[0x30, 0x02]
|
||||
data.write Bytes[0x38, 0x01]
|
||||
data.write Bytes[0x60, 0x01]
|
||||
data.write Bytes[0x6a, 0x00]
|
||||
object["80226972:embedded"]["3:string"] = Base64.urlsafe_encode(Protodec::Any.from_json(Protodec::Any.cast_json(object["80226972:embedded"]["3:base64"])))
|
||||
object["80226972:embedded"].delete("3:base64")
|
||||
|
||||
data.write_byte 0x7a
|
||||
VarInt.to_io(data, cursor.bytesize)
|
||||
data.print cursor
|
||||
continuation = object.try { |i| Protodec::Any.cast_json(object) }
|
||||
.try { |i| Protodec::Any.from_json(i) }
|
||||
.try { |i| Base64.urlsafe_encode(i) }
|
||||
.try { |i| URI.encode_www_form(i) }
|
||||
|
||||
data.write Bytes[0xb8, 0x01, 0x00]
|
||||
|
||||
data.rewind
|
||||
data = Base64.urlsafe_encode(data)
|
||||
continuation = URI.escape(data)
|
||||
|
||||
data = IO::Memory.new
|
||||
|
||||
data.write_byte 0x12
|
||||
VarInt.to_io(data, ucid.bytesize)
|
||||
data.print ucid
|
||||
|
||||
data.write_byte 0x1a
|
||||
VarInt.to_io(data, continuation.bytesize)
|
||||
data.print continuation
|
||||
|
||||
data.rewind
|
||||
|
||||
buffer = IO::Memory.new
|
||||
buffer.write Bytes[0xe2, 0xa9, 0x85, 0xb2, 0x02]
|
||||
VarInt.to_io(buffer, data.bytesize)
|
||||
|
||||
IO.copy data, buffer
|
||||
|
||||
continuation = Base64.urlsafe_encode(buffer)
|
||||
continuation = URI.escape(continuation)
|
||||
|
||||
url = "/browse_ajax?continuation=#{continuation}&gl=US&hl=en"
|
||||
|
||||
return url
|
||||
return "/browse_ajax?continuation=#{continuation}&gl=US&hl=en"
|
||||
end
|
||||
|
||||
def extract_channel_playlists_cursor(url, auto_generated)
|
||||
continuation = HTTP::Params.parse(URI.parse(url).query.not_nil!)["continuation"]
|
||||
cursor = URI.parse(url).query_params
|
||||
.try { |i| URI.decode_www_form(i["continuation"]) }
|
||||
.try { |i| Base64.decode(i) }
|
||||
.try { |i| IO::Memory.new(i) }
|
||||
.try { |i| Protodec::Any.parse(i) }
|
||||
.try { |i| i["80226972:0:embedded"]["3:1:base64"].as_h.find { |k, v| k.starts_with? "15:" } }
|
||||
.try &.[1]
|
||||
|
||||
continuation = URI.unescape(continuation)
|
||||
data = IO::Memory.new(Base64.decode(continuation))
|
||||
|
||||
# 0xe2 0xa9 0x85 0xb2 0x02
|
||||
data.pos += 5
|
||||
|
||||
continuation = Bytes.new(data.read_bytes(VarInt))
|
||||
data.read continuation
|
||||
data = IO::Memory.new(continuation)
|
||||
|
||||
data.read_byte # => 0x12
|
||||
ucid = Bytes.new(data.read_bytes(VarInt))
|
||||
data.read ucid
|
||||
|
||||
data.read_byte # => 0x1a
|
||||
inner_continuation = Bytes.new(data.read_bytes(VarInt))
|
||||
data.read inner_continuation
|
||||
|
||||
continuation = String.new(inner_continuation)
|
||||
continuation = URI.unescape(continuation)
|
||||
data = IO::Memory.new(Base64.decode(continuation))
|
||||
|
||||
# 0x12 0x09 playlists
|
||||
data.pos += 11
|
||||
|
||||
until data.peek[0] == 0x7a
|
||||
key = data.read_bytes(VarInt)
|
||||
value = data.read_bytes(VarInt)
|
||||
if cursor.try &.as_h?
|
||||
cursor = cursor.try { |i| Protodec::Any.cast_json(i.as_h) }
|
||||
.try { |i| Protodec::Any.from_json(i) }
|
||||
.try { |i| Base64.urlsafe_encode(i) }
|
||||
.try { |i| URI.encode_www_form(i) } || ""
|
||||
else
|
||||
cursor = cursor.try &.as_s || ""
|
||||
end
|
||||
|
||||
data.pos += 1 # => 0x7a
|
||||
cursor = Bytes.new(data.read_bytes(VarInt))
|
||||
data.read cursor
|
||||
cursor = String.new(cursor)
|
||||
|
||||
if !auto_generated
|
||||
cursor = URI.unescape(cursor)
|
||||
cursor = Base64.decode_string(cursor)
|
||||
cursor = URI.decode_www_form(cursor)
|
||||
.try { |i| Base64.decode_string(i) }
|
||||
end
|
||||
|
||||
return cursor
|
||||
@@ -615,16 +558,12 @@ end
|
||||
|
||||
# TODO: Add "sort_by"
|
||||
def fetch_channel_community(ucid, continuation, locale, config, kemal_config, format, thin_mode)
|
||||
client = make_client(YT_URL)
|
||||
headers = HTTP::Headers.new
|
||||
headers["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"
|
||||
|
||||
response = client.get("/channel/#{ucid}/community?gl=US&hl=en", headers)
|
||||
if response.status_code == 404
|
||||
response = client.get("/user/#{ucid}/community?gl=US&hl=en", headers)
|
||||
response = YT_POOL.client &.get("/channel/#{ucid}/community?gl=US&hl=en")
|
||||
if response.status_code != 200
|
||||
response = YT_POOL.client &.get("/user/#{ucid}/community?gl=US&hl=en")
|
||||
end
|
||||
|
||||
if response.status_code == 404
|
||||
if response.status_code != 200
|
||||
error_message = translate(locale, "This channel does not exist.")
|
||||
raise error_message
|
||||
end
|
||||
@@ -643,6 +582,7 @@ def fetch_channel_community(ucid, continuation, locale, config, kemal_config, fo
|
||||
else
|
||||
continuation = produce_channel_community_continuation(ucid, continuation)
|
||||
|
||||
headers = HTTP::Headers.new
|
||||
headers["cookie"] = response.cookies.add_request_headers(headers)["cookie"]
|
||||
headers["content-type"] = "application/x-www-form-urlencoded"
|
||||
|
||||
@@ -658,7 +598,7 @@ def fetch_channel_community(ucid, continuation, locale, config, kemal_config, fo
|
||||
session_token: session_token,
|
||||
}
|
||||
|
||||
response = client.post("/comment_service_ajax?action_get_comments=1&ctoken=#{continuation}&continuation=#{continuation}&hl=en&gl=US", headers, form: post_req)
|
||||
response = YT_POOL.client &.post("/comment_service_ajax?action_get_comments=1&ctoken=#{continuation}&continuation=#{continuation}&hl=en&gl=US", headers, form: post_req)
|
||||
body = JSON.parse(response.body)
|
||||
|
||||
body = body["response"]["continuationContents"]["itemSectionContinuation"]? ||
|
||||
@@ -691,15 +631,13 @@ def fetch_channel_community(ucid, continuation, locale, config, kemal_config, fo
|
||||
post = post["backstagePostThreadRenderer"]?.try &.["post"]["backstagePostRenderer"]? ||
|
||||
post["commentThreadRenderer"]?.try &.["comment"]["commentRenderer"]?
|
||||
|
||||
if !post
|
||||
next
|
||||
end
|
||||
next if !post
|
||||
|
||||
if !post["contentText"]?
|
||||
content_html = ""
|
||||
else
|
||||
content_html = post["contentText"]["simpleText"]?.try &.as_s.rchop('\ufeff').try { |block| HTML.escape(block) }.to_s ||
|
||||
content_to_comment_html(post["contentText"]["runs"].as_a).try &.to_s || ""
|
||||
content_html = post["contentText"]["simpleText"]?.try &.as_s.rchop('\ufeff').try { |b| HTML.escape(b) }.to_s ||
|
||||
post["contentText"]["runs"]?.try &.as_a.try { |r| content_to_comment_html(r).try &.to_s } || ""
|
||||
end
|
||||
|
||||
author = post["authorText"]?.try &.["simpleText"]? || ""
|
||||
@@ -804,12 +742,13 @@ def fetch_channel_community(ucid, continuation, locale, config, kemal_config, fo
|
||||
width = thumbnail["width"].as_i
|
||||
height = thumbnail["height"].as_i
|
||||
aspect_ratio = (width.to_f / height.to_f)
|
||||
url = thumbnail["url"].as_s.gsub(/=w\d+-h\d+(-p)?(-nd)?(-df)?(-rwa)?/, "=s640")
|
||||
|
||||
qualities = {320, 560, 640, 1280, 2000}
|
||||
|
||||
qualities.each do |quality|
|
||||
json.object do
|
||||
json.field "url", thumbnail["url"].as_s.gsub("=s640-", "=s#{quality}-")
|
||||
json.field "url", url.gsub(/=s\d+/, "=s#{quality}")
|
||||
json.field "width", quality
|
||||
json.field "height", (quality / aspect_ratio).ceil.to_i
|
||||
end
|
||||
@@ -868,61 +807,58 @@ def fetch_channel_community(ucid, continuation, locale, config, kemal_config, fo
|
||||
end
|
||||
|
||||
def produce_channel_community_continuation(ucid, cursor)
|
||||
cursor = URI.escape(cursor)
|
||||
object = {
|
||||
"80226972:embedded" => {
|
||||
"2:string" => ucid,
|
||||
"3:string" => cursor || "",
|
||||
},
|
||||
}
|
||||
|
||||
data = IO::Memory.new
|
||||
|
||||
data.write_byte 0x12
|
||||
VarInt.to_io(data, ucid.bytesize)
|
||||
data.print ucid
|
||||
|
||||
data.write_byte 0x1a
|
||||
VarInt.to_io(data, cursor.bytesize)
|
||||
data.print cursor
|
||||
|
||||
data.rewind
|
||||
|
||||
buffer = IO::Memory.new
|
||||
buffer.write Bytes[0xe2, 0xa9, 0x85, 0xb2, 0x02]
|
||||
VarInt.to_io(buffer, data.size)
|
||||
|
||||
IO.copy data, buffer
|
||||
|
||||
continuation = Base64.urlsafe_encode(buffer)
|
||||
continuation = URI.escape(continuation)
|
||||
continuation = object.try { |i| Protodec::Any.cast_json(object) }
|
||||
.try { |i| Protodec::Any.from_json(i) }
|
||||
.try { |i| Base64.urlsafe_encode(i) }
|
||||
.try { |i| URI.encode_www_form(i) }
|
||||
|
||||
return continuation
|
||||
end
|
||||
|
||||
def extract_channel_community_cursor(continuation)
|
||||
continuation = URI.unescape(continuation)
|
||||
data = IO::Memory.new(Base64.decode(continuation))
|
||||
object = URI.decode_www_form(continuation)
|
||||
.try { |i| Base64.decode(i) }
|
||||
.try { |i| IO::Memory.new(i) }
|
||||
.try { |i| Protodec::Any.parse(i) }
|
||||
.try { |i| i["80226972:0:embedded"]["3:1:base64"].as_h }
|
||||
|
||||
# 0xe2 0xa9 0x85 0xb2 0x02
|
||||
data.pos += 5
|
||||
if object["53:2:embedded"]?.try &.["3:0:embedded"]?
|
||||
object["53:2:embedded"]["3:0:embedded"]["2:0:string"] = object["53:2:embedded"]["3:0:embedded"]
|
||||
.try { |i| i["2:0:base64"].as_h }
|
||||
.try { |i| Protodec::Any.cast_json(i) }
|
||||
.try { |i| Protodec::Any.from_json(i) }
|
||||
.try { |i| Base64.urlsafe_encode(i, padding: false) }
|
||||
|
||||
continuation = Bytes.new(data.read_bytes(VarInt))
|
||||
data.read continuation
|
||||
data = IO::Memory.new(continuation)
|
||||
|
||||
data.read_byte # => 0x12
|
||||
ucid = Bytes.new(data.read_bytes(VarInt))
|
||||
data.read ucid
|
||||
|
||||
data.read_byte # => 0x1a
|
||||
until data.peek[0] == 'E'.ord
|
||||
data.read_byte
|
||||
object["53:2:embedded"]["3:0:embedded"].as_h.delete("2:0:base64")
|
||||
end
|
||||
|
||||
return URI.unescape(data.gets_to_end)
|
||||
cursor = Protodec::Any.cast_json(object)
|
||||
.try { |i| Protodec::Any.from_json(i) }
|
||||
.try { |i| Base64.urlsafe_encode(i) }
|
||||
|
||||
cursor
|
||||
end
|
||||
|
||||
def get_about_info(ucid, locale)
|
||||
client = make_client(YT_URL)
|
||||
about = YT_POOL.client &.get("/channel/#{ucid}/about?disable_polymer=1&gl=US&hl=en")
|
||||
if about.status_code != 200
|
||||
about = YT_POOL.client &.get("/user/#{ucid}/about?disable_polymer=1&gl=US&hl=en")
|
||||
end
|
||||
|
||||
about = client.get("/channel/#{ucid}/about?disable_polymer=1&gl=US&hl=en")
|
||||
if about.status_code == 404
|
||||
about = client.get("/user/#{ucid}/about?disable_polymer=1&gl=US&hl=en")
|
||||
if md = about.headers["location"]?.try &.match(/\/channel\/(?<ucid>UC[a-zA-Z0-9_-]{22})/)
|
||||
raise ChannelRedirect.new(channel_id: md["ucid"])
|
||||
end
|
||||
|
||||
if about.status_code != 200
|
||||
error_message = translate(locale, "This channel does not exist.")
|
||||
raise error_message
|
||||
end
|
||||
|
||||
about = XML.parse_html(about.body)
|
||||
@@ -938,12 +874,6 @@ def get_about_info(ucid, locale)
|
||||
raise error_message
|
||||
end
|
||||
|
||||
sub_count = about.xpath_node(%q(//span[contains(text(), "subscribers")]))
|
||||
if sub_count
|
||||
sub_count = sub_count.content.delete(", subscribers").to_i?
|
||||
end
|
||||
sub_count ||= 0
|
||||
|
||||
author = about.xpath_node(%q(//span[contains(@class,"qualified-channel-title-text")]/a)).not_nil!.content
|
||||
author_url = about.xpath_node(%q(//span[contains(@class,"qualified-channel-title-text")]/a)).not_nil!["href"]
|
||||
author_thumbnail = about.xpath_node(%q(//img[@class="channel-header-profile-image"])).not_nil!["src"]
|
||||
@@ -957,7 +887,8 @@ def get_about_info(ucid, locale)
|
||||
banner = nil
|
||||
end
|
||||
|
||||
description_html = about.xpath_node(%q(//div[contains(@class,"about-description")])).try &.to_s || ""
|
||||
description_html = about.xpath_node(%q(//div[contains(@class,"about-description")])).try &.to_s ||
|
||||
%(<div class="about-description branded-page-box-padding"><pre></pre></div>)
|
||||
|
||||
paid = about.xpath_node(%q(//meta[@itemprop="paid"])).not_nil!["content"] == "True"
|
||||
is_family_friendly = about.xpath_node(%q(//meta[@itemprop="isFamilyFriendly"])).not_nil!["content"] == "True"
|
||||
@@ -986,21 +917,14 @@ def get_about_info(ucid, locale)
|
||||
)
|
||||
end
|
||||
|
||||
total_views = 0_i64
|
||||
sub_count = 0_i64
|
||||
joined = about.xpath_node(%q(//span[contains(., "Joined")]))
|
||||
.try &.content.try { |text| Time.parse(text, "Joined %b %-d, %Y", Time::Location.local) } || Time.unix(0)
|
||||
|
||||
joined = Time.unix(0)
|
||||
metadata = about.xpath_nodes(%q(//span[@class="about-stat"]))
|
||||
metadata.each do |item|
|
||||
case item.content
|
||||
when .includes? "views"
|
||||
total_views = item.content.gsub(/\D/, "").to_i64
|
||||
when .includes? "subscribers"
|
||||
sub_count = item.content.delete("subscribers").gsub(/\D/, "").to_i64
|
||||
when .includes? "Joined"
|
||||
joined = Time.parse(item.content.lchop("Joined "), "%b %-d, %Y", Time::Location.local)
|
||||
end
|
||||
end
|
||||
total_views = about.xpath_node(%q(//span[contains(., "views")]/b))
|
||||
.try &.content.try &.gsub(/\D/, "").to_i64? || 0_i64
|
||||
|
||||
sub_count = about.xpath_node(%q(.//span[contains(@class, "subscriber-count")]))
|
||||
.try &.["title"].try { |text| short_text_to_number(text) } || 0
|
||||
|
||||
# Auto-generated channels
|
||||
# https://support.google.com/youtube/answer/2579942
|
||||
@@ -1012,7 +936,7 @@ def get_about_info(ucid, locale)
|
||||
|
||||
tabs = about.xpath_nodes(%q(//ul[@id="channel-navigation-menu"]/li/a/span)).map { |node| node.content.downcase }
|
||||
|
||||
return AboutChannel.new(
|
||||
AboutChannel.new(
|
||||
ucid: ucid,
|
||||
author: author,
|
||||
auto_generated: auto_generated,
|
||||
@@ -1035,11 +959,9 @@ def get_60_videos(ucid, author, page, auto_generated, sort_by = "newest")
|
||||
count = 0
|
||||
videos = [] of SearchVideo
|
||||
|
||||
client = make_client(YT_URL)
|
||||
|
||||
2.times do |i|
|
||||
url = produce_channel_videos_url(ucid, page * 2 + (i - 1), auto_generated: auto_generated, sort_by: sort_by)
|
||||
response = client.get(url)
|
||||
response = YT_POOL.client &.get(url)
|
||||
json = JSON.parse(response.body)
|
||||
|
||||
if json["content_html"]? && !json["content_html"].as_s.empty?
|
||||
@@ -1064,11 +986,10 @@ def get_60_videos(ucid, author, page, auto_generated, sort_by = "newest")
|
||||
end
|
||||
|
||||
def get_latest_videos(ucid)
|
||||
client = make_client(YT_URL)
|
||||
videos = [] of SearchVideo
|
||||
|
||||
url = produce_channel_videos_url(ucid, 0)
|
||||
response = client.get(url)
|
||||
response = YT_POOL.client &.get(url)
|
||||
json = JSON.parse(response.body)
|
||||
|
||||
if json["content_html"]? && !json["content_html"].as_s.empty?
|
||||
|
||||
@@ -57,14 +57,22 @@ class RedditListing
|
||||
})
|
||||
end
|
||||
|
||||
def fetch_youtube_comments(id, db, continuation, format, locale, thin_mode, region, sort_by = "top")
|
||||
def fetch_youtube_comments(id, db, cursor, format, locale, thin_mode, region, sort_by = "top")
|
||||
video = get_video(id, db, region: region)
|
||||
session_token = video.info["session_token"]?
|
||||
|
||||
ctoken = produce_comment_continuation(id, cursor: "", sort_by: sort_by)
|
||||
continuation ||= ctoken
|
||||
case cursor
|
||||
when nil, ""
|
||||
ctoken = produce_comment_continuation(id, cursor: "", sort_by: sort_by)
|
||||
# when .starts_with? "Ug"
|
||||
# ctoken = produce_comment_reply_continuation(id, video.ucid, cursor)
|
||||
when .starts_with? "ADSJ"
|
||||
ctoken = produce_comment_continuation(id, cursor: cursor, sort_by: sort_by)
|
||||
else
|
||||
ctoken = cursor
|
||||
end
|
||||
|
||||
if !continuation || continuation.empty? || !session_token
|
||||
if !session_token
|
||||
if format == "json"
|
||||
return {"comments" => [] of String}.to_json
|
||||
else
|
||||
@@ -73,10 +81,10 @@ def fetch_youtube_comments(id, db, continuation, format, locale, thin_mode, regi
|
||||
end
|
||||
|
||||
post_req = {
|
||||
page_token: ctoken,
|
||||
session_token: session_token,
|
||||
}
|
||||
|
||||
client = make_client(YT_URL, video.info["region"]?)
|
||||
headers = HTTP::Headers.new
|
||||
|
||||
headers["content-type"] = "application/x-www-form-urlencoded"
|
||||
@@ -89,7 +97,7 @@ def fetch_youtube_comments(id, db, continuation, format, locale, thin_mode, regi
|
||||
headers["x-youtube-client-name"] = "1"
|
||||
headers["x-youtube-client-version"] = "2.20180719"
|
||||
|
||||
response = client.post("/comment_service_ajax?action_get_comments=1&ctoken=#{continuation}&continuation=#{continuation}&hl=en&gl=US", headers, form: post_req)
|
||||
response = YT_POOL.client(region, &.post("/comment_service_ajax?action_get_comments=1&hl=en&gl=US", headers, form: post_req))
|
||||
response = JSON.parse(response.body)
|
||||
|
||||
if !response["response"]["continuationContents"]?
|
||||
@@ -142,8 +150,8 @@ def fetch_youtube_comments(id, db, continuation, format, locale, thin_mode, regi
|
||||
node_comment = node["commentRenderer"]
|
||||
end
|
||||
|
||||
content_html = node_comment["contentText"]["simpleText"]?.try &.as_s.rchop('\ufeff').try { |block| HTML.escape(block) }.to_s ||
|
||||
content_to_comment_html(node_comment["contentText"]["runs"].as_a).try &.to_s || ""
|
||||
content_html = node_comment["contentText"]["simpleText"]?.try &.as_s.rchop('\ufeff').try { |b| HTML.escape(b) }.to_s ||
|
||||
node_comment["contentText"]["runs"]?.try &.as_a.try { |r| content_to_comment_html(r).try &.to_s } || ""
|
||||
author = node_comment["authorText"]?.try &.["simpleText"]? || ""
|
||||
|
||||
json.field "author", author
|
||||
@@ -216,8 +224,8 @@ def fetch_youtube_comments(id, db, continuation, format, locale, thin_mode, regi
|
||||
end
|
||||
|
||||
if body["continuations"]?
|
||||
continuation = body["continuations"][0]["nextContinuationData"]["continuation"]
|
||||
json.field "continuation", continuation
|
||||
continuation = body["continuations"][0]["nextContinuationData"]["continuation"].as_s
|
||||
json.field "continuation", cursor.try &.starts_with?("E") ? continuation : extract_comment_cursor(continuation)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -286,7 +294,7 @@ def template_youtube_comments(comments, locale, thin_mode)
|
||||
<div class="pure-u-23-24">
|
||||
<p>
|
||||
<a href="javascript:void(0)" data-continuation="#{child["replies"]["continuation"]}"
|
||||
onclick="get_youtube_replies(this)">#{translate(locale, "View `x` replies", number_with_separator(child["replies"]["replyCount"]))}</a>
|
||||
data-onclick="get_youtube_replies">#{translate(locale, "View `x` replies", number_with_separator(child["replies"]["replyCount"]))}</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -339,7 +347,7 @@ def template_youtube_comments(comments, locale, thin_mode)
|
||||
END_HTML
|
||||
else
|
||||
html << <<-END_HTML
|
||||
<iframe id='ivplayer' type='text/html' style='position:absolute;width:100%;height:100%;left:0;top:0' src='/embed/#{attachment["videoId"]?}?autoplay=0' frameborder='0'></iframe>
|
||||
<iframe id='ivplayer' style='position:absolute;width:100%;height:100%;left:0;top:0' src='/embed/#{attachment["videoId"]?}?autoplay=0' style='border:none;'></iframe>
|
||||
END_HTML
|
||||
end
|
||||
|
||||
@@ -348,6 +356,7 @@ def template_youtube_comments(comments, locale, thin_mode)
|
||||
</div>
|
||||
</div>
|
||||
END_HTML
|
||||
else nil # Ignore
|
||||
end
|
||||
end
|
||||
|
||||
@@ -405,7 +414,7 @@ def template_youtube_comments(comments, locale, thin_mode)
|
||||
<div class="pure-u-1">
|
||||
<p>
|
||||
<a href="javascript:void(0)" data-continuation="#{comments["continuation"]}"
|
||||
onclick="get_youtube_replies(this, true)">#{translate(locale, "Load more")}</a>
|
||||
data-onclick="get_youtube_replies" data-load-more>#{translate(locale, "Load more")}</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -443,7 +452,7 @@ def template_reddit_comments(root, locale)
|
||||
|
||||
html << <<-END_HTML
|
||||
<p>
|
||||
<a href="javascript:void(0)" onclick="toggle_parent(this)">[ - ]</a>
|
||||
<a href="javascript:void(0)" data-onclick="toggle_parent">[ - ]</a>
|
||||
<b><a href="https://www.reddit.com/user/#{child.author}">#{child.author}</a></b>
|
||||
#{translate(locale, "`x` points", number_with_separator(child.score))}
|
||||
<span title="#{child.created_utc.to_s(translate(locale, "%a %B %-d %T %Y UTC"))}">#{translate(locale, "`x` ago", recode_date(child.created_utc, locale))}</span>
|
||||
@@ -548,7 +557,7 @@ def content_to_comment_html(content)
|
||||
video_id = watch_endpoint["videoId"].as_s
|
||||
|
||||
if length_seconds
|
||||
text = %(<a href="javascript:void(0)" onclick="player.currentTime(#{length_seconds})">#{text}</a>)
|
||||
text = %(<a href="javascript:void(0)" data-onclick="jump_to_time" data-jump-time="#{length_seconds}">#{text}</a>)
|
||||
else
|
||||
text = %(<a href="/watch?v=#{video_id}">#{text}</a>)
|
||||
end
|
||||
@@ -563,107 +572,87 @@ def content_to_comment_html(content)
|
||||
return comment_html
|
||||
end
|
||||
|
||||
def extract_comment_cursor(continuation)
|
||||
cursor = URI.decode_www_form(continuation)
|
||||
.try { |i| Base64.decode(i) }
|
||||
.try { |i| IO::Memory.new(i) }
|
||||
.try { |i| Protodec::Any.parse(i) }
|
||||
.try { |i| i["6:2:embedded"]["1:0:string"].as_s }
|
||||
|
||||
return cursor
|
||||
end
|
||||
|
||||
def produce_comment_continuation(video_id, cursor = "", sort_by = "top")
|
||||
data = IO::Memory.new
|
||||
object = {
|
||||
"2:embedded" => {
|
||||
"2:string" => video_id,
|
||||
"24:varint" => 1_i64,
|
||||
"25:varint" => 1_i64,
|
||||
"28:varint" => 1_i64,
|
||||
"36:embedded" => {
|
||||
"5:varint" => -1_i64,
|
||||
"8:varint" => 0_i64,
|
||||
},
|
||||
},
|
||||
"3:varint" => 6_i64,
|
||||
"6:embedded" => {
|
||||
"1:string" => cursor,
|
||||
"4:embedded" => {
|
||||
"4:string" => video_id,
|
||||
"6:varint" => 0_i64,
|
||||
},
|
||||
"5:varint" => 20_i64,
|
||||
},
|
||||
}
|
||||
|
||||
data.write Bytes[0x12, 0x26]
|
||||
|
||||
data.write_byte 0x12
|
||||
VarInt.to_io(data, video_id.bytesize)
|
||||
data.print video_id
|
||||
|
||||
data.write Bytes[0xc0, 0x01, 0x01]
|
||||
data.write Bytes[0xc8, 0x01, 0x01]
|
||||
data.write Bytes[0xe0, 0x01, 0x01]
|
||||
|
||||
data.write Bytes[0xa2, 0x02, 0x0d]
|
||||
data.write Bytes[0x28, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01]
|
||||
|
||||
data.write Bytes[0x40, 0x00]
|
||||
data.write Bytes[0x18, 0x06]
|
||||
|
||||
if cursor.empty?
|
||||
data.write Bytes[0x32]
|
||||
VarInt.to_io(data, cursor.bytesize + video_id.bytesize + 8)
|
||||
|
||||
data.write Bytes[0x22, video_id.bytesize + 4]
|
||||
data.write Bytes[0x22, video_id.bytesize]
|
||||
data.print video_id
|
||||
|
||||
case sort_by
|
||||
when "top"
|
||||
data.write Bytes[0x30, 0x00]
|
||||
when "new", "newest"
|
||||
data.write Bytes[0x30, 0x01]
|
||||
end
|
||||
|
||||
data.write(Bytes[0x78, 0x02])
|
||||
else
|
||||
data.write Bytes[0x32]
|
||||
VarInt.to_io(data, cursor.bytesize + video_id.bytesize + 11)
|
||||
|
||||
data.write_byte 0x0a
|
||||
VarInt.to_io(data, cursor.bytesize)
|
||||
data.print cursor
|
||||
|
||||
data.write Bytes[0x22, video_id.bytesize + 4]
|
||||
data.write Bytes[0x22, video_id.bytesize]
|
||||
data.print video_id
|
||||
|
||||
case sort_by
|
||||
when "top"
|
||||
data.write Bytes[0x30, 0x00]
|
||||
when "new", "newest"
|
||||
data.write Bytes[0x30, 0x01]
|
||||
end
|
||||
|
||||
data.write Bytes[0x28, 0x14]
|
||||
case sort_by
|
||||
when "top"
|
||||
object["6:embedded"].as(Hash)["4:embedded"].as(Hash)["6:varint"] = 0_i64
|
||||
when "new", "newest"
|
||||
object["6:embedded"].as(Hash)["4:embedded"].as(Hash)["6:varint"] = 1_i64
|
||||
else # top
|
||||
object["6:embedded"].as(Hash)["4:embedded"].as(Hash)["6:varint"] = 0_i64
|
||||
end
|
||||
|
||||
continuation = Base64.urlsafe_encode(data)
|
||||
continuation = URI.escape(continuation)
|
||||
continuation = object.try { |i| Protodec::Any.cast_json(object) }
|
||||
.try { |i| Protodec::Any.from_json(i) }
|
||||
.try { |i| Base64.urlsafe_encode(i) }
|
||||
.try { |i| URI.encode_www_form(i) }
|
||||
|
||||
return continuation
|
||||
end
|
||||
|
||||
def produce_comment_reply_continuation(video_id, ucid, comment_id)
|
||||
data = IO::Memory.new
|
||||
object = {
|
||||
"2:embedded" => {
|
||||
"2:string" => video_id,
|
||||
"24:varint" => 1_i64,
|
||||
"25:varint" => 1_i64,
|
||||
"28:varint" => 1_i64,
|
||||
"36:embedded" => {
|
||||
"5:varint" => -1_i64,
|
||||
"8:varint" => 0_i64,
|
||||
},
|
||||
},
|
||||
"3:varint" => 6_i64,
|
||||
"6:embedded" => {
|
||||
"3:embedded" => {
|
||||
"2:string" => comment_id,
|
||||
"4:embedded" => {
|
||||
"1:varint" => 0_i64,
|
||||
},
|
||||
"5:string" => ucid,
|
||||
"6:string" => video_id,
|
||||
"8:varint" => 1_i64,
|
||||
"9:varint" => 10_i64,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
data.write Bytes[0x12, 0x26]
|
||||
|
||||
data.write_byte 0x12
|
||||
VarInt.to_io(data, video_id.size)
|
||||
data.print video_id
|
||||
|
||||
data.write Bytes[0xc0, 0x01, 0x01]
|
||||
data.write Bytes[0xc8, 0x01, 0x01]
|
||||
data.write Bytes[0xe0, 0x01, 0x01]
|
||||
|
||||
data.write Bytes[0xa2, 0x02, 0x0d]
|
||||
data.write Bytes[0x28, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01]
|
||||
|
||||
data.write Bytes[0x40, 0x00]
|
||||
data.write Bytes[0x18, 0x06]
|
||||
|
||||
data.write(Bytes[0x32, ucid.size + video_id.size + comment_id.size + 16])
|
||||
data.write(Bytes[0x1a, ucid.size + video_id.size + comment_id.size + 14])
|
||||
|
||||
data.write_byte 0x12
|
||||
VarInt.to_io(data, comment_id.size)
|
||||
data.print comment_id
|
||||
|
||||
data.write(Bytes[0x22, 0x02, 0x08, 0x00]) # ??
|
||||
|
||||
data.write(Bytes[ucid.size + video_id.size + 7])
|
||||
data.write(Bytes[ucid.size])
|
||||
data.print(ucid)
|
||||
data.write(Bytes[0x32, video_id.size])
|
||||
data.print(video_id)
|
||||
data.write(Bytes[0x40, 0x01])
|
||||
data.write(Bytes[0x48, 0x0a])
|
||||
|
||||
continuation = Base64.urlsafe_encode(data.to_slice)
|
||||
continuation = URI.escape(continuation)
|
||||
continuation = object.try { |i| Protodec::Any.cast_json(object) }
|
||||
.try { |i| Protodec::Any.from_json(i) }
|
||||
.try { |i| Base64.urlsafe_encode(i) }
|
||||
.try { |i| URI.encode_www_form(i) }
|
||||
|
||||
return continuation
|
||||
end
|
||||
|
||||
@@ -21,7 +21,7 @@ end
|
||||
|
||||
class Kemal::RouteHandler
|
||||
{% for method in %w(GET POST PUT HEAD DELETE PATCH OPTIONS) %}
|
||||
exclude ["/api/v1/*"], {{method}}
|
||||
exclude ["/api/v1/*"], {{method}}
|
||||
{% end %}
|
||||
|
||||
# Processes the route if it's a match. Otherwise renders 404.
|
||||
@@ -33,8 +33,7 @@ class Kemal::RouteHandler
|
||||
raise Kemal::Exceptions::CustomException.new(context)
|
||||
end
|
||||
|
||||
if context.request.method == "HEAD" &&
|
||||
context.request.path.ends_with? ".jpg"
|
||||
if context.request.method == "HEAD" && context.request.path.ends_with? ".jpg"
|
||||
context.response.headers["Content-Type"] = "image/jpeg"
|
||||
end
|
||||
|
||||
@@ -45,7 +44,7 @@ end
|
||||
|
||||
class Kemal::ExceptionHandler
|
||||
{% for method in %w(GET POST PUT HEAD DELETE PATCH OPTIONS) %}
|
||||
exclude ["/api/v1/*"], {{method}}
|
||||
exclude ["/api/v1/*"], {{method}}
|
||||
{% end %}
|
||||
|
||||
private def call_exception_with_status_code(context : HTTP::Server::Context, exception : Exception, status_code : Int32)
|
||||
@@ -69,20 +68,20 @@ class FilteredCompressHandler < Kemal::Handler
|
||||
return call_next env if exclude_match? env
|
||||
|
||||
{% if flag?(:without_zlib) %}
|
||||
call_next env
|
||||
{% else %}
|
||||
request_headers = env.request.headers
|
||||
call_next env
|
||||
{% else %}
|
||||
request_headers = env.request.headers
|
||||
|
||||
if request_headers.includes_word?("Accept-Encoding", "gzip")
|
||||
env.response.headers["Content-Encoding"] = "gzip"
|
||||
env.response.output = Gzip::Writer.new(env.response.output, sync_close: true)
|
||||
elsif request_headers.includes_word?("Accept-Encoding", "deflate")
|
||||
env.response.headers["Content-Encoding"] = "deflate"
|
||||
env.response.output = Flate::Writer.new(env.response.output, sync_close: true)
|
||||
end
|
||||
if request_headers.includes_word?("Accept-Encoding", "gzip")
|
||||
env.response.headers["Content-Encoding"] = "gzip"
|
||||
env.response.output = Gzip::Writer.new(env.response.output, sync_close: true)
|
||||
elsif request_headers.includes_word?("Accept-Encoding", "deflate")
|
||||
env.response.headers["Content-Encoding"] = "deflate"
|
||||
env.response.output = Flate::Writer.new(env.response.output, sync_close: true)
|
||||
end
|
||||
|
||||
call_next env
|
||||
{% end %}
|
||||
call_next env
|
||||
{% end %}
|
||||
end
|
||||
end
|
||||
|
||||
@@ -96,8 +95,8 @@ class AuthHandler < Kemal::Handler
|
||||
|
||||
begin
|
||||
if token = env.request.headers["Authorization"]?
|
||||
token = JSON.parse(URI.unescape(token.lchop("Bearer ")))
|
||||
session = URI.unescape(token["session"].as_s)
|
||||
token = JSON.parse(URI.decode_www_form(token.lchop("Bearer ")))
|
||||
session = URI.decode_www_form(token["session"].as_s)
|
||||
scopes, expire, signature = validate_request(token, session, env.request, HMAC_KEY, PG_DB, nil)
|
||||
|
||||
if email = PG_DB.query_one?("SELECT email FROM session_ids WHERE id = $1", session, as: String)
|
||||
@@ -130,7 +129,7 @@ class AuthHandler < Kemal::Handler
|
||||
|
||||
error_message = {"error" => ex.message}.to_json
|
||||
env.response.status_code = 403
|
||||
env.response.puts error_message
|
||||
env.response.print error_message
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -159,10 +158,10 @@ class APIHandler < Kemal::Handler
|
||||
call_next env
|
||||
|
||||
env.response.output.rewind
|
||||
response = env.response.output.gets_to_end
|
||||
|
||||
if env.response.headers["Content-Type"]?.try &.== "application/json"
|
||||
response = JSON.parse(response)
|
||||
if env.response.output.as(IO::Memory).size != 0 &&
|
||||
env.response.headers.includes_word?("Content-Type", "application/json")
|
||||
response = JSON.parse(env.response.output)
|
||||
|
||||
if fields_text = env.params.query["fields"]?
|
||||
begin
|
||||
@@ -173,16 +172,30 @@ class APIHandler < Kemal::Handler
|
||||
end
|
||||
end
|
||||
|
||||
if env.params.query["pretty"]? && env.params.query["pretty"] == "1"
|
||||
if env.params.query["pretty"]?.try &.== "1"
|
||||
response = response.to_pretty_json
|
||||
else
|
||||
response = response.to_json
|
||||
end
|
||||
else
|
||||
response = env.response.output.gets_to_end
|
||||
end
|
||||
rescue ex
|
||||
env.response.content_type = "application/json" if env.response.headers.includes_word?("Content-Type", "text/html")
|
||||
env.response.status_code = 500
|
||||
|
||||
if env.response.headers.includes_word?("Content-Type", "application/json")
|
||||
response = {"error" => ex.message || "Unspecified error"}
|
||||
|
||||
if env.params.query["pretty"]?.try &.== "1"
|
||||
response = response.to_pretty_json
|
||||
else
|
||||
response = response.to_json
|
||||
end
|
||||
end
|
||||
rescue ex
|
||||
ensure
|
||||
env.response.output = output
|
||||
env.response.puts response
|
||||
env.response.print response
|
||||
|
||||
env.response.flush
|
||||
end
|
||||
@@ -200,66 +213,31 @@ class DenyFrame < Kemal::Handler
|
||||
end
|
||||
end
|
||||
|
||||
# Temp fixes for https://github.com/crystal-lang/crystal/issues/7383
|
||||
class HTTP::UnknownLengthContent
|
||||
def read_byte
|
||||
ensure_send_continue
|
||||
if @io.is_a?(OpenSSL::SSL::Socket::Client)
|
||||
return if @io.as(OpenSSL::SSL::Socket::Client).@in_buffer_rem.empty?
|
||||
end
|
||||
@io.read_byte
|
||||
end
|
||||
end
|
||||
class ProxyHandler < Kemal::Handler
|
||||
def call(env)
|
||||
if env.request.headers["Proxy-Authorization"]? && env.request.method != "CONNECT"
|
||||
user, pass = env.request.headers["Proxy-Authorization"]?
|
||||
.try { |i| i.lchop("Basic ") }
|
||||
.try { |i| Base64.decode_string(i) }
|
||||
.try &.split(":", 2) || {nil, nil}
|
||||
|
||||
class HTTP::Client
|
||||
private def handle_response(response)
|
||||
if @socket.is_a?(OpenSSL::SSL::Socket::Client)
|
||||
close unless response.keep_alive? || @socket.as(OpenSSL::SSL::Socket::Client).@in_buffer_rem.empty?
|
||||
if @socket.as(OpenSSL::SSL::Socket::Client).@in_buffer_rem.empty?
|
||||
@socket = nil
|
||||
if CONFIG.proxy_user != user || CONFIG.proxy_pass != pass
|
||||
env.response.status_code = 403
|
||||
return
|
||||
end
|
||||
else
|
||||
close unless response.keep_alive?
|
||||
end
|
||||
|
||||
response
|
||||
end
|
||||
end
|
||||
|
||||
# https://github.com/will/crystal-pg/pull/171
|
||||
class PG::Statement < ::DB::Statement
|
||||
protected def perform_query(args : Enumerable) : ResultSet
|
||||
params = args.map { |arg| PQ::Param.encode(arg) }
|
||||
conn = self.conn
|
||||
conn.send_parse_message(@sql)
|
||||
conn.send_bind_message params
|
||||
conn.send_describe_portal_message
|
||||
conn.send_execute_message
|
||||
conn.send_sync_message
|
||||
conn.expect_frame PQ::Frame::ParseComplete
|
||||
conn.expect_frame PQ::Frame::BindComplete
|
||||
frame = conn.read
|
||||
case frame
|
||||
when PQ::Frame::RowDescription
|
||||
fields = frame.fields
|
||||
when PQ::Frame::NoData
|
||||
fields = nil
|
||||
else
|
||||
raise "expected RowDescription or NoData, got #{frame}"
|
||||
end
|
||||
ResultSet.new(self, fields)
|
||||
rescue IO::Error
|
||||
raise DB::ConnectionLost.new(connection)
|
||||
end
|
||||
|
||||
protected def perform_exec(args : Enumerable) : ::DB::ExecResult
|
||||
result = perform_query(args)
|
||||
result.each { }
|
||||
::DB::ExecResult.new(
|
||||
rows_affected: result.rows_affected,
|
||||
last_insert_id: 0_i64 # postgres doesn't support this
|
||||
)
|
||||
rescue IO::Error
|
||||
raise DB::ConnectionLost.new(connection)
|
||||
HTTP::Client.exec(env.request.method, "#{env.request.headers["Host"]?}#{env.request.resource}", env.request.headers, env.request.body) do |response|
|
||||
response.headers.each do |key, value|
|
||||
if !RESPONSE_HEADERS_BLACKLIST.includes?(key.downcase) && key.downcase != "transfer-encoding"
|
||||
env.response.headers[key] = value
|
||||
end
|
||||
end
|
||||
IO.copy response.body_io, env.response
|
||||
end
|
||||
env.response.close
|
||||
return
|
||||
else
|
||||
call_next env
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -24,6 +24,27 @@ end
|
||||
|
||||
struct ConfigPreferences
|
||||
module StringToArray
|
||||
def self.to_json(value : Array(String), json : JSON::Builder)
|
||||
json.array do
|
||||
value.each do |element|
|
||||
json.string element
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def self.from_json(value : JSON::PullParser) : Array(String)
|
||||
begin
|
||||
result = [] of String
|
||||
value.read_array do
|
||||
result << HTML.escape(value.read_string[0, 100])
|
||||
end
|
||||
rescue ex
|
||||
result = [HTML.escape(value.read_string[0, 100]), ""]
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
def self.to_yaml(value : Array(String), yaml : YAML::Nodes::Builder)
|
||||
yaml.sequence do
|
||||
value.each do |element|
|
||||
@@ -44,11 +65,11 @@ struct ConfigPreferences
|
||||
node.raise "Expected scalar, not #{item.class}"
|
||||
end
|
||||
|
||||
result << item.value
|
||||
result << HTML.escape(item.value[0, 100])
|
||||
end
|
||||
rescue ex
|
||||
if node.is_a?(YAML::Nodes::Scalar)
|
||||
result = [node.value, ""]
|
||||
result = [HTML.escape(node.value[0, 100]), ""]
|
||||
else
|
||||
result = ["", ""]
|
||||
end
|
||||
@@ -58,6 +79,51 @@ struct ConfigPreferences
|
||||
end
|
||||
end
|
||||
|
||||
module BoolToString
|
||||
def self.to_json(value : String, json : JSON::Builder)
|
||||
json.string value
|
||||
end
|
||||
|
||||
def self.from_json(value : JSON::PullParser) : String
|
||||
begin
|
||||
result = value.read_string
|
||||
|
||||
if result.empty?
|
||||
CONFIG.default_user_preferences.dark_mode
|
||||
else
|
||||
result
|
||||
end
|
||||
rescue ex
|
||||
if value.read_bool
|
||||
"dark"
|
||||
else
|
||||
"light"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def self.to_yaml(value : String, yaml : YAML::Nodes::Builder)
|
||||
yaml.scalar value
|
||||
end
|
||||
|
||||
def self.from_yaml(ctx : YAML::ParseContext, node : YAML::Nodes::Node) : String
|
||||
unless node.is_a?(YAML::Nodes::Scalar)
|
||||
node.raise "Expected scalar, not #{node.class}"
|
||||
end
|
||||
|
||||
case node.value
|
||||
when "true"
|
||||
"dark"
|
||||
when "false"
|
||||
"light"
|
||||
when ""
|
||||
CONFIG.default_user_preferences.dark_mode
|
||||
else
|
||||
node.value
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
yaml_mapping({
|
||||
annotations: {type: Bool, default: false},
|
||||
annotations_subscribed: {type: Bool, default: false},
|
||||
@@ -66,15 +132,17 @@ struct ConfigPreferences
|
||||
comments: {type: Array(String), default: ["youtube", ""], converter: StringToArray},
|
||||
continue: {type: Bool, default: false},
|
||||
continue_autoplay: {type: Bool, default: true},
|
||||
dark_mode: {type: Bool, default: false},
|
||||
dark_mode: {type: String, default: "", converter: BoolToString},
|
||||
latest_only: {type: Bool, default: false},
|
||||
listen: {type: Bool, default: false},
|
||||
local: {type: Bool, default: false},
|
||||
locale: {type: String, default: "en-US"},
|
||||
max_results: {type: Int32, default: 40},
|
||||
notifications_only: {type: Bool, default: false},
|
||||
player_style: {type: String, default: "invidious"},
|
||||
quality: {type: String, default: "hd720"},
|
||||
redirect_feed: {type: Bool, default: false},
|
||||
default_home: {type: String, default: "Popular"},
|
||||
feed_menu: {type: Array(String), default: ["Popular", "Trending", "Subscriptions", "Playlists"]},
|
||||
related_videos: {type: Bool, default: true},
|
||||
sort: {type: String, default: "published"},
|
||||
speed: {type: Float32, default: 1.0_f32},
|
||||
@@ -105,6 +173,8 @@ struct Config
|
||||
yaml.scalar "ipv4"
|
||||
when Socket::Family::INET6
|
||||
yaml.scalar "ipv6"
|
||||
when Socket::Family::UNIX
|
||||
raise "Invalid socket family #{value}"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -124,6 +194,27 @@ struct Config
|
||||
end
|
||||
end
|
||||
|
||||
module StringToCookies
|
||||
def self.to_yaml(value : HTTP::Cookies, yaml : YAML::Nodes::Builder)
|
||||
(value.map { |c| "#{c.name}=#{c.value}" }).join("; ").to_yaml(yaml)
|
||||
end
|
||||
|
||||
def self.from_yaml(ctx : YAML::ParseContext, node : YAML::Nodes::Node) : HTTP::Cookies
|
||||
unless node.is_a?(YAML::Nodes::Scalar)
|
||||
node.raise "Expected scalar, not #{node.class}"
|
||||
end
|
||||
|
||||
cookies = HTTP::Cookies.new
|
||||
node.value.split(";").each do |cookie|
|
||||
next if cookie.strip.empty?
|
||||
name, value = cookie.split("=", 2)
|
||||
cookies << HTTP::Cookie.new(name.strip, value.strip)
|
||||
end
|
||||
|
||||
cookies
|
||||
end
|
||||
end
|
||||
|
||||
def disabled?(option)
|
||||
case disabled = CONFIG.disable_proxy
|
||||
when Bool
|
||||
@@ -134,6 +225,8 @@ struct Config
|
||||
else
|
||||
return false
|
||||
end
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
@@ -146,8 +239,6 @@ struct Config
|
||||
hmac_key: String?, # HMAC signing key for CSRF tokens and verifying pubsub subscriptions
|
||||
domain: String?, # Domain to be used for links to resources on the site where an absolute URL is required
|
||||
use_pubsub_feeds: {type: Bool | Int32, default: false}, # Subscribe to channels using PubSubHubbub (requires domain, hmac_key)
|
||||
default_home: {type: String, default: "Top"},
|
||||
feed_menu: {type: Array(String), default: ["Popular", "Top", "Trending", "Subscriptions"]},
|
||||
top_enabled: {type: Bool, default: true},
|
||||
captcha_enabled: {type: Bool, default: true},
|
||||
login_enabled: {type: Bool, default: true},
|
||||
@@ -166,6 +257,16 @@ struct Config
|
||||
hsts: {type: Bool?, default: true}, # Enables 'Strict-Transport-Security'. Ensure that `domain` and all subdomains are served securely
|
||||
disable_proxy: {type: Bool? | Array(String)?, default: false}, # Disable proxying server-wide: options: 'dash', 'livestreams', 'downloads', 'local'
|
||||
force_resolve: {type: Socket::Family, default: Socket::Family::UNSPEC, converter: FamilyConverter}, # Connect to YouTube over 'ipv6', 'ipv4'. Will sometimes resolve fix issues with rate-limiting (see https://github.com/ytdl-org/youtube-dl/issues/21729)
|
||||
port: {type: Int32, default: 3000}, # Port to listen for connections (overrided by command line argument)
|
||||
host_binding: {type: String, default: "0.0.0.0"}, # Host to bind (overrided by command line argument)
|
||||
pool_size: {type: Int32, default: 100}, # Pool size for HTTP requests to youtube.com and ytimg.com (each domain has a separate pool of `pool_size`)
|
||||
admin_email: {type: String, default: "omarroth@protonmail.com"}, # Email for bug reports
|
||||
cookies: {type: HTTP::Cookies, default: HTTP::Cookies.new, converter: StringToCookies}, # Saved cookies in "name1=value1; name2=value2..." format
|
||||
captcha_key: {type: String?, default: nil}, # Key for Anti-Captcha
|
||||
proxy_address: {type: String, default: ""},
|
||||
proxy_port: {type: Int32, default: 8080},
|
||||
proxy_user: {type: String, default: ""},
|
||||
proxy_pass: {type: String, default: ""},
|
||||
})
|
||||
end
|
||||
|
||||
@@ -243,8 +344,7 @@ end
|
||||
|
||||
def extract_videos(nodeset, ucid = nil, author_name = nil)
|
||||
videos = extract_items(nodeset, ucid, author_name)
|
||||
videos.select! { |item| !item.is_a?(SearchChannel | SearchPlaylist) }
|
||||
videos.map { |video| video.as(SearchVideo) }
|
||||
videos.select { |item| item.is_a?(SearchVideo) }.map { |video| video.as(SearchVideo) }
|
||||
end
|
||||
|
||||
def extract_items(nodeset, ucid = nil, author_name = nil)
|
||||
@@ -263,18 +363,8 @@ def extract_items(nodeset, ucid = nil, author_name = nil)
|
||||
next
|
||||
end
|
||||
|
||||
anchor = node.xpath_node(%q(.//div[contains(@class, "yt-lockup-byline")]/a))
|
||||
if anchor
|
||||
author = anchor.content.strip
|
||||
author_id = anchor["href"].split("/")[-1]
|
||||
end
|
||||
|
||||
author ||= author_name
|
||||
author_id ||= ucid
|
||||
|
||||
author ||= ""
|
||||
author_id ||= ""
|
||||
|
||||
author_id = node.xpath_node(%q(.//div[contains(@class, "yt-lockup-byline")]/a)).try &.["href"].split("/")[-1] || ucid || ""
|
||||
author = node.xpath_node(%q(.//div[contains(@class, "yt-lockup-byline")]/a)).try &.content.strip || author_name || ""
|
||||
description_html = node.xpath_node(%q(.//div[contains(@class, "yt-lockup-description")])).try &.to_s || ""
|
||||
|
||||
tile = node.xpath_node(%q(.//div[contains(@class, "yt-lockup-tile")]))
|
||||
@@ -292,14 +382,14 @@ def extract_items(nodeset, ucid = nil, author_name = nil)
|
||||
anchor = node.xpath_node(%q(.//ul[@class="yt-lockup-meta-info"]/li/a))
|
||||
end
|
||||
|
||||
video_count = node.xpath_node(%q(.//span[@class="formatted-video-count-label"]/b))
|
||||
video_count = node.xpath_node(%q(.//span[@class="formatted-video-count-label"]/b)) ||
|
||||
node.xpath_node(%q(.//span[@class="formatted-video-count-label"]))
|
||||
if video_count
|
||||
video_count = video_count.content
|
||||
|
||||
if video_count == "50+"
|
||||
author = "YouTube"
|
||||
author_id = "UC-9-kyTW8ZkZNDHQJ6FgpwQ"
|
||||
video_count = video_count.rchop("+")
|
||||
end
|
||||
|
||||
video_count = video_count.gsub(/\D/, "").to_i?
|
||||
@@ -329,22 +419,17 @@ def extract_items(nodeset, ucid = nil, author_name = nil)
|
||||
)
|
||||
end
|
||||
|
||||
playlist_thumbnail = node.xpath_node(%q(.//div/span/img)).try &.["data-thumb"]?
|
||||
playlist_thumbnail ||= node.xpath_node(%q(.//div/span/img)).try &.["src"]
|
||||
if !playlist_thumbnail || playlist_thumbnail.empty?
|
||||
thumbnail_id = videos[0]?.try &.id
|
||||
else
|
||||
thumbnail_id = playlist_thumbnail.match(/\/vi\/(?<video_id>[a-zA-Z0-9_-]{11})\/\w+\.jpg/).try &.["video_id"]
|
||||
end
|
||||
playlist_thumbnail = node.xpath_node(%q(.//span/img)).try &.["data-thumb"]?
|
||||
playlist_thumbnail ||= node.xpath_node(%q(.//span/img)).try &.["src"]
|
||||
|
||||
items << SearchPlaylist.new(
|
||||
title,
|
||||
plid,
|
||||
author,
|
||||
author_id,
|
||||
video_count,
|
||||
videos,
|
||||
thumbnail_id
|
||||
title: title,
|
||||
id: plid,
|
||||
author: author,
|
||||
ucid: author_id,
|
||||
video_count: video_count,
|
||||
videos: videos,
|
||||
thumbnail: playlist_thumbnail
|
||||
)
|
||||
when .includes? "yt-lockup-channel"
|
||||
author = title.strip
|
||||
@@ -362,64 +447,37 @@ def extract_items(nodeset, ucid = nil, author_name = nil)
|
||||
|
||||
author_thumbnail ||= ""
|
||||
|
||||
subscriber_count = node.xpath_node(%q(.//span[contains(@class, "yt-subscriber-count")])).try &.["title"].gsub(/\D/, "").to_i?
|
||||
subscriber_count ||= 0
|
||||
subscriber_count = node.xpath_node(%q(.//span[contains(@class, "subscriber-count")]))
|
||||
.try &.["title"].try { |text| short_text_to_number(text) } || 0
|
||||
|
||||
video_count = node.xpath_node(%q(.//ul[@class="yt-lockup-meta-info"]/li)).try &.content.split(" ")[0].gsub(/\D/, "").to_i?
|
||||
video_count ||= 0
|
||||
|
||||
items << SearchChannel.new(
|
||||
author: author,
|
||||
ucid: ucid,
|
||||
author_thumbnail: author_thumbnail,
|
||||
subscriber_count: subscriber_count,
|
||||
video_count: video_count,
|
||||
description_html: description_html
|
||||
video_count: video_count || 0,
|
||||
description_html: description_html,
|
||||
auto_generated: video_count ? false : true,
|
||||
)
|
||||
else
|
||||
id = id.lchop("/watch?v=")
|
||||
|
||||
metadata = node.xpath_nodes(%q(.//div[contains(@class,"yt-lockup-meta")]/ul/li))
|
||||
metadata = node.xpath_node(%q(.//div[contains(@class,"yt-lockup-meta")]/ul))
|
||||
|
||||
begin
|
||||
published = decode_date(metadata[0].content.lchop("Streamed ").lchop("Starts "))
|
||||
rescue ex
|
||||
end
|
||||
begin
|
||||
published ||= Time.unix(metadata[0].xpath_node(%q(.//span)).not_nil!["data-timestamp"].to_i64)
|
||||
rescue ex
|
||||
end
|
||||
published = metadata.try &.xpath_node(%q(.//li[contains(text(), " ago")])).try { |node| decode_date(node.content.sub(/^[a-zA-Z]+ /, "")) }
|
||||
published ||= metadata.try &.xpath_node(%q(.//span[@data-timestamp])).try { |node| Time.unix(node["data-timestamp"].to_i64) }
|
||||
published ||= Time.utc
|
||||
|
||||
begin
|
||||
view_count = metadata[0].content.rchop(" watching").delete(",").try &.to_i64?
|
||||
rescue ex
|
||||
end
|
||||
begin
|
||||
view_count ||= metadata.try &.[1].content.delete("No views,").try &.to_i64?
|
||||
rescue ex
|
||||
end
|
||||
view_count = metadata.try &.xpath_node(%q(.//li[contains(text(), " views")])).try &.content.gsub(/\D/, "").to_i64?
|
||||
view_count ||= 0_i64
|
||||
|
||||
length_seconds = node.xpath_node(%q(.//span[@class="video-time"]))
|
||||
if length_seconds
|
||||
length_seconds = decode_length_seconds(length_seconds.content)
|
||||
else
|
||||
length_seconds = -1
|
||||
end
|
||||
length_seconds = node.xpath_node(%q(.//span[@class="video-time"])).try { |node| decode_length_seconds(node.content) }
|
||||
length_seconds ||= -1
|
||||
|
||||
live_now = node.xpath_node(%q(.//span[contains(@class, "yt-badge-live")]))
|
||||
if live_now
|
||||
live_now = true
|
||||
else
|
||||
live_now = false
|
||||
end
|
||||
|
||||
if node.xpath_node(%q(.//span[text()="Premium"]))
|
||||
premium = true
|
||||
else
|
||||
premium = false
|
||||
end
|
||||
live_now = node.xpath_node(%q(.//span[contains(@class, "yt-badge-live")])) ? true : false
|
||||
premium = node.xpath_node(%q(.//span[text()="Premium"])) ? true : false
|
||||
|
||||
if !premium || node.xpath_node(%q(.//span[contains(text(), "Free episode")]))
|
||||
paid = false
|
||||
@@ -457,34 +515,24 @@ def extract_shelf_items(nodeset, ucid = nil, author_name = nil)
|
||||
|
||||
nodeset.each do |shelf|
|
||||
shelf_anchor = shelf.xpath_node(%q(.//h2[contains(@class, "branded-page-module-title")]))
|
||||
next if !shelf_anchor
|
||||
|
||||
if !shelf_anchor
|
||||
next
|
||||
end
|
||||
|
||||
title = shelf_anchor.xpath_node(%q(.//span[contains(@class, "branded-page-module-title-text")]))
|
||||
if title
|
||||
title = title.content.strip
|
||||
end
|
||||
title = shelf_anchor.xpath_node(%q(.//span[contains(@class, "branded-page-module-title-text")])).try &.content.strip
|
||||
title ||= ""
|
||||
|
||||
id = shelf_anchor.xpath_node(%q(.//a)).try &.["href"]
|
||||
if !id
|
||||
next
|
||||
end
|
||||
next if !id
|
||||
|
||||
is_playlist = false
|
||||
shelf_is_playlist = false
|
||||
videos = [] of SearchPlaylistVideo
|
||||
|
||||
shelf.xpath_nodes(%q(.//ul[contains(@class, "yt-uix-shelfslider-list")]/li)).each do |child_node|
|
||||
shelf.xpath_nodes(%q(.//ul[contains(@class, "yt-uix-shelfslider-list") or contains(@class, "expanded-shelf-content-list")]/li)).each do |child_node|
|
||||
type = child_node.xpath_node(%q(./div))
|
||||
if !type
|
||||
next
|
||||
end
|
||||
next if !type
|
||||
|
||||
case type["class"]
|
||||
when .includes? "yt-lockup-video"
|
||||
is_playlist = true
|
||||
shelf_is_playlist = true
|
||||
|
||||
anchor = child_node.xpath_node(%q(.//h3[contains(@class, "yt-lockup-title")]/a))
|
||||
if anchor
|
||||
@@ -517,41 +565,62 @@ def extract_shelf_items(nodeset, ucid = nil, author_name = nil)
|
||||
|
||||
playlist_thumbnail = child_node.xpath_node(%q(.//span/img)).try &.["data-thumb"]?
|
||||
playlist_thumbnail ||= child_node.xpath_node(%q(.//span/img)).try &.["src"]
|
||||
if !playlist_thumbnail || playlist_thumbnail.empty?
|
||||
thumbnail_id = videos[0]?.try &.id
|
||||
else
|
||||
thumbnail_id = playlist_thumbnail.match(/\/vi\/(?<video_id>[a-zA-Z0-9_-]{11})\/\w+\.jpg/).try &.["video_id"]
|
||||
end
|
||||
|
||||
video_count_label = child_node.xpath_node(%q(.//span[@class="formatted-video-count-label"]))
|
||||
if video_count_label
|
||||
video_count = video_count_label.content.gsub(/\D/, "").to_i?
|
||||
video_count = child_node.xpath_node(%q(.//span[@class="formatted-video-count-label"]/b)) ||
|
||||
child_node.xpath_node(%q(.//span[@class="formatted-video-count-label"]))
|
||||
if video_count
|
||||
video_count = video_count.content.gsub(/\D/, "").to_i?
|
||||
end
|
||||
video_count ||= 50
|
||||
|
||||
videos = [] of SearchPlaylistVideo
|
||||
child_node.xpath_nodes(%q(.//*[contains(@class, "yt-lockup-playlist-items")]/li)).each do |video|
|
||||
anchor = video.xpath_node(%q(.//a))
|
||||
if anchor
|
||||
video_title = anchor.content.strip
|
||||
id = HTTP::Params.parse(URI.parse(anchor["href"]).query.not_nil!)["v"]
|
||||
end
|
||||
video_title ||= ""
|
||||
id ||= ""
|
||||
|
||||
anchor = video.xpath_node(%q(.//span/span))
|
||||
if anchor
|
||||
length_seconds = decode_length_seconds(anchor.content)
|
||||
end
|
||||
length_seconds ||= 0
|
||||
|
||||
videos << SearchPlaylistVideo.new(
|
||||
video_title,
|
||||
id,
|
||||
length_seconds
|
||||
)
|
||||
end
|
||||
|
||||
items << SearchPlaylist.new(
|
||||
playlist_title,
|
||||
plid,
|
||||
author_name,
|
||||
ucid,
|
||||
video_count,
|
||||
Array(SearchPlaylistVideo).new,
|
||||
thumbnail_id
|
||||
title: playlist_title,
|
||||
id: plid,
|
||||
author: author_name,
|
||||
ucid: ucid,
|
||||
video_count: video_count,
|
||||
videos: videos,
|
||||
thumbnail: playlist_thumbnail
|
||||
)
|
||||
else
|
||||
next # Skip
|
||||
end
|
||||
end
|
||||
|
||||
if is_playlist
|
||||
if shelf_is_playlist
|
||||
plid = HTTP::Params.parse(URI.parse(id).query.not_nil!)["list"]
|
||||
|
||||
items << SearchPlaylist.new(
|
||||
title,
|
||||
plid,
|
||||
author_name,
|
||||
ucid,
|
||||
videos.size,
|
||||
videos,
|
||||
videos[0].try &.id
|
||||
title: title,
|
||||
id: plid,
|
||||
author: author_name,
|
||||
ucid: ucid,
|
||||
video_count: videos.size,
|
||||
videos: videos,
|
||||
thumbnail: "https://i.ytimg.com/vi/#{videos[0].id}/mqdefault.jpg"
|
||||
)
|
||||
end
|
||||
end
|
||||
@@ -559,7 +628,17 @@ def extract_shelf_items(nodeset, ucid = nil, author_name = nil)
|
||||
return items
|
||||
end
|
||||
|
||||
def analyze_table(db, logger, table_name, struct_type = nil)
|
||||
def check_enum(db, logger, enum_name, struct_type = nil)
|
||||
if !db.query_one?("SELECT true FROM pg_type WHERE typname = $1", enum_name, as: Bool)
|
||||
logger.puts("CREATE TYPE #{enum_name}")
|
||||
|
||||
db.using_connection do |conn|
|
||||
conn.as(PG::Connection).exec_all(File.read("config/sql/#{enum_name}.sql"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def check_table(db, logger, table_name, struct_type = nil)
|
||||
# Create table if it doesn't exist
|
||||
begin
|
||||
db.exec("SELECT * FROM #{table_name} LIMIT 0")
|
||||
@@ -661,9 +740,7 @@ def cache_annotation(db, id, annotations)
|
||||
body = XML.parse(annotations)
|
||||
nodeset = body.xpath_nodes(%q(/document/annotations/annotation))
|
||||
|
||||
if nodeset == 0
|
||||
return
|
||||
end
|
||||
return if nodeset == 0
|
||||
|
||||
has_legacy_annotations = false
|
||||
nodeset.each do |node|
|
||||
@@ -694,7 +771,7 @@ def create_notification_stream(env, config, kemal_config, decrypt_function, topi
|
||||
loop do
|
||||
time_span = [0, 0, 0, 0]
|
||||
time_span[rand(4)] = rand(30) + 5
|
||||
published = Time.utc - Time::Span.new(time_span[0], time_span[1], time_span[2], time_span[3])
|
||||
published = Time.utc - Time::Span.new(days: time_span[0], hours: time_span[1], minutes: time_span[2], seconds: time_span[3])
|
||||
video_id = TEST_IDS[rand(TEST_IDS.size)]
|
||||
|
||||
video = get_video(video_id, PG_DB)
|
||||
|
||||
@@ -24,6 +24,8 @@ def translate(locale : Hash(String, JSON::Any) | Nil, translation : String, text
|
||||
if !locale[translation].as_s.empty?
|
||||
translation = locale[translation].as_s
|
||||
end
|
||||
else
|
||||
raise "Invalid translation #{translation}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -153,6 +153,7 @@ def subscribe_to_feeds(db, logger, key, config)
|
||||
logger.puts("#{ucid} : #{response.body}")
|
||||
end
|
||||
rescue ex
|
||||
logger.puts("#{ucid} : #{ex.message}")
|
||||
end
|
||||
|
||||
active_channel.send(true)
|
||||
@@ -225,10 +226,164 @@ def update_decrypt_function
|
||||
yield decrypt_function
|
||||
rescue ex
|
||||
next
|
||||
ensure
|
||||
sleep 1.minute
|
||||
Fiber.yield
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
sleep 1.minute
|
||||
Fiber.yield
|
||||
def bypass_captcha(captcha_key, logger)
|
||||
loop do
|
||||
begin
|
||||
{"/watch?v=CvFH_6DNRCY&gl=US&hl=en&disable_polymer=1&has_verified=1&bpctr=9999999999", produce_channel_videos_url(ucid: "UCXuqSBlHAE6Xw-yeJA0Tunw")}.each do |path|
|
||||
response = YT_POOL.client &.get(path)
|
||||
if response.body.includes?("To continue with your YouTube experience, please fill out the form below.")
|
||||
html = XML.parse_html(response.body)
|
||||
form = html.xpath_node(%(//form[@action="/das_captcha"])).not_nil!
|
||||
site_key = form.xpath_node(%(.//div[@class="g-recaptcha"])).try &.["data-sitekey"]
|
||||
|
||||
inputs = {} of String => String
|
||||
form.xpath_nodes(%(.//input[@name])).map do |node|
|
||||
inputs[node["name"]] = node["value"]
|
||||
end
|
||||
|
||||
headers = response.cookies.add_request_headers(HTTP::Headers.new)
|
||||
captcha_client = HTTPClient.new(URI.parse("https://api.anti-captcha.com"))
|
||||
captcha_client.family = CONFIG.force_resolve || Socket::Family::INET
|
||||
if !CONFIG.proxy_address.empty?
|
||||
response = JSON.parse(captcha_client.post("/createTask", body: {
|
||||
"clientKey" => CONFIG.captcha_key,
|
||||
"task" => {
|
||||
"type" => "NoCaptchaTask",
|
||||
"websiteURL" => "https://www.youtube.com#{path}",
|
||||
"websiteKey" => site_key,
|
||||
"proxyType" => "http",
|
||||
"proxyAddress" => CONFIG.proxy_address,
|
||||
"proxyPort" => CONFIG.proxy_port,
|
||||
"proxyLogin" => CONFIG.proxy_user,
|
||||
"proxyPassword" => CONFIG.proxy_pass,
|
||||
"userAgent" => headers["user-agent"],
|
||||
},
|
||||
}.to_json).body)
|
||||
else
|
||||
response = JSON.parse(captcha_client.post("/createTask", body: {
|
||||
"clientKey" => CONFIG.captcha_key,
|
||||
"task" => {
|
||||
"type" => "NoCaptchaTaskProxyless",
|
||||
"websiteURL" => "https://www.youtube.com#{path}",
|
||||
"websiteKey" => site_key,
|
||||
"userAgent" => headers["user-agent"],
|
||||
},
|
||||
}.to_json).body)
|
||||
end
|
||||
|
||||
raise response["error"].as_s if response["error"]?
|
||||
task_id = response["taskId"].as_i
|
||||
|
||||
loop do
|
||||
sleep 10.seconds
|
||||
|
||||
response = JSON.parse(captcha_client.post("/getTaskResult", body: {
|
||||
"clientKey" => CONFIG.captcha_key,
|
||||
"taskId" => task_id,
|
||||
}.to_json).body)
|
||||
|
||||
if response["status"]?.try &.== "ready"
|
||||
break
|
||||
elsif response["errorId"]?.try &.as_i != 0
|
||||
raise response["errorDescription"].as_s
|
||||
end
|
||||
end
|
||||
|
||||
inputs["g-recaptcha-response"] = response["solution"]["gRecaptchaResponse"].as_s
|
||||
response = YT_POOL.client &.post("/das_captcha", headers, form: inputs)
|
||||
|
||||
yield response.cookies.select { |cookie| cookie.name != "PREF" }
|
||||
elsif response.headers["Location"]?.try &.includes?("/sorry/index")
|
||||
location = response.headers["Location"].try { |u| URI.parse(u) }
|
||||
headers = HTTP::Headers{
|
||||
":authority" => location.host.not_nil!,
|
||||
"origin" => "https://www.google.com",
|
||||
"user-agent" => "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36",
|
||||
}
|
||||
response = YT_POOL.client &.get(location.full_path, headers)
|
||||
|
||||
html = XML.parse_html(response.body)
|
||||
form = html.xpath_node(%(//form[@action="index"])).not_nil!
|
||||
site_key = form.xpath_node(%(.//div[@class="g-recaptcha"])).try &.["data-sitekey"]
|
||||
|
||||
inputs = {} of String => String
|
||||
form.xpath_nodes(%(.//input[@name])).map do |node|
|
||||
inputs[node["name"]] = node["value"]
|
||||
end
|
||||
|
||||
captcha_client = HTTPClient.new(URI.parse("https://api.anti-captcha.com"))
|
||||
captcha_client.family = CONFIG.force_resolve || Socket::Family::INET
|
||||
if !CONFIG.proxy_address.empty?
|
||||
response = JSON.parse(captcha_client.post("/createTask", body: {
|
||||
"clientKey" => CONFIG.captcha_key,
|
||||
"task" => {
|
||||
"type" => "NoCaptchaTask",
|
||||
"websiteURL" => location.to_s,
|
||||
"websiteKey" => site_key,
|
||||
"proxyType" => "http",
|
||||
"proxyAddress" => CONFIG.proxy_address,
|
||||
"proxyPort" => CONFIG.proxy_port,
|
||||
"proxyLogin" => CONFIG.proxy_user,
|
||||
"proxyPassword" => CONFIG.proxy_pass,
|
||||
"userAgent" => headers["user-agent"],
|
||||
},
|
||||
}.to_json).body)
|
||||
else
|
||||
response = JSON.parse(captcha_client.post("/createTask", body: {
|
||||
"clientKey" => CONFIG.captcha_key,
|
||||
"task" => {
|
||||
"type" => "NoCaptchaTaskProxyless",
|
||||
"websiteURL" => location.to_s,
|
||||
"websiteKey" => site_key,
|
||||
"userAgent" => headers["user-agent"],
|
||||
},
|
||||
}.to_json).body)
|
||||
end
|
||||
|
||||
raise response["error"].as_s if response["error"]?
|
||||
task_id = response["taskId"].as_i
|
||||
|
||||
loop do
|
||||
sleep 10.seconds
|
||||
|
||||
response = JSON.parse(captcha_client.post("/getTaskResult", body: {
|
||||
"clientKey" => CONFIG.captcha_key,
|
||||
"taskId" => task_id,
|
||||
}.to_json).body)
|
||||
|
||||
if response["status"]?.try &.== "ready"
|
||||
break
|
||||
elsif response["errorId"]?.try &.as_i != 0
|
||||
raise response["errorDescription"].as_s
|
||||
end
|
||||
end
|
||||
|
||||
inputs["g-recaptcha-response"] = response["solution"]["gRecaptchaResponse"].as_s
|
||||
headers["content-type"] = "application/x-www-form-urlencoded"
|
||||
headers["referer"] = location.to_s
|
||||
|
||||
response = YT_POOL.client &.post("/sorry/index", headers: headers, form: inputs)
|
||||
headers = HTTP::Headers{
|
||||
"Cookie" => URI.parse(response.headers["location"]).query_params["google_abuse"].split(";")[0],
|
||||
}
|
||||
cookies = HTTP::Cookies.from_headers(headers)
|
||||
|
||||
yield cookies
|
||||
end
|
||||
end
|
||||
rescue ex
|
||||
logger.puts("Exception: #{ex.message}")
|
||||
ensure
|
||||
sleep 1.minute
|
||||
Fiber.yield
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ def Object.from_json(string_or_io, default) : self
|
||||
new parser, default
|
||||
end
|
||||
|
||||
# Adds configurable 'default' to
|
||||
# Adds configurable 'default'
|
||||
macro patched_json_mapping(_properties_, strict = false)
|
||||
{% for key, value in _properties_ %}
|
||||
{% _properties_[key] = {type: value} unless value.is_a?(HashLiteral) || value.is_a?(NamedTupleLiteral) %}
|
||||
@@ -50,7 +50,7 @@ macro patched_json_mapping(_properties_, strict = false)
|
||||
rescue exc : ::JSON::ParseException
|
||||
raise ::JSON::MappingError.new(exc.message, self.class.to_s, nil, *%location, exc)
|
||||
end
|
||||
while %pull.kind != :end_object
|
||||
until %pull.kind.end_object?
|
||||
%key_location = %pull.location
|
||||
key = %pull.read_object_key
|
||||
case key
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
def connect(path : String, &block : HTTP::Server::Context -> _)
|
||||
Kemal::RouteHandler::INSTANCE.add_route("CONNECT", path, &block)
|
||||
end
|
||||
|
||||
# See https://github.com/crystal-lang/crystal/issues/2963
|
||||
class HTTPProxy
|
||||
getter proxy_host : String
|
||||
@@ -31,10 +35,10 @@ class HTTPProxy
|
||||
|
||||
if resp[:code]? == 200
|
||||
{% if !flag?(:without_openssl) %}
|
||||
if tls
|
||||
tls_socket = OpenSSL::SSL::Socket::Client.new(socket, context: tls, sync_close: true, hostname: host)
|
||||
socket = tls_socket
|
||||
end
|
||||
if tls
|
||||
tls_socket = OpenSSL::SSL::Socket::Client.new(socket, context: tls, sync_close: true, hostname: host)
|
||||
socket = tls_socket
|
||||
end
|
||||
{% end %}
|
||||
|
||||
return socket
|
||||
@@ -77,6 +81,10 @@ class HTTPClient < HTTP::Client
|
||||
end
|
||||
end
|
||||
|
||||
def unset_proxy
|
||||
@socket = nil
|
||||
end
|
||||
|
||||
def proxy_connection_options
|
||||
opts = {} of Symbol => Float64 | Nil
|
||||
|
||||
@@ -97,6 +105,7 @@ def filter_proxies(proxies)
|
||||
proxies.select! do |proxy|
|
||||
begin
|
||||
client = HTTPClient.new(YT_URL)
|
||||
client.before_request { |r| add_yt_headers(r) } if url.host == "www.youtube.com"
|
||||
client.read_timeout = 10.seconds
|
||||
client.connect_timeout = 10.seconds
|
||||
|
||||
@@ -119,7 +128,7 @@ def get_nova_proxies(country_code = "US")
|
||||
client.connect_timeout = 10.seconds
|
||||
|
||||
headers = HTTP::Headers.new
|
||||
headers["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"
|
||||
headers["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"
|
||||
headers["Accept"] = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
|
||||
headers["Accept-Language"] = "Accept-Language: en-US,en;q=0.9"
|
||||
headers["Host"] = "www.proxynova.com"
|
||||
@@ -156,7 +165,7 @@ def get_spys_proxies(country_code = "US")
|
||||
client.connect_timeout = 10.seconds
|
||||
|
||||
headers = HTTP::Headers.new
|
||||
headers["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"
|
||||
headers["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"
|
||||
headers["Accept"] = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
|
||||
headers["Accept-Language"] = "Accept-Language: en-US,en;q=0.9"
|
||||
headers["Host"] = "spys.one"
|
||||
|
||||
@@ -1,70 +1,53 @@
|
||||
def fetch_decrypt_function(id = "CvFH_6DNRCY")
|
||||
client = make_client(YT_URL)
|
||||
document = client.get("/watch?v=#{id}&gl=US&hl=en&disable_polymer=1").body
|
||||
url = document.match(/src="(?<url>\/yts\/jsbin\/player_ias-.{9}\/en_US\/base.js)"/).not_nil!["url"]
|
||||
player = client.get(url).body
|
||||
alias SigProc = Proc(Array(String), Int32, Array(String))
|
||||
|
||||
function_name = player.match(/^(?<name>[^=]+)=function\(a\){a=a\.split\(""\)/m).not_nil!["name"]
|
||||
function_body = player.match(/^#{Regex.escape(function_name)}=function\(a\){(?<body>[^}]+)}/m).not_nil!["body"]
|
||||
def fetch_decrypt_function(id = "CvFH_6DNRCY")
|
||||
document = YT_POOL.client &.get("/watch?v=#{id}&gl=US&hl=en&disable_polymer=1").body
|
||||
url = document.match(/src="(?<url>.*player_ias[^\/]+\/en_US\/base.js)"/).not_nil!["url"]
|
||||
player = YT_POOL.client &.get(url).body
|
||||
|
||||
function_name = player.match(/^(?<name>[^=]+)=function\(\w\){\w=\w\.split\(""\);[^\. ]+\.[^( ]+/m).not_nil!["name"]
|
||||
function_body = player.match(/^#{Regex.escape(function_name)}=function\(\w\){(?<body>[^}]+)}/m).not_nil!["body"]
|
||||
function_body = function_body.split(";")[1..-2]
|
||||
|
||||
var_name = function_body[0][0, 2]
|
||||
var_body = player.delete("\n").match(/var #{Regex.escape(var_name)}={(?<body>(.*?))};/).not_nil!["body"]
|
||||
|
||||
operations = {} of String => String
|
||||
operations = {} of String => SigProc
|
||||
var_body.split("},").each do |operation|
|
||||
op_name = operation.match(/^[^:]+/).not_nil![0]
|
||||
op_body = operation.match(/\{[^}]+/).not_nil![0]
|
||||
|
||||
case op_body
|
||||
when "{a.reverse()"
|
||||
operations[op_name] = "a"
|
||||
operations[op_name] = ->(a : Array(String), b : Int32) { a.reverse }
|
||||
when "{a.splice(0,b)"
|
||||
operations[op_name] = "b"
|
||||
operations[op_name] = ->(a : Array(String), b : Int32) { a.delete_at(0..(b - 1)); a }
|
||||
else
|
||||
operations[op_name] = "c"
|
||||
operations[op_name] = ->(a : Array(String), b : Int32) { c = a[0]; a[0] = a[b % a.size]; a[b % a.size] = c; a }
|
||||
end
|
||||
end
|
||||
|
||||
decrypt_function = [] of {name: String, value: Int32}
|
||||
decrypt_function = [] of {SigProc, Int32}
|
||||
function_body.each do |function|
|
||||
function = function.lchop(var_name).delete("[].")
|
||||
|
||||
op_name = function.match(/[^\(]+/).not_nil![0]
|
||||
value = function.match(/\(a,(?<value>[\d]+)\)/).not_nil!["value"].to_i
|
||||
value = function.match(/\(\w,(?<value>[\d]+)\)/).not_nil!["value"].to_i
|
||||
|
||||
decrypt_function << {name: operations[op_name], value: value}
|
||||
decrypt_function << {operations[op_name], value}
|
||||
end
|
||||
|
||||
return decrypt_function
|
||||
end
|
||||
|
||||
def decrypt_signature(fmt, code)
|
||||
if !fmt["s"]?
|
||||
return ""
|
||||
def decrypt_signature(fmt, op)
|
||||
return "" if !fmt["s"]? || !fmt["sp"]?
|
||||
|
||||
sp = fmt["sp"]
|
||||
sig = fmt["s"].split("")
|
||||
op.each do |proc, value|
|
||||
sig = proc.call(sig, value)
|
||||
end
|
||||
|
||||
a = fmt["s"]
|
||||
a = a.split("")
|
||||
|
||||
code.each do |item|
|
||||
case item[:name]
|
||||
when "a"
|
||||
a.reverse!
|
||||
when "b"
|
||||
a.delete_at(0..(item[:value] - 1))
|
||||
when "c"
|
||||
a = splice(a, item[:value])
|
||||
end
|
||||
end
|
||||
|
||||
signature = a.join("")
|
||||
return "&#{fmt["sp"]?}=#{signature}"
|
||||
end
|
||||
|
||||
def splice(a, b)
|
||||
c = a[0]
|
||||
a[0] = a[b % a.size]
|
||||
a[b % a.size] = c
|
||||
return a
|
||||
return "&#{sp}=#{sig.join("")}"
|
||||
end
|
||||
|
||||
@@ -119,7 +119,7 @@ module Kemal
|
||||
|
||||
config = Kemal.config.serve_static
|
||||
original_path = context.request.path.not_nil!
|
||||
request_path = URI.unescape(original_path)
|
||||
request_path = URI.decode_www_form(original_path)
|
||||
|
||||
# File path cannot contains '\0' (NUL) because all filesystem I know
|
||||
# don't accept '\0' character as file name.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
require "crypto/subtle"
|
||||
|
||||
def generate_token(email, scopes, expire, key, db)
|
||||
session = "v1:#{Base64.urlsafe_encode(Random::Secure.random_bytes(32))}"
|
||||
PG_DB.exec("INSERT INTO session_ids VALUES ($1, $2, $3)", session, email, Time.utc)
|
||||
@@ -41,15 +43,10 @@ def sign_token(key, hash)
|
||||
string_to_sign = [] of String
|
||||
|
||||
hash.each do |key, value|
|
||||
if key == "signature"
|
||||
next
|
||||
end
|
||||
next if key == "signature"
|
||||
|
||||
if value.is_a?(JSON::Any)
|
||||
case value
|
||||
when .as_a?
|
||||
value = value.as_a.map { |item| item.as_s }
|
||||
end
|
||||
if value.is_a?(JSON::Any) && value.as_a?
|
||||
value = value.as_a.map { |i| i.as_s }
|
||||
end
|
||||
|
||||
case value
|
||||
@@ -69,21 +66,32 @@ end
|
||||
def validate_request(token, session, request, key, db, locale = nil)
|
||||
case token
|
||||
when String
|
||||
token = JSON.parse(URI.unescape(token)).as_h
|
||||
token = JSON.parse(URI.decode_www_form(token)).as_h
|
||||
when JSON::Any
|
||||
token = token.as_h
|
||||
when Nil
|
||||
raise translate(locale, "Hidden field \"token\" is a required field")
|
||||
end
|
||||
|
||||
if token["signature"] != sign_token(key, token)
|
||||
raise translate(locale, "Invalid signature")
|
||||
expire = token["expire"]?.try &.as_i
|
||||
if expire.try &.< Time.utc.to_unix
|
||||
raise translate(locale, "Token is expired, please try again")
|
||||
end
|
||||
|
||||
if token["session"] != session
|
||||
raise translate(locale, "Erroneous token")
|
||||
end
|
||||
|
||||
scopes = token["scopes"].as_a.map { |v| v.as_s }
|
||||
scope = "#{request.method}:#{request.path.lchop("/api/v1/auth/").lstrip("/")}"
|
||||
if !scopes_include_scope(scopes, scope)
|
||||
raise translate(locale, "Invalid scope")
|
||||
end
|
||||
|
||||
if !Crypto::Subtle.constant_time_compare(token["signature"].to_s, sign_token(key, token))
|
||||
raise translate(locale, "Invalid signature")
|
||||
end
|
||||
|
||||
if token["nonce"]? && (nonce = db.query_one?("SELECT * FROM nonces WHERE nonce = $1", token["nonce"], as: {String, Time}))
|
||||
if nonce[1] > Time.utc
|
||||
db.exec("UPDATE nonces SET expire = $1 WHERE nonce = $2", Time.utc(1990, 1, 1), nonce[0])
|
||||
@@ -92,18 +100,6 @@ def validate_request(token, session, request, key, db, locale = nil)
|
||||
end
|
||||
end
|
||||
|
||||
scopes = token["scopes"].as_a.map { |v| v.as_s }
|
||||
scope = "#{request.method}:#{request.path.lchop("/api/v1/auth/").lstrip("/")}"
|
||||
|
||||
if !scopes_include_scope(scopes, scope)
|
||||
raise translate(locale, "Invalid scope")
|
||||
end
|
||||
|
||||
expire = token["expire"]?.try &.as_i
|
||||
if expire.try &.< Time.utc.to_unix
|
||||
raise translate(locale, "Token is expired, please try again")
|
||||
end
|
||||
|
||||
return {scopes, expire, token["signature"].as_s}
|
||||
end
|
||||
|
||||
|
||||
@@ -1,3 +1,65 @@
|
||||
require "lsquic"
|
||||
require "pool/connection"
|
||||
|
||||
def add_yt_headers(request)
|
||||
return if request.resource.starts_with? "/sorry/index"
|
||||
|
||||
request.headers["user-agent"] ||= "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"
|
||||
request.headers["accept-charset"] ||= "ISO-8859-1,utf-8;q=0.7,*;q=0.7"
|
||||
request.headers["accept"] ||= "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
|
||||
request.headers["accept-language"] ||= "en-us,en;q=0.5"
|
||||
request.headers["x-youtube-client-name"] ||= "1"
|
||||
request.headers["x-youtube-client-version"] ||= "1.20180719"
|
||||
if !CONFIG.cookies.empty?
|
||||
request.headers["cookie"] = "#{(CONFIG.cookies.map { |c| "#{c.name}=#{c.value}" }).join("; ")}; #{request.headers["cookie"]?}"
|
||||
end
|
||||
end
|
||||
|
||||
struct QUICPool
|
||||
property! url : URI
|
||||
property! capacity : Int32
|
||||
property! timeout : Float64
|
||||
property pool : ConnectionPool(QUIC::Client)
|
||||
|
||||
def initialize(url : URI, @capacity = 5, @timeout = 5.0)
|
||||
@url = url
|
||||
@pool = build_pool
|
||||
end
|
||||
|
||||
def client(region = nil, &block)
|
||||
if region
|
||||
conn = make_client(url, region)
|
||||
response = yield conn
|
||||
else
|
||||
conn = pool.checkout
|
||||
begin
|
||||
response = yield conn
|
||||
rescue ex
|
||||
conn.close
|
||||
conn = QUIC::Client.new(url)
|
||||
conn.family = (url.host == "www.youtube.com") ? CONFIG.force_resolve : Socket::Family::INET
|
||||
conn.family = Socket::Family::INET if conn.family == Socket::Family::UNSPEC
|
||||
conn.before_request { |r| add_yt_headers(r) } if url.host == "www.youtube.com"
|
||||
response = yield conn
|
||||
ensure
|
||||
pool.checkin(conn)
|
||||
end
|
||||
end
|
||||
|
||||
response
|
||||
end
|
||||
|
||||
private def build_pool
|
||||
ConnectionPool(QUIC::Client).new(capacity: capacity, timeout: timeout) do
|
||||
conn = QUIC::Client.new(url)
|
||||
conn.family = (url.host == "www.youtube.com") ? CONFIG.force_resolve : Socket::Family::INET
|
||||
conn.family = Socket::Family::INET if conn.family == Socket::Family::UNSPEC
|
||||
conn.before_request { |r| add_yt_headers(r) } if url.host == "www.youtube.com"
|
||||
conn
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# See http://www.evanmiller.org/how-not-to-sort-by-average-rating.html
|
||||
def ci_lower_bound(pos, n)
|
||||
if n == 0
|
||||
@@ -19,10 +81,11 @@ def elapsed_text(elapsed)
|
||||
end
|
||||
|
||||
def make_client(url : URI, region = nil)
|
||||
client = HTTPClient.new(url)
|
||||
client.family = CONFIG.force_resolve
|
||||
client.read_timeout = 15.seconds
|
||||
client.connect_timeout = 15.seconds
|
||||
# TODO: Migrate any applicable endpoints to QUIC
|
||||
client = HTTPClient.new(url, OpenSSL::SSL::Context::Client.insecure)
|
||||
client.family = (url.host == "www.youtube.com") ? CONFIG.force_resolve : Socket::Family::UNSPEC
|
||||
client.read_timeout = 10.seconds
|
||||
client.connect_timeout = 10.seconds
|
||||
|
||||
if region
|
||||
PROXY_LIST[region]?.try &.sample(40).each do |proxy|
|
||||
@@ -39,9 +102,9 @@ def make_client(url : URI, region = nil)
|
||||
end
|
||||
|
||||
def decode_length_seconds(string)
|
||||
length_seconds = string.split(":").map { |a| a.to_i }
|
||||
length_seconds = string.gsub(/[^0-9:]/, "").split(":").map &.to_i
|
||||
length_seconds = [0] * (3 - length_seconds.size) + length_seconds
|
||||
length_seconds = Time::Span.new(length_seconds[0], length_seconds[1], length_seconds[2])
|
||||
length_seconds = Time::Span.new hours: length_seconds[0], minutes: length_seconds[1], seconds: length_seconds[2]
|
||||
length_seconds = length_seconds.total_seconds.to_i
|
||||
|
||||
return length_seconds
|
||||
@@ -103,6 +166,7 @@ def decode_date(string : String)
|
||||
return Time.utc
|
||||
when "yesterday"
|
||||
return Time.utc - 1.day
|
||||
else nil # Continue
|
||||
end
|
||||
|
||||
# String matches format "20 hours ago", "4 months ago"...
|
||||
@@ -157,7 +221,7 @@ def number_with_separator(number)
|
||||
number.to_s.reverse.gsub(/(\d{3})(?=\d)/, "\\1,").reverse
|
||||
end
|
||||
|
||||
def short_text_to_number(short_text)
|
||||
def short_text_to_number(short_text : String) : Int32
|
||||
case short_text
|
||||
when .ends_with? "M"
|
||||
number = short_text.rstrip(" mM").to_f
|
||||
@@ -246,7 +310,7 @@ def get_referer(env, fallback = "/", unroll = true)
|
||||
if referer.query
|
||||
params = HTTP::Params.parse(referer.query.not_nil!)
|
||||
if params["referer"]?
|
||||
referer = URI.parse(URI.unescape(params["referer"]))
|
||||
referer = URI.parse(URI.decode_www_form(params["referer"]))
|
||||
else
|
||||
break
|
||||
end
|
||||
@@ -257,7 +321,7 @@ def get_referer(env, fallback = "/", unroll = true)
|
||||
end
|
||||
|
||||
referer = referer.full_path
|
||||
referer = "/" + referer.lstrip("\/\\")
|
||||
referer = "/" + referer.gsub(/[^\/?@&%=\-_.0-9a-zA-Z]/, "").lstrip("/\\")
|
||||
|
||||
if referer == env.request.path
|
||||
referer = fallback
|
||||
@@ -266,42 +330,6 @@ def get_referer(env, fallback = "/", unroll = true)
|
||||
return referer
|
||||
end
|
||||
|
||||
struct VarInt
|
||||
def self.from_io(io : IO, format = IO::ByteFormat::BigEndian) : Int32
|
||||
result = 0_i32
|
||||
num_read = 0
|
||||
|
||||
loop do
|
||||
byte = io.read_byte
|
||||
raise "Invalid VarInt" if !byte
|
||||
value = byte & 0x7f
|
||||
|
||||
result |= value.to_i32 << (7 * num_read)
|
||||
num_read += 1
|
||||
|
||||
break if byte & 0x80 == 0
|
||||
raise "Invalid VarInt" if num_read > 5
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
def self.to_io(io : IO, value : Int32)
|
||||
io.write_byte 0x00 if value == 0x00
|
||||
|
||||
while value != 0
|
||||
byte = (value & 0x7f).to_u8
|
||||
value >>= 7
|
||||
|
||||
if value != 0
|
||||
byte |= 0x80
|
||||
end
|
||||
|
||||
io.write_byte byte
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def sha256(text)
|
||||
digest = OpenSSL::Digest.new("SHA256")
|
||||
digest << text
|
||||
@@ -320,7 +348,6 @@ def subscribe_pubsub(topic, key, config)
|
||||
# TODO
|
||||
end
|
||||
|
||||
client = make_client(PUBSUB_URL)
|
||||
time = Time.utc.to_unix.to_s
|
||||
nonce = Random::Secure.hex(4)
|
||||
signature = "#{time}:#{nonce}"
|
||||
@@ -336,7 +363,7 @@ def subscribe_pubsub(topic, key, config)
|
||||
"hub.secret" => key.to_s,
|
||||
}
|
||||
|
||||
return client.post("/subscribe", form: body)
|
||||
return make_client(PUBSUB_URL).post("/subscribe", form: body)
|
||||
end
|
||||
|
||||
def parse_range(range)
|
||||
@@ -356,3 +383,16 @@ def parse_range(range)
|
||||
|
||||
return 0_i64, nil
|
||||
end
|
||||
|
||||
def convert_theme(theme)
|
||||
case theme
|
||||
when "true"
|
||||
"dark"
|
||||
when "false"
|
||||
"light"
|
||||
when "", nil
|
||||
nil
|
||||
else
|
||||
theme
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,14 +19,13 @@ struct Mix
|
||||
end
|
||||
|
||||
def fetch_mix(rdid, video_id, cookies = nil, locale = nil)
|
||||
client = make_client(YT_URL)
|
||||
headers = HTTP::Headers.new
|
||||
headers["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
|
||||
headers["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"
|
||||
|
||||
if cookies
|
||||
headers = cookies.add_request_headers(headers)
|
||||
end
|
||||
response = client.get("/watch?v=#{video_id}&list=#{rdid}&gl=US&hl=en&has_verified=1&bpctr=9999999999", headers)
|
||||
response = YT_POOL.client &.get("/watch?v=#{video_id}&list=#{rdid}&gl=US&hl=en&has_verified=1&bpctr=9999999999", headers)
|
||||
|
||||
initial_data = extract_initial_data(response.body)
|
||||
|
||||
|
||||
@@ -1,5 +1,51 @@
|
||||
struct PlaylistVideo
|
||||
def to_json(locale, config, kemal_config, json : JSON::Builder)
|
||||
def to_xml(host_url, auto_generated, xml : XML::Builder)
|
||||
xml.element("entry") do
|
||||
xml.element("id") { xml.text "yt:video:#{self.id}" }
|
||||
xml.element("yt:videoId") { xml.text self.id }
|
||||
xml.element("yt:channelId") { xml.text self.ucid }
|
||||
xml.element("title") { xml.text self.title }
|
||||
xml.element("link", rel: "alternate", href: "#{host_url}/watch?v=#{self.id}")
|
||||
|
||||
xml.element("author") do
|
||||
if auto_generated
|
||||
xml.element("name") { xml.text self.author }
|
||||
xml.element("uri") { xml.text "#{host_url}/channel/#{self.ucid}" }
|
||||
else
|
||||
xml.element("name") { xml.text author }
|
||||
xml.element("uri") { xml.text "#{host_url}/channel/#{ucid}" }
|
||||
end
|
||||
end
|
||||
|
||||
xml.element("content", type: "xhtml") do
|
||||
xml.element("div", xmlns: "http://www.w3.org/1999/xhtml") do
|
||||
xml.element("a", href: "#{host_url}/watch?v=#{self.id}") do
|
||||
xml.element("img", src: "#{host_url}/vi/#{self.id}/mqdefault.jpg")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
xml.element("published") { xml.text self.published.to_s("%Y-%m-%dT%H:%M:%S%:z") }
|
||||
|
||||
xml.element("media:group") do
|
||||
xml.element("media:title") { xml.text self.title }
|
||||
xml.element("media:thumbnail", url: "#{host_url}/vi/#{self.id}/mqdefault.jpg",
|
||||
width: "320", height: "180")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def to_xml(host_url, auto_generated, xml : XML::Builder? = nil)
|
||||
if xml
|
||||
to_xml(host_url, auto_generated, xml)
|
||||
else
|
||||
XML.build do |json|
|
||||
to_xml(host_url, auto_generated, xml)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def to_json(locale, config, kemal_config, json : JSON::Builder, index : Int32?)
|
||||
json.object do
|
||||
json.field "title", self.title
|
||||
json.field "videoId", self.id
|
||||
@@ -12,17 +58,23 @@ struct PlaylistVideo
|
||||
generate_thumbnails(json, self.id, config, kemal_config)
|
||||
end
|
||||
|
||||
json.field "index", self.index
|
||||
if index
|
||||
json.field "index", index
|
||||
json.field "indexId", self.index.to_u64.to_s(16).upcase
|
||||
else
|
||||
json.field "index", self.index
|
||||
end
|
||||
|
||||
json.field "lengthSeconds", self.length_seconds
|
||||
end
|
||||
end
|
||||
|
||||
def to_json(locale, config, kemal_config, json : JSON::Builder | Nil = nil)
|
||||
def to_json(locale, config, kemal_config, json : JSON::Builder? = nil, index : Int32? = nil)
|
||||
if json
|
||||
to_json(locale, config, kemal_config, json)
|
||||
to_json(locale, config, kemal_config, json, index: index)
|
||||
else
|
||||
JSON.build do |json|
|
||||
to_json(locale, config, kemal_config, json)
|
||||
to_json(locale, config, kemal_config, json, index: index)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -35,12 +87,66 @@ struct PlaylistVideo
|
||||
length_seconds: Int32,
|
||||
published: Time,
|
||||
plid: String,
|
||||
index: Int32,
|
||||
index: Int64,
|
||||
live_now: Bool,
|
||||
})
|
||||
end
|
||||
|
||||
struct Playlist
|
||||
def to_json(offset, locale, config, kemal_config, json : JSON::Builder, continuation : String? = nil)
|
||||
json.object do
|
||||
json.field "type", "playlist"
|
||||
json.field "title", self.title
|
||||
json.field "playlistId", self.id
|
||||
json.field "playlistThumbnail", self.thumbnail
|
||||
|
||||
json.field "author", self.author
|
||||
json.field "authorId", self.ucid
|
||||
json.field "authorUrl", "/channel/#{self.ucid}"
|
||||
|
||||
json.field "authorThumbnails" do
|
||||
json.array do
|
||||
qualities = {32, 48, 76, 100, 176, 512}
|
||||
|
||||
qualities.each do |quality|
|
||||
json.object do
|
||||
json.field "url", self.author_thumbnail.not_nil!.gsub(/=\d+/, "=s#{quality}")
|
||||
json.field "width", quality
|
||||
json.field "height", quality
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
json.field "description", html_to_content(self.description_html)
|
||||
json.field "descriptionHtml", self.description_html
|
||||
json.field "videoCount", self.video_count
|
||||
|
||||
json.field "viewCount", self.views
|
||||
json.field "updated", self.updated.to_unix
|
||||
json.field "isListed", self.privacy.public?
|
||||
|
||||
json.field "videos" do
|
||||
json.array do
|
||||
videos = get_playlist_videos(PG_DB, self, offset: offset, locale: locale, continuation: continuation)
|
||||
videos.each_with_index do |video, index|
|
||||
video.to_json(locale, config, Kemal.config, json)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def to_json(offset, locale, config, kemal_config, json : JSON::Builder? = nil, continuation : String? = nil)
|
||||
if json
|
||||
to_json(offset, locale, config, kemal_config, json, continuation: continuation)
|
||||
else
|
||||
JSON.build do |json|
|
||||
to_json(offset, locale, config, kemal_config, json, continuation: continuation)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
db_mapping({
|
||||
title: String,
|
||||
id: String,
|
||||
@@ -51,58 +157,124 @@ struct Playlist
|
||||
video_count: Int32,
|
||||
views: Int64,
|
||||
updated: Time,
|
||||
thumbnail: String?,
|
||||
})
|
||||
|
||||
def privacy
|
||||
PlaylistPrivacy::Public
|
||||
end
|
||||
end
|
||||
|
||||
def fetch_playlist_videos(plid, page, video_count, continuation = nil, locale = nil)
|
||||
client = make_client(YT_URL)
|
||||
enum PlaylistPrivacy
|
||||
Public = 0
|
||||
Unlisted = 1
|
||||
Private = 2
|
||||
end
|
||||
|
||||
if continuation
|
||||
html = client.get("/watch?v=#{continuation}&list=#{plid}&gl=US&hl=en&disable_polymer=1&has_verified=1&bpctr=9999999999")
|
||||
html = XML.parse_html(html.body)
|
||||
struct InvidiousPlaylist
|
||||
def to_json(offset, locale, config, kemal_config, json : JSON::Builder, continuation : String? = nil)
|
||||
json.object do
|
||||
json.field "type", "invidiousPlaylist"
|
||||
json.field "title", self.title
|
||||
json.field "playlistId", self.id
|
||||
|
||||
index = html.xpath_node(%q(//span[@id="playlist-current-index"])).try &.content.to_i?
|
||||
if index
|
||||
index -= 1
|
||||
end
|
||||
index ||= 0
|
||||
else
|
||||
index = (page - 1) * 100
|
||||
end
|
||||
json.field "author", self.author
|
||||
json.field "authorId", self.ucid
|
||||
json.field "authorUrl", nil
|
||||
json.field "authorThumbnails", [] of String
|
||||
|
||||
if video_count > 100
|
||||
url = produce_playlist_url(plid, index)
|
||||
json.field "description", html_to_content(self.description_html)
|
||||
json.field "descriptionHtml", self.description_html
|
||||
json.field "videoCount", self.video_count
|
||||
|
||||
response = client.get(url)
|
||||
response = JSON.parse(response.body)
|
||||
if !response["content_html"]? || response["content_html"].as_s.empty?
|
||||
raise translate(locale, "Empty playlist")
|
||||
end
|
||||
json.field "viewCount", self.views
|
||||
json.field "updated", self.updated.to_unix
|
||||
json.field "isListed", self.privacy.public?
|
||||
|
||||
document = XML.parse_html(response["content_html"].as_s)
|
||||
nodeset = document.xpath_nodes(%q(.//tr[contains(@class, "pl-video")]))
|
||||
videos = extract_playlist(plid, nodeset, index)
|
||||
else
|
||||
# Playlist has less than one page of videos, so subsequent pages will be empty
|
||||
if page > 1
|
||||
videos = [] of PlaylistVideo
|
||||
else
|
||||
# Extract first page of videos
|
||||
response = client.get("/playlist?list=#{plid}&gl=US&hl=en&disable_polymer=1")
|
||||
document = XML.parse_html(response.body)
|
||||
nodeset = document.xpath_nodes(%q(.//tr[contains(@class, "pl-video")]))
|
||||
|
||||
videos = extract_playlist(plid, nodeset, 0)
|
||||
|
||||
if continuation
|
||||
until videos[0].id == continuation
|
||||
videos.shift
|
||||
json.field "videos" do
|
||||
json.array do
|
||||
videos = get_playlist_videos(PG_DB, self, offset: offset, locale: locale, continuation: continuation)
|
||||
videos.each_with_index do |video, index|
|
||||
video.to_json(locale, config, Kemal.config, json, offset + index)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return videos
|
||||
def to_json(offset, locale, config, kemal_config, json : JSON::Builder? = nil, continuation : String? = nil)
|
||||
if json
|
||||
to_json(offset, locale, config, kemal_config, json, continuation: continuation)
|
||||
else
|
||||
JSON.build do |json|
|
||||
to_json(offset, locale, config, kemal_config, json, continuation: continuation)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
property thumbnail_id
|
||||
|
||||
module PlaylistPrivacyConverter
|
||||
def self.from_rs(rs)
|
||||
return PlaylistPrivacy.parse(String.new(rs.read(Slice(UInt8))))
|
||||
end
|
||||
end
|
||||
|
||||
db_mapping({
|
||||
title: String,
|
||||
id: String,
|
||||
author: String,
|
||||
description: {type: String, default: ""},
|
||||
video_count: Int32,
|
||||
created: Time,
|
||||
updated: Time,
|
||||
privacy: {type: PlaylistPrivacy, default: PlaylistPrivacy::Private, converter: PlaylistPrivacyConverter},
|
||||
index: Array(Int64),
|
||||
})
|
||||
|
||||
def thumbnail
|
||||
@thumbnail_id ||= PG_DB.query_one?("SELECT id FROM playlist_videos WHERE plid = $1 ORDER BY array_position($2, index) LIMIT 1", self.id, self.index, as: String) || "-----------"
|
||||
"/vi/#{@thumbnail_id}/mqdefault.jpg"
|
||||
end
|
||||
|
||||
def author_thumbnail
|
||||
nil
|
||||
end
|
||||
|
||||
def ucid
|
||||
nil
|
||||
end
|
||||
|
||||
def views
|
||||
0_i64
|
||||
end
|
||||
|
||||
def description_html
|
||||
HTML.escape(self.description).gsub("\n", "<br>")
|
||||
end
|
||||
end
|
||||
|
||||
def create_playlist(db, title, privacy, user)
|
||||
plid = "IVPL#{Random::Secure.urlsafe_base64(24)[0, 31]}"
|
||||
|
||||
playlist = InvidiousPlaylist.new(
|
||||
title: title.byte_slice(0, 150),
|
||||
id: plid,
|
||||
author: user.email,
|
||||
description: "", # Max 5000 characters
|
||||
video_count: 0,
|
||||
created: Time.utc,
|
||||
updated: Time.utc,
|
||||
privacy: privacy,
|
||||
index: [] of Int64,
|
||||
)
|
||||
|
||||
playlist_array = playlist.to_a
|
||||
args = arg_array(playlist_array)
|
||||
|
||||
db.exec("INSERT INTO playlists VALUES (#{args})", args: playlist_array)
|
||||
|
||||
return playlist
|
||||
end
|
||||
|
||||
def extract_playlist(plid, nodeset, index)
|
||||
@@ -143,7 +315,7 @@ def extract_playlist(plid, nodeset, index)
|
||||
length_seconds: length_seconds,
|
||||
published: Time.utc,
|
||||
plid: plid,
|
||||
index: index + offset,
|
||||
index: (index + offset).to_i64,
|
||||
live_now: live_now
|
||||
)
|
||||
end
|
||||
@@ -155,58 +327,48 @@ def produce_playlist_url(id, index)
|
||||
if id.starts_with? "UC"
|
||||
id = "UU" + id.lchop("UC")
|
||||
end
|
||||
ucid = "VL" + id
|
||||
plid = "VL" + id
|
||||
|
||||
data = IO::Memory.new
|
||||
data.write_byte 0x08
|
||||
VarInt.to_io(data, index)
|
||||
data = {"1:varint" => index.to_i64}
|
||||
.try { |i| Protodec::Any.cast_json(i) }
|
||||
.try { |i| Protodec::Any.from_json(i) }
|
||||
.try { |i| Base64.urlsafe_encode(i, padding: false) }
|
||||
|
||||
data.rewind
|
||||
data = Base64.urlsafe_encode(data, false)
|
||||
data = "PT:#{data}"
|
||||
object = {
|
||||
"80226972:embedded" => {
|
||||
"2:string" => plid,
|
||||
"3:base64" => {
|
||||
"15:string" => "PT:#{data}",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
continuation = IO::Memory.new
|
||||
continuation.write_byte 0x7a
|
||||
VarInt.to_io(continuation, data.bytesize)
|
||||
continuation.print data
|
||||
continuation = object.try { |i| Protodec::Any.cast_json(object) }
|
||||
.try { |i| Protodec::Any.from_json(i) }
|
||||
.try { |i| Base64.urlsafe_encode(i) }
|
||||
.try { |i| URI.encode_www_form(i) }
|
||||
|
||||
data = Base64.urlsafe_encode(continuation)
|
||||
cursor = URI.escape(data)
|
||||
return "/browse_ajax?continuation=#{continuation}&gl=US&hl=en"
|
||||
end
|
||||
|
||||
data = IO::Memory.new
|
||||
|
||||
data.write_byte 0x12
|
||||
VarInt.to_io(data, ucid.bytesize)
|
||||
data.print ucid
|
||||
|
||||
data.write_byte 0x1a
|
||||
VarInt.to_io(data, cursor.bytesize)
|
||||
data.print cursor
|
||||
|
||||
data.rewind
|
||||
|
||||
buffer = IO::Memory.new
|
||||
buffer.write Bytes[0xe2, 0xa9, 0x85, 0xb2, 0x02]
|
||||
VarInt.to_io(buffer, data.bytesize)
|
||||
|
||||
IO.copy data, buffer
|
||||
|
||||
continuation = Base64.urlsafe_encode(buffer)
|
||||
continuation = URI.escape(continuation)
|
||||
|
||||
url = "/browse_ajax?continuation=#{continuation}&gl=US&hl=en"
|
||||
|
||||
return url
|
||||
def get_playlist(db, plid, locale, refresh = true, force_refresh = false)
|
||||
if plid.starts_with? "IV"
|
||||
if playlist = db.query_one?("SELECT * FROM playlists WHERE id = $1", plid, as: InvidiousPlaylist)
|
||||
return playlist
|
||||
else
|
||||
raise "Playlist does not exist."
|
||||
end
|
||||
else
|
||||
return fetch_playlist(plid, locale)
|
||||
end
|
||||
end
|
||||
|
||||
def fetch_playlist(plid, locale)
|
||||
client = make_client(YT_URL)
|
||||
|
||||
if plid.starts_with? "UC"
|
||||
plid = "UU#{plid.lchop("UC")}"
|
||||
end
|
||||
|
||||
response = client.get("/playlist?list=#{plid}&hl=en&disable_polymer=1")
|
||||
response = YT_POOL.client &.get("/playlist?list=#{plid}&hl=en&disable_polymer=1")
|
||||
if response.status_code != 200
|
||||
raise translate(locale, "Not a playlist.")
|
||||
end
|
||||
@@ -223,6 +385,9 @@ def fetch_playlist(plid, locale)
|
||||
description_html = document.xpath_node(%q(//span[@class="pl-header-description-text"]/div/div[1])).try &.to_s ||
|
||||
document.xpath_node(%q(//span[@class="pl-header-description-text"])).try &.to_s || ""
|
||||
|
||||
playlist_thumbnail = document.xpath_node(%q(//div[@class="pl-header-thumb"]/img)).try &.["data-thumb"]? ||
|
||||
document.xpath_node(%q(//div[@class="pl-header-thumb"]/img)).try &.["src"]
|
||||
|
||||
# YouTube allows anonymous playlists, so most of this can be empty or optional
|
||||
anchor = document.xpath_node(%q(//ul[@class="pl-header-details"]))
|
||||
author = anchor.try &.xpath_node(%q(.//li[1]/a)).try &.content
|
||||
@@ -234,15 +399,12 @@ def fetch_playlist(plid, locale)
|
||||
|
||||
video_count = anchor.try &.xpath_node(%q(.//li[2])).try &.content.gsub(/\D/, "").to_i?
|
||||
video_count ||= 0
|
||||
views = anchor.try &.xpath_node(%q(.//li[3])).try &.content.delete("No views, ").to_i64?
|
||||
|
||||
views = anchor.try &.xpath_node(%q(.//li[3])).try &.content.gsub(/\D/, "").to_i64?
|
||||
views ||= 0_i64
|
||||
|
||||
updated = anchor.try &.xpath_node(%q(.//li[4])).try &.content.lchop("Last updated on ").lchop("Updated ")
|
||||
if updated
|
||||
updated = decode_date(updated)
|
||||
else
|
||||
updated = Time.utc
|
||||
end
|
||||
updated = anchor.try &.xpath_node(%q(.//li[4])).try &.content.lchop("Last updated on ").lchop("Updated ").try { |date| decode_date(date) }
|
||||
updated ||= Time.utc
|
||||
|
||||
playlist = Playlist.new(
|
||||
title: title,
|
||||
@@ -253,12 +415,64 @@ def fetch_playlist(plid, locale)
|
||||
description_html: description_html,
|
||||
video_count: video_count,
|
||||
views: views,
|
||||
updated: updated
|
||||
updated: updated,
|
||||
thumbnail: playlist_thumbnail,
|
||||
)
|
||||
|
||||
return playlist
|
||||
end
|
||||
|
||||
def get_playlist_videos(db, playlist, offset, locale = nil, continuation = nil)
|
||||
if playlist.is_a? InvidiousPlaylist
|
||||
if !offset
|
||||
index = PG_DB.query_one?("SELECT index FROM playlist_videos WHERE plid = $1 AND id = $2 LIMIT 1", playlist.id, continuation, as: Int64)
|
||||
offset = playlist.index.index(index) || 0
|
||||
end
|
||||
|
||||
db.query_all("SELECT * FROM playlist_videos WHERE plid = $1 ORDER BY array_position($2, index) LIMIT 100 OFFSET $3", playlist.id, playlist.index, offset, as: PlaylistVideo)
|
||||
else
|
||||
fetch_playlist_videos(playlist.id, playlist.video_count, offset, locale, continuation)
|
||||
end
|
||||
end
|
||||
|
||||
def fetch_playlist_videos(plid, video_count, offset = 0, locale = nil, continuation = nil)
|
||||
if continuation
|
||||
html = YT_POOL.client &.get("/watch?v=#{continuation}&list=#{plid}&gl=US&hl=en&disable_polymer=1&has_verified=1&bpctr=9999999999")
|
||||
html = XML.parse_html(html.body)
|
||||
|
||||
index = html.xpath_node(%q(//span[@id="playlist-current-index"])).try &.content.to_i?.try &.- 1
|
||||
offset = index || offset
|
||||
end
|
||||
|
||||
if video_count > 100
|
||||
url = produce_playlist_url(plid, offset)
|
||||
|
||||
response = YT_POOL.client &.get(url)
|
||||
response = JSON.parse(response.body)
|
||||
if !response["content_html"]? || response["content_html"].as_s.empty?
|
||||
raise translate(locale, "Empty playlist")
|
||||
end
|
||||
|
||||
document = XML.parse_html(response["content_html"].as_s)
|
||||
nodeset = document.xpath_nodes(%q(.//tr[contains(@class, "pl-video")]))
|
||||
videos = extract_playlist(plid, nodeset, offset)
|
||||
elsif offset > 100
|
||||
return [] of PlaylistVideo
|
||||
else # Extract first page of videos
|
||||
response = YT_POOL.client &.get("/playlist?list=#{plid}&gl=US&hl=en&disable_polymer=1")
|
||||
document = XML.parse_html(response.body)
|
||||
nodeset = document.xpath_nodes(%q(.//tr[contains(@class, "pl-video")]))
|
||||
|
||||
videos = extract_playlist(plid, nodeset, 0)
|
||||
end
|
||||
|
||||
until videos.empty? || videos[0].index == offset
|
||||
videos.shift
|
||||
end
|
||||
|
||||
return videos
|
||||
end
|
||||
|
||||
def template_playlist(playlist)
|
||||
html = <<-END_HTML
|
||||
<h3>
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
struct SearchVideo
|
||||
def to_xml(host_url, auto_generated, xml : XML::Builder)
|
||||
def to_xml(host_url, auto_generated, query_params, xml : XML::Builder)
|
||||
query_params["v"] = self.id
|
||||
|
||||
xml.element("entry") do
|
||||
xml.element("id") { xml.text "yt:video:#{self.id}" }
|
||||
xml.element("yt:videoId") { xml.text self.id }
|
||||
xml.element("yt:channelId") { xml.text self.ucid }
|
||||
xml.element("title") { xml.text self.title }
|
||||
xml.element("link", rel: "alternate", href: "#{host_url}/watch?v=#{self.id}")
|
||||
xml.element("link", rel: "alternate", href: "#{host_url}/watch?#{query_params}")
|
||||
|
||||
xml.element("author") do
|
||||
if auto_generated
|
||||
@@ -19,9 +21,11 @@ struct SearchVideo
|
||||
|
||||
xml.element("content", type: "xhtml") do
|
||||
xml.element("div", xmlns: "http://www.w3.org/1999/xhtml") do
|
||||
xml.element("a", href: "#{host_url}/watch?v=#{self.id}") do
|
||||
xml.element("a", href: "#{host_url}/watch?#{query_params}") do
|
||||
xml.element("img", src: "#{host_url}/vi/#{self.id}/mqdefault.jpg")
|
||||
end
|
||||
|
||||
xml.element("p", style: "word-break:break-word;white-space:pre-wrap") { xml.text html_to_content(self.description_html) }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -40,12 +44,12 @@ struct SearchVideo
|
||||
end
|
||||
end
|
||||
|
||||
def to_xml(host_url, auto_generated, xml : XML::Builder | Nil = nil)
|
||||
def to_xml(host_url, auto_generated, query_params, xml : XML::Builder | Nil = nil)
|
||||
if xml
|
||||
to_xml(host_url, auto_generated, xml)
|
||||
to_xml(host_url, auto_generated, query_params, xml)
|
||||
else
|
||||
XML.build do |json|
|
||||
to_xml(host_url, auto_generated, xml)
|
||||
to_xml(host_url, auto_generated, query_params, xml)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -117,6 +121,7 @@ struct SearchPlaylist
|
||||
json.field "type", "playlist"
|
||||
json.field "title", self.title
|
||||
json.field "playlistId", self.id
|
||||
json.field "playlistThumbnail", self.thumbnail
|
||||
|
||||
json.field "author", self.author
|
||||
json.field "authorId", self.ucid
|
||||
@@ -152,13 +157,13 @@ struct SearchPlaylist
|
||||
end
|
||||
|
||||
db_mapping({
|
||||
title: String,
|
||||
id: String,
|
||||
author: String,
|
||||
ucid: String,
|
||||
video_count: Int32,
|
||||
videos: Array(SearchPlaylistVideo),
|
||||
thumbnail_id: String?,
|
||||
title: String,
|
||||
id: String,
|
||||
author: String,
|
||||
ucid: String,
|
||||
video_count: Int32,
|
||||
videos: Array(SearchPlaylistVideo),
|
||||
thumbnail: String?,
|
||||
})
|
||||
end
|
||||
|
||||
@@ -176,7 +181,7 @@ struct SearchChannel
|
||||
|
||||
qualities.each do |quality|
|
||||
json.object do
|
||||
json.field "url", self.author_thumbnail.gsub("=s176-", "=s#{quality}-")
|
||||
json.field "url", self.author_thumbnail.gsub(/=\d+/, "=s#{quality}")
|
||||
json.field "width", quality
|
||||
json.field "height", quality
|
||||
end
|
||||
@@ -184,8 +189,10 @@ struct SearchChannel
|
||||
end
|
||||
end
|
||||
|
||||
json.field "autoGenerated", self.auto_generated
|
||||
json.field "subCount", self.subscriber_count
|
||||
json.field "videoCount", self.video_count
|
||||
|
||||
json.field "description", html_to_content(self.description_html)
|
||||
json.field "descriptionHtml", self.description_html
|
||||
end
|
||||
@@ -208,26 +215,25 @@ struct SearchChannel
|
||||
subscriber_count: Int32,
|
||||
video_count: Int32,
|
||||
description_html: String,
|
||||
auto_generated: Bool,
|
||||
})
|
||||
end
|
||||
|
||||
alias SearchItem = SearchVideo | SearchChannel | SearchPlaylist
|
||||
|
||||
def channel_search(query, page, channel)
|
||||
client = make_client(YT_URL)
|
||||
|
||||
response = client.get("/channel/#{channel}?disable_polymer=1&hl=en&gl=US")
|
||||
response = YT_POOL.client &.get("/channel/#{channel}?disable_polymer=1&hl=en&gl=US")
|
||||
document = XML.parse_html(response.body)
|
||||
canonical = document.xpath_node(%q(//link[@rel="canonical"]))
|
||||
|
||||
if !canonical
|
||||
response = client.get("/c/#{channel}?disable_polymer=1&hl=en&gl=US")
|
||||
response = YT_POOL.client &.get("/c/#{channel}?disable_polymer=1&hl=en&gl=US")
|
||||
document = XML.parse_html(response.body)
|
||||
canonical = document.xpath_node(%q(//link[@rel="canonical"]))
|
||||
end
|
||||
|
||||
if !canonical
|
||||
response = client.get("/user/#{channel}?disable_polymer=1&hl=en&gl=US")
|
||||
response = YT_POOL.client &.get("/user/#{channel}?disable_polymer=1&hl=en&gl=US")
|
||||
document = XML.parse_html(response.body)
|
||||
canonical = document.xpath_node(%q(//link[@rel="canonical"]))
|
||||
end
|
||||
@@ -239,7 +245,7 @@ def channel_search(query, page, channel)
|
||||
ucid = canonical["href"].split("/")[-1]
|
||||
|
||||
url = produce_channel_search_url(ucid, query, page)
|
||||
response = client.get(url)
|
||||
response = YT_POOL.client &.get(url)
|
||||
json = JSON.parse(response.body)
|
||||
|
||||
if json["content_html"]? && !json["content_html"].as_s.empty?
|
||||
@@ -257,12 +263,11 @@ def channel_search(query, page, channel)
|
||||
end
|
||||
|
||||
def search(query, page = 1, search_params = produce_search_params(content_type: "all"), region = nil)
|
||||
client = make_client(YT_URL, region)
|
||||
if query.empty?
|
||||
return {0, [] of SearchItem}
|
||||
end
|
||||
|
||||
html = client.get("/results?q=#{URI.escape(query)}&page=#{page}&sp=#{search_params}&hl=en&disable_polymer=1").body
|
||||
html = YT_POOL.client(region, &.get("/results?q=#{URI.encode_www_form(query)}&page=#{page}&sp=#{search_params}&hl=en&disable_polymer=1").body)
|
||||
if html.empty?
|
||||
return {0, [] of SearchItem}
|
||||
end
|
||||
@@ -276,149 +281,188 @@ end
|
||||
|
||||
def produce_search_params(sort : String = "relevance", date : String = "", content_type : String = "",
|
||||
duration : String = "", features : Array(String) = [] of String)
|
||||
head = "\x08"
|
||||
head += case sort
|
||||
when "relevance"
|
||||
"\x00"
|
||||
when "rating"
|
||||
"\x01"
|
||||
when "upload_date", "date"
|
||||
"\x02"
|
||||
when "view_count", "views"
|
||||
"\x03"
|
||||
else
|
||||
raise "No sort #{sort}"
|
||||
end
|
||||
object = {
|
||||
"1:varint" => 0_i64,
|
||||
"2:embedded" => {} of String => Int64,
|
||||
}
|
||||
|
||||
body = ""
|
||||
body += case date
|
||||
when "hour"
|
||||
"\x08\x01"
|
||||
when "today"
|
||||
"\x08\x02"
|
||||
when "week"
|
||||
"\x08\x03"
|
||||
when "month"
|
||||
"\x08\x04"
|
||||
when "year"
|
||||
"\x08\x05"
|
||||
else
|
||||
""
|
||||
end
|
||||
case sort
|
||||
when "relevance"
|
||||
object["1:varint"] = 0_i64
|
||||
when "rating"
|
||||
object["1:varint"] = 1_i64
|
||||
when "upload_date", "date"
|
||||
object["1:varint"] = 2_i64
|
||||
when "view_count", "views"
|
||||
object["1:varint"] = 3_i64
|
||||
else
|
||||
raise "No sort #{sort}"
|
||||
end
|
||||
|
||||
body += case content_type
|
||||
when "video"
|
||||
"\x10\x01"
|
||||
when "channel"
|
||||
"\x10\x02"
|
||||
when "playlist"
|
||||
"\x10\x03"
|
||||
when "movie"
|
||||
"\x10\x04"
|
||||
when "show"
|
||||
"\x10\x05"
|
||||
when "all"
|
||||
""
|
||||
else
|
||||
"\x10\x01"
|
||||
end
|
||||
case date
|
||||
when "hour"
|
||||
object["2:embedded"].as(Hash)["1:varint"] = 1_i64
|
||||
when "today"
|
||||
object["2:embedded"].as(Hash)["1:varint"] = 2_i64
|
||||
when "week"
|
||||
object["2:embedded"].as(Hash)["1:varint"] = 3_i64
|
||||
when "month"
|
||||
object["2:embedded"].as(Hash)["1:varint"] = 4_i64
|
||||
when "year"
|
||||
object["2:embedded"].as(Hash)["1:varint"] = 5_i64
|
||||
else nil # Ignore
|
||||
end
|
||||
|
||||
body += case duration
|
||||
when "short"
|
||||
"\x18\x01"
|
||||
when "long"
|
||||
"\x18\x02"
|
||||
else
|
||||
""
|
||||
end
|
||||
case content_type
|
||||
when "video"
|
||||
object["2:embedded"].as(Hash)["2:varint"] = 1_i64
|
||||
when "channel"
|
||||
object["2:embedded"].as(Hash)["2:varint"] = 2_i64
|
||||
when "playlist"
|
||||
object["2:embedded"].as(Hash)["2:varint"] = 3_i64
|
||||
when "movie"
|
||||
object["2:embedded"].as(Hash)["2:varint"] = 4_i64
|
||||
when "show"
|
||||
object["2:embedded"].as(Hash)["2:varint"] = 5_i64
|
||||
when "all"
|
||||
#
|
||||
else
|
||||
object["2:embedded"].as(Hash)["2:varint"] = 1_i64
|
||||
end
|
||||
|
||||
case duration
|
||||
when "short"
|
||||
object["2:embedded"].as(Hash)["3:varint"] = 1_i64
|
||||
when "long"
|
||||
object["2:embedded"].as(Hash)["3:varint"] = 2_i64
|
||||
else nil # Ignore
|
||||
end
|
||||
|
||||
features.each do |feature|
|
||||
body += case feature
|
||||
when "hd"
|
||||
"\x20\x01"
|
||||
when "subtitles"
|
||||
"\x28\x01"
|
||||
when "creative_commons", "cc"
|
||||
"\x30\x01"
|
||||
when "3d"
|
||||
"\x38\x01"
|
||||
when "live", "livestream"
|
||||
"\x40\x01"
|
||||
when "purchased"
|
||||
"\x48\x01"
|
||||
when "4k"
|
||||
"\x70\x01"
|
||||
when "360"
|
||||
"\x78\x01"
|
||||
when "location"
|
||||
"\xb8\x01\x01"
|
||||
when "hdr"
|
||||
"\xc8\x01\x01"
|
||||
else
|
||||
raise "Unknown feature #{feature}"
|
||||
end
|
||||
case feature
|
||||
when "hd"
|
||||
object["2:embedded"].as(Hash)["4:varint"] = 1_i64
|
||||
when "subtitles"
|
||||
object["2:embedded"].as(Hash)["5:varint"] = 1_i64
|
||||
when "creative_commons", "cc"
|
||||
object["2:embedded"].as(Hash)["6:varint"] = 1_i64
|
||||
when "3d"
|
||||
object["2:embedded"].as(Hash)["7:varint"] = 1_i64
|
||||
when "live", "livestream"
|
||||
object["2:embedded"].as(Hash)["8:varint"] = 1_i64
|
||||
when "purchased"
|
||||
object["2:embedded"].as(Hash)["9:varint"] = 1_i64
|
||||
when "4k"
|
||||
object["2:embedded"].as(Hash)["14:varint"] = 1_i64
|
||||
when "360"
|
||||
object["2:embedded"].as(Hash)["15:varint"] = 1_i64
|
||||
when "location"
|
||||
object["2:embedded"].as(Hash)["23:varint"] = 1_i64
|
||||
when "hdr"
|
||||
object["2:embedded"].as(Hash)["25:varint"] = 1_i64
|
||||
else nil # Ignore
|
||||
end
|
||||
end
|
||||
|
||||
if !body.empty?
|
||||
token = head + "\x12" + body.size.unsafe_chr + body
|
||||
else
|
||||
token = head
|
||||
if object["2:embedded"].as(Hash).empty?
|
||||
object.delete("2:embedded")
|
||||
end
|
||||
|
||||
token = Base64.urlsafe_encode(token)
|
||||
token = URI.escape(token)
|
||||
params = object.try { |i| Protodec::Any.cast_json(object) }
|
||||
.try { |i| Protodec::Any.from_json(i) }
|
||||
.try { |i| Base64.urlsafe_encode(i) }
|
||||
.try { |i| URI.encode_www_form(i) }
|
||||
|
||||
return token
|
||||
return params
|
||||
end
|
||||
|
||||
def produce_channel_search_url(ucid, query, page)
|
||||
page = "#{page}"
|
||||
object = {
|
||||
"80226972:embedded" => {
|
||||
"2:string" => ucid,
|
||||
"3:base64" => {
|
||||
"2:string" => "search",
|
||||
"6:varint" => 2_i64,
|
||||
"7:varint" => 1_i64,
|
||||
"12:varint" => 1_i64,
|
||||
"13:string" => "",
|
||||
"23:varint" => 0_i64,
|
||||
"15:string" => "#{page}",
|
||||
},
|
||||
"11:string" => query,
|
||||
},
|
||||
}
|
||||
|
||||
data = IO::Memory.new
|
||||
data.write_byte 0x12
|
||||
data.write_byte 0x06
|
||||
data.print "search"
|
||||
continuation = object.try { |i| Protodec::Any.cast_json(object) }
|
||||
.try { |i| Protodec::Any.from_json(i) }
|
||||
.try { |i| Base64.urlsafe_encode(i) }
|
||||
.try { |i| URI.encode_www_form(i) }
|
||||
|
||||
data.write Bytes[0x30, 0x02]
|
||||
data.write Bytes[0x38, 0x01]
|
||||
data.write Bytes[0x60, 0x01]
|
||||
data.write Bytes[0x6a, 0x00]
|
||||
data.write Bytes[0xb8, 0x01, 0x00]
|
||||
|
||||
data.write_byte 0x7a
|
||||
VarInt.to_io(data, page.bytesize)
|
||||
data.print page
|
||||
|
||||
data.rewind
|
||||
data = Base64.urlsafe_encode(data)
|
||||
continuation = URI.escape(data)
|
||||
|
||||
data = IO::Memory.new
|
||||
|
||||
data.write_byte 0x12
|
||||
VarInt.to_io(data, ucid.bytesize)
|
||||
data.print ucid
|
||||
|
||||
data.write_byte 0x1a
|
||||
VarInt.to_io(data, continuation.bytesize)
|
||||
data.print continuation
|
||||
|
||||
data.write_byte 0x5a
|
||||
VarInt.to_io(data, query.bytesize)
|
||||
data.print query
|
||||
|
||||
data.rewind
|
||||
|
||||
buffer = IO::Memory.new
|
||||
buffer.write Bytes[0xe2, 0xa9, 0x85, 0xb2, 0x02]
|
||||
VarInt.to_io(buffer, data.bytesize)
|
||||
|
||||
IO.copy data, buffer
|
||||
|
||||
continuation = Base64.urlsafe_encode(buffer)
|
||||
continuation = URI.escape(continuation)
|
||||
|
||||
url = "/browse_ajax?continuation=#{continuation}&gl=US&hl=en"
|
||||
|
||||
return url
|
||||
return "/browse_ajax?continuation=#{continuation}&gl=US&hl=en"
|
||||
end
|
||||
|
||||
def process_search_query(query, page, user, region)
|
||||
if user
|
||||
user = user.as(User)
|
||||
view_name = "subscriptions_#{sha256(user.email)}"
|
||||
end
|
||||
|
||||
channel = nil
|
||||
content_type = "all"
|
||||
date = ""
|
||||
duration = ""
|
||||
features = [] of String
|
||||
sort = "relevance"
|
||||
subscriptions = nil
|
||||
|
||||
operators = query.split(" ").select { |a| a.match(/\w+:[\w,]+/) }
|
||||
operators.each do |operator|
|
||||
key, value = operator.downcase.split(":")
|
||||
|
||||
case key
|
||||
when "channel", "user"
|
||||
channel = operator.split(":")[-1]
|
||||
when "content_type", "type"
|
||||
content_type = value
|
||||
when "date"
|
||||
date = value
|
||||
when "duration"
|
||||
duration = value
|
||||
when "feature", "features"
|
||||
features = value.split(",")
|
||||
when "sort"
|
||||
sort = value
|
||||
when "subscriptions"
|
||||
subscriptions = value == "true"
|
||||
else
|
||||
operators.delete(operator)
|
||||
end
|
||||
end
|
||||
|
||||
search_query = (query.split(" ") - operators).join(" ")
|
||||
|
||||
if channel
|
||||
count, items = channel_search(search_query, page, channel)
|
||||
elsif subscriptions
|
||||
if view_name
|
||||
items = PG_DB.query_all("SELECT id,title,published,updated,ucid,author,length_seconds FROM (
|
||||
SELECT *,
|
||||
to_tsvector(#{view_name}.title) ||
|
||||
to_tsvector(#{view_name}.author)
|
||||
as document
|
||||
FROM #{view_name}
|
||||
) v_search WHERE v_search.document @@ plainto_tsquery($1) LIMIT 20 OFFSET $2;", search_query, (page - 1) * 20, as: ChannelVideo)
|
||||
count = items.size
|
||||
else
|
||||
items = [] of ChannelVideo
|
||||
count = 0
|
||||
end
|
||||
else
|
||||
search_params = produce_search_params(sort: sort, date: date, content_type: content_type,
|
||||
duration: duration, features: features)
|
||||
|
||||
count, items = search(search_query, page, search_params, region).as(Tuple)
|
||||
end
|
||||
|
||||
{search_query, count, items}
|
||||
end
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
def fetch_trending(trending_type, region, locale)
|
||||
client = make_client(YT_URL)
|
||||
headers = HTTP::Headers.new
|
||||
headers["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"
|
||||
headers["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"
|
||||
|
||||
region ||= "US"
|
||||
region = region.upcase
|
||||
@@ -12,7 +11,7 @@ def fetch_trending(trending_type, region, locale)
|
||||
if trending_type && trending_type != "Default"
|
||||
trending_type = trending_type.downcase.capitalize
|
||||
|
||||
response = client.get("/feed/trending?gl=#{region}&hl=en", headers).body
|
||||
response = YT_POOL.client &.get("/feed/trending?gl=#{region}&hl=en", headers).body
|
||||
|
||||
initial_data = extract_initial_data(response)
|
||||
|
||||
@@ -23,13 +22,13 @@ def fetch_trending(trending_type, region, locale)
|
||||
url["channelListSubMenuAvatarRenderer"]["navigationEndpoint"]["commandMetadata"]["webCommandMetadata"]["url"]
|
||||
url = url["channelListSubMenuAvatarRenderer"]["navigationEndpoint"]["commandMetadata"]["webCommandMetadata"]["url"].as_s
|
||||
url += "&disable_polymer=1&gl=#{region}&hl=en"
|
||||
trending = client.get(url).body
|
||||
trending = YT_POOL.client &.get(url).body
|
||||
plid = extract_plid(url)
|
||||
else
|
||||
trending = client.get("/feed/trending?gl=#{region}&hl=en&disable_polymer=1").body
|
||||
trending = YT_POOL.client &.get("/feed/trending?gl=#{region}&hl=en&disable_polymer=1").body
|
||||
end
|
||||
else
|
||||
trending = client.get("/feed/trending?gl=#{region}&hl=en&disable_polymer=1").body
|
||||
trending = YT_POOL.client &.get("/feed/trending?gl=#{region}&hl=en&disable_polymer=1").body
|
||||
end
|
||||
|
||||
trending = XML.parse_html(trending)
|
||||
@@ -40,33 +39,13 @@ def fetch_trending(trending_type, region, locale)
|
||||
end
|
||||
|
||||
def extract_plid(url)
|
||||
wrapper = HTTP::Params.parse(URI.parse(url).query.not_nil!)["bp"]
|
||||
|
||||
wrapper = URI.unescape(wrapper)
|
||||
wrapper = Base64.decode(wrapper)
|
||||
|
||||
# 0xe2 0x02 0x2e
|
||||
wrapper += 3
|
||||
|
||||
# 0x0a
|
||||
wrapper += 1
|
||||
|
||||
# Looks like "/m/[a-z0-9]{5}", not sure what it does here
|
||||
|
||||
item_size = wrapper[0]
|
||||
wrapper += 1
|
||||
item = wrapper[0, item_size]
|
||||
wrapper += item.size
|
||||
|
||||
# 0x12
|
||||
wrapper += 1
|
||||
|
||||
plid_size = wrapper[0]
|
||||
wrapper += 1
|
||||
plid = wrapper[0, plid_size]
|
||||
wrapper += plid.size
|
||||
|
||||
plid = String.new(plid)
|
||||
plid = URI.parse(url)
|
||||
.try { |i| HTTP::Params.parse(i.query.not_nil!)["bp"] }
|
||||
.try { |i| URI.decode_www_form(i) }
|
||||
.try { |i| Base64.decode(i) }
|
||||
.try { |i| IO::Memory.new(i) }
|
||||
.try { |i| Protodec::Any.parse(i) }
|
||||
.try { |i| i["44:0:embedded"]["2:1:string"].as_s }
|
||||
|
||||
return plid
|
||||
end
|
||||
|
||||
@@ -31,62 +31,6 @@ struct User
|
||||
end
|
||||
|
||||
struct Preferences
|
||||
module StringToArray
|
||||
def self.to_json(value : Array(String), json : JSON::Builder)
|
||||
json.array do
|
||||
value.each do |element|
|
||||
json.string element
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def self.from_json(value : JSON::PullParser) : Array(String)
|
||||
begin
|
||||
result = [] of String
|
||||
value.read_array do
|
||||
result << HTML.escape(value.read_string[0, 100])
|
||||
end
|
||||
rescue ex
|
||||
result = [HTML.escape(value.read_string[0, 100]), ""]
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
def self.to_yaml(value : Array(String), yaml : YAML::Nodes::Builder)
|
||||
yaml.sequence do
|
||||
value.each do |element|
|
||||
yaml.scalar element
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def self.from_yaml(ctx : YAML::ParseContext, node : YAML::Nodes::Node) : Array(String)
|
||||
begin
|
||||
unless node.is_a?(YAML::Nodes::Sequence)
|
||||
node.raise "Expected sequence, not #{node.class}"
|
||||
end
|
||||
|
||||
result = [] of String
|
||||
node.nodes.each do |item|
|
||||
unless item.is_a?(YAML::Nodes::Scalar)
|
||||
node.raise "Expected scalar, not #{item.class}"
|
||||
end
|
||||
|
||||
result << HTML.escape(item.value[0, 100])
|
||||
end
|
||||
rescue ex
|
||||
if node.is_a?(YAML::Nodes::Scalar)
|
||||
result = [HTML.escape(node.value[0, 100]), ""]
|
||||
else
|
||||
result = ["", ""]
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
end
|
||||
|
||||
module ProcessString
|
||||
def self.to_json(value : String, json : JSON::Builder)
|
||||
json.string value
|
||||
@@ -127,19 +71,21 @@ struct Preferences
|
||||
annotations: {type: Bool, default: CONFIG.default_user_preferences.annotations},
|
||||
annotations_subscribed: {type: Bool, default: CONFIG.default_user_preferences.annotations_subscribed},
|
||||
autoplay: {type: Bool, default: CONFIG.default_user_preferences.autoplay},
|
||||
captions: {type: Array(String), default: CONFIG.default_user_preferences.captions, converter: StringToArray},
|
||||
comments: {type: Array(String), default: CONFIG.default_user_preferences.comments, converter: StringToArray},
|
||||
captions: {type: Array(String), default: CONFIG.default_user_preferences.captions, converter: ConfigPreferences::StringToArray},
|
||||
comments: {type: Array(String), default: CONFIG.default_user_preferences.comments, converter: ConfigPreferences::StringToArray},
|
||||
continue: {type: Bool, default: CONFIG.default_user_preferences.continue},
|
||||
continue_autoplay: {type: Bool, default: CONFIG.default_user_preferences.continue_autoplay},
|
||||
dark_mode: {type: Bool, default: CONFIG.default_user_preferences.dark_mode},
|
||||
dark_mode: {type: String, default: CONFIG.default_user_preferences.dark_mode, converter: ConfigPreferences::BoolToString},
|
||||
latest_only: {type: Bool, default: CONFIG.default_user_preferences.latest_only},
|
||||
listen: {type: Bool, default: CONFIG.default_user_preferences.listen},
|
||||
local: {type: Bool, default: CONFIG.default_user_preferences.local},
|
||||
locale: {type: String, default: CONFIG.default_user_preferences.locale, converter: ProcessString},
|
||||
max_results: {type: Int32, default: CONFIG.default_user_preferences.max_results, converter: ClampInt},
|
||||
notifications_only: {type: Bool, default: CONFIG.default_user_preferences.notifications_only},
|
||||
player_style: {type: String, default: CONFIG.default_user_preferences.player_style, converter: ProcessString},
|
||||
quality: {type: String, default: CONFIG.default_user_preferences.quality, converter: ProcessString},
|
||||
redirect_feed: {type: Bool, default: CONFIG.default_user_preferences.redirect_feed},
|
||||
default_home: {type: String, default: CONFIG.default_user_preferences.default_home},
|
||||
feed_menu: {type: Array(String), default: CONFIG.default_user_preferences.feed_menu},
|
||||
related_videos: {type: Bool, default: CONFIG.default_user_preferences.related_videos},
|
||||
sort: {type: String, default: CONFIG.default_user_preferences.sort, converter: ProcessString},
|
||||
speed: {type: Float32, default: CONFIG.default_user_preferences.speed},
|
||||
@@ -162,7 +108,7 @@ def get_user(sid, headers, db, refresh = true)
|
||||
args = arg_array(user_array)
|
||||
|
||||
db.exec("INSERT INTO users VALUES (#{args}) \
|
||||
ON CONFLICT (email) DO UPDATE SET updated = $1, subscriptions = $3", user_array)
|
||||
ON CONFLICT (email) DO UPDATE SET updated = $1, subscriptions = $3", args: user_array)
|
||||
|
||||
db.exec("INSERT INTO session_ids VALUES ($1,$2,$3) \
|
||||
ON CONFLICT (id) DO NOTHING", sid, user.email, Time.utc)
|
||||
@@ -181,7 +127,7 @@ def get_user(sid, headers, db, refresh = true)
|
||||
args = arg_array(user.to_a)
|
||||
|
||||
db.exec("INSERT INTO users VALUES (#{args}) \
|
||||
ON CONFLICT (email) DO UPDATE SET updated = $1, subscriptions = $3", user_array)
|
||||
ON CONFLICT (email) DO UPDATE SET updated = $1, subscriptions = $3", args: user_array)
|
||||
|
||||
db.exec("INSERT INTO session_ids VALUES ($1,$2,$3) \
|
||||
ON CONFLICT (id) DO NOTHING", sid, user.email, Time.utc)
|
||||
@@ -197,8 +143,7 @@ def get_user(sid, headers, db, refresh = true)
|
||||
end
|
||||
|
||||
def fetch_user(sid, headers, db)
|
||||
client = make_client(YT_URL)
|
||||
feed = client.get("/subscription_manager?disable_polymer=1", headers)
|
||||
feed = YT_POOL.client &.get("/subscription_manager?disable_polymer=1", headers)
|
||||
feed = XML.parse_html(feed.body)
|
||||
|
||||
channels = [] of String
|
||||
@@ -250,7 +195,7 @@ def generate_captcha(key, db)
|
||||
end
|
||||
|
||||
clock_svg = <<-END_SVG
|
||||
<svg viewBox="0 0 100 100" width="200px">
|
||||
<svg viewBox="0 0 100 100" width="200px" height="200px">
|
||||
<circle cx="50" cy="50" r="45" fill="#eee" stroke="black" stroke-width="2"></circle>
|
||||
|
||||
<text x="69" y="20.091" text-anchor="middle" fill="black" font-family="Arial" font-size="10px"> 1</text>
|
||||
@@ -274,7 +219,7 @@ def generate_captcha(key, db)
|
||||
END_SVG
|
||||
|
||||
image = ""
|
||||
convert = Process.run(%(convert -density 1200 -resize 400x400 -background none svg:- png:-), shell: true,
|
||||
convert = Process.run(%(rsvg-convert -w 400 -h 400 -b none -f png), shell: true,
|
||||
input: IO::Memory.new(clock_svg), output: Process::Redirect::Pipe) do |proc|
|
||||
image = proc.output.gets_to_end
|
||||
image = Base64.strict_encode(image)
|
||||
@@ -308,8 +253,7 @@ def subscribe_ajax(channel_id, action, env_headers)
|
||||
headers = HTTP::Headers.new
|
||||
headers["Cookie"] = env_headers["Cookie"]
|
||||
|
||||
client = make_client(YT_URL)
|
||||
html = client.get("/subscription_manager?disable_polymer=1", headers)
|
||||
html = YT_POOL.client &.get("/subscription_manager?disable_polymer=1", headers)
|
||||
|
||||
cookies = HTTP::Cookies.from_headers(headers)
|
||||
html.cookies.each do |cookie|
|
||||
@@ -333,10 +277,52 @@ def subscribe_ajax(channel_id, action, env_headers)
|
||||
}
|
||||
post_url = "/subscription_ajax?#{action}=1&c=#{channel_id}"
|
||||
|
||||
client.post(post_url, headers, form: post_req)
|
||||
YT_POOL.client &.post(post_url, headers, form: post_req)
|
||||
end
|
||||
end
|
||||
|
||||
# TODO: Playlist stub, sync with YouTube for Google accounts
|
||||
# def playlist_ajax(video_ids, source_playlist_id, name, privacy, action, env_headers)
|
||||
# headers = HTTP::Headers.new
|
||||
# headers["Cookie"] = env_headers["Cookie"]
|
||||
#
|
||||
# html = YT_POOL.client &.get("/view_all_playlists?disable_polymer=1", headers)
|
||||
#
|
||||
# cookies = HTTP::Cookies.from_headers(headers)
|
||||
# html.cookies.each do |cookie|
|
||||
# if {"VISITOR_INFO1_LIVE", "YSC", "SIDCC"}.includes? cookie.name
|
||||
# if cookies[cookie.name]?
|
||||
# cookies[cookie.name] = cookie
|
||||
# else
|
||||
# cookies << cookie
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
# headers = cookies.add_request_headers(headers)
|
||||
#
|
||||
# if match = html.body.match(/'XSRF_TOKEN': "(?<session_token>[A-Za-z0-9\_\-\=]+)"/)
|
||||
# session_token = match["session_token"]
|
||||
#
|
||||
# headers["content-type"] = "application/x-www-form-urlencoded"
|
||||
#
|
||||
# post_req = {
|
||||
# video_ids: [] of String,
|
||||
# source_playlist_id: "",
|
||||
# n: name,
|
||||
# p: privacy,
|
||||
# session_token: session_token,
|
||||
# }
|
||||
# post_url = "/playlist_ajax?#{action}=1"
|
||||
#
|
||||
# response = client.post(post_url, headers, form: post_req)
|
||||
# if response.status_code == 200
|
||||
# return JSON.parse(response.body)["result"]["playlistId"].as_s
|
||||
# else
|
||||
# return nil
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
|
||||
def get_subscription_feed(db, user, max_results = 40, page = 1)
|
||||
limit = max_results.clamp(0, MAX_ITEMS_PER_PAGE)
|
||||
offset = (page - 1) * limit
|
||||
@@ -350,8 +336,7 @@ def get_subscription_feed(db, user, max_results = 40, page = 1)
|
||||
|
||||
args = arg_array(notifications)
|
||||
|
||||
notifications = db.query_all("SELECT * FROM channel_videos WHERE id IN (#{args})
|
||||
ORDER BY published DESC", notifications, as: ChannelVideo)
|
||||
notifications = db.query_all("SELECT * FROM channel_videos WHERE id IN (#{args}) ORDER BY published DESC", args: notifications, as: ChannelVideo)
|
||||
videos = [] of ChannelVideo
|
||||
|
||||
notifications.sort_by! { |video| video.published }.reverse!
|
||||
@@ -365,6 +350,7 @@ def get_subscription_feed(db, user, max_results = 40, page = 1)
|
||||
notifications.sort_by! { |video| video.author }
|
||||
when "channel name - reverse"
|
||||
notifications.sort_by! { |video| video.author }.reverse!
|
||||
else nil # Ignore
|
||||
end
|
||||
else
|
||||
if user.preferences.latest_only
|
||||
@@ -377,14 +363,11 @@ def get_subscription_feed(db, user, max_results = 40, page = 1)
|
||||
else
|
||||
values = "VALUES #{user.watched.map { |id| %(('#{id}')) }.join(",")}"
|
||||
end
|
||||
videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM #{view_name} WHERE \
|
||||
NOT id = ANY (#{values}) \
|
||||
ORDER BY ucid, published DESC", as: ChannelVideo)
|
||||
videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM #{view_name} WHERE NOT id = ANY (#{values}) ORDER BY ucid, published DESC", as: ChannelVideo)
|
||||
else
|
||||
# Show latest video from each channel
|
||||
|
||||
videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM #{view_name} \
|
||||
ORDER BY ucid, published DESC", as: ChannelVideo)
|
||||
videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM #{view_name} ORDER BY ucid, published DESC", as: ChannelVideo)
|
||||
end
|
||||
|
||||
videos.sort_by! { |video| video.published }.reverse!
|
||||
@@ -397,14 +380,11 @@ def get_subscription_feed(db, user, max_results = 40, page = 1)
|
||||
else
|
||||
values = "VALUES #{user.watched.map { |id| %(('#{id}')) }.join(",")}"
|
||||
end
|
||||
videos = PG_DB.query_all("SELECT * FROM #{view_name} WHERE \
|
||||
NOT id = ANY (#{values}) \
|
||||
ORDER BY published DESC LIMIT $1 OFFSET $2", limit, offset, as: ChannelVideo)
|
||||
videos = PG_DB.query_all("SELECT * FROM #{view_name} WHERE NOT id = ANY (#{values}) ORDER BY published DESC LIMIT $1 OFFSET $2", limit, offset, as: ChannelVideo)
|
||||
else
|
||||
# Sort subscriptions as normal
|
||||
|
||||
videos = PG_DB.query_all("SELECT * FROM #{view_name} \
|
||||
ORDER BY published DESC LIMIT $1 OFFSET $2", limit, offset, as: ChannelVideo)
|
||||
videos = PG_DB.query_all("SELECT * FROM #{view_name} ORDER BY published DESC LIMIT $1 OFFSET $2", limit, offset, as: ChannelVideo)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -419,18 +399,14 @@ def get_subscription_feed(db, user, max_results = 40, page = 1)
|
||||
videos.sort_by! { |video| video.author }
|
||||
when "channel name - reverse"
|
||||
videos.sort_by! { |video| video.author }.reverse!
|
||||
else nil # Ignore
|
||||
end
|
||||
|
||||
notifications = PG_DB.query_one("SELECT notifications FROM users WHERE email = $1", user.email,
|
||||
as: Array(String))
|
||||
notifications = PG_DB.query_one("SELECT notifications FROM users WHERE email = $1", user.email, as: Array(String))
|
||||
|
||||
notifications = videos.select { |v| notifications.includes? v.id }
|
||||
videos = videos - notifications
|
||||
end
|
||||
|
||||
if !limit
|
||||
videos = videos[0..max_results]
|
||||
end
|
||||
|
||||
return videos, notifications
|
||||
end
|
||||
|
||||
@@ -108,33 +108,7 @@ CAPTION_LANGUAGES = {
|
||||
"Zulu",
|
||||
}
|
||||
|
||||
REGIONS = {"AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW"}
|
||||
BYPASS_REGIONS = {
|
||||
"GB",
|
||||
"DE",
|
||||
"FR",
|
||||
"IN",
|
||||
"CN",
|
||||
"RU",
|
||||
"CA",
|
||||
"JP",
|
||||
"IT",
|
||||
"TH",
|
||||
"ES",
|
||||
"AE",
|
||||
"KR",
|
||||
"IR",
|
||||
"BR",
|
||||
"PK",
|
||||
"ID",
|
||||
"BD",
|
||||
"MX",
|
||||
"PH",
|
||||
"EG",
|
||||
"VN",
|
||||
"CD",
|
||||
"TR",
|
||||
}
|
||||
REGIONS = {"AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW"}
|
||||
|
||||
# See https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L380-#L476
|
||||
VIDEO_FORMATS = {
|
||||
@@ -258,6 +232,7 @@ struct VideoPreferences
|
||||
listen: Bool,
|
||||
local: Bool,
|
||||
preferred_captions: Array(String),
|
||||
player_style: String,
|
||||
quality: String,
|
||||
raw: Bool,
|
||||
region: String?,
|
||||
@@ -272,6 +247,7 @@ end
|
||||
|
||||
struct Video
|
||||
property player_json : JSON::Any?
|
||||
property recommended_json : JSON::Any?
|
||||
|
||||
module HTTPParamConverter
|
||||
def self.from_rs(rs)
|
||||
@@ -319,7 +295,7 @@ struct Video
|
||||
|
||||
qualities.each do |quality|
|
||||
json.object do
|
||||
json.field "url", self.author_thumbnail.gsub("=s48-", "=s#{quality}-")
|
||||
json.field "url", self.author_thumbnail.gsub(/=s\d+/, "=s#{quality}")
|
||||
json.field "width", quality
|
||||
json.field "height", quality
|
||||
end
|
||||
@@ -340,10 +316,10 @@ struct Video
|
||||
json.field "premiereTimestamp", self.premiere_timestamp.not_nil!.to_unix
|
||||
end
|
||||
|
||||
if self.player_response["streamingData"]?.try &.["hlsManifestUrl"]?
|
||||
if player_response["streamingData"]?.try &.["hlsManifestUrl"]?
|
||||
host_url = make_host_url(config, kemal_config)
|
||||
|
||||
hlsvp = self.player_response["streamingData"]["hlsManifestUrl"].as_s
|
||||
hlsvp = player_response["streamingData"]["hlsManifestUrl"].as_s
|
||||
hlsvp = hlsvp.gsub("https://manifest.googlevideo.com", host_url)
|
||||
|
||||
json.field "hlsUrl", hlsvp
|
||||
@@ -432,7 +408,7 @@ struct Video
|
||||
json.object do
|
||||
json.field "label", caption.name.simpleText
|
||||
json.field "languageCode", caption.languageCode
|
||||
json.field "url", "/api/v1/captions/#{id}?label=#{URI.escape(caption.name.simpleText)}"
|
||||
json.field "url", "/api/v1/captions/#{id}?label=#{URI.encode_www_form(caption.name.simpleText)}"
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -450,9 +426,29 @@ struct Video
|
||||
json.field "videoThumbnails" do
|
||||
generate_thumbnails(json, rv["id"], config, kemal_config)
|
||||
end
|
||||
|
||||
json.field "author", rv["author"]
|
||||
json.field "authorUrl", rv["author_url"]?
|
||||
json.field "authorId", rv["ucid"]?
|
||||
if rv["author_thumbnail"]?
|
||||
json.field "authorThumbnails" do
|
||||
json.array do
|
||||
qualities = {32, 48, 76, 100, 176, 512}
|
||||
|
||||
qualities.each do |quality|
|
||||
json.object do
|
||||
json.field "url", rv["author_thumbnail"].gsub(/s\d+-/, "s#{quality}-")
|
||||
json.field "width", quality
|
||||
json.field "height", quality
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
json.field "lengthSeconds", rv["length_seconds"].to_i
|
||||
json.field "viewCountText", rv["short_view_count_text"]
|
||||
json.field "viewCount", rv["view_count"]?.try &.to_i64
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -493,7 +489,7 @@ struct Video
|
||||
end
|
||||
|
||||
def live_now
|
||||
live_now = self.player_response["videoDetails"]?.try &.["isLive"]?.try &.as_bool
|
||||
live_now = player_response["videoDetails"]?.try &.["isLive"]?.try &.as_bool
|
||||
|
||||
if live_now.nil?
|
||||
return false
|
||||
@@ -540,7 +536,7 @@ struct Video
|
||||
end
|
||||
|
||||
def keywords
|
||||
keywords = self.player_response["videoDetails"]?.try &.["keywords"]?.try &.as_a
|
||||
keywords = player_response["videoDetails"]?.try &.["keywords"]?.try &.as_a
|
||||
keywords ||= [] of String
|
||||
|
||||
return keywords
|
||||
@@ -549,7 +545,7 @@ struct Video
|
||||
def fmt_stream(decrypt_function)
|
||||
streams = [] of HTTP::Params
|
||||
|
||||
if fmt_streams = self.player_response["streamingData"]?.try &.["formats"]?
|
||||
if fmt_streams = player_response["streamingData"]?.try &.["formats"]?
|
||||
fmt_streams.as_a.each do |fmt_stream|
|
||||
if !fmt_stream.as_h?
|
||||
next
|
||||
@@ -566,8 +562,8 @@ struct Video
|
||||
if fmt_stream["url"]?
|
||||
fmt["url"] = fmt_stream["url"].as_s
|
||||
end
|
||||
if fmt_stream["cipher"]?
|
||||
HTTP::Params.parse(fmt_stream["cipher"].as_s).each do |key, value|
|
||||
if cipher = fmt_stream["cipher"]? || fmt_stream["signatureCipher"]?
|
||||
HTTP::Params.parse(cipher.as_s).each do |key, value|
|
||||
fmt[key] = value
|
||||
end
|
||||
end
|
||||
@@ -623,12 +619,9 @@ struct Video
|
||||
def adaptive_fmts(decrypt_function)
|
||||
adaptive_fmts = [] of HTTP::Params
|
||||
|
||||
if fmts = self.player_response["streamingData"]?.try &.["adaptiveFormats"]?
|
||||
if fmts = player_response["streamingData"]?.try &.["adaptiveFormats"]?
|
||||
fmts.as_a.each do |adaptive_fmt|
|
||||
if !adaptive_fmt.as_h?
|
||||
next
|
||||
end
|
||||
|
||||
next if !adaptive_fmt.as_h?
|
||||
fmt = {} of String => String
|
||||
|
||||
if init = adaptive_fmt["initRange"]?
|
||||
@@ -645,8 +638,8 @@ struct Video
|
||||
if adaptive_fmt["url"]?
|
||||
fmt["url"] = adaptive_fmt["url"].as_s
|
||||
end
|
||||
if adaptive_fmt["cipher"]?
|
||||
HTTP::Params.parse(adaptive_fmt["cipher"].as_s).each do |key, value|
|
||||
if cipher = adaptive_fmt["cipher"]? || adaptive_fmt["signatureCipher"]?
|
||||
HTTP::Params.parse(cipher.as_s).each do |key, value|
|
||||
fmt[key] = value
|
||||
end
|
||||
end
|
||||
@@ -711,25 +704,23 @@ struct Video
|
||||
end
|
||||
|
||||
def player_response
|
||||
if !@player_json
|
||||
@player_json = JSON.parse(@info["player_response"])
|
||||
end
|
||||
|
||||
return @player_json.not_nil!
|
||||
@player_json = JSON.parse(@info["player_response"]) if !@player_json
|
||||
@player_json.not_nil!
|
||||
end
|
||||
|
||||
def storyboards
|
||||
storyboards = self.player_response["storyboards"]?
|
||||
storyboards = player_response["storyboards"]?
|
||||
.try &.as_h
|
||||
.try &.["playerStoryboardSpecRenderer"]?
|
||||
.try &.["spec"]?
|
||||
.try &.as_s.split("|")
|
||||
|
||||
if !storyboards
|
||||
storyboards = self.player_response["storyboards"]?
|
||||
.try &.as_h
|
||||
.try &.["playerLiveStoryboardSpecRenderer"]?
|
||||
|
||||
if storyboard = storyboards.try &.["spec"]?
|
||||
.try &.as_s
|
||||
if storyboard = player_response["storyboards"]?
|
||||
.try &.as_h
|
||||
.try &.["playerLiveStoryboardSpecRenderer"]?
|
||||
.try &.["spec"]?
|
||||
.try &.as_s
|
||||
return [{
|
||||
url: storyboard.split("#")[0],
|
||||
width: 106,
|
||||
@@ -743,9 +734,6 @@ struct Video
|
||||
end
|
||||
end
|
||||
|
||||
storyboards = storyboards.try &.["spec"]?
|
||||
.try &.as_s.split("|")
|
||||
|
||||
items = [] of NamedTuple(
|
||||
url: String,
|
||||
width: Int32,
|
||||
@@ -774,6 +762,7 @@ struct Video
|
||||
interval = interval.to_i
|
||||
storyboard_width = storyboard_width.to_i
|
||||
storyboard_height = storyboard_height.to_i
|
||||
storyboard_count = (count / (storyboard_width * storyboard_height)).ceil.to_i
|
||||
|
||||
items << {
|
||||
url: url.to_s.sub("$L", i).sub("$N", "M$M"),
|
||||
@@ -783,7 +772,7 @@ struct Video
|
||||
interval: interval,
|
||||
storyboard_width: storyboard_width,
|
||||
storyboard_height: storyboard_height,
|
||||
storyboard_count: (count.to_f / (storyboard_width.to_f * storyboard_height.to_f)).ceil.to_i,
|
||||
storyboard_count: storyboard_count,
|
||||
}
|
||||
end
|
||||
|
||||
@@ -791,20 +780,18 @@ struct Video
|
||||
end
|
||||
|
||||
def paid
|
||||
reason = self.player_response["playabilityStatus"]?.try &.["reason"]?
|
||||
|
||||
if reason == "This video requires payment to watch."
|
||||
paid = true
|
||||
else
|
||||
paid = false
|
||||
end
|
||||
reason = player_response["playabilityStatus"]?.try &.["reason"]?
|
||||
paid = reason == "This video requires payment to watch." ? true : false
|
||||
|
||||
return paid
|
||||
end
|
||||
|
||||
def premium
|
||||
premium = self.player_response.to_s.includes? "Get YouTube without the ads."
|
||||
return premium
|
||||
if info["premium"]?
|
||||
self.info["premium"] == "true"
|
||||
else
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
def captions
|
||||
@@ -840,7 +827,7 @@ struct Video
|
||||
end
|
||||
|
||||
def length_seconds
|
||||
self.player_response["videoDetails"]["lengthSeconds"].as_s.to_i
|
||||
player_response["videoDetails"]["lengthSeconds"].as_s.to_i
|
||||
end
|
||||
|
||||
db_mapping({
|
||||
@@ -886,6 +873,10 @@ struct CaptionName
|
||||
end
|
||||
|
||||
class VideoRedirect < Exception
|
||||
property video_id : String
|
||||
|
||||
def initialize(@video_id)
|
||||
end
|
||||
end
|
||||
|
||||
def get_video(id, db, refresh = true, region = nil, force_refresh = false)
|
||||
@@ -905,7 +896,7 @@ def get_video(id, db, refresh = true, region = nil, force_refresh = false)
|
||||
db.exec("UPDATE videos SET (info,updated,title,views,likes,dislikes,wilson_score,\
|
||||
published,description,language,author,ucid,allowed_regions,is_family_friendly,\
|
||||
genre,genre_url,license,sub_count_text,author_thumbnail)\
|
||||
= (#{args}) WHERE id = $1", video_array)
|
||||
= (#{args}) WHERE id = $1", args: video_array)
|
||||
rescue ex
|
||||
db.exec("DELETE FROM videos * WHERE id = $1", id)
|
||||
raise ex
|
||||
@@ -918,13 +909,43 @@ def get_video(id, db, refresh = true, region = nil, force_refresh = false)
|
||||
args = arg_array(video_array)
|
||||
|
||||
if !region
|
||||
db.exec("INSERT INTO videos VALUES (#{args}) ON CONFLICT (id) DO NOTHING", video_array)
|
||||
db.exec("INSERT INTO videos VALUES (#{args}) ON CONFLICT (id) DO NOTHING", args: video_array)
|
||||
end
|
||||
end
|
||||
|
||||
return video
|
||||
end
|
||||
|
||||
def extract_recommended(recommended_videos)
|
||||
rvs = [] of HTTP::Params
|
||||
|
||||
recommended_videos.try &.each do |compact_renderer|
|
||||
if compact_renderer["compactRadioRenderer"]? || compact_renderer["compactPlaylistRenderer"]?
|
||||
# TODO
|
||||
elsif video_renderer = compact_renderer["compactVideoRenderer"]?
|
||||
recommended_video = HTTP::Params.new
|
||||
recommended_video["id"] = video_renderer["videoId"].as_s
|
||||
recommended_video["title"] = video_renderer["title"]["simpleText"].as_s
|
||||
|
||||
next if !video_renderer["shortBylineText"]?
|
||||
|
||||
recommended_video["author"] = video_renderer["shortBylineText"]["runs"].as_a[0]["text"].as_s
|
||||
recommended_video["ucid"] = video_renderer["shortBylineText"]["runs"].as_a[0]["navigationEndpoint"]["browseEndpoint"]["browseId"].as_s
|
||||
recommended_video["author_thumbnail"] = video_renderer["channelThumbnail"]["thumbnails"][0]["url"].as_s
|
||||
|
||||
if view_count = video_renderer["viewCountText"]?.try { |field| field["simpleText"]?.try &.as_s || field["runs"][0]?.try &.["text"].as_s }.try &.delete(", views watching").to_i64?.try &.to_s
|
||||
recommended_video["view_count"] = view_count
|
||||
recommended_video["short_view_count_text"] = "#{number_to_short_text(view_count.to_i64)} views"
|
||||
end
|
||||
recommended_video["length_seconds"] = decode_length_seconds(video_renderer["lengthText"]?.try &.["simpleText"]?.try &.as_s || "0:00").to_s
|
||||
|
||||
rvs << recommended_video
|
||||
end
|
||||
end
|
||||
|
||||
rvs
|
||||
end
|
||||
|
||||
def extract_polymer_config(body, html)
|
||||
params = HTTP::Params.new
|
||||
|
||||
@@ -955,36 +976,14 @@ def extract_polymer_config(body, html)
|
||||
params["ctoken"] = comment_continuation.try &.["continuation"]?.try &.as_s || ""
|
||||
params["itct"] = comment_continuation.try &.["clickTrackingParams"]?.try &.as_s || ""
|
||||
|
||||
recommended_videos = initial_data["contents"]?
|
||||
rvs = initial_data["contents"]?
|
||||
.try &.["twoColumnWatchNextResults"]?
|
||||
.try &.["secondaryResults"]?
|
||||
.try &.["secondaryResults"]?
|
||||
.try &.["results"]?
|
||||
.try &.as_a
|
||||
|
||||
rvs = [] of String
|
||||
|
||||
recommended_videos.try &.each do |compact_renderer|
|
||||
if compact_renderer["compactRadioRenderer"]? || compact_renderer["compactPlaylistRenderer"]?
|
||||
# TODO
|
||||
elsif compact_renderer["compactVideoRenderer"]?
|
||||
compact_renderer = compact_renderer["compactVideoRenderer"]
|
||||
|
||||
recommended_video = HTTP::Params.new
|
||||
recommended_video["id"] = compact_renderer["videoId"].as_s
|
||||
recommended_video["title"] = compact_renderer["title"]["simpleText"].as_s
|
||||
recommended_video["author"] = compact_renderer["shortBylineText"]["runs"].as_a[0]["text"].as_s
|
||||
recommended_video["ucid"] = compact_renderer["shortBylineText"]["runs"].as_a[0]["navigationEndpoint"]["browseEndpoint"]["browseId"].as_s
|
||||
recommended_video["author_thumbnail"] = compact_renderer["channelThumbnail"]["thumbnails"][0]["url"].as_s
|
||||
|
||||
recommended_video["short_view_count_text"] = compact_renderer["shortViewCountText"]["simpleText"].as_s
|
||||
recommended_video["view_count"] = compact_renderer["viewCountText"]?.try &.["simpleText"]?.try &.as_s.delete(", views watching").to_i64?.try &.to_s || "0"
|
||||
recommended_video["length_seconds"] = decode_length_seconds(compact_renderer["lengthText"]?.try &.["simpleText"]?.try &.as_s || "0:00").to_s
|
||||
|
||||
rvs << recommended_video.to_s
|
||||
end
|
||||
end
|
||||
params["rvs"] = rvs.join(",")
|
||||
params["rvs"] = extract_recommended(rvs).join(",")
|
||||
|
||||
# TODO: Watching now
|
||||
params["views"] = primary_results.try &.as_a.select { |object| object["videoPrimaryInfoRenderer"]? }[0]?
|
||||
@@ -1094,8 +1093,35 @@ def extract_player_config(body, html)
|
||||
params["session_token"] = md["session_token"]
|
||||
end
|
||||
|
||||
if md = body.match(/'RELATED_PLAYER_ARGS': (?<rvs>{"rvs":"[^"]+"})/)
|
||||
params["rvs"] = JSON.parse(md["rvs"])["rvs"].as_s
|
||||
if md = body.match(/'RELATED_PLAYER_ARGS': (?<json>.*?),\n/)
|
||||
recommended_json = JSON.parse(md["json"])
|
||||
rvs_params = recommended_json["rvs"].as_s.split(",").map { |params| HTTP::Params.parse(params) }
|
||||
|
||||
if watch_next_response = recommended_json["watch_next_response"]?
|
||||
watch_next_json = JSON.parse(watch_next_response.as_s)
|
||||
rvs = watch_next_json["contents"]?
|
||||
.try &.["twoColumnWatchNextResults"]?
|
||||
.try &.["secondaryResults"]?
|
||||
.try &.["secondaryResults"]?
|
||||
.try &.["results"]?
|
||||
.try &.as_a
|
||||
|
||||
rvs = extract_recommended(rvs).compact_map do |rv|
|
||||
if !rv["short_view_count_text"]?
|
||||
rv_params = rvs_params.select { |rv_params| rv_params["id"]? == (rv["id"]? || "") }[0]?
|
||||
|
||||
if rv_params.try &.["short_view_count_text"]?
|
||||
rv["short_view_count_text"] = rv_params.not_nil!["short_view_count_text"]
|
||||
rv
|
||||
else
|
||||
nil
|
||||
end
|
||||
else
|
||||
rv
|
||||
end
|
||||
end
|
||||
params["rvs"] = (rvs.map &.to_s).join(",")
|
||||
end
|
||||
end
|
||||
|
||||
html_info = body.match(/ytplayer\.config = (?<info>.*?);ytplayer\.load/).try &.["info"]
|
||||
@@ -1108,8 +1134,11 @@ def extract_player_config(body, html)
|
||||
error_message = html.xpath_node(%q(//h1[@id="unavailable-message"]))
|
||||
if error_message
|
||||
params["reason"] = error_message.content.strip
|
||||
elsif body.includes?("To continue with your YouTube experience, please fill out the form below.") ||
|
||||
body.includes?("https://www.google.com/sorry/index")
|
||||
params["reason"] = "Could not extract video info. Instance is likely blocked."
|
||||
else
|
||||
params["reason"] = "Could not extract video info."
|
||||
params["reason"] = "Video unavailable."
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1117,54 +1146,42 @@ def extract_player_config(body, html)
|
||||
end
|
||||
|
||||
def fetch_video(id, region)
|
||||
client = make_client(YT_URL, region)
|
||||
response = client.get("/watch?v=#{id}&gl=US&hl=en&disable_polymer=1&has_verified=1&bpctr=9999999999")
|
||||
response = YT_POOL.client(region, &.get("/watch?v=#{id}&gl=US&hl=en&disable_polymer=1&has_verified=1&bpctr=9999999999"))
|
||||
|
||||
if md = response.headers["location"]?.try &.match(/v=(?<id>[a-zA-Z0-9_-]{11})/)
|
||||
raise VideoRedirect.new(md["id"])
|
||||
raise VideoRedirect.new(video_id: md["id"])
|
||||
end
|
||||
|
||||
html = XML.parse_html(response.body)
|
||||
info = extract_player_config(response.body, html)
|
||||
info["cookie"] = response.cookies.to_h.map { |name, cookie| "#{name}=#{cookie.value}" }.join("; ")
|
||||
|
||||
# Try to use proxies for region-blocked videos
|
||||
if info["reason"]? && info["reason"].includes? "your country"
|
||||
bypass_channel = Channel({XML::Node, HTTP::Params} | Nil).new
|
||||
allowed_regions = html.xpath_node(%q(//meta[@itemprop="regionsAllowed"])).try &.["content"].split(",")
|
||||
if !allowed_regions || allowed_regions == [""]
|
||||
allowed_regions = [] of String
|
||||
end
|
||||
|
||||
PROXY_LIST.each do |proxy_region, list|
|
||||
spawn do
|
||||
client = make_client(YT_URL, proxy_region)
|
||||
proxy_response = client.get("/watch?v=#{id}&gl=US&hl=en&disable_polymer=1&has_verified=1&bpctr=9999999999")
|
||||
# Check for region-blocks
|
||||
if info["reason"]? && info["reason"].includes?("your country")
|
||||
bypass_regions = PROXY_LIST.keys & allowed_regions
|
||||
if !bypass_regions.empty?
|
||||
region = bypass_regions[rand(bypass_regions.size)]
|
||||
response = YT_POOL.client(region, &.get("/watch?v=#{id}&gl=US&hl=en&disable_polymer=1&has_verified=1&bpctr=9999999999"))
|
||||
|
||||
proxy_html = XML.parse_html(proxy_response.body)
|
||||
proxy_info = extract_player_config(proxy_response.body, proxy_html)
|
||||
html = XML.parse_html(response.body)
|
||||
info = extract_player_config(response.body, html)
|
||||
|
||||
if !proxy_info["reason"]?
|
||||
proxy_info["region"] = proxy_region
|
||||
proxy_info["cookie"] = proxy_response.cookies.to_h.map { |name, cookie| "#{name}=#{cookie.value}" }.join("; ")
|
||||
bypass_channel.send({proxy_html, proxy_info})
|
||||
else
|
||||
bypass_channel.send(nil)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
PROXY_LIST.size.times do
|
||||
response = bypass_channel.receive
|
||||
if response
|
||||
html, info = response
|
||||
break
|
||||
end
|
||||
info["region"] = region if region
|
||||
info["cookie"] = response.cookies.to_h.map { |name, cookie| "#{name}=#{cookie.value}" }.join("; ")
|
||||
end
|
||||
end
|
||||
|
||||
# Try to pull streams from embed URL
|
||||
if info["reason"]?
|
||||
embed_page = client.get("/embed/#{id}").body
|
||||
embed_page = YT_POOL.client &.get("/embed/#{id}").body
|
||||
sts = embed_page.match(/"sts"\s*:\s*(?<sts>\d+)/).try &.["sts"]?
|
||||
sts ||= ""
|
||||
embed_info = HTTP::Params.parse(client.get("/get_video_info?video_id=#{id}&eurl=https://youtube.googleapis.com/v/#{id}&gl=US&hl=en&disable_polymer=1&sts=#{sts}").body)
|
||||
embed_info = HTTP::Params.parse(YT_POOL.client &.get("/get_video_info?video_id=#{id}&eurl=https://youtube.googleapis.com/v/#{id}&gl=US&hl=en&disable_polymer=1&sts=#{sts}").body)
|
||||
|
||||
if !embed_info["reason"]?
|
||||
embed_info.each do |key, value|
|
||||
@@ -1175,19 +1192,20 @@ def fetch_video(id, region)
|
||||
end
|
||||
end
|
||||
|
||||
if info["errorcode"]?.try &.== "2" || !info["player_response"]
|
||||
raise "Video unavailable."
|
||||
end
|
||||
|
||||
if info["reason"]?
|
||||
if info["reason"]? && !info["player_response"]?
|
||||
raise info["reason"]
|
||||
end
|
||||
|
||||
player_json = JSON.parse(info["player_response"])
|
||||
if reason = player_json["playabilityStatus"]?.try &.["reason"]?.try &.as_s
|
||||
raise reason
|
||||
end
|
||||
|
||||
title = player_json["videoDetails"]["title"].as_s
|
||||
author = player_json["videoDetails"]["author"]?.try &.as_s || ""
|
||||
ucid = player_json["videoDetails"]["ucid"]?.try &.as_s || ""
|
||||
ucid = player_json["videoDetails"]["channelId"]?.try &.as_s || ""
|
||||
|
||||
info["premium"] = html.xpath_node(%q(.//span[text()="Premium"])) ? "true" : "false"
|
||||
|
||||
views = html.xpath_node(%q(//meta[@itemprop="interactionCount"]))
|
||||
.try &.["content"].to_i64? || 0_i64
|
||||
@@ -1202,16 +1220,13 @@ def fetch_video(id, region)
|
||||
avg_rating = avg_rating.nan? ? 0.0 : avg_rating
|
||||
info["avg_rating"] = "#{avg_rating}"
|
||||
|
||||
description_html = html.xpath_node(%q(//p[@id="eow-description"])).try &.to_xml(options: XML::SaveOptions::NO_DECL) || ""
|
||||
description_html = html.xpath_node(%q(//p[@id="eow-description"])).try &.to_xml(options: XML::SaveOptions::NO_DECL) || "<p></p>"
|
||||
wilson_score = ci_lower_bound(likes, likes + dislikes)
|
||||
|
||||
published = html.xpath_node(%q(//meta[@itemprop="datePublished"])).try &.["content"]
|
||||
published ||= Time.utc.to_s("%Y-%m-%d")
|
||||
published = Time.parse(published, "%Y-%m-%d", Time::Location.local)
|
||||
|
||||
allowed_regions = html.xpath_node(%q(//meta[@itemprop="regionsAllowed"])).try &.["content"].split(",")
|
||||
allowed_regions ||= [] of String
|
||||
|
||||
is_family_friendly = html.xpath_node(%q(//meta[@itemprop="isFamilyFriendly"])).try &.["content"] == "True"
|
||||
is_family_friendly ||= true
|
||||
|
||||
@@ -1235,10 +1250,11 @@ def fetch_video(id, region)
|
||||
genre_url = "/channel/UCfFyYRYslvuhwMDnx6KjUvw"
|
||||
when "Trailers"
|
||||
genre_url = "/channel/UClgRkhTL3_hImCAmdLfDE4g"
|
||||
else nil # Ignore
|
||||
end
|
||||
|
||||
license = html.xpath_node(%q(//h4[contains(text(),"License")]/parent::*/ul/li)).try &.content || ""
|
||||
sub_count_text = html.xpath_node(%q(//span[contains(@class, "yt-subscriber-count")])).try &.["title"]? || "0"
|
||||
sub_count_text = html.xpath_node(%q(//span[contains(@class, "subscriber-count")])).try &.["title"]? || "0"
|
||||
author_thumbnail = html.xpath_node(%(//span[@class="yt-thumb-clip"]/img)).try &.["data-thumb"]?.try &.gsub(/^\/\//, "https://") || ""
|
||||
|
||||
video = Video.new(id, info, Time.utc, title, views, likes, dislikes, wilson_score, published, description_html,
|
||||
@@ -1251,20 +1267,35 @@ def itag_to_metadata?(itag : String)
|
||||
return VIDEO_FORMATS[itag]?
|
||||
end
|
||||
|
||||
def process_continuation(db, query, plid, id)
|
||||
continuation = nil
|
||||
if plid
|
||||
if index = query["index"]?.try &.to_i?
|
||||
continuation = index
|
||||
else
|
||||
continuation = id
|
||||
end
|
||||
continuation ||= 0
|
||||
end
|
||||
|
||||
continuation
|
||||
end
|
||||
|
||||
def process_video_params(query, preferences)
|
||||
annotations = query["iv_load_policy"]?.try &.to_i?
|
||||
autoplay = query["autoplay"]?.try &.to_i?
|
||||
autoplay = query["autoplay"]?.try { |q| (q == "true" || q == "1").to_unsafe }
|
||||
comments = query["comments"]?.try &.split(",").map { |a| a.downcase }
|
||||
continue = query["continue"]?.try &.to_i?
|
||||
continue_autoplay = query["continue_autoplay"]?.try &.to_i?
|
||||
listen = query["listen"]? && (query["listen"] == "true" || query["listen"] == "1").to_unsafe
|
||||
local = query["local"]? && (query["local"] == "true" || query["local"] == "1").to_unsafe
|
||||
continue = query["continue"]?.try { |q| (q == "true" || q == "1").to_unsafe }
|
||||
continue_autoplay = query["continue_autoplay"]?.try { |q| (q == "true" || q == "1").to_unsafe }
|
||||
listen = query["listen"]?.try { |q| (q == "true" || q == "1").to_unsafe }
|
||||
local = query["local"]?.try { |q| (q == "true" || q == "1").to_unsafe }
|
||||
player_style = query["player_style"]?
|
||||
preferred_captions = query["subtitles"]?.try &.split(",").map { |a| a.downcase }
|
||||
quality = query["quality"]?
|
||||
region = query["region"]?
|
||||
related_videos = query["related_videos"]? && (query["related_videos"] == "true" || query["related_videos"] == "1").to_unsafe
|
||||
related_videos = query["related_videos"]?.try { |q| (q == "true" || q == "1").to_unsafe }
|
||||
speed = query["speed"]?.try &.rchop("x").to_f?
|
||||
video_loop = query["loop"]?.try &.to_i?
|
||||
video_loop = query["loop"]?.try { |q| (q == "true" || q == "1").to_unsafe }
|
||||
volume = query["volume"]?.try &.to_i?
|
||||
|
||||
if preferences
|
||||
@@ -1276,6 +1307,7 @@ def process_video_params(query, preferences)
|
||||
continue_autoplay ||= preferences.continue_autoplay.to_unsafe
|
||||
listen ||= preferences.listen.to_unsafe
|
||||
local ||= preferences.local.to_unsafe
|
||||
player_style ||= preferences.player_style
|
||||
preferred_captions ||= preferences.captions
|
||||
quality ||= preferences.quality
|
||||
related_videos ||= preferences.related_videos.to_unsafe
|
||||
@@ -1291,6 +1323,7 @@ def process_video_params(query, preferences)
|
||||
continue_autoplay ||= CONFIG.default_user_preferences.continue_autoplay.to_unsafe
|
||||
listen ||= CONFIG.default_user_preferences.listen.to_unsafe
|
||||
local ||= CONFIG.default_user_preferences.local.to_unsafe
|
||||
player_style ||= CONFIG.default_user_preferences.player_style
|
||||
preferred_captions ||= CONFIG.default_user_preferences.captions
|
||||
quality ||= CONFIG.default_user_preferences.quality
|
||||
related_videos ||= CONFIG.default_user_preferences.related_videos.to_unsafe
|
||||
@@ -1315,17 +1348,10 @@ def process_video_params(query, preferences)
|
||||
local = false
|
||||
end
|
||||
|
||||
if query["t"]?
|
||||
video_start = decode_time(query["t"])
|
||||
if start = query["t"]? || query["time_continue"]? || query["start"]?
|
||||
video_start = decode_time(start)
|
||||
end
|
||||
video_start ||= 0
|
||||
if query["time_continue"]?
|
||||
video_start = decode_time(query["time_continue"])
|
||||
end
|
||||
video_start ||= 0
|
||||
if query["start"]?
|
||||
video_start = decode_time(query["start"])
|
||||
end
|
||||
|
||||
if query["end"]?
|
||||
video_end = decode_time(query["end"])
|
||||
@@ -1349,6 +1375,7 @@ def process_video_params(query, preferences)
|
||||
controls: controls,
|
||||
listen: listen,
|
||||
local: local,
|
||||
player_style: player_style,
|
||||
preferred_captions: preferred_captions,
|
||||
quality: quality,
|
||||
raw: raw,
|
||||
|
||||
58
src/invidious/views/add_playlist_items.ecr
Normal file
58
src/invidious/views/add_playlist_items.ecr
Normal file
@@ -0,0 +1,58 @@
|
||||
<% content_for "header" do %>
|
||||
<title><%= playlist.title %> - Invidious</title>
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed/playlist/<%= plid %>" />
|
||||
<% end %>
|
||||
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1 pure-u-lg-1-5"></div>
|
||||
<div class="pure-u-1 pure-u-lg-3-5">
|
||||
<div class="h-box">
|
||||
<form class="pure-form pure-form-aligned" action="/add_playlist_items" method="get">
|
||||
<legend><a href="/playlist?list=<%= playlist.id %>"><%= translate(locale, "Editing playlist `x`", %|"#{HTML.escape(playlist.title)}"|) %></a></legend>
|
||||
|
||||
<fieldset>
|
||||
<input class="pure-input-1" type="search" name="q" <% if query %>value="<%= HTML.escape(query) %>"<% else %>placeholder="<%= translate(locale, "Search for videos") %>"<% end %>>
|
||||
<input type="hidden" name="list" value="<%= plid %>">
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pure-u-1 pure-u-lg-1-5"></div>
|
||||
</div>
|
||||
|
||||
<script id="playlist_data" type="application/json">
|
||||
<%=
|
||||
{
|
||||
"csrf_token" => URI.encode_www_form(env.get?("csrf_token").try &.as(String) || "")
|
||||
}.to_pretty_json
|
||||
%>
|
||||
</script>
|
||||
<script src="/js/playlist_widget.js?v=<%= ASSET_COMMIT %>"></script>
|
||||
|
||||
<div class="pure-g">
|
||||
<% videos.each_slice(4) do |slice| %>
|
||||
<% slice.each do |item| %>
|
||||
<%= rendered "components/item" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<% if query %>
|
||||
<div class="pure-g h-box">
|
||||
<div class="pure-u-1 pure-u-lg-1-5">
|
||||
<% if page > 1 %>
|
||||
<a href="/add_playlist_items?list=<%= plid %>&q=<%= HTML.escape(query.not_nil!) %>&page=<%= page - 1 %>">
|
||||
<%= translate(locale, "Previous page") %>
|
||||
</a>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="pure-u-1 pure-u-lg-3-5"></div>
|
||||
<div class="pure-u-1 pure-u-lg-1-5" style="text-align:right">
|
||||
<% if count >= 20 %>
|
||||
<a href="/add_playlist_items?list=<%= plid %>&q=<%= HTML.escape(query.not_nil!) %>&page=<%= page + 1 %>">
|
||||
<%= translate(locale, "Next page") %>
|
||||
</a>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -72,7 +72,7 @@
|
||||
<input type="hidden" name="expire" value="<%= expire %>">
|
||||
<% end %>
|
||||
|
||||
<input type="hidden" name="csrf_token" value="<%= URI.escape(csrf_token) %>">
|
||||
<input type="hidden" name="csrf_token" value="<%= URI.encode_www_form(csrf_token) %>">
|
||||
</form>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<div class="pure-u-1 pure-u-lg-1-5"></div>
|
||||
<div class="pure-u-1 pure-u-lg-3-5">
|
||||
<div class="h-box">
|
||||
<form class="pure-form pure-form-aligned" action="/change_password?referer=<%= URI.escape(referer) %>" method="post">
|
||||
<form class="pure-form pure-form-aligned" action="/change_password?referer=<%= URI.encode_www_form(referer) %>" method="post">
|
||||
<legend><%= translate(locale, "Change password") %></legend>
|
||||
|
||||
<fieldset>
|
||||
@@ -23,7 +23,7 @@
|
||||
<%= translate(locale, "Change password") %>
|
||||
</button>
|
||||
|
||||
<input type="hidden" name="csrf_token" value="<%= URI.escape(csrf_token) %>">
|
||||
<input type="hidden" name="csrf_token" value="<%= URI.encode_www_form(csrf_token) %>">
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -27,6 +27,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="h-box">
|
||||
<p><span style="white-space:pre-wrap"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content %></span></p>
|
||||
</div>
|
||||
|
||||
<div class="h-box">
|
||||
<% ucid = channel.ucid %>
|
||||
<% author = channel.author %>
|
||||
@@ -88,7 +92,7 @@
|
||||
<div class="pure-g h-box">
|
||||
<div class="pure-u-1 pure-u-lg-1-5">
|
||||
<% if page > 1 %>
|
||||
<a href="/channel/<%= channel.ucid %>?page=<%= page - 1 %><% if sort_by != "newest" %>&sort_by=<%= sort_by %><% end %>">
|
||||
<a href="/channel/<%= channel.ucid %>?page=<%= page - 1 %><% if sort_by != "newest" %>&sort_by=<%= HTML.escape(sort_by) %><% end %>">
|
||||
<%= translate(locale, "Previous page") %>
|
||||
</a>
|
||||
<% end %>
|
||||
@@ -96,7 +100,7 @@
|
||||
<div class="pure-u-1 pure-u-lg-3-5"></div>
|
||||
<div class="pure-u-1 pure-u-lg-1-5" style="text-align:right">
|
||||
<% if count == 60 %>
|
||||
<a href="/channel/<%= channel.ucid %>?page=<%= page + 1 %><% if sort_by != "newest" %>&sort_by=<%= sort_by %><% end %>">
|
||||
<a href="/channel/<%= channel.ucid %>?page=<%= page + 1 %><% if sort_by != "newest" %>&sort_by=<%= HTML.escape(sort_by) %><% end %>">
|
||||
<%= translate(locale, "Next page") %>
|
||||
</a>
|
||||
<% end %>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user