Compare commits
400 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89725df3dc | ||
|
|
51799844c9 | ||
|
|
48de136e9d | ||
|
|
cb6f97a831 | ||
|
|
7e0cd0ab60 | ||
|
|
8521f04087 | ||
|
|
8ba45808be | ||
|
|
d876fd7f5b | ||
|
|
352e409a6e | ||
|
|
d6ec441c8e | ||
|
|
d197497349 | ||
|
|
d892ba6aa5 | ||
|
|
84b2583973 | ||
|
|
108648b427 | ||
|
|
71bf8b6b4d | ||
|
|
576067c1e5 | ||
|
|
e23bab0103 | ||
|
|
4e111c84f3 | ||
|
|
8cecce7570 | ||
|
|
0338fd42e1 | ||
|
|
b3788bc143 | ||
|
|
18d66ddded | ||
|
|
701b5ea561 | ||
|
|
86d0de4b0e | ||
|
|
a95958f9f6 | ||
|
|
69ab236f3f | ||
|
|
4cf3c6a616 | ||
|
|
da48bbf312 | ||
|
|
ac957db6d1 | ||
|
|
64464f23ae | ||
|
|
52cb239194 | ||
|
|
efd54b7523 | ||
|
|
2aca57cb82 | ||
|
|
d68baf08cb | ||
|
|
a7578aa709 | ||
|
|
a8261d376a | ||
|
|
fc346b4efd | ||
|
|
ad09e734da | ||
|
|
a674fea1c2 | ||
|
|
9e22b34fac | ||
|
|
fe24408620 | ||
|
|
c07ad0941c | ||
|
|
2f02b38b62 | ||
|
|
3ac766530d | ||
|
|
de77c71042 | ||
|
|
9c854a1757 | ||
|
|
f66fa1150e | ||
|
|
f820706e4f | ||
|
|
29e9e0f2cc | ||
|
|
2933093e17 | ||
|
|
71cd8918be | ||
|
|
c049ba59ff | ||
|
|
51c5f28443 | ||
|
|
bb1ed902a9 | ||
|
|
b016a60a75 | ||
|
|
890d485bb5 | ||
|
|
208bb2d72f | ||
|
|
267bf289c4 | ||
|
|
b3e083d866 | ||
|
|
a675c64c2d | ||
|
|
8b50c8515f | ||
|
|
1eaa377583 | ||
|
|
4345b1d930 | ||
|
|
06bf0c2622 | ||
|
|
3ac8de0a64 | ||
|
|
f237fd9847 | ||
|
|
5730280325 | ||
|
|
ab4df7e078 | ||
|
|
b52e6c99ab | ||
|
|
7dab548522 | ||
|
|
785c341822 | ||
|
|
7d2e1f63b5 | ||
|
|
e119459411 | ||
|
|
97ef2191fd | ||
|
|
e833ccf309 | ||
|
|
a4134d30fa | ||
|
|
6069fd02d3 | ||
|
|
bb15dc57a4 | ||
|
|
bdfe170c3b | ||
|
|
0fa2ba53ab | ||
|
|
4bb657debf | ||
|
|
dd12840e34 | ||
|
|
b027dcfec9 | ||
|
|
9e9b6f1542 | ||
|
|
7cd66e20d0 | ||
|
|
d93df15eff | ||
|
|
ddfd20d997 | ||
|
|
fd8af88493 | ||
|
|
bfa488f77d | ||
|
|
03be793930 | ||
|
|
37d88d5ff7 | ||
|
|
4616f889fd | ||
|
|
59cbf95c4f | ||
|
|
058711d3a8 | ||
|
|
2ddc61fa5c | ||
|
|
e04b7d0f01 | ||
|
|
2faa2ed1f4 | ||
|
|
5e2889e776 | ||
|
|
5bda36fb28 | ||
|
|
53fbb257b9 | ||
|
|
65a32d6e20 | ||
|
|
92450920d4 | ||
|
|
0099a9822e | ||
|
|
0cf86974dd | ||
|
|
716705aa15 | ||
|
|
757993064e | ||
|
|
3f738cf905 | ||
|
|
570715100b | ||
|
|
ad8750b40d | ||
|
|
757ea93393 | ||
|
|
dbd5a222d5 | ||
|
|
bba80bc80f | ||
|
|
094143bc28 | ||
|
|
24a335d304 | ||
|
|
c62b318b9e | ||
|
|
ea5c7c321a | ||
|
|
6d92775ab5 | ||
|
|
1a9360ca75 | ||
|
|
22b9bbe702 | ||
|
|
6fb44083ec | ||
|
|
ba02be08bb | ||
|
|
56fe3ede5b | ||
|
|
e48a000784 | ||
|
|
6d1c150ff5 | ||
|
|
21190a240f | ||
|
|
8a525bc131 | ||
|
|
734905d1f7 | ||
|
|
90edf2fc60 | ||
|
|
e3f37c14db | ||
|
|
c6c92184d9 | ||
|
|
c4fbc65354 | ||
|
|
54d250bde4 | ||
|
|
ef309bd8d0 | ||
|
|
6cdb6ec711 | ||
|
|
03891b66b6 | ||
|
|
42dd6326d5 | ||
|
|
5c4defdb8e | ||
|
|
f08d53b0c6 | ||
|
|
6859b85266 | ||
|
|
075adb4f03 | ||
|
|
5ce72a3461 | ||
|
|
8c2958b86d | ||
|
|
f15b7cebac | ||
|
|
f6d8df1e83 | ||
|
|
19ed5bf993 | ||
|
|
5567e2843d | ||
|
|
0a8e20fd60 | ||
|
|
558c4341e4 | ||
|
|
250860d92c | ||
|
|
64aecba7a0 | ||
|
|
3689b08237 | ||
|
|
30e567e8b6 | ||
|
|
ddd74549fe | ||
|
|
14620c32aa | ||
|
|
fb7068d415 | ||
|
|
8614ff40df | ||
|
|
aa10a9d899 | ||
|
|
a5b8feca93 | ||
|
|
486e47f985 | ||
|
|
bb5a1ad513 | ||
|
|
eac0a52f10 | ||
|
|
7ac00258cc | ||
|
|
e3a0ae8a4b | ||
|
|
2953159f8b | ||
|
|
9693363c76 | ||
|
|
a2533af116 | ||
|
|
b4aecb5b74 | ||
|
|
15aa2498b5 | ||
|
|
0372ff0c2c | ||
|
|
7a8d5a391a | ||
|
|
2a6c81a89d | ||
|
|
301871aec6 | ||
|
|
25359e5320 | ||
|
|
b6fff53b21 | ||
|
|
ae7b5fac74 | ||
|
|
26168a9520 | ||
|
|
698dfca319 | ||
|
|
3bcb98e644 | ||
|
|
2deb436ccd | ||
|
|
2b3405c4a9 | ||
|
|
677a465630 | ||
|
|
8ecb76fc0b | ||
|
|
0178013fc1 | ||
|
|
c273a8ee69 | ||
|
|
0ed56b706b | ||
|
|
4582b6cf76 | ||
|
|
05513bcd1e | ||
|
|
f5dd135ed8 | ||
|
|
9c8f85741c | ||
|
|
ca515f2eae | ||
|
|
80c1ebd768 | ||
|
|
b51fd7fc13 | ||
|
|
efe86c37b2 | ||
|
|
d20a4a8bfc | ||
|
|
9da2d11e80 | ||
|
|
5ef554aecf | ||
|
|
9a7fea0447 | ||
|
|
ae52ff93b2 | ||
|
|
80a567bf1e | ||
|
|
ce2a3361eb | ||
|
|
ca9ea109c6 | ||
|
|
2a33a746f0 | ||
|
|
e8c5246645 | ||
|
|
98295b85ab | ||
|
|
af1823db8c | ||
|
|
a2ab6b89f1 | ||
|
|
5de300fb35 | ||
|
|
62a4c82e95 | ||
|
|
d522c864d4 | ||
|
|
aa8ff7ace3 | ||
|
|
4e6a931de3 | ||
|
|
5e141e869d | ||
|
|
611555514c | ||
|
|
e1c78fcbd3 | ||
|
|
8640d6bb1e | ||
|
|
28d5bedcc7 | ||
|
|
373b890e1d | ||
|
|
aad0f90a9d | ||
|
|
5dc45c35e6 | ||
|
|
b8c87632e6 | ||
|
|
c85903383a | ||
|
|
4aededf038 | ||
|
|
4bc6501b8d | ||
|
|
a1b3b47573 | ||
|
|
c8cf4fe09c | ||
|
|
ca07d75405 | ||
|
|
c5001f3620 | ||
|
|
8d5f941829 | ||
|
|
c3bfaa1c33 | ||
|
|
ea0d52c0b8 | ||
|
|
fcb37f40f6 | ||
|
|
7f30d07f4c | ||
|
|
59744a96fa | ||
|
|
b82fb58dc4 | ||
|
|
c728214af7 | ||
|
|
305d636217 | ||
|
|
31312747e9 | ||
|
|
5ef288b840 | ||
|
|
f6615a490d | ||
|
|
bd4f5ebcdf | ||
|
|
1fd7ff5655 | ||
|
|
ab7e1b42bd | ||
|
|
a7723e6ded | ||
|
|
1b78001201 | ||
|
|
36c0eae7ed | ||
|
|
0ae43e242f | ||
|
|
bafd4f1860 | ||
|
|
388e58bf1e | ||
|
|
eee973fe86 | ||
|
|
61769c6f9c | ||
|
|
665ef9424e | ||
|
|
7a0f0ca5ce | ||
|
|
63be05146d | ||
|
|
9239cfb3c1 | ||
|
|
6fd24ad54f | ||
|
|
d70933c9f2 | ||
|
|
9ac2ddcb4d | ||
|
|
8d9569e06b | ||
|
|
02f8e657f3 | ||
|
|
3dc711ab9d | ||
|
|
702922dd88 | ||
|
|
2583c809ca | ||
|
|
b6071ce6dc | ||
|
|
186132bb98 | ||
|
|
c15790f230 | ||
|
|
13924a8353 | ||
|
|
fd84b57ac8 | ||
|
|
591a6b330a | ||
|
|
a3b767bb13 | ||
|
|
847ee61bf4 | ||
|
|
0c6cede287 | ||
|
|
ce4b07d7d7 | ||
|
|
a1f49b279f | ||
|
|
1c8075ca40 | ||
|
|
56b0952cd1 | ||
|
|
1c152f6cad | ||
|
|
57c05354c2 | ||
|
|
90b5479735 | ||
|
|
1079c4516c | ||
|
|
7381985c79 | ||
|
|
fd26f9f34e | ||
|
|
88b70973cc | ||
|
|
f0658bbd09 | ||
|
|
661e07c8db | ||
|
|
6e51189d4d | ||
|
|
dfdb7c835b | ||
|
|
f1d7aa09e4 | ||
|
|
88e6b865d9 | ||
|
|
d5c6d74f14 | ||
|
|
202f3d36c4 | ||
|
|
7a54b1d36a | ||
|
|
9091b36249 | ||
|
|
21285d9f6d | ||
|
|
2ebc773863 | ||
|
|
44f4057876 | ||
|
|
d85020079f | ||
|
|
956dc382ea | ||
|
|
99aa214859 | ||
|
|
405e98f429 | ||
|
|
a8c375fc95 | ||
|
|
4a56a2cad6 | ||
|
|
438945907d | ||
|
|
db245add0f | ||
|
|
986699bce5 | ||
|
|
d1803320f1 | ||
|
|
d4609519f0 | ||
|
|
2b4a6284e4 | ||
|
|
3c6be7e04c | ||
|
|
e738e57e26 | ||
|
|
21ebc398fa | ||
|
|
1ac611239e | ||
|
|
97e6047725 | ||
|
|
cf3f0fcc39 | ||
|
|
19c32bf993 | ||
|
|
e86eb16d91 | ||
|
|
1fcd1ff3e8 | ||
|
|
58f4212aa8 | ||
|
|
f01152eda1 | ||
|
|
11ff40bcd6 | ||
|
|
46e985b306 | ||
|
|
fdc014af67 | ||
|
|
bf11a46abe | ||
|
|
8f41130a14 | ||
|
|
e96c4732d6 | ||
|
|
a1d38a6940 | ||
|
|
9b8703cf49 | ||
|
|
c4d77bc18a | ||
|
|
c69fbb72d3 | ||
|
|
64e4791dca | ||
|
|
bc1e62ce51 | ||
|
|
79c1040796 | ||
|
|
eaf55bf12c | ||
|
|
ce528c9783 | ||
|
|
b9c7501012 | ||
|
|
ae10052aaf | ||
|
|
10abcd519f | ||
|
|
1d6c763e92 | ||
|
|
3fa0ce99f0 | ||
|
|
7380585f00 | ||
|
|
7557ffcda1 | ||
|
|
bc9d70109c | ||
|
|
7448159d6b | ||
|
|
a65998274f | ||
|
|
b2f4a0276a | ||
|
|
99d9c3a900 | ||
|
|
e4dc430c74 | ||
|
|
1435516a9c | ||
|
|
2a1befb41a | ||
|
|
2840d98fd4 | ||
|
|
32b9c0c840 | ||
|
|
f16273772e | ||
|
|
6375a62465 | ||
|
|
aa63c3f70e | ||
|
|
004fb96b2f | ||
|
|
5895604282 | ||
|
|
a1af75a87f | ||
|
|
732bd28c92 | ||
|
|
90715467a2 | ||
|
|
7425700009 | ||
|
|
8e884fe115 | ||
|
|
96c09450b8 | ||
|
|
64cfd2296c | ||
|
|
17cf0772fb | ||
|
|
66605196ad | ||
|
|
2c9b148627 | ||
|
|
07ef48a07a | ||
|
|
03f94db5e2 | ||
|
|
9b202adebd | ||
|
|
daf8e5b8b6 | ||
|
|
25bd27ef95 | ||
|
|
dd41e4906c | ||
|
|
20660b92f8 | ||
|
|
f0cc7a925c | ||
|
|
057e69fe70 | ||
|
|
4be82c5ca6 | ||
|
|
0eaf8f38a1 | ||
|
|
f31af18aa9 | ||
|
|
5859cd290c | ||
|
|
a39b1583da | ||
|
|
ac0eb9acaf | ||
|
|
a0d9e46c33 | ||
|
|
573404d3ac | ||
|
|
2fe545e19a | ||
|
|
ea52c05f05 | ||
|
|
2a643e86bc | ||
|
|
cc76428cd2 | ||
|
|
7ffc3a0652 | ||
|
|
51df0860cc | ||
|
|
e4f397d049 | ||
|
|
0c8dff162d | ||
|
|
4865529fed | ||
|
|
0a404cc9a6 | ||
|
|
17b84f32df | ||
|
|
a03958d937 | ||
|
|
27cd1e73f3 | ||
|
|
d6bd893573 | ||
|
|
7a7049b25b | ||
|
|
62ff9605ce | ||
|
|
2847c34f58 | ||
|
|
b5a00f3c47 |
261
CHANGELOG.md
261
CHANGELOG.md
@@ -1,3 +1,248 @@
|
|||||||
|
# 0.18.0 (2019-06-06)
|
||||||
|
|
||||||
|
# Version 0.18.0: Native Notifications and Optimizations
|
||||||
|
|
||||||
|
Hope everyone has been doing well. This past month there have been [97 commits](https://github.com/omarroth/invidious/compare/0.17.0...0.18.0) from 10 contributors. For the most part changes this month have been on optimizing various parts of the site, mainly subscription feeds and support for serving images and other assets.
|
||||||
|
|
||||||
|
I'm quite happy to mention that support for Greek (`el`) has been added, which I hope will continue to make the site accessible for more users.
|
||||||
|
|
||||||
|
Subscription feeds will now only update when necessary, rather than periodically. This greatly lightens the load on DB as well as making the feeds generally more responsive when changing subscriptions, importing data, and when receiving new uploads.
|
||||||
|
|
||||||
|
Caching for images and other assets should be greatly improved with [#456](https://github.com/omarroth/invidious/issues/456). JavaScript has been pulled out into separate files where possible to take advantage of this, which should result in lighter pages and faster load times.
|
||||||
|
|
||||||
|
This past month several people have encountered issues with downloads and watching high quality video through the site, see [#532](https://github.com/omarroth/invidious/issues/532) and [#562](https://github.com/omarroth/invidious/issues/562). For this coming month I've allocated some more hardware which should help with this, and I'm also looking into optimizing how videos are currently served.
|
||||||
|
|
||||||
|
## For Developers
|
||||||
|
|
||||||
|
`viewCount` is now available for `/api/v1/popular` and all videos returned from `/api/v1/auth/notifications`. Both also now provide `"type"` for indicating available information for each object.
|
||||||
|
|
||||||
|
An `/authorize_token` page is now available for more easily creating new tokens for use in applications, see [this comment](https://github.com/omarroth/invidious/issues/473#issuecomment-496230812) in [#473](https://github.com/omarroth/invidious/issues/473) for more details.
|
||||||
|
|
||||||
|
A POST `/api/v1/auth/notifications` endpoint is also now available for correctly returning notifications for 150+ channels.
|
||||||
|
|
||||||
|
## For Administrators
|
||||||
|
|
||||||
|
There are two new schema changes for administrators: `views` for adding view count to the popular page, and `feed_needs_update` for tracking feed changes.
|
||||||
|
|
||||||
|
As always the relevant migration scripts are provided which should run when following instructions for [updating](https://github.com/omarroth/invidious/wiki/Updating). Otherwise, adding `check_tables: true` to your config will automatically make the required changes.
|
||||||
|
|
||||||
|
## Native Notifications
|
||||||
|
|
||||||
|
[<img src="https://omar.yt/81c3ae1839831bd9300d75e273b6552a86dc2352/native_notification.png" height="160" width="472">](https://omar.yt/81c3ae1839831bd9300d75e273b6552a86dc2352/native_notification.png "Example of native notification, available in repository under screnshots/native_notification.png")
|
||||||
|
|
||||||
|
It is now possible to receive [Web notifications](https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API) from subscribed channels.
|
||||||
|
|
||||||
|
You can enable notifications by clicking "Enable web notifications" in your preferences. Generally they appear within 20-60 seconds of a new video being uploaded, and I've found them to be an enormous quality of life improvement.
|
||||||
|
|
||||||
|
Although it has been fairly stable, please feel free to report any issues you find [here](https://github.com/omarroth/invidious/issues) or emailing me directly at omarroth@protonmail.com.
|
||||||
|
|
||||||
|
Important to note for administrators is that instances require [`use_pubsub_feeds`](https://github.com/omarroth/invidious/wiki/Configuration) and must be served over HTTPS in order to correctly send web notifications.
|
||||||
|
|
||||||
|
## Finances
|
||||||
|
|
||||||
|
### Donations
|
||||||
|
|
||||||
|
- [Patreon](https://www.patreon.com/omarroth) : \$49.73
|
||||||
|
- [Liberapay](https://liberapay.com/omarroth) : \$100.57
|
||||||
|
- Crypto : ~\$11.12 (converted from BCH, BTC)
|
||||||
|
- Total : \$161.42
|
||||||
|
|
||||||
|
### Expenses
|
||||||
|
|
||||||
|
- invidious-load1 (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-db1 (s-4vcpu-8gb) : \$40.00 (database)
|
||||||
|
- Total : \$85.00
|
||||||
|
|
||||||
|
See you all next month!
|
||||||
|
|
||||||
|
# 0.17.0 (2019-05-06)
|
||||||
|
|
||||||
|
# Version 0.17.0: Player and Authentication API
|
||||||
|
|
||||||
|
Hello everyone! This past month there have been [130 commits](https://github.com/omarroth/invidious/compare/0.16.0..0.17.0) from 11 contributors. Large focus has been on improving the player as well as adding API access for other projects to make use of Invidious.
|
||||||
|
|
||||||
|
There have also been significant changes in preparation of native notifications (see [#195](https://github.com/omarroth/invidious/issues/195), [#469](https://github.com/omarroth/invidious/issues/469), [#473](https://github.com/omarroth/invidious/issues/473), and [#502](https://github.com/omarroth/invidious/issues/502)), and playlists. I expect to see both of these to be added in the next release.
|
||||||
|
|
||||||
|
I'm quite happy to mention that new translations have been added for Esperanto (`eo`) and Ukranian (`uk`). Support for pluralization has also been added, so it should now be possible to make a more native experience for speakers in other languages. The system currently in place is a bit cumbersome, so for any help using this feature please get in touch!
|
||||||
|
|
||||||
|
## For Administrators
|
||||||
|
|
||||||
|
A `check_tables` option has been added to automatically migrate without the use of custom scripts. This method will likely prove to be much more robust, and is currently enabled for the official instance. To prevent any unintended changes to the DB, `check_tables` is disabled by default and will print commands before executing. Having this makes features that require schema changes much easier to implement, and also makes it easier to upgrade from older instances.
|
||||||
|
|
||||||
|
As part of [#303](https://github.com/omarroth/invidious/issues/303), a `cache_annotations` option has been added to speed up access from `/api/v1/annotations/:id`. This vastly improves the experience for videos with annotations. Currently, only videos that contain legacy annotations will be cached, which should help keep down the size of the cache. `cache_annotations` is disabled by default.
|
||||||
|
|
||||||
|
## For Developers
|
||||||
|
|
||||||
|
An authorization API has been added which allows other applications to read and modify user subscriptions and preferences (see [#473](https://github.com/omarroth/invidious/issues/473)). Support for accessing user feeds and notifications is also planned. I believe this feature is a large step forward in supporting syncing subscriptions and preferences with other services, and I'm excited to see what other developers do with this functionality.
|
||||||
|
|
||||||
|
Support for server-to-client push notifications is currently underway. This allows Invidious users, as well as applications using the Invidious API, to receive notifications about uploads in near real-time (see #469). An `/api/v1/auth/notifications` endpoint is currently available. I'm very excited for this to be integrated into the site, and to see how other developers use it in their own projects.
|
||||||
|
|
||||||
|
An `/api/v1/storyboards/:id` endpoint has been added for accessing storyboard URLs, which allows developers to add video previews to their players (see below).
|
||||||
|
|
||||||
|
## Player
|
||||||
|
|
||||||
|
Support for annotations has been merged into master with [#303](https://github.com/omarroth/invidious/issues/303), thanks @glmdgrielson! Annotations can be enabled by default or only for subscribed channels, and can also be toggled per video. I'm extremely proud of the progress made here, and I'm so thankful to everyone that has made this possible. I expect this to be the last update with regards to supporting annotations, but I do plan on continuing to improve the experience as much as possible.
|
||||||
|
|
||||||
|
The Invidious player now supports video previews and a corresponding API endpoint `/api/v1/storyboards/:id` has been added for developers looking to add similar functionality to their own players. Not much else to say here. Overall it's a very nice quality of life improvement and an attractive addition to the site.
|
||||||
|
|
||||||
|
It is now possible to select specific sources for videos provided using DASH (see [#34](https://github.com/omarroth/invidious/issues/34)). I would consider support largely feature complete, although there are still several issues to be fixed before I would consider it ready for larger rollout. You can watch videos in 1080p by setting `Default quality` to `dash` in your preferences, or by adding `&quality=dash` to the end of video URLs.
|
||||||
|
|
||||||
|
## Finances
|
||||||
|
|
||||||
|
### Donations
|
||||||
|
|
||||||
|
- [Patreon](https://www.patreon.com/omarroth) : \$49.73
|
||||||
|
- [Liberapay](https://liberapay.com/omarroth) : \$63.03
|
||||||
|
- Crypto : ~\$0.00 (converted from BCH, BTC)
|
||||||
|
- Total : \$112.76
|
||||||
|
|
||||||
|
### Expenses
|
||||||
|
|
||||||
|
- invidious-load1 (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-db1 (s-4vcpu-8gb) : \$40.00 (database)
|
||||||
|
- Total : \$80.00
|
||||||
|
|
||||||
|
That's all for now. Thanks!
|
||||||
|
|
||||||
|
# 0.16.0 (2019-04-06)
|
||||||
|
|
||||||
|
# Version 0.16.0: API Improvements and Annotations
|
||||||
|
|
||||||
|
Hello again! This past month has seen [116 commits](https://github.com/omarroth/invidious/compare/0.15.0..0.16.0) from 13 contributors and a couple important changes I'd like to announce.
|
||||||
|
|
||||||
|
A privacy policy is now available [here](https://invidio.us/privacy). I've done my best to explain things as clearly as possible without oversimplifying, and would very much recommend reading it if you're concerned about your privacy and want to learn more about how Invidious uses your data. Please let me know if there is anything that needs clarification.
|
||||||
|
|
||||||
|
I'm also very happy to announce that a Spanish translation has been added to the site. You can use it with `?hl=es` or by setting `es` as your default locale. As always I'm extremely grateful to translators for making the site accessible to more people.
|
||||||
|
|
||||||
|
## For Administrators
|
||||||
|
|
||||||
|
Invidious now supports server-to-server [push notifications](https://developers.google.com/youtube/v3/guides/push_notifications). This uses [PubSubHubbub](https://pubsubhubbub.github.io/PubSubHubbub/pubsubhubbub-core-0.4.html) to automatically handle new videos sent to an instance, which is less resource intensive and generally faster. Note that it will not pull all videos from a subscribed channel, so recommended usage is in addition to `channel_threads`. Using PubSub requires a valid `domain` that updates can be sent to, and a random string that can be used to sign updates sent to the instance. You can enable it by adding `use_pubsub_feeds: true` to your `config.yml`. See [Configuration](https://github.com/omarroth/invidious/wiki/Configuration) for more info.
|
||||||
|
|
||||||
|
Unfortunately there are a couple necessary changes to the DB to support `liveNow` and `premiereTimestamp` in subscription feeds. Migration scripts have been provided that should be used automatically if following the instructions [here](https://github.com/omarroth/invidious/wiki/Updating).
|
||||||
|
|
||||||
|
You can now configure default user preferences for your instance. This allows you to set default locale, player preferences, and more. See [#415](https://github.com/omarroth/invidious/issues/415) for more details and example usage.
|
||||||
|
|
||||||
|
## For Developers
|
||||||
|
|
||||||
|
The [fields](https://developers.google.com/youtube/v3/getting-started#fields) API has been added with [#429](https://github.com/omarroth/invidious/pull/429) and is now supported on all JSON endpoints, thanks [**@afrmtbl**](https://github.com/afrmtbl)! Synax is straight-forward and can be used to reduce data transfer and create a simpler response for debugging. You can see an example [here](https://invidio.us/api/v1/videos/CvFH_6DNRCY?pretty=1&fields=title,recommendedVideos/title). I've been quite happy using it and hope it is similarly useful for others.
|
||||||
|
|
||||||
|
An `/api/v1/annotations/:id` endpoint has been added for pulling legacy annotation data from [this](https://archive.org/details/youtubeannotations) archive, see below for more details. You can also access annotation data available on YouTube using `?source=youtube`, although this will only return card data as legacy annotations were deleted on January 15th.
|
||||||
|
|
||||||
|
A couple minor changes to existing endpoints:
|
||||||
|
|
||||||
|
- A `premiereTimestamp` field has been added to `/api/v1/videos/:id`
|
||||||
|
- A `sort_by` param has been added to `/api/v1/comments/:id`, supports `new`, `top`.
|
||||||
|
|
||||||
|
More info is available in the [documentation](https://github.com/omarroth/invidious/wiki/API).
|
||||||
|
|
||||||
|
## Annotations
|
||||||
|
|
||||||
|
I'm pleased to announce that annotation data is finally available from the roughly 1.4 billion videos archived as part of [this](https://www.reddit.com/r/DataHoarder/comments/aa6czg/youtube_annotation_archive/) project. They are accessible from the Internet Archive [here](https://archive.org/details/youtubeannotations) or as a 355GB torrent, see [here](https://www.reddit.com/r/DataHoarder/comments/b7imx9/youtube_annotation_archive_annotation_data_from/) for more details. A corresponding `/api/v1/annotations/:id` endpoint has been added to Invidious which uses the collection from IA to provide legacy annotations.
|
||||||
|
|
||||||
|
Support for them in the player is possible thanks to [this](https://github.com/afrmtbl/videojs-youtube-annotations) plugin developed by [**@afrmtbl**](https://github.com/afrmtbl). A PR for adding support to the site is available as [#303](https://github.com/omarroth/invidious/pull/303). There's also an [extension](https://github.com/afrmtbl/AnnotationsRestored) for overlaying them on top of the YouTube player (again thanks to [**@afrmtbl**](https://github.com/afrmtbl)), and an [extension](https://tech234a.bitbucket.io/AnnotationsReloaded?src=invidious) for hooking into code still present in the YouTube player itself, developed by [**@tech234a**](https://github.com/tech234a).
|
||||||
|
|
||||||
|
I would recommend reading the [official announcement](https://www.reddit.com/r/DataHoarder/comments/b7imx9/youtube_annotation_archive_annotation_data_from/) for more details. I would like to again thank everyone that helped contribute to this project.
|
||||||
|
|
||||||
|
## Finances
|
||||||
|
|
||||||
|
### Donations
|
||||||
|
|
||||||
|
- [Patreon](https://www.patreon.com/omarroth) : \$42.42
|
||||||
|
- [Liberapay](https://liberapay.com/omarroth) : \$70.11
|
||||||
|
- Crypto : ~\$1.76 (converted from BCH, BTC, BSV)
|
||||||
|
- Total : \$114.29
|
||||||
|
|
||||||
|
### Expenses
|
||||||
|
|
||||||
|
- invidious-load1 (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-db1 (s-4vcpu-8gb) : \$40.00 (database)
|
||||||
|
- Total : \$80.00
|
||||||
|
|
||||||
|
This past month the site saw a couple abnormal peaks in traffic, so an additional webserver has been added to match the increased load. The goal on Patreon has been updated to match the above expenses.
|
||||||
|
|
||||||
|
Thanks everyone!
|
||||||
|
|
||||||
|
# 0.15.0 (2019-03-06)
|
||||||
|
|
||||||
|
## Version 0.15.0: Preferences and Channel Playlists
|
||||||
|
|
||||||
|
The project has seen quite a bit of activity this past month. Large focus has been on fixing bugs, but there's still quite a few new features I'm happy to announce. There have been [133 commits](https://github.com/omarroth/invidious/compare/0.14.0...0.15.0) from 15 contributors this past month.
|
||||||
|
|
||||||
|
As a couple miscellaneous changes, a couple [nice screenshots](https://github.com/omarroth/invidious#screenshots) have been added to the README, so folks can see more of what the site has to offer without creating an account.
|
||||||
|
|
||||||
|
The footer has also been cleaned up quite a bit, and now displays the current version, so it's easier to know what features are available from the current instance.
|
||||||
|
|
||||||
|
## For Administrators
|
||||||
|
|
||||||
|
This past month there has been a minor release - `0.14.1` - which fixes a breaking change made by YouTube for their polymer redesign.
|
||||||
|
|
||||||
|
There have been several new features that unfortunately require a database migration. There are migration scripts provided in `config/migrate-scripts`, and the [wiki](https://github.com/omarroth/invidious/wiki/Updating) has instructions for automatically applying them. I'll do my best to keep those changes to a minimum, and expect to see a corresponding script to automatically apply any new changes.
|
||||||
|
|
||||||
|
Administrator preferences have been added with [#312](https://github.com/omarroth/invidious/issues/312), which allows administrators to customize their instance. Administrators can change the order of feed menus, change the default homepage, disable open registration, and several other options. There's a short 'how-to' [here](https://github.com/omarroth/invidious/issues/312#issuecomment-468831842), and the new options are documented [here](https://github.com/omarroth/invidious/wiki/Configuration).
|
||||||
|
|
||||||
|
An `/api/v1/stats` endpoint has been added with [#356](https://github.com/omarroth/invidious/issues/356), which reports the instance version and number of active users. Statistics are disabled by default, and can be enabled in administator preferences. Statistics for the official instance are available [here](https://invidio.us/api/v1/stats?pretty=1).
|
||||||
|
|
||||||
|
## For Developers
|
||||||
|
|
||||||
|
`/api/v1/channels/:ucid` now provides an `autoGenerated` tag, which returns true for [topic channels](https://www.youtube.com/channel/UCE80FOXpJydkkMo-BYoJdEg), and larger [genre channels](https://www.youtube.com/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ) generated by YouTube. These channels don't have any videos of their own, so `latestVideos` will be empty. It is recommended instead to display a list of playlists generated by YouTube.
|
||||||
|
|
||||||
|
You can now pull a list of playlists from a channel with `/api/v1/channels/playlists/:ucid`. Supported options are documented in the [wiki](https://github.com/omarroth/invidious/wiki/API#get-apiv1channelsplaylistsucid-apiv1channelsucidplaylists). Pagination is handled with a `continuation` token, which is generated on each call. Of note is that auto-generated channels currently have one page of results, and subsequent calls will be empty.
|
||||||
|
|
||||||
|
For quickly pulling the latest 30 videos from a channel, there is now `/api/v1/channels/latest/:ucid`. It is much faster than a call to `/api/v1/channels/:ucid`. It will not convert an author name to a valid ucid automatically, and will not return any extra data about a channel.
|
||||||
|
|
||||||
|
## Preferences
|
||||||
|
|
||||||
|
In addition to administrator preferences mentioned above, you can now change your preferences without an account (see [#42](https://github.com/omarroth/invidious/pull/42)). I think this is quite an improvement to the usability of the site, and is much friendlier to privacy-conscious folks that don't want to make an account. Preferences will be automatically imported to a newly created account.
|
||||||
|
|
||||||
|
Several issues with sorting subscriptions have been fixed, and `/manage_subscriptions` has been sped up significantly. The subscription feed has also seen a bump in performance. Delayed notifications have unfortunately started becoming a problem now that there are more users on the site. Some new changes are currently being tested which should mostly resolve the issue, so expect to see more in the next release.
|
||||||
|
|
||||||
|
## Channel Playlists
|
||||||
|
|
||||||
|
You can now view available playlists from a channel, and [auto-generated channels](https://invidio.us/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ) are no longer empty. You can sort as you would on YouTube, and all the same functionality should be available. I'm quite pleased to finally have it implemented, since it's currently the only data available from the above mentioned auto-generated channels, and makes it much easier to consume music on the site.
|
||||||
|
|
||||||
|
There's also more discussion on improving Invidious for streaming music in [#304](https://github.com/omarroth/invidious/issues/304), and adding support for music.youtube.com. I would appreciate any thoughts on how to improve that experience, since it's a very large and useful part of YouTube.
|
||||||
|
|
||||||
|
## Finances
|
||||||
|
|
||||||
|
### Donations
|
||||||
|
|
||||||
|
- [Patreon](https://www.patreon.com/omarroth) : \$42.42
|
||||||
|
- [Liberapay](https://liberapay.com/omarroth) : \$30.97
|
||||||
|
- Crypto : ~\$0.00 (converted from BCH, BTC)
|
||||||
|
- Total : \$73.39
|
||||||
|
|
||||||
|
### Expenses
|
||||||
|
|
||||||
|
- invidious-load1 (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-db1 (s-4vcpu-8gb) : \$40.00 (database)
|
||||||
|
- Total : \$75.00
|
||||||
|
|
||||||
|
It's been very humbling to see how fast the project has grown, and I look forward to making the site even better. Thank you everyone.
|
||||||
|
|
||||||
# 0.14.0 (2019-02-06)
|
# 0.14.0 (2019-02-06)
|
||||||
|
|
||||||
## Version 0.14.0: Community
|
## Version 0.14.0: Community
|
||||||
@@ -59,14 +304,14 @@ Organizing this project has unfortunately taken up quite a bit of my time, and I
|
|||||||
|
|
||||||
### Expenses
|
### Expenses
|
||||||
|
|
||||||
invidious-load1 (nyc1) : $10.00 (load balancer)
|
- invidious-load1 (nyc1) : \$10.00 (load balancer)
|
||||||
invidious-update1 (s-1vcpu-1gb) : $5.00 (updates feeds)
|
- invidious-update1 (s-1vcpu-1gb) : \$5.00 (updates feeds)
|
||||||
invidious-node1 (s-1vcpu-1gb) : $5.00 (web server)
|
- invidious-node1 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||||
invidious-node2 (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-node3 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||||
invidious-node4 (s-1vcpu-1gb) : $5.00 (web server)
|
- invidious-node4 (s-1vcpu-1gb) : \$5.00 (web server)
|
||||||
invidious-db1 (s-4vcpu-8gb) : $40.00 (database)
|
- invidious-db1 (s-4vcpu-8gb) : \$40.00 (database)
|
||||||
Total : $75.00
|
- Total : \$75.00
|
||||||
|
|
||||||
As always I'm grateful for everyone's contributions and support. I'll see you all in March.
|
As always I'm grateful for everyone's contributions and support. I'll see you all in March.
|
||||||
|
|
||||||
|
|||||||
46
README.md
46
README.md
@@ -3,7 +3,7 @@
|
|||||||
## Invidious is an alternative front-end to YouTube
|
## Invidious is an alternative front-end to YouTube
|
||||||
|
|
||||||
- Audio-only mode (and no need to keep window open on mobile)
|
- Audio-only mode (and no need to keep window open on mobile)
|
||||||
- [Open-source](https://github.com/omarroth/invidious) (AGPLv3 licensed)
|
- [Free software](https://github.com/omarroth/invidious) (AGPLv3 licensed)
|
||||||
- No ads
|
- No ads
|
||||||
- No need to create a Google account to save subscriptions
|
- No need to create a Google account to save subscriptions
|
||||||
- Lightweight (homepage is ~4 KB compressed)
|
- Lightweight (homepage is ~4 KB compressed)
|
||||||
@@ -101,14 +101,15 @@ $ exit
|
|||||||
$ sudo systemctl enable postgresql
|
$ sudo systemctl enable postgresql
|
||||||
$ sudo systemctl start postgresql
|
$ sudo systemctl start postgresql
|
||||||
$ sudo -i -u postgres
|
$ sudo -i -u postgres
|
||||||
$ psql -c "CREATE USER kemal WITH PASSWORD 'kemal';"
|
$ psql -c "CREATE USER kemal WITH PASSWORD 'kemal';" # Change 'kemal' here to a stronger password, and update `password` in config/config.yml
|
||||||
$ createdb -O kemal invidious
|
$ createdb -O kemal invidious
|
||||||
$ psql invidious < /home/invidious/invidious/config/sql/channels.sql
|
$ psql invidious kemal < /home/invidious/invidious/config/sql/channels.sql
|
||||||
$ psql invidious < /home/invidious/invidious/config/sql/videos.sql
|
$ psql invidious kemal < /home/invidious/invidious/config/sql/videos.sql
|
||||||
$ psql invidious < /home/invidious/invidious/config/sql/channel_videos.sql
|
$ psql invidious kemal < /home/invidious/invidious/config/sql/channel_videos.sql
|
||||||
$ psql invidious < /home/invidious/invidious/config/sql/users.sql
|
$ psql invidious kemal < /home/invidious/invidious/config/sql/users.sql
|
||||||
$ psql invidious < /home/invidious/invidious/config/sql/session_ids.sql
|
$ psql invidious kemal < /home/invidious/invidious/config/sql/session_ids.sql
|
||||||
$ psql invidious < /home/invidious/invidious/config/sql/nonces.sql
|
$ psql invidious kemal < /home/invidious/invidious/config/sql/nonces.sql
|
||||||
|
$ psql invidious kemal < /home/invidious/invidious/config/sql/annotations.sql
|
||||||
$ exit
|
$ exit
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -117,7 +118,7 @@ $ exit
|
|||||||
```bash
|
```bash
|
||||||
$ sudo -i -u invidious
|
$ sudo -i -u invidious
|
||||||
$ cd invidious
|
$ cd invidious
|
||||||
$ shards
|
$ shards update && shards install
|
||||||
$ crystal build src/invidious.cr --release
|
$ crystal build src/invidious.cr --release
|
||||||
# test compiled binary
|
# test compiled binary
|
||||||
$ ./invidious # stop with ctrl c
|
$ ./invidious # stop with ctrl c
|
||||||
@@ -143,17 +144,18 @@ $ brew install shards crystal-lang postgres imagemagick librsvg
|
|||||||
$ git clone https://github.com/omarroth/invidious
|
$ git clone https://github.com/omarroth/invidious
|
||||||
$ cd invidious
|
$ cd invidious
|
||||||
$ brew services start postgresql
|
$ brew services start postgresql
|
||||||
$ psql -c "CREATE ROLE kemal WITH LOGIN PASSWORD 'kemal';"
|
$ psql -c "CREATE ROLE kemal WITH PASSWORD 'kemal';" # Change 'kemal' here to a stronger password, and update `password` in config/config.yml
|
||||||
$ createdb invidious -U kemal
|
$ createdb -O kemal invidious
|
||||||
$ psql invidious < config/sql/channels.sql
|
$ psql invidious kemal < config/sql/channels.sql
|
||||||
$ psql invidious < config/sql/videos.sql
|
$ psql invidious kemal < config/sql/videos.sql
|
||||||
$ psql invidious < config/sql/channel_videos.sql
|
$ psql invidious kemal < config/sql/channel_videos.sql
|
||||||
$ psql invidious < config/sql/users.sql
|
$ psql invidious kemal < config/sql/users.sql
|
||||||
$ psql invidious < config/sql/session_ids.sql
|
$ psql invidious kemal < config/sql/session_ids.sql
|
||||||
$ psql invidious < config/sql/nonces.sql
|
$ psql invidious kemal < config/sql/nonces.sql
|
||||||
|
$ psql invidious kemal < config/sql/annotations.sql
|
||||||
|
|
||||||
# Setup Invidious
|
# Setup Invidious
|
||||||
$ shards
|
$ shards update && shards install
|
||||||
$ crystal build src/invidious.cr --release
|
$ crystal build src/invidious.cr --release
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -172,15 +174,12 @@ Usage: invidious [arguments]
|
|||||||
--ssl-key-file FILE SSL key file
|
--ssl-key-file FILE SSL key file
|
||||||
--ssl-cert-file FILE SSL certificate file
|
--ssl-cert-file FILE SSL certificate file
|
||||||
-h, --help Shows this help
|
-h, --help Shows this help
|
||||||
-t THREADS, --crawl-threads=THREADS
|
|
||||||
Number of threads for crawling YouTube (default: 0)
|
|
||||||
-c THREADS, --channel-threads=THREADS
|
-c THREADS, --channel-threads=THREADS
|
||||||
Number of threads for refreshing channels (default: 1)
|
Number of threads for refreshing channels (default: 1)
|
||||||
-f THREADS, --feed-threads=THREADS
|
-f THREADS, --feed-threads=THREADS
|
||||||
Number of threads for refreshing feeds (default: 1)
|
Number of threads for refreshing feeds (default: 1)
|
||||||
-v THREADS, --video-threads=THREADS
|
|
||||||
Number of threads for refreshing videos (default: 0)
|
|
||||||
-o OUTPUT, --output=OUTPUT Redirect output (default: STDOUT)
|
-o OUTPUT, --output=OUTPUT Redirect output (default: STDOUT)
|
||||||
|
-v, --version Print version
|
||||||
```
|
```
|
||||||
|
|
||||||
Or for development:
|
Or for development:
|
||||||
@@ -188,6 +187,7 @@ Or for development:
|
|||||||
```bash
|
```bash
|
||||||
$ curl -fsSLo- https://raw.githubusercontent.com/samueleaton/sentry/master/install.cr | crystal eval
|
$ curl -fsSLo- https://raw.githubusercontent.com/samueleaton/sentry/master/install.cr | crystal eval
|
||||||
$ ./sentry
|
$ ./sentry
|
||||||
|
🤖 Your SentryBot is vigilant. beep-boop...
|
||||||
```
|
```
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
@@ -201,7 +201,7 @@ $ ./sentry
|
|||||||
## Made with Invidious
|
## Made with Invidious
|
||||||
|
|
||||||
- [FreeTube](https://github.com/FreeTubeApp/FreeTube): An Open Source YouTube app for privacy.
|
- [FreeTube](https://github.com/FreeTubeApp/FreeTube): An Open Source YouTube app for privacy.
|
||||||
- [CloudTube](https://github.com/cloudrac3r/cadencegq): Website featuring pastebin, image host, and YouTube player
|
- [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.
|
- [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.
|
- [MusicPiped](https://github.com/deep-gaurav/MusicPiped): A materialistic music player that streams music from YouTube.
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ body {
|
|||||||
color: rgba(35, 35, 35, 1);
|
color: rgba(35, 35, 35, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pure-form input[type="file"] {
|
||||||
|
color: #f0f0f0;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar > .searchbar input {
|
.navbar > .searchbar input {
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
.deleted {
|
||||||
|
background-color: rgb(255, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
.channel-owner {
|
.channel-owner {
|
||||||
background-color: #008bec;
|
background-color: #008bec;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@@ -54,6 +58,7 @@ div {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.loading {
|
.loading {
|
||||||
|
display: inline-block;
|
||||||
animation: spin 2s linear infinite;
|
animation: spin 2s linear infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,11 +81,15 @@ a.pure-button-primary:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
div.thumbnail {
|
div.thumbnail {
|
||||||
|
padding: 28.125%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
img.thumbnail {
|
img.thumbnail {
|
||||||
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
@@ -94,8 +103,8 @@ img.thumbnail {
|
|||||||
padding: 2px;
|
padding: 2px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
right: 0.5em;
|
right: 0.25em;
|
||||||
bottom: -0.5em;
|
bottom: -0.75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.watched {
|
.watched {
|
||||||
@@ -150,6 +159,16 @@ img.thumbnail {
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
|
||||||
transition: 0.1s border-bottom;
|
transition: 0.1s border-bottom;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* https://stackoverflow.com/a/55170420 */
|
||||||
|
input[type="search"]::-webkit-search-cancel-button {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
height: 14px;
|
||||||
|
width: 14px;
|
||||||
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC);
|
||||||
|
background-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar > .searchbar .pure-form fieldset {
|
.navbar > .searchbar .pure-form fieldset {
|
||||||
@@ -176,6 +195,16 @@ img.thumbnail {
|
|||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-aspect-ratio: 16/9) {
|
||||||
|
.player-dimensions.vjs-fluid {
|
||||||
|
padding-top: 46.86% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#player-container {
|
||||||
|
padding-bottom: 46.86% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 767px) {
|
@media screen and (max-width: 767px) {
|
||||||
.navbar {
|
.navbar {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -193,6 +222,11 @@ img.thumbnail {
|
|||||||
.navbar > .searchbar > form {
|
.navbar > .searchbar > form {
|
||||||
width: 60%;
|
width: 60%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 1.25em;
|
||||||
|
margin: 0.42em 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 320px) {
|
@media screen and (max-width: 320px) {
|
||||||
@@ -202,7 +236,7 @@ img.thumbnail {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Footer
|
* Footer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -236,6 +270,46 @@ img.thumbnail {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vjs-play-control,
|
||||||
|
.vjs-volume-panel,
|
||||||
|
.vjs-current-time,
|
||||||
|
.vjs-time-control,
|
||||||
|
.vjs-duration,
|
||||||
|
.vjs-progress-control,
|
||||||
|
.vjs-remaining-time {
|
||||||
|
order: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vjs-captions-button {
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vjs-quality-selector,
|
||||||
|
.video-js .vjs-http-source-selector {
|
||||||
|
order: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vjs-playback-rate {
|
||||||
|
order: 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vjs-share-control {
|
||||||
|
order: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vjs-fullscreen-control {
|
||||||
|
order: 6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vjs-control-bar {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.video-js .vjs-icon-cog {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
.video-js .vjs-control-bar,
|
.video-js .vjs-control-bar,
|
||||||
.vjs-menu-button-popup .vjs-menu .vjs-menu-content {
|
.vjs-menu-button-popup .vjs-menu .vjs-menu-content {
|
||||||
background-color: rgba(35, 35, 35, 0.75);
|
background-color: rgba(35, 35, 35, 0.75);
|
||||||
@@ -258,6 +332,11 @@ img.thumbnail {
|
|||||||
background-color: rgba(15, 15, 15, 0.5);
|
background-color: rgba(15, 15, 15, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fieldset > select,
|
||||||
|
span > select {
|
||||||
|
color: rgba(49, 49, 51, 1);
|
||||||
|
}
|
||||||
|
|
||||||
.video-js .vjs-load-progress,
|
.video-js .vjs-load-progress,
|
||||||
.video-js .vjs-load-progress div {
|
.video-js .vjs-load-progress div {
|
||||||
background: rgba(87, 87, 88, 1);
|
background: rgba(87, 87, 88, 1);
|
||||||
@@ -303,38 +382,21 @@ img.thumbnail {
|
|||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
#player {
|
.player-dimensions.vjs-fluid {
|
||||||
position: absolute;
|
padding-top: 82vh;
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.player-dimensions.vjs-fluid {
|
video.video-js {
|
||||||
padding-top: 46.86%;
|
position: absolute;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#player-container {
|
#player-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-bottom: 46.86%;
|
padding-bottom: 82vh;
|
||||||
margin-left: 1em;
|
|
||||||
margin-right: 1em;
|
|
||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#progress-container {
|
.pure-control-group label {
|
||||||
width: 100%;
|
word-wrap: normal;
|
||||||
border-radius: 2px;
|
|
||||||
background-color: #a0a0a0;
|
|
||||||
color: rgba(35, 35, 35, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
#download-progress {
|
|
||||||
width: 0%;
|
|
||||||
border-radius: 2px;
|
|
||||||
height: 10px;
|
|
||||||
background-color: rgba(0, 182, 240, 1);
|
|
||||||
color: #fff;
|
|
||||||
margin-top: 0.5em;
|
|
||||||
margin-bottom: 0.5em;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* All links that do not fit with the default color goes here */
|
/* All links that do not fit with the default color goes here */
|
||||||
a > .icon,
|
a:not([data-id]) > .icon,
|
||||||
.pure-u-md-1-5 > .h-box > a[href^="/watch?"],
|
.pure-u-lg-1-5 > .h-box > a[href^="/watch?"],
|
||||||
.playlist-restricted > ol > li > a {
|
.playlist-restricted > ol > li > a {
|
||||||
color: #303030;
|
color: #303030;
|
||||||
}
|
}
|
||||||
|
|||||||
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
7
assets/css/videojs-http-source-selector.css
Normal file
7
assets/css/videojs-http-source-selector.css
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* videojs-http-source-selector
|
||||||
|
* @version 1.1.5
|
||||||
|
* @copyright 2019 Justin Fujita <Justin@pivotshare.com>
|
||||||
|
* @license MIT
|
||||||
|
*/
|
||||||
|
.video-js.vjs-http-source-selector{display:block}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* videojs-share
|
* videojs-share
|
||||||
* @version 2.0.1
|
* @version 3.0.0
|
||||||
* @copyright 2018 Mikhail Khazov <mkhazov.work@gmail.com>
|
* @copyright 2019 Mikhail Khazov <mkhazov.work@gmail.com>
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/
|
*/
|
||||||
.video-js.vjs-videojs-share_open .vjs-modal-dialog .vjs-modal-dialog-content{display:flex;align-items:center;padding:0;background-image:linear-gradient(to bottom, rgba(0,0,0,0.77), rgba(0,0,0,0.75))}.video-js.vjs-videojs-share_open .vjs-modal-dialog .vjs-close-button{position:absolute;right:0;top:5px;width:30px;height:30px;color:#fff;cursor:pointer;opacity:0.9;transition:opacity 0.25s ease-out}.video-js.vjs-videojs-share_open .vjs-modal-dialog .vjs-close-button:before{content:'×';font-size:20px;line-height:15px}.video-js.vjs-videojs-share_open .vjs-modal-dialog .vjs-close-button:hover{opacity:1}.video-js .vjs-share{display:flex;flex-direction:column;justify-content:space-around;align-items:center;width:100%;height:100%;max-height:400px}.video-js .vjs-share__top,.video-js .vjs-share__middle,.video-js .vjs-share__bottom{display:flex}.video-js .vjs-share__top,.video-js .vjs-share__middle{flex-direction:column;justify-content:space-between}.video-js .vjs-share__middle{padding:0 25px}.video-js .vjs-share__title{align-self:center;font-size:22px;color:#fff}.video-js .vjs-share__subtitle{width:100%;margin:0 auto 12px;font-size:16px;color:#fff;opacity:0.7}.video-js .vjs-share__short-link-wrapper{position:relative;display:block;width:100%;height:40px;margin:0 auto;margin-bottom:15px;border:0;color:rgba(255,255,255,0.65);background-color:#363636;outline:none;overflow:hidden;flex-shrink:0}.video-js .vjs-share__short-link{display:block;width:100%;height:100%;padding:0 40px 0 15px;border:0;color:rgba(255,255,255,0.65);background-color:#363636;outline:none}.video-js .vjs-share__btn{position:absolute;right:0;bottom:0;height:40px;width:40px;display:flex;align-items:center;padding:0 11px;border:0;color:#fff;background-color:#2e2e2e;background-size:18px 19px;background-position:center;background-repeat:no-repeat;cursor:pointer;outline:none;transition:width 0.3s ease-out, padding 0.3s ease-out}.video-js .vjs-share__btn svg{flex-shrink:0}.video-js .vjs-share__btn span{position:relative;padding-left:10px;opacity:0;transition:opacity 0.3s ease-out}.video-js .vjs-share__btn:hover{justify-content:center;width:100%;padding:0 40px;background-image:none}.video-js .vjs-share__btn:hover span{opacity:1}.video-js .vjs-share__socials{display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;transition:width 0.3s ease-out, height 0.3s ease-out}.video-js .vjs-share__social{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:32px;height:32px;margin-right:6px;margin-bottom:6px;cursor:pointer;font-size:8px;transition:transform 0.3s ease-out, filter 0.2s ease-out;border:none;outline:none}.video-js .vjs-share__social:hover{filter:brightness(115%)}.video-js .vjs-share__social svg{width:100%;max-height:24px}.video-js .vjs-share__social_vk{background-color:#5d7294}.video-js .vjs-share__social_ok{background-color:#ed7c20}.video-js .vjs-share__social_mail{background-color:#134785}.video-js .vjs-share__social_tw{background-color:#76aaeb}.video-js .vjs-share__social_reddit{background-color:#ff4500}.video-js .vjs-share__social_fbFeed{background-color:#475995}.video-js .vjs-share__social_messenger{background-color:#0084ff}.video-js .vjs-share__social_gp{background-color:#d53f35}.video-js .vjs-share__social_linkedin{background-color:#0077b5}.video-js .vjs-share__social_viber{background-color:#766db5}.video-js .vjs-share__social_telegram{background-color:#4bb0e2}.video-js .vjs-share__social_whatsapp{background-color:#78c870}.video-js .vjs-share__bottom{justify-content:center}@media (max-height: 220px){.video-js .vjs-share .hidden-xs{display:none}}@media (max-height: 350px){.video-js .vjs-share .hidden-sm{display:none}}@media (min-height: 400px){.video-js .vjs-share__title{margin-bottom:15px}.video-js .vjs-share__short-link-wrapper{margin-bottom:30px}}@media (min-width: 320px){.video-js.vjs-videojs-share_open .vjs-modal-dialog .vjs-close-button{right:5px;top:10px}}@media (min-width: 660px){.video-js.vjs-videojs-share_open .vjs-modal-dialog .vjs-close-button{right:20px;top:20px}.video-js .vjs-share__social{width:40px;height:40px}}
|
.video-js.vjs-videojs-share_open .vjs-modal-dialog .vjs-modal-dialog-content{display:flex;align-items:center;padding:0;background-image:linear-gradient(to bottom, rgba(0,0,0,0.77), rgba(0,0,0,0.75))}.video-js.vjs-videojs-share_open .vjs-modal-dialog .vjs-close-button{position:absolute;right:0;top:5px;width:30px;height:30px;color:#fff;cursor:pointer;opacity:0.9;transition:opacity 0.25s ease-out}.video-js.vjs-videojs-share_open .vjs-modal-dialog .vjs-close-button:before{content:'×';font-size:20px;line-height:15px}.video-js.vjs-videojs-share_open .vjs-modal-dialog .vjs-close-button:hover{opacity:1}.video-js .vjs-share{display:flex;flex-direction:column;justify-content:space-around;align-items:center;width:100%;height:100%;max-height:400px}.video-js .vjs-share__top,.video-js .vjs-share__middle,.video-js .vjs-share__bottom{display:flex}.video-js .vjs-share__top,.video-js .vjs-share__middle{flex-direction:column;justify-content:space-between}.video-js .vjs-share__middle{padding:0 25px}.video-js .vjs-share__title{align-self:center;font-size:22px;color:#fff}.video-js .vjs-share__subtitle{width:100%;margin:0 auto 12px;font-size:16px;color:#fff;opacity:0.7}.video-js .vjs-share__short-link-wrapper{position:relative;display:block;width:100%;height:40px;margin:0 auto;margin-bottom:15px;border:0;color:rgba(255,255,255,0.65);background-color:#363636;outline:none;overflow:hidden;flex-shrink:0}.video-js .vjs-share__short-link{display:block;width:100%;height:100%;padding:0 40px 0 15px;border:0;color:rgba(255,255,255,0.65);background-color:#363636;outline:none}.video-js .vjs-share__btn{position:absolute;right:0;bottom:0;height:40px;width:40px;display:flex;align-items:center;padding:0 11px;border:0;color:#fff;background-color:#2e2e2e;background-size:18px 19px;background-position:center;background-repeat:no-repeat;cursor:pointer;outline:none;transition:width 0.3s ease-out, padding 0.3s ease-out}.video-js .vjs-share__btn svg{flex-shrink:0}.video-js .vjs-share__btn span{position:relative;padding-left:10px;opacity:0;transition:opacity 0.3s ease-out}.video-js .vjs-share__btn:hover{justify-content:center;width:100%;padding:0 40px;background-image:none}.video-js .vjs-share__btn:hover span{opacity:1}.video-js .vjs-share__socials{display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;transition:width 0.3s ease-out, height 0.3s ease-out}.video-js .vjs-share__social{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:32px;height:32px;margin-right:6px;margin-bottom:6px;cursor:pointer;font-size:8px;transition:transform 0.3s ease-out, filter 0.2s ease-out;border:none;outline:none}.video-js .vjs-share__social:hover{filter:brightness(115%)}.video-js .vjs-share__social svg{overflow:visible;max-height:24px}.video-js .vjs-share__social_vk{background-color:#5d7294}.video-js .vjs-share__social_ok{background-color:#ed7c20}.video-js .vjs-share__social_mail,.video-js .vjs-share__social_email{background-color:#134785}.video-js .vjs-share__social_tw{background-color:#76aaeb}.video-js .vjs-share__social_reddit{background-color:#ff4500}.video-js .vjs-share__social_fbFeed{background-color:#475995}.video-js .vjs-share__social_messenger{background-color:#0084ff}.video-js .vjs-share__social_gp{background-color:#d53f35}.video-js .vjs-share__social_linkedin{background-color:#0077b5}.video-js .vjs-share__social_viber{background-color:#766db5}.video-js .vjs-share__social_telegram{background-color:#4bb0e2}.video-js .vjs-share__social_whatsapp{background-color:#78c870}.video-js .vjs-share__bottom{justify-content:center}@media (max-height: 220px){.video-js .vjs-share .hidden-xs{display:none}}@media (max-height: 350px){.video-js .vjs-share .hidden-sm{display:none}}@media (min-height: 400px){.video-js .vjs-share__title{margin-bottom:15px}.video-js .vjs-share__short-link-wrapper{margin-bottom:30px}}@media (min-width: 320px){.video-js.vjs-videojs-share_open .vjs-modal-dialog .vjs-close-button{right:5px;top:10px}}@media (min-width: 660px){.video-js.vjs-videojs-share_open .vjs-modal-dialog .vjs-close-button{right:20px;top:20px}.video-js .vjs-share__social{width:40px;height:40px}}
|
||||||
|
|||||||
7
assets/css/videojs-vtt-thumbnails.css
Normal file
7
assets/css/videojs-vtt-thumbnails.css
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* videojs-vtt-thumbnails
|
||||||
|
* @version 0.0.13
|
||||||
|
* @copyright 2019 Chris Boustead <chris@forgemotion.com>
|
||||||
|
* @license MIT
|
||||||
|
*/
|
||||||
|
.video-js.vjs-vtt-thumbnails{display:block}.video-js .vjs-vtt-thumbnail-display{position:absolute;bottom:85%;pointer-events:none;box-shadow:0 0 7px rgba(0,0,0,0.6)}
|
||||||
1
assets/css/videojs-youtube-annotations.min.css
vendored
Normal file
1
assets/css/videojs-youtube-annotations.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.__cxt-ar-annotations-container__{--annotation-close-size: 20px;position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none;overflow:hidden}.__cxt-ar-annotation__{position:absolute;box-sizing:border-box;font-family:Arial,sans-serif;color:#fff;z-index:20;pointer-events:auto}.__cxt-ar-annotation__ span{position:absolute;left:0;top:0;overflow:hidden;word-wrap:break-word;white-space:pre-wrap;pointer-events:none;box-sizing:border-box;padding:2%;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.__cxt-ar-annotation-close__{display:none;position:absolute;width:var(--annotation-close-size);height:var(--annotation-close-size);cursor:pointer;right:calc(var(--annotation-close-size)/-1.8);top:calc(var(--annotation-close-size)/-1.8);z-index:1}.__cxt-ar-annotation__:hover:not([hidden]):not([data-ar-closed]) .__cxt-ar-annotation-close__{display:block}.__cxt-ar-annotation__[hidden]{display:none!important}.__cxt-ar-annotation__[data-ar-type=highlight]{border:1px solid rgba(255,255,255,.1);background-color:transparent}.__cxt-ar-annotation__[data-ar-type=highlight]:hover{border:1px solid rgba(255,255,255,.5);background-color:transparent}.__cxt-ar-annotation__ svg{pointer-events:all}
|
||||||
29
assets/js/dash.mediaplayer.min.js
vendored
29
assets/js/dash.mediaplayer.min.js
vendored
File diff suppressed because one or more lines are too long
88
assets/js/embed.js
Normal file
88
assets/js/embed.js
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
function get_playlist(plid, timeouts = 0) {
|
||||||
|
if (timeouts > 10) {
|
||||||
|
console.log('Failed to pull playlist');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (plid.startsWith('RD')) {
|
||||||
|
var plid_url = '/api/v1/mixes/' + plid +
|
||||||
|
'?continuation=' + video_data.id +
|
||||||
|
'&format=html&hl=' + video_data.preferences.locale;
|
||||||
|
} else {
|
||||||
|
var plid_url = '/api/v1/playlists/' + plid +
|
||||||
|
'?continuation=' + video_data.id +
|
||||||
|
'&format=html&hl=' + video_data.preferences.locale;
|
||||||
|
}
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.responseType = 'json';
|
||||||
|
xhr.timeout = 20000;
|
||||||
|
xhr.open('GET', plid_url, true);
|
||||||
|
xhr.send();
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState === 4) {
|
||||||
|
if (xhr.status === 200) {
|
||||||
|
if (xhr.response.nextVideo) {
|
||||||
|
player.on('ended', function () {
|
||||||
|
var url = new URL('https://example.com/embed/' + xhr.response.nextVideo);
|
||||||
|
|
||||||
|
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('list', plid);
|
||||||
|
location.assign(url.pathname + url.search);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
xhr.ontimeout = function () {
|
||||||
|
console.log('Pulling playlist timed out.');
|
||||||
|
get_playlist(plid, timeouts++);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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.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);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (video_data.video_series.length !== 0) {
|
||||||
|
url.searchParams.set('playlist', video_data.video_series.join(','))
|
||||||
|
}
|
||||||
|
|
||||||
|
location.assign(url.pathname + url.search);
|
||||||
|
});
|
||||||
|
}
|
||||||
139
assets/js/notifications.js
Normal file
139
assets/js/notifications.js
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
var notifications, delivered;
|
||||||
|
|
||||||
|
function get_subscriptions(callback, failures = 1) {
|
||||||
|
if (failures >= 10) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.responseType = 'json';
|
||||||
|
xhr.timeout = 20000;
|
||||||
|
xhr.open('GET', '/api/v1/auth/subscriptions', true);
|
||||||
|
xhr.send(null);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState === 4) {
|
||||||
|
if (xhr.status === 200) {
|
||||||
|
subscriptions = xhr.response;
|
||||||
|
callback(subscriptions);
|
||||||
|
} else {
|
||||||
|
console.log('Pulling subscriptions failed... ' + failures + '/10');
|
||||||
|
get_subscriptions(callback, failures++)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
xhr.ontimeout = function () {
|
||||||
|
console.log('Pulling subscriptions failed... ' + failures + '/10');
|
||||||
|
get_subscriptions(callback, failures++);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function create_notification_stream(subscriptions) {
|
||||||
|
notifications = new SSE(
|
||||||
|
'/api/v1/auth/notifications?fields=videoId,title,author,authorId,publishedText,published,authorThumbnails,liveNow', {
|
||||||
|
withCredentials: true,
|
||||||
|
payload: 'topics=' + subscriptions.map(function (subscription) { return subscription.authorId }).join(','),
|
||||||
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
|
||||||
|
});
|
||||||
|
delivered = [];
|
||||||
|
|
||||||
|
var start_time = Math.round(new Date() / 1000);
|
||||||
|
|
||||||
|
notifications.onmessage = function (event) {
|
||||||
|
if (!event.id) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var notification = JSON.parse(event.data);
|
||||||
|
console.log('Got notification:', notification);
|
||||||
|
|
||||||
|
if (start_time < notification.published && !delivered.includes(notification.videoId)) {
|
||||||
|
if (Notification.permission === 'granted') {
|
||||||
|
var system_notification =
|
||||||
|
new Notification((notification.liveNow ? notification_data.live_now_text : notification_data.upload_text).replace('`x`', notification.author), {
|
||||||
|
body: notification.title,
|
||||||
|
icon: '/ggpht' + new URL(notification.authorThumbnails[2].url).pathname,
|
||||||
|
img: '/ggpht' + new URL(notification.authorThumbnails[4].url).pathname,
|
||||||
|
tag: notification.videoId
|
||||||
|
});
|
||||||
|
|
||||||
|
system_notification.onclick = function (event) {
|
||||||
|
window.open('/watch?v=' + event.currentTarget.tag, '_blank');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
delivered.push(notification.videoId);
|
||||||
|
localStorage.setItem('notification_count', parseInt(localStorage.getItem('notification_count') || '0') + 1);
|
||||||
|
var notification_ticker = document.getElementById('notification_ticker');
|
||||||
|
|
||||||
|
if (parseInt(localStorage.getItem('notification_count')) > 0) {
|
||||||
|
notification_ticker.innerHTML =
|
||||||
|
'<span id="notification_count">' + localStorage.getItem('notification_count') + '</span> <i class="icon ion-ios-notifications"></i>';
|
||||||
|
} else {
|
||||||
|
notification_ticker.innerHTML =
|
||||||
|
'<i class="icon ion-ios-notifications-outline"></i>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
notifications.onerror = function (event) {
|
||||||
|
console.log('Something went wrong with notifications, trying to reconnect...');
|
||||||
|
notifications.close();
|
||||||
|
get_subscriptions(create_notification_stream);
|
||||||
|
}
|
||||||
|
|
||||||
|
notifications.ontimeout = function (event) {
|
||||||
|
console.log('Something went wrong with notifications, trying to reconnect...');
|
||||||
|
notifications.close();
|
||||||
|
get_subscriptions(create_notification_stream);
|
||||||
|
}
|
||||||
|
|
||||||
|
notifications.stream();
|
||||||
|
}
|
||||||
|
|
||||||
|
window.addEventListener('load', function (e) {
|
||||||
|
localStorage.setItem('notification_count', document.getElementById('notification_count') ? document.getElementById('notification_count').innerText : '0');
|
||||||
|
|
||||||
|
if (localStorage.getItem('stream')) {
|
||||||
|
localStorage.removeItem('stream');
|
||||||
|
} else {
|
||||||
|
setTimeout(function () {
|
||||||
|
if (!localStorage.getItem('stream')) {
|
||||||
|
get_subscriptions(create_notification_stream);
|
||||||
|
localStorage.setItem('stream', true);
|
||||||
|
}
|
||||||
|
}, Math.random() * 1000 + 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
window.addEventListener('storage', function (e) {
|
||||||
|
if (e.key === 'stream' && !e.newValue) {
|
||||||
|
if (notifications) {
|
||||||
|
localStorage.setItem('stream', true);
|
||||||
|
} else {
|
||||||
|
setTimeout(function () {
|
||||||
|
if (!localStorage.getItem('stream')) {
|
||||||
|
get_subscriptions(create_notification_stream);
|
||||||
|
localStorage.setItem('stream', true);
|
||||||
|
}
|
||||||
|
}, Math.random() * 1000 + 10);
|
||||||
|
}
|
||||||
|
} else if (e.key === 'notification_count') {
|
||||||
|
var notification_ticker = document.getElementById('notification_ticker');
|
||||||
|
|
||||||
|
if (parseInt(e.newValue) > 0) {
|
||||||
|
notification_ticker.innerHTML =
|
||||||
|
'<span id="notification_count">' + e.newValue + '</span> <i class="icon ion-ios-notifications"></i>';
|
||||||
|
} else {
|
||||||
|
notification_ticker.innerHTML =
|
||||||
|
'<i class="icon ion-ios-notifications-outline"></i>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
window.addEventListener('unload', function (e) {
|
||||||
|
if (notifications) {
|
||||||
|
localStorage.removeItem('stream');
|
||||||
|
}
|
||||||
|
});
|
||||||
240
assets/js/player.js
Normal file
240
assets/js/player.js
Normal file
@@ -0,0 +1,240 @@
|
|||||||
|
var options = {
|
||||||
|
preload: "auto",
|
||||||
|
liveui: true,
|
||||||
|
playbackRates: [0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 2.0],
|
||||||
|
controlBar: {
|
||||||
|
children: [
|
||||||
|
"playToggle",
|
||||||
|
"volumePanel",
|
||||||
|
"currentTimeDisplay",
|
||||||
|
"timeDivider",
|
||||||
|
"durationDisplay",
|
||||||
|
"progressControl",
|
||||||
|
"remainingTimeDisplay",
|
||||||
|
"captionsButton",
|
||||||
|
"qualitySelector",
|
||||||
|
"playbackRateMenuButton",
|
||||||
|
"fullscreenToggle"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (player_data.aspect_ratio) {
|
||||||
|
options.aspectRatio = player_data.aspect_ratio;
|
||||||
|
}
|
||||||
|
|
||||||
|
var embed_url = new URL(location);
|
||||||
|
embed_url.searchParams.delete('v');
|
||||||
|
short_url = location.origin + '/' + video_data.id + embed_url.search;
|
||||||
|
embed_url = location.origin + '/embed/' + video_data.id + embed_url.search;
|
||||||
|
|
||||||
|
var shareOptions = {
|
||||||
|
socials: ["fbFeed", "tw", "reddit", "email"],
|
||||||
|
|
||||||
|
url: short_url,
|
||||||
|
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>"
|
||||||
|
}
|
||||||
|
|
||||||
|
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]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
player.on('error', function (event) {
|
||||||
|
if (player.error().code === 2 || player.error().code === 4) {
|
||||||
|
setInterval(setTimeout(function (event) {
|
||||||
|
console.log('An error occured in the player, reloading...');
|
||||||
|
|
||||||
|
var currentTime = player.currentTime();
|
||||||
|
var playbackRate = player.playbackRate();
|
||||||
|
var paused = player.paused();
|
||||||
|
|
||||||
|
player.load();
|
||||||
|
|
||||||
|
if (currentTime > 0.5) {
|
||||||
|
currentTime -= 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
player.currentTime(currentTime);
|
||||||
|
player.playbackRate(playbackRate);
|
||||||
|
|
||||||
|
if (!paused) {
|
||||||
|
player.play();
|
||||||
|
}
|
||||||
|
}, 5000), 5000);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Add markers
|
||||||
|
if (video_data.params.video_start > 0 || video_data.params.video_end > 0) {
|
||||||
|
var markers = [{ time: video_data.params.video_start, text: 'Start' }];
|
||||||
|
|
||||||
|
if (video_data.params.video_end < 0) {
|
||||||
|
markers.push({ time: video_data.length_seconds - 0.5, text: 'End' });
|
||||||
|
} else {
|
||||||
|
markers.push({ time: video_data.params.video_end, text: 'End' });
|
||||||
|
}
|
||||||
|
|
||||||
|
player.markers({
|
||||||
|
onMarkerReached: function (marker) {
|
||||||
|
if (marker.text === 'End') {
|
||||||
|
if (player.loop()) {
|
||||||
|
player.markers.prev('Start');
|
||||||
|
} else {
|
||||||
|
player.pause();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
markers: markers
|
||||||
|
});
|
||||||
|
|
||||||
|
player.currentTime(video_data.params.video_start);
|
||||||
|
}
|
||||||
|
|
||||||
|
player.volume(video_data.params.volume / 100);
|
||||||
|
player.playbackRate(video_data.params.speed);
|
||||||
|
|
||||||
|
player.on('waiting', function () {
|
||||||
|
if (player.playbackRate() > 1 && player.liveTracker.isLive() && player.liveTracker.atLiveEdge()) {
|
||||||
|
console.log('Player has caught up to source, resetting playbackRate.')
|
||||||
|
player.playbackRate(1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (video_data.params.autoplay) {
|
||||||
|
var bpb = player.getChild('bigPlayButton');
|
||||||
|
|
||||||
|
if (bpb) {
|
||||||
|
bpb.hide();
|
||||||
|
|
||||||
|
player.ready(function () {
|
||||||
|
new Promise(function (resolve, reject) {
|
||||||
|
setTimeout(() => resolve(1), 1);
|
||||||
|
}).then(function (result) {
|
||||||
|
var promise = player.play();
|
||||||
|
|
||||||
|
if (promise !== undefined) {
|
||||||
|
promise.then(_ => {
|
||||||
|
}).catch(error => {
|
||||||
|
bpb.show();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!video_data.params.listen && video_data.params.quality === 'dash') {
|
||||||
|
player.httpSourceSelector();
|
||||||
|
}
|
||||||
|
|
||||||
|
player.vttThumbnails({
|
||||||
|
src: location.origin + '/api/v1/storyboards/' + video_data.id + '?height=90'
|
||||||
|
});
|
||||||
|
|
||||||
|
// 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);
|
||||||
|
xhr.send();
|
||||||
|
|
||||||
|
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');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Since videojs-share can sometimes be blocked, we defer it until last
|
||||||
|
player.share(shareOptions);
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
200
assets/js/sse.js
Normal file
200
assets/js/sse.js
Normal file
@@ -0,0 +1,200 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (C) 2016 Maxime Petazzoni <maxime.petazzoni@bulix.org>.
|
||||||
|
* All rights reserved.
|
||||||
|
*/
|
||||||
|
|
||||||
|
var SSE = function (url, options) {
|
||||||
|
if (!(this instanceof SSE)) {
|
||||||
|
return new SSE(url, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.INITIALIZING = -1;
|
||||||
|
this.CONNECTING = 0;
|
||||||
|
this.OPEN = 1;
|
||||||
|
this.CLOSED = 2;
|
||||||
|
|
||||||
|
this.url = url;
|
||||||
|
|
||||||
|
options = options || {};
|
||||||
|
this.headers = options.headers || {};
|
||||||
|
this.payload = options.payload !== undefined ? options.payload : '';
|
||||||
|
this.method = options.method || (this.payload && 'POST' || 'GET');
|
||||||
|
|
||||||
|
this.FIELD_SEPARATOR = ':';
|
||||||
|
this.listeners = {};
|
||||||
|
|
||||||
|
this.xhr = null;
|
||||||
|
this.readyState = this.INITIALIZING;
|
||||||
|
this.progress = 0;
|
||||||
|
this.chunk = '';
|
||||||
|
|
||||||
|
this.addEventListener = function(type, listener) {
|
||||||
|
if (this.listeners[type] === undefined) {
|
||||||
|
this.listeners[type] = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.listeners[type].indexOf(listener) === -1) {
|
||||||
|
this.listeners[type].push(listener);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
this.removeEventListener = function(type, listener) {
|
||||||
|
if (this.listeners[type] === undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var filtered = [];
|
||||||
|
this.listeners[type].forEach(function(element) {
|
||||||
|
if (element !== listener) {
|
||||||
|
filtered.push(element);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (filtered.length === 0) {
|
||||||
|
delete this.listeners[type];
|
||||||
|
} else {
|
||||||
|
this.listeners[type] = filtered;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
this.dispatchEvent = function(e) {
|
||||||
|
if (!e) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
e.source = this;
|
||||||
|
|
||||||
|
var onHandler = 'on' + e.type;
|
||||||
|
if (this.hasOwnProperty(onHandler)) {
|
||||||
|
this[onHandler].call(this, e);
|
||||||
|
if (e.defaultPrevented) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.listeners[e.type]) {
|
||||||
|
return this.listeners[e.type].every(function(callback) {
|
||||||
|
callback(e);
|
||||||
|
return !e.defaultPrevented;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
|
this._setReadyState = function (state) {
|
||||||
|
var event = new CustomEvent('readystatechange');
|
||||||
|
event.readyState = state;
|
||||||
|
this.readyState = state;
|
||||||
|
this.dispatchEvent(event);
|
||||||
|
};
|
||||||
|
|
||||||
|
this._onStreamFailure = function(e) {
|
||||||
|
this.dispatchEvent(new CustomEvent('error'));
|
||||||
|
this.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
this._onStreamProgress = function(e) {
|
||||||
|
if (this.xhr.status !== 200) {
|
||||||
|
this._onStreamFailure(e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.readyState == this.CONNECTING) {
|
||||||
|
this.dispatchEvent(new CustomEvent('open'));
|
||||||
|
this._setReadyState(this.OPEN);
|
||||||
|
}
|
||||||
|
|
||||||
|
var data = this.xhr.responseText.substring(this.progress);
|
||||||
|
this.progress += data.length;
|
||||||
|
data.split(/(\r\n|\r|\n){2}/g).forEach(function(part) {
|
||||||
|
if (part.trim().length === 0) {
|
||||||
|
this.dispatchEvent(this._parseEventChunk(this.chunk.trim()));
|
||||||
|
this.chunk = '';
|
||||||
|
} else {
|
||||||
|
this.chunk += part;
|
||||||
|
}
|
||||||
|
}.bind(this));
|
||||||
|
};
|
||||||
|
|
||||||
|
this._onStreamLoaded = function(e) {
|
||||||
|
this._onStreamProgress(e);
|
||||||
|
|
||||||
|
// Parse the last chunk.
|
||||||
|
this.dispatchEvent(this._parseEventChunk(this.chunk));
|
||||||
|
this.chunk = '';
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parse a received SSE event chunk into a constructed event object.
|
||||||
|
*/
|
||||||
|
this._parseEventChunk = function(chunk) {
|
||||||
|
if (!chunk || chunk.length === 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
var e = {'id': null, 'retry': null, 'data': '', 'event': 'message'};
|
||||||
|
chunk.split(/\n|\r\n|\r/).forEach(function(line) {
|
||||||
|
line = line.trimRight();
|
||||||
|
var index = line.indexOf(this.FIELD_SEPARATOR);
|
||||||
|
if (index <= 0) {
|
||||||
|
// Line was either empty, or started with a separator and is a comment.
|
||||||
|
// Either way, ignore.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var field = line.substring(0, index);
|
||||||
|
if (!(field in e)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var value = line.substring(index + 1).trimLeft();
|
||||||
|
if (field === 'data') {
|
||||||
|
e[field] += value;
|
||||||
|
} else {
|
||||||
|
e[field] = value;
|
||||||
|
}
|
||||||
|
}.bind(this));
|
||||||
|
|
||||||
|
var event = new CustomEvent(e.event);
|
||||||
|
event.data = e.data;
|
||||||
|
event.id = e.id;
|
||||||
|
return event;
|
||||||
|
};
|
||||||
|
|
||||||
|
this._checkStreamClosed = function() {
|
||||||
|
if (this.xhr.readyState === XMLHttpRequest.DONE) {
|
||||||
|
this._setReadyState(this.CLOSED);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
this.stream = function() {
|
||||||
|
this._setReadyState(this.CONNECTING);
|
||||||
|
|
||||||
|
this.xhr = new XMLHttpRequest();
|
||||||
|
this.xhr.addEventListener('progress', this._onStreamProgress.bind(this));
|
||||||
|
this.xhr.addEventListener('load', this._onStreamLoaded.bind(this));
|
||||||
|
this.xhr.addEventListener('readystatechange', this._checkStreamClosed.bind(this));
|
||||||
|
this.xhr.addEventListener('error', this._onStreamFailure.bind(this));
|
||||||
|
this.xhr.addEventListener('abort', this._onStreamFailure.bind(this));
|
||||||
|
this.xhr.open(this.method, this.url);
|
||||||
|
for (var header in this.headers) {
|
||||||
|
this.xhr.setRequestHeader(header, this.headers[header]);
|
||||||
|
}
|
||||||
|
this.xhr.send(this.payload);
|
||||||
|
};
|
||||||
|
|
||||||
|
this.close = function() {
|
||||||
|
if (this.readyState === this.CLOSED) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.xhr.abort();
|
||||||
|
this.xhr = null;
|
||||||
|
this._setReadyState(this.CLOSED);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
// Export our SSE module for npm.js
|
||||||
|
if (typeof exports !== 'undefined') {
|
||||||
|
exports.SSE = SSE;
|
||||||
|
}
|
||||||
76
assets/js/subscribe_widget.js
Normal file
76
assets/js/subscribe_widget.js
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
var subscribe_button = document.getElementById('subscribe');
|
||||||
|
subscribe_button.parentNode['action'] = 'javascript:void(0)';
|
||||||
|
|
||||||
|
if (subscribe_button.getAttribute('data-type') === 'subscribe') {
|
||||||
|
subscribe_button.onclick = subscribe;
|
||||||
|
} else {
|
||||||
|
subscribe_button.onclick = unsubscribe;
|
||||||
|
}
|
||||||
|
|
||||||
|
function subscribe(timeouts = 0) {
|
||||||
|
if (timeouts >= 10) {
|
||||||
|
console.log('Failed to subscribe.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var url = '/subscription_ajax?action_create_subscription_to_channel=1&redirect=false' +
|
||||||
|
'&c=' + subscribe_data.ucid;
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.responseType = 'json';
|
||||||
|
xhr.timeout = 20000;
|
||||||
|
xhr.open('POST', url, true);
|
||||||
|
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||||
|
xhr.send('csrf_token=' + subscribe_data.csrf_token);
|
||||||
|
|
||||||
|
var fallback = subscribe_button.innerHTML;
|
||||||
|
subscribe_button.onclick = unsubscribe;
|
||||||
|
subscribe_button.innerHTML = '<b>' + subscribe_data.unsubscribe_text + ' | ' + subscribe_data.sub_count_text + '</b>';
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState == 4) {
|
||||||
|
if (xhr.status != 200) {
|
||||||
|
subscribe_button.onclick = subscribe;
|
||||||
|
subscribe_button.innerHTML = fallback;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
xhr.ontimeout = function () {
|
||||||
|
console.log('Subscribing timed out.');
|
||||||
|
subscribe(timeouts++);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function unsubscribe(timeouts = 0) {
|
||||||
|
if (timeouts >= 10) {
|
||||||
|
console.log('Failed to subscribe');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var url = '/subscription_ajax?action_remove_subscriptions=1&redirect=false' +
|
||||||
|
'&c=' + subscribe_data.ucid;
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.responseType = 'json';
|
||||||
|
xhr.timeout = 20000;
|
||||||
|
xhr.open('POST', url, true);
|
||||||
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||||
|
xhr.send('csrf_token=' + subscribe_data.csrf_token);
|
||||||
|
|
||||||
|
var fallback = subscribe_button.innerHTML;
|
||||||
|
subscribe_button.onclick = subscribe;
|
||||||
|
subscribe_button.innerHTML = '<b>' + subscribe_data.subscribe_text + ' | ' + subscribe_data.sub_count_text + '</b>';
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState == 4) {
|
||||||
|
if (xhr.status != 200) {
|
||||||
|
subscribe_button.onclick = unsubscribe;
|
||||||
|
subscribe_button.innerHTML = fallback;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
xhr.ontimeout = function () {
|
||||||
|
console.log('Unsubscribing timed out.');
|
||||||
|
unsubscribe(timeouts++);
|
||||||
|
}
|
||||||
|
}
|
||||||
34
assets/js/themes.js
Normal file
34
assets/js/themes.js
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
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 url = '/toggle_theme?redirect=false';
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.responseType = 'json';
|
||||||
|
xhr.timeout = 20000;
|
||||||
|
xhr.open('GET', url, true);
|
||||||
|
xhr.send();
|
||||||
|
|
||||||
|
set_mode(dark_mode);
|
||||||
|
localStorage.setItem('dark_mode', dark_mode);
|
||||||
|
});
|
||||||
|
|
||||||
|
window.addEventListener('storage', function (e) {
|
||||||
|
if (e.key == 'dark_mode') {
|
||||||
|
var dark_mode = e.newValue === 'true';
|
||||||
|
set_mode(dark_mode);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function set_mode(bool) {
|
||||||
|
document.getElementById('dark_theme').media = !bool ? 'none' : '';
|
||||||
|
document.getElementById('light_theme').media = bool ? 'none' : '';
|
||||||
|
|
||||||
|
if (bool) {
|
||||||
|
toggle_theme.children[0].setAttribute('class', 'icon ion-ios-sunny');
|
||||||
|
} else {
|
||||||
|
toggle_theme.children[0].setAttribute('class', 'icon ion-ios-moon');
|
||||||
|
}
|
||||||
|
}
|
||||||
20
assets/js/video.min.js
vendored
20
assets/js/video.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
|||||||
/*! @name videojs-contrib-quality-levels @version 2.0.7 @license Apache-2.0 */
|
/*! @name videojs-contrib-quality-levels @version 2.0.9 @license Apache-2.0 */
|
||||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js"),require("global/document")):"function"==typeof define&&define.amd?define(["video.js","global/document"],t):e.videojsContribQualityLevels=t(e.videojs,e.document)}(this,function(e,t){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;var n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},i=function(i){function o(){n(this,o);var l=r(this,i.call(this)),s=l;if(e.browser.IS_IE8)for(var u in s=t.createElement("custom"),o.prototype)"constructor"!==u&&(s[u]=o.prototype[u]);return s.levels_=[],s.selectedIndex_=-1,Object.defineProperty(s,"selectedIndex",{get:function(){return s.selectedIndex_}}),Object.defineProperty(s,"length",{get:function(){return s.levels_.length}}),r(l,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),o.prototype.addQualityLevel=function(r){var i=this.getQualityLevelById(r.id);if(i)return i;var o=this.levels_.length;return i=new function r(i){n(this,r);var o=this;if(e.browser.IS_IE8)for(var l in o=t.createElement("custom"),r.prototype)"constructor"!==l&&(o[l]=r.prototype[l]);return o.id=i.id,o.label=o.id,o.width=i.width,o.height=i.height,o.bitrate=i.bandwidth,o.enabled_=i.enabled,Object.defineProperty(o,"enabled",{get:function(){return o.enabled_()},set:function(e){o.enabled_(e)}}),o}(r),""+o in this||Object.defineProperty(this,o,{get:function(){return this.levels_[o]}}),this.levels_.push(i),this.trigger({qualityLevel:i,type:"addqualitylevel"}),i},o.prototype.removeQualityLevel=function(e){for(var t=null,n=0,r=this.length;n<r;n++)if(this[n]===e){t=this.levels_.splice(n,1)[0],this.selectedIndex_===n?this.selectedIndex_=-1:this.selectedIndex_>n&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t},o.prototype.getQualityLevelById=function(e){for(var t=0,n=this.length;t<n;t++){var r=this[t];if(r.id===e)return r}return null},o.prototype.dispose=function(){this.selectedIndex_=-1,this.levels_.length=0},o}(e.EventTarget);for(var o in i.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"},i.prototype.allowedEvents_)i.prototype["on"+o]=null;var l=function(t){return n=this,e.mergeOptions({},t),r=n.qualityLevels,o=new i,n.on("dispose",function e(){o.dispose(),n.qualityLevels=r,n.off("dispose",e)}),n.qualityLevels=function(){return o},n.qualityLevels.VERSION="__VERSION__",o;var n,r,o};return(e.registerPlugin||e.plugin)("qualityLevels",l),l.VERSION="__VERSION__",l});
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js"),require("global/document")):"function"==typeof define&&define.amd?define(["video.js","global/document"],t):e.videojsContribQualityLevels=t(e.videojs,e.document)}(this,function(e,t){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;var r=function(r){var i,l;function o(){var i,l=n(n(i=r.call(this)||this));if(e.browser.IS_IE8)for(var s in l=t.createElement("custom"),o.prototype)"constructor"!==s&&(l[s]=o.prototype[s]);return l.levels_=[],l.selectedIndex_=-1,Object.defineProperty(l,"selectedIndex",{get:function(){return l.selectedIndex_}}),Object.defineProperty(l,"length",{get:function(){return l.levels_.length}}),l||n(i)}l=r,(i=o).prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l;var s=o.prototype;return s.addQualityLevel=function(n){var r=this.getQualityLevelById(n.id);if(r)return r;var i=this.levels_.length;return r=new function n(r){var i=this;if(e.browser.IS_IE8)for(var l in i=t.createElement("custom"),n.prototype)"constructor"!==l&&(i[l]=n.prototype[l]);return i.id=r.id,i.label=i.id,i.width=r.width,i.height=r.height,i.bitrate=r.bandwidth,i.enabled_=r.enabled,Object.defineProperty(i,"enabled",{get:function(){return i.enabled_()},set:function(e){i.enabled_(e)}}),i}(n),""+i in this||Object.defineProperty(this,i,{get:function(){return this.levels_[i]}}),this.levels_.push(r),this.trigger({qualityLevel:r,type:"addqualitylevel"}),r},s.removeQualityLevel=function(e){for(var t=null,n=0,r=this.length;n<r;n++)if(this[n]===e){t=this.levels_.splice(n,1)[0],this.selectedIndex_===n?this.selectedIndex_=-1:this.selectedIndex_>n&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t},s.getQualityLevelById=function(e){for(var t=0,n=this.length;t<n;t++){var r=this[t];if(r.id===e)return r}return null},s.dispose=function(){this.selectedIndex_=-1,this.levels_.length=0},o}(e.EventTarget);for(var i in r.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"},r.prototype.allowedEvents_)r.prototype["on"+i]=null;var l=function(t){return n=this,e.mergeOptions({},t),i=n.qualityLevels,l=new r,n.on("dispose",function e(){l.dispose(),n.qualityLevels=i,n.off("dispose",e)}),n.qualityLevels=function(){return l},n.qualityLevels.VERSION="2.0.9",l;var n,i,l};return(e.registerPlugin||e.plugin)("qualityLevels",l),l.VERSION="2.0.9",l});
|
||||||
|
|||||||
3
assets/js/videojs-dash.min.js
vendored
3
assets/js/videojs-dash.min.js
vendored
File diff suppressed because one or more lines are too long
7
assets/js/videojs-http-source-selector.min.js
vendored
Normal file
7
assets/js/videojs-http-source-selector.min.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* videojs-http-source-selector
|
||||||
|
* @version 1.1.5
|
||||||
|
* @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});
|
||||||
14
assets/js/videojs-http-streaming.min.js
vendored
14
assets/js/videojs-http-streaming.min.js
vendored
File diff suppressed because one or more lines are too long
6
assets/js/videojs-share.min.js
vendored
6
assets/js/videojs-share.min.js
vendored
File diff suppressed because one or more lines are too long
7
assets/js/videojs-vtt-thumbnails.min.js
vendored
Normal file
7
assets/js/videojs-vtt-thumbnails.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/videojs-youtube-annotations.min.js
vendored
Normal file
1
assets/js/videojs-youtube-annotations.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,413 +0,0 @@
|
|||||||
/*
|
|
||||||
* Video.js Hotkeys
|
|
||||||
* https://github.com/ctd1500/videojs-hotkeys
|
|
||||||
*
|
|
||||||
* Copyright (c) 2015 Chris Dougherty
|
|
||||||
* Licensed under the Apache-2.0 license.
|
|
||||||
*/
|
|
||||||
|
|
||||||
;(function(root, factory) {
|
|
||||||
if (typeof window !== 'undefined' && window.videojs) {
|
|
||||||
factory(window.videojs);
|
|
||||||
} else if (typeof define === 'function' && define.amd) {
|
|
||||||
define('videojs-hotkeys', ['video.js'], function (module) {
|
|
||||||
return factory(module.default || module);
|
|
||||||
});
|
|
||||||
} else if (typeof module !== 'undefined' && module.exports) {
|
|
||||||
module.exports = factory(require('video.js'));
|
|
||||||
}
|
|
||||||
}(this, function (videojs) {
|
|
||||||
"use strict";
|
|
||||||
if (typeof window !== 'undefined') {
|
|
||||||
window['videojs_hotkeys'] = { version: "0.2.22" };
|
|
||||||
}
|
|
||||||
|
|
||||||
var hotkeys = function(options) {
|
|
||||||
var player = this;
|
|
||||||
var pEl = player.el();
|
|
||||||
var doc = document;
|
|
||||||
var def_options = {
|
|
||||||
volumeStep: 0.1,
|
|
||||||
seekStep: 5,
|
|
||||||
enableMute: true,
|
|
||||||
enableVolumeScroll: true,
|
|
||||||
enableHoverScroll: true,
|
|
||||||
enableFullscreen: true,
|
|
||||||
enableNumbers: true,
|
|
||||||
enableJogStyle: false,
|
|
||||||
alwaysCaptureHotkeys: false,
|
|
||||||
enableModifiersForNumbers: true,
|
|
||||||
enableInactiveFocus: true,
|
|
||||||
skipInitialFocus: false,
|
|
||||||
playPauseKey: playPauseKey,
|
|
||||||
rewindKey: rewindKey,
|
|
||||||
forwardKey: forwardKey,
|
|
||||||
volumeUpKey: volumeUpKey,
|
|
||||||
volumeDownKey: volumeDownKey,
|
|
||||||
muteKey: muteKey,
|
|
||||||
fullscreenKey: fullscreenKey,
|
|
||||||
customKeys: {}
|
|
||||||
};
|
|
||||||
|
|
||||||
var cPlay = 1,
|
|
||||||
cRewind = 2,
|
|
||||||
cForward = 3,
|
|
||||||
cVolumeUp = 4,
|
|
||||||
cVolumeDown = 5,
|
|
||||||
cMute = 6,
|
|
||||||
cFullscreen = 7;
|
|
||||||
|
|
||||||
// Use built-in merge function from Video.js v5.0+ or v4.4.0+
|
|
||||||
var mergeOptions = videojs.mergeOptions || videojs.util.mergeOptions;
|
|
||||||
options = mergeOptions(def_options, options || {});
|
|
||||||
|
|
||||||
var volumeStep = options.volumeStep,
|
|
||||||
seekStep = options.seekStep,
|
|
||||||
enableMute = options.enableMute,
|
|
||||||
enableVolumeScroll = options.enableVolumeScroll,
|
|
||||||
enableHoverScroll = options.enableHoverScroll,
|
|
||||||
enableFull = options.enableFullscreen,
|
|
||||||
enableNumbers = options.enableNumbers,
|
|
||||||
enableJogStyle = options.enableJogStyle,
|
|
||||||
alwaysCaptureHotkeys = options.alwaysCaptureHotkeys,
|
|
||||||
enableModifiersForNumbers = options.enableModifiersForNumbers,
|
|
||||||
enableInactiveFocus = options.enableInactiveFocus,
|
|
||||||
skipInitialFocus = options.skipInitialFocus;
|
|
||||||
|
|
||||||
// Set default player tabindex to handle keydown and doubleclick events
|
|
||||||
if (!pEl.hasAttribute('tabIndex')) {
|
|
||||||
pEl.setAttribute('tabIndex', '-1');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove player outline to fix video performance issue
|
|
||||||
pEl.style.outline = "none";
|
|
||||||
|
|
||||||
if (alwaysCaptureHotkeys || !player.autoplay()) {
|
|
||||||
if (!skipInitialFocus) {
|
|
||||||
player.one('play', function() {
|
|
||||||
pEl.focus(); // Fixes the .vjs-big-play-button handing focus back to body instead of the player
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (enableInactiveFocus) {
|
|
||||||
player.on('userinactive', function() {
|
|
||||||
// When the control bar fades, re-apply focus to the player if last focus was a control button
|
|
||||||
var cancelFocusingPlayer = function() {
|
|
||||||
clearTimeout(focusingPlayerTimeout);
|
|
||||||
};
|
|
||||||
var focusingPlayerTimeout = setTimeout(function() {
|
|
||||||
player.off('useractive', cancelFocusingPlayer);
|
|
||||||
var activeElement = doc.activeElement;
|
|
||||||
var controlBar = pEl.querySelector('.vjs-control-bar');
|
|
||||||
if (activeElement && activeElement.parentElement == controlBar) {
|
|
||||||
pEl.focus();
|
|
||||||
}
|
|
||||||
}, 10);
|
|
||||||
|
|
||||||
player.one('useractive', cancelFocusingPlayer);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
player.on('play', function() {
|
|
||||||
// Fix allowing the YouTube plugin to have hotkey support.
|
|
||||||
var ifblocker = pEl.querySelector('.iframeblocker');
|
|
||||||
if (ifblocker && ifblocker.style.display === '') {
|
|
||||||
ifblocker.style.display = "block";
|
|
||||||
ifblocker.style.bottom = "39px";
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var keyDown = function keyDown(event) {
|
|
||||||
var ewhich = event.which, wasPlaying, seekTime;
|
|
||||||
var ePreventDefault = event.preventDefault;
|
|
||||||
var duration = player.duration();
|
|
||||||
// When controls are disabled, hotkeys will be disabled as well
|
|
||||||
if (player.controls()) {
|
|
||||||
|
|
||||||
// Don't catch keys if any control buttons are focused, unless alwaysCaptureHotkeys is true
|
|
||||||
var activeEl = doc.activeElement;
|
|
||||||
if (alwaysCaptureHotkeys ||
|
|
||||||
activeEl == pEl ||
|
|
||||||
activeEl == pEl.querySelector('.vjs-tech') ||
|
|
||||||
activeEl == pEl.querySelector('.vjs-control-bar') ||
|
|
||||||
activeEl == pEl.querySelector('.iframeblocker')) {
|
|
||||||
|
|
||||||
switch (checkKeys(event, player)) {
|
|
||||||
// Spacebar toggles play/pause
|
|
||||||
case cPlay:
|
|
||||||
ePreventDefault();
|
|
||||||
if (alwaysCaptureHotkeys) {
|
|
||||||
// Prevent control activation with space
|
|
||||||
event.stopPropagation();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.paused()) {
|
|
||||||
player.play();
|
|
||||||
} else {
|
|
||||||
player.pause();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
// Seeking with the left/right arrow keys
|
|
||||||
case cRewind: // Seek Backward
|
|
||||||
wasPlaying = !player.paused();
|
|
||||||
ePreventDefault();
|
|
||||||
if (wasPlaying) {
|
|
||||||
player.pause();
|
|
||||||
}
|
|
||||||
seekTime = player.currentTime() - seekStepD(event);
|
|
||||||
// The flash player tech will allow you to seek into negative
|
|
||||||
// numbers and break the seekbar, so try to prevent that.
|
|
||||||
if (seekTime <= 0) {
|
|
||||||
seekTime = 0;
|
|
||||||
}
|
|
||||||
player.currentTime(seekTime);
|
|
||||||
if (wasPlaying) {
|
|
||||||
player.play();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case cForward: // Seek Forward
|
|
||||||
wasPlaying = !player.paused();
|
|
||||||
ePreventDefault();
|
|
||||||
if (wasPlaying) {
|
|
||||||
player.pause();
|
|
||||||
}
|
|
||||||
seekTime = player.currentTime() + seekStepD(event);
|
|
||||||
// Fixes the player not sending the end event if you
|
|
||||||
// try to seek past the duration on the seekbar.
|
|
||||||
if (seekTime >= duration) {
|
|
||||||
seekTime = wasPlaying ? duration - .001 : duration;
|
|
||||||
}
|
|
||||||
player.currentTime(seekTime);
|
|
||||||
if (wasPlaying) {
|
|
||||||
player.play();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
// Volume control with the up/down arrow keys
|
|
||||||
case cVolumeDown:
|
|
||||||
ePreventDefault();
|
|
||||||
if (!enableJogStyle) {
|
|
||||||
player.volume(player.volume() - volumeStep);
|
|
||||||
} else {
|
|
||||||
seekTime = player.currentTime() - 1;
|
|
||||||
if (player.currentTime() <= 1) {
|
|
||||||
seekTime = 0;
|
|
||||||
}
|
|
||||||
player.currentTime(seekTime);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case cVolumeUp:
|
|
||||||
ePreventDefault();
|
|
||||||
if (!enableJogStyle) {
|
|
||||||
player.volume(player.volume() + volumeStep);
|
|
||||||
} else {
|
|
||||||
seekTime = player.currentTime() + 1;
|
|
||||||
if (seekTime >= duration) {
|
|
||||||
seekTime = duration;
|
|
||||||
}
|
|
||||||
player.currentTime(seekTime);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
// Toggle Mute with the M key
|
|
||||||
case cMute:
|
|
||||||
if (enableMute) {
|
|
||||||
player.muted(!player.muted());
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
// Toggle Fullscreen with the F key
|
|
||||||
case cFullscreen:
|
|
||||||
if (enableFull) {
|
|
||||||
if (player.isFullscreen()) {
|
|
||||||
player.exitFullscreen();
|
|
||||||
} else {
|
|
||||||
player.requestFullscreen();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
// Number keys from 0-9 skip to a percentage of the video. 0 is 0% and 9 is 90%
|
|
||||||
if ((ewhich > 47 && ewhich < 59) || (ewhich > 95 && ewhich < 106)) {
|
|
||||||
// Do not handle if enableModifiersForNumbers set to false and keys are Ctrl, Cmd or Alt
|
|
||||||
if (enableModifiersForNumbers || !(event.metaKey || event.ctrlKey || event.altKey)) {
|
|
||||||
if (enableNumbers) {
|
|
||||||
var sub = 48;
|
|
||||||
if (ewhich > 95) {
|
|
||||||
sub = 96;
|
|
||||||
}
|
|
||||||
var number = ewhich - sub;
|
|
||||||
ePreventDefault();
|
|
||||||
player.currentTime(player.duration() * number * 0.1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle any custom hotkeys
|
|
||||||
for (var customKey in options.customKeys) {
|
|
||||||
var customHotkey = options.customKeys[customKey];
|
|
||||||
// Check for well formed custom keys
|
|
||||||
if (customHotkey && customHotkey.key && customHotkey.handler) {
|
|
||||||
// Check if the custom key's condition matches
|
|
||||||
if (customHotkey.key(event)) {
|
|
||||||
ePreventDefault();
|
|
||||||
customHotkey.handler(player, options, event);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var doubleClick = function doubleClick(event) {
|
|
||||||
// When controls are disabled, hotkeys will be disabled as well
|
|
||||||
if (player.controls()) {
|
|
||||||
|
|
||||||
// Don't catch clicks if any control buttons are focused
|
|
||||||
var activeEl = event.relatedTarget || event.toElement || doc.activeElement;
|
|
||||||
if (activeEl == pEl ||
|
|
||||||
activeEl == pEl.querySelector('.vjs-tech') ||
|
|
||||||
activeEl == pEl.querySelector('.iframeblocker')) {
|
|
||||||
|
|
||||||
if (enableFull) {
|
|
||||||
if (player.isFullscreen()) {
|
|
||||||
player.exitFullscreen();
|
|
||||||
} else {
|
|
||||||
player.requestFullscreen();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var volumeHover = false;
|
|
||||||
var volumeSelector = pEl.querySelector('.vjs-volume-menu-button') || pEl.querySelector('.vjs-volume-panel');
|
|
||||||
volumeSelector.onmouseover = function() { volumeHover = true; }
|
|
||||||
volumeSelector.onmouseout = function() { volumeHover = false; }
|
|
||||||
|
|
||||||
var mouseScroll = function mouseScroll(event) {
|
|
||||||
if (enableHoverScroll) {
|
|
||||||
// If we leave this undefined then it can match non-existent elements below
|
|
||||||
var activeEl = 0;
|
|
||||||
} else {
|
|
||||||
var activeEl = doc.activeElement;
|
|
||||||
}
|
|
||||||
|
|
||||||
// When controls are disabled, hotkeys will be disabled as well
|
|
||||||
if (player.controls()) {
|
|
||||||
if (alwaysCaptureHotkeys ||
|
|
||||||
activeEl == pEl ||
|
|
||||||
activeEl == pEl.querySelector('.vjs-tech') ||
|
|
||||||
activeEl == pEl.querySelector('.iframeblocker') ||
|
|
||||||
activeEl == pEl.querySelector('.vjs-control-bar') ||
|
|
||||||
volumeHover) {
|
|
||||||
|
|
||||||
if (enableVolumeScroll) {
|
|
||||||
event = window.event || event;
|
|
||||||
var delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));
|
|
||||||
event.preventDefault();
|
|
||||||
|
|
||||||
if (delta == 1) {
|
|
||||||
player.volume(player.volume() + volumeStep);
|
|
||||||
} else if (delta == -1) {
|
|
||||||
player.volume(player.volume() - volumeStep);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var checkKeys = function checkKeys(e, player) {
|
|
||||||
// Allow some modularity in defining custom hotkeys
|
|
||||||
|
|
||||||
// Play/Pause check
|
|
||||||
if (options.playPauseKey(e, player)) {
|
|
||||||
return cPlay;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Seek Backward check
|
|
||||||
if (options.rewindKey(e, player)) {
|
|
||||||
return cRewind;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Seek Forward check
|
|
||||||
if (options.forwardKey(e, player)) {
|
|
||||||
return cForward;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Volume Up check
|
|
||||||
if (options.volumeUpKey(e, player)) {
|
|
||||||
return cVolumeUp;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Volume Down check
|
|
||||||
if (options.volumeDownKey(e, player)) {
|
|
||||||
return cVolumeDown;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mute check
|
|
||||||
if (options.muteKey(e, player)) {
|
|
||||||
return cMute;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fullscreen check
|
|
||||||
if (options.fullscreenKey(e, player)) {
|
|
||||||
return cFullscreen;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
function playPauseKey(e) {
|
|
||||||
// Space bar or MediaPlayPause
|
|
||||||
return (e.which === 32 || e.which === 179);
|
|
||||||
}
|
|
||||||
|
|
||||||
function rewindKey(e) {
|
|
||||||
// Left Arrow or MediaRewind
|
|
||||||
return (e.which === 37 || e.which === 177);
|
|
||||||
}
|
|
||||||
|
|
||||||
function forwardKey(e) {
|
|
||||||
// Right Arrow or MediaForward
|
|
||||||
return (e.which === 39 || e.which === 176);
|
|
||||||
}
|
|
||||||
|
|
||||||
function volumeUpKey(e) {
|
|
||||||
// Up Arrow
|
|
||||||
return (e.which === 38);
|
|
||||||
}
|
|
||||||
|
|
||||||
function volumeDownKey(e) {
|
|
||||||
// Down Arrow
|
|
||||||
return (e.which === 40);
|
|
||||||
}
|
|
||||||
|
|
||||||
function muteKey(e) {
|
|
||||||
// M key
|
|
||||||
return (e.which === 77);
|
|
||||||
}
|
|
||||||
|
|
||||||
function fullscreenKey(e) {
|
|
||||||
// F key
|
|
||||||
return (e.which === 70);
|
|
||||||
}
|
|
||||||
|
|
||||||
function seekStepD(e) {
|
|
||||||
// SeekStep caller, returns an int, or a function returning an int
|
|
||||||
return (typeof seekStep === "function" ? seekStep(e) : seekStep);
|
|
||||||
}
|
|
||||||
|
|
||||||
player.on('keydown', keyDown);
|
|
||||||
player.on('dblclick', doubleClick);
|
|
||||||
player.on('mousewheel', mouseScroll);
|
|
||||||
player.on("DOMMouseScroll", mouseScroll);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
|
|
||||||
var registerPlugin = videojs.registerPlugin || videojs.plugin;
|
|
||||||
registerPlugin('hotkeys', hotkeys);
|
|
||||||
}));
|
|
||||||
4
assets/js/videojs.hotkeys.min.js
vendored
4
assets/js/videojs.hotkeys.min.js
vendored
@@ -1,2 +1,2 @@
|
|||||||
/* videojs-hotkeys v0.2.22 - https://github.com/ctd1500/videojs-hotkeys */
|
/* videojs-hotkeys v0.2.25 - https://github.com/ctd1500/videojs-hotkeys */
|
||||||
!function(e,t){"undefined"!=typeof window&&window.videojs?t(window.videojs):"function"==typeof define&&define.amd?define("videojs-hotkeys",["video.js"],function(e){return t(e.default||e)}):"undefined"!=typeof module&&module.exports&&(module.exports=t(require("video.js")))}(0,function(s){"use strict";"undefined"!=typeof window&&(window.videojs_hotkeys={version:"0.2.22"});(s.registerPlugin||s.plugin)("hotkeys",function(m){var y=this,v=y.el(),f=document,e={volumeStep:.1,seekStep:5,enableMute:!0,enableVolumeScroll:!0,enableHoverScroll:!0,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:{}},t=s.mergeOptions||s.util.mergeOptions,d=(m=t(e,m||{})).volumeStep,n=m.seekStep,p=m.enableMute,r=m.enableVolumeScroll,o=m.enableHoverScroll,b=m.enableFullscreen,h=m.enableNumbers,w=m.enableJogStyle,k=m.alwaysCaptureHotkeys,S=m.enableModifiersForNumbers,u=m.enableInactiveFocus,l=m.skipInitialFocus;v.hasAttribute("tabIndex")||v.setAttribute("tabIndex","-1"),v.style.outline="none",!k&&y.autoplay()||l||y.one("play",function(){v.focus()}),u&&y.on("userinactive",function(){var n=function(){clearTimeout(e)},e=setTimeout(function(){y.off("useractive",n);var e=f.activeElement,t=v.querySelector(".vjs-control-bar");e&&e.parentElement==t&&v.focus()},10);y.one("useractive",n)}),y.on("play",function(){var e=v.querySelector(".iframeblocker");e&&""===e.style.display&&(e.style.display="block",e.style.bottom="39px")});var i=!1,c=v.querySelector(".vjs-volume-menu-button")||v.querySelector(".vjs-volume-panel");c.onmouseover=function(){i=!0},c.onmouseout=function(){i=!1};var a=function(e){if(o)var t=0;else t=f.activeElement;if(y.controls()&&(k||t==v||t==v.querySelector(".vjs-tech")||t==v.querySelector(".iframeblocker")||t==v.querySelector(".vjs-control-bar")||i)&&r){e=window.event||e;var n=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail));e.preventDefault(),1==n?y.volume(y.volume()+d):-1==n&&y.volume(y.volume()-d)}},K=function(e,t){return m.playPauseKey(e,t)?1:m.rewindKey(e,t)?2:m.forwardKey(e,t)?3:m.volumeUpKey(e,t)?4:m.volumeDownKey(e,t)?5:m.muteKey(e,t)?6:m.fullscreenKey(e,t)?7:void 0};function q(e){return"function"==typeof n?n(e):n}return y.on("keydown",function(e){var t,n,r=e.which,o=e.preventDefault,u=y.duration();if(y.controls()){var l=f.activeElement;if(k||l==v||l==v.querySelector(".vjs-tech")||l==v.querySelector(".vjs-control-bar")||l==v.querySelector(".iframeblocker"))switch(K(e,y)){case 1:o(),k&&e.stopPropagation(),y.paused()?y.play():y.pause();break;case 2:t=!y.paused(),o(),t&&y.pause(),(n=y.currentTime()-q(e))<=0&&(n=0),y.currentTime(n),t&&y.play();break;case 3:t=!y.paused(),o(),t&&y.pause(),u<=(n=y.currentTime()+q(e))&&(n=t?u-.001:u),y.currentTime(n),t&&y.play();break;case 5:o(),w?(n=y.currentTime()-1,y.currentTime()<=1&&(n=0),y.currentTime(n)):y.volume(y.volume()-d);break;case 4:o(),w?(u<=(n=y.currentTime()+1)&&(n=u),y.currentTime(n)):y.volume(y.volume()+d);break;case 6:p&&y.muted(!y.muted());break;case 7:b&&(y.isFullscreen()?y.exitFullscreen():y.requestFullscreen());break;default:if((47<r&&r<59||95<r&&r<106)&&(S||!(e.metaKey||e.ctrlKey||e.altKey))&&h){var i=48;95<r&&(i=96);var c=r-i;o(),y.currentTime(y.duration()*c*.1)}for(var a in m.customKeys){var s=m.customKeys[a];s&&s.key&&s.handler&&s.key(e)&&(o(),s.handler(y,m,e))}}}}),y.on("dblclick",function(e){if(y.controls()){var t=e.relatedTarget||e.toElement||f.activeElement;t!=v&&t!=v.querySelector(".vjs-tech")&&t!=v.querySelector(".iframeblocker")||b&&(y.isFullscreen()?y.exitFullscreen():y.requestFullscreen())}}),y.on("mousewheel",a),y.on("DOMMouseScroll",a),this})});
|
!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,52 +1,419 @@
|
|||||||
|
String.prototype.supplant = function (o) {
|
||||||
|
return this.replace(/{([^{}]*)}/g, function (a, b) {
|
||||||
|
var r = o[b];
|
||||||
|
return typeof r === 'string' || typeof r === 'number' ? r : a;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function toggle_parent(target) {
|
function toggle_parent(target) {
|
||||||
body = target.parentNode.parentNode.children[1];
|
body = target.parentNode.parentNode.children[1];
|
||||||
if (body.style.display === null || body.style.display === "") {
|
if (body.style.display === null || body.style.display === '') {
|
||||||
target.innerHTML = "[ + ]";
|
target.innerHTML = '[ + ]';
|
||||||
body.style.display = "none";
|
body.style.display = 'none';
|
||||||
} else {
|
} else {
|
||||||
target.innerHTML = "[ - ]";
|
target.innerHTML = '[ - ]';
|
||||||
body.style.display = "";
|
body.style.display = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggle_comments(target) {
|
function toggle_comments(event) {
|
||||||
body = target.parentNode.parentNode.parentNode.children[1];
|
var target = event.target;
|
||||||
if (body.style.display === null || body.style.display === "") {
|
body = target.parentNode.parentNode.parentNode.children[1];
|
||||||
target.innerHTML = "[ + ]";
|
if (body.style.display === null || body.style.display === '') {
|
||||||
body.style.display = "none";
|
target.innerHTML = '[ + ]';
|
||||||
} else {
|
body.style.display = 'none';
|
||||||
target.innerHTML = "[ - ]";
|
} else {
|
||||||
body.style.display = "";
|
target.innerHTML = '[ - ]';
|
||||||
}
|
body.style.display = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function swap_comments(source) {
|
function swap_comments(event) {
|
||||||
if (source == "youtube") {
|
var source = event.target.getAttribute('data-comments');
|
||||||
|
|
||||||
|
if (source === 'youtube') {
|
||||||
|
get_youtube_comments();
|
||||||
|
} else if (source === 'reddit') {
|
||||||
|
get_reddit_comments();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function hide_youtube_replies(event) {
|
||||||
|
var target = event.target;
|
||||||
|
|
||||||
|
sub_text = target.getAttribute('data-inner-text');
|
||||||
|
inner_text = target.getAttribute('data-sub-text');
|
||||||
|
|
||||||
|
body = target.parentNode.parentNode.children[1];
|
||||||
|
body.style.display = 'none';
|
||||||
|
|
||||||
|
target.innerHTML = sub_text;
|
||||||
|
target.onclick = show_youtube_replies;
|
||||||
|
target.setAttribute('data-inner-text', inner_text);
|
||||||
|
target.setAttribute('data-sub-text', sub_text);
|
||||||
|
}
|
||||||
|
|
||||||
|
function show_youtube_replies(event) {
|
||||||
|
var target = event.target;
|
||||||
|
|
||||||
|
sub_text = target.getAttribute('data-inner-text');
|
||||||
|
inner_text = target.getAttribute('data-sub-text');
|
||||||
|
|
||||||
|
body = target.parentNode.parentNode.children[1];
|
||||||
|
body.style.display = '';
|
||||||
|
|
||||||
|
target.innerHTML = sub_text;
|
||||||
|
target.onclick = hide_youtube_replies;
|
||||||
|
target.setAttribute('data-inner-text', inner_text);
|
||||||
|
target.setAttribute('data-sub-text', sub_text);
|
||||||
|
}
|
||||||
|
|
||||||
|
var continue_button = document.getElementById('continue');
|
||||||
|
if (continue_button) {
|
||||||
|
continue_button.onclick = continue_autoplay;
|
||||||
|
}
|
||||||
|
|
||||||
|
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);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
player.off('ended');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function number_with_separator(val) {
|
||||||
|
while (/(\d+)(\d{3})/.test(val.toString())) {
|
||||||
|
val = val.toString().replace(/(\d+)(\d{3})/, '$1' + ',' + '$2');
|
||||||
|
}
|
||||||
|
return val;
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_playlist(plid, timeouts = 0) {
|
||||||
|
playlist = document.getElementById('playlist');
|
||||||
|
|
||||||
|
if (timeouts > 10) {
|
||||||
|
console.log('Failed to pull playlist');
|
||||||
|
playlist.innerHTML = '';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
playlist.innerHTML = ' \
|
||||||
|
<h3 style="text-align:center"><div class="loading"><i class="icon ion-ios-refresh"></i></div></h3> \
|
||||||
|
<hr>'
|
||||||
|
|
||||||
|
if (plid.startsWith('RD')) {
|
||||||
|
var plid_url = '/api/v1/mixes/' + plid +
|
||||||
|
'?continuation=' + video_data.id +
|
||||||
|
'&format=html&hl=' + video_data.preferences.locale;
|
||||||
|
} else {
|
||||||
|
var plid_url = '/api/v1/playlists/' + plid +
|
||||||
|
'?continuation=' + video_data.id +
|
||||||
|
'&format=html&hl=' + video_data.preferences.locale;
|
||||||
|
}
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.responseType = 'json';
|
||||||
|
xhr.timeout = 20000;
|
||||||
|
xhr.open('GET', plid_url, true);
|
||||||
|
xhr.send();
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState == 4) {
|
||||||
|
if (xhr.status == 200) {
|
||||||
|
playlist.innerHTML = xhr.response.playlistHtml;
|
||||||
|
|
||||||
|
if (xhr.response.nextVideo) {
|
||||||
|
player.on('ended', function () {
|
||||||
|
var url = new URL('https://example.com/watch?v=' + xhr.response.nextVideo);
|
||||||
|
|
||||||
|
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('list', plid);
|
||||||
|
location.assign(url.pathname + url.search);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
playlist.innerHTML = '';
|
||||||
|
document.getElementById('continue').style.display = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
xhr.ontimeout = function () {
|
||||||
|
console.log('Pulling playlist timed out.');
|
||||||
|
playlist = document.getElementById('playlist');
|
||||||
|
playlist.innerHTML =
|
||||||
|
'<h3 style="text-align:center"><div class="loading"><i class="icon ion-ios-refresh"></i></div></h3><hr>';
|
||||||
|
get_playlist(plid, timeouts + 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_reddit_comments(timeouts = 0) {
|
||||||
|
comments = document.getElementById('comments');
|
||||||
|
|
||||||
|
if (timeouts > 10) {
|
||||||
|
console.log('Failed to pull comments');
|
||||||
|
comments.innerHTML = '';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var fallback = comments.innerHTML;
|
||||||
|
comments.innerHTML =
|
||||||
|
'<h3 style="text-align:center"><div class="loading"><i class="icon ion-ios-refresh"></i></div></h3>';
|
||||||
|
|
||||||
|
var url = '/api/v1/comments/' + video_data.id +
|
||||||
|
'?source=reddit&format=html' +
|
||||||
|
'&hl=' + video_data.preferences.locale;
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.responseType = 'json';
|
||||||
|
xhr.timeout = 20000;
|
||||||
|
xhr.open('GET', url, true);
|
||||||
|
xhr.send();
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState == 4) {
|
||||||
|
if (xhr.status == 200) {
|
||||||
|
comments.innerHTML = ' \
|
||||||
|
<div> \
|
||||||
|
<h3> \
|
||||||
|
<a href="javascript:void(0)">[ - ]</a> \
|
||||||
|
{title} \
|
||||||
|
</h3> \
|
||||||
|
<p> \
|
||||||
|
<b> \
|
||||||
|
<a href="javascript:void(0)" data-comments="youtube"> \
|
||||||
|
{youtubeCommentsText} \
|
||||||
|
</a> \
|
||||||
|
</b> \
|
||||||
|
</p> \
|
||||||
|
<b> \
|
||||||
|
<a rel="noopener" target="_blank" href="https://reddit.com{permalink}">{redditPermalinkText}</a> \
|
||||||
|
</b> \
|
||||||
|
</div> \
|
||||||
|
<div>{contentHtml}</div> \
|
||||||
|
<hr>'.supplant({
|
||||||
|
title: xhr.response.title,
|
||||||
|
youtubeCommentsText: video_data.youtube_comments_text,
|
||||||
|
redditPermalinkText: video_data.reddit_permalink_text,
|
||||||
|
permalink: xhr.response.permalink,
|
||||||
|
contentHtml: xhr.response.contentHtml
|
||||||
|
});
|
||||||
|
|
||||||
|
comments.children[0].children[0].children[0].onclick = toggle_comments;
|
||||||
|
comments.children[0].children[1].children[0].onclick = swap_comments;
|
||||||
|
} else {
|
||||||
|
if (video_data.params.comments[1] === 'youtube') {
|
||||||
|
get_youtube_comments(timeouts + 1);
|
||||||
|
} else {
|
||||||
|
comments.innerHTML = fallback;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
xhr.ontimeout = function () {
|
||||||
|
console.log('Pulling comments timed out.');
|
||||||
|
get_reddit_comments(timeouts + 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_youtube_comments(timeouts = 0) {
|
||||||
|
comments = document.getElementById('comments');
|
||||||
|
|
||||||
|
if (timeouts > 10) {
|
||||||
|
console.log('Failed to pull comments');
|
||||||
|
comments.innerHTML = '';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var fallback = comments.innerHTML;
|
||||||
|
comments.innerHTML =
|
||||||
|
'<h3 style="text-align:center"><div class="loading"><i class="icon ion-ios-refresh"></i></div></h3>';
|
||||||
|
|
||||||
|
var url = '/api/v1/comments/' + video_data.id +
|
||||||
|
'?format=html' +
|
||||||
|
'&hl=' + video_data.preferences.locale +
|
||||||
|
'&thin_mode=' + video_data.preferences.thin_mode;
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.responseType = 'json';
|
||||||
|
xhr.timeout = 20000;
|
||||||
|
xhr.open('GET', url, true);
|
||||||
|
xhr.send();
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState == 4) {
|
||||||
|
if (xhr.status == 200) {
|
||||||
|
comments.innerHTML = ' \
|
||||||
|
<div> \
|
||||||
|
<h3> \
|
||||||
|
<a href="javascript:void(0)">[ - ]</a> \
|
||||||
|
{commentsText} \
|
||||||
|
</h3> \
|
||||||
|
<b> \
|
||||||
|
<a href="javascript:void(0)" data-comments="reddit"> \
|
||||||
|
{redditComments} \
|
||||||
|
</a> \
|
||||||
|
</b> \
|
||||||
|
</div> \
|
||||||
|
<div>{contentHtml}</div> \
|
||||||
|
<hr>'.supplant({
|
||||||
|
contentHtml: xhr.response.contentHtml,
|
||||||
|
redditComments: video_data.reddit_comments_text,
|
||||||
|
commentsText: video_data.comments_text.supplant(
|
||||||
|
{ commentCount: number_with_separator(xhr.response.commentCount) }
|
||||||
|
)
|
||||||
|
});
|
||||||
|
|
||||||
|
comments.children[0].children[0].children[0].onclick = toggle_comments;
|
||||||
|
comments.children[0].children[1].children[0].onclick = swap_comments;
|
||||||
|
} else {
|
||||||
|
if (video_data.params.comments[1] === 'youtube') {
|
||||||
|
get_youtube_comments(timeouts + 1);
|
||||||
|
} else {
|
||||||
|
comments.innerHTML = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
xhr.ontimeout = function () {
|
||||||
|
console.log('Pulling comments timed out.');
|
||||||
|
comments.innerHTML =
|
||||||
|
'<h3 style="text-align:center"><div class="loading"><i class="icon ion-ios-refresh"></i></div></h3>';
|
||||||
|
get_youtube_comments(timeouts + 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_youtube_replies(target, load_more) {
|
||||||
|
var continuation = target.getAttribute('data-continuation');
|
||||||
|
|
||||||
|
var body = target.parentNode.parentNode;
|
||||||
|
var fallback = body.innerHTML;
|
||||||
|
body.innerHTML =
|
||||||
|
'<h3 style="text-align:center"><div class="loading"><i class="icon ion-ios-refresh"></i></div></h3>';
|
||||||
|
|
||||||
|
var url = '/api/v1/comments/' + video_data.id +
|
||||||
|
'?format=html' +
|
||||||
|
'&hl=' + video_data.preferences.locale +
|
||||||
|
'&thin_mode=' + video_data.preferences.thin_mode +
|
||||||
|
'&continuation=' + continuation;
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.responseType = 'json';
|
||||||
|
xhr.timeout = 20000;
|
||||||
|
xhr.open('GET', url, true);
|
||||||
|
xhr.send();
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState == 4) {
|
||||||
|
if (xhr.status == 200) {
|
||||||
|
if (load_more) {
|
||||||
|
body = body.parentNode.parentNode;
|
||||||
|
body.removeChild(body.lastElementChild);
|
||||||
|
body.innerHTML += xhr.response.contentHtml;
|
||||||
|
} else {
|
||||||
|
body.removeChild(body.lastElementChild);
|
||||||
|
|
||||||
|
var p = document.createElement('p');
|
||||||
|
var a = document.createElement('a');
|
||||||
|
p.appendChild(a);
|
||||||
|
|
||||||
|
a.href = 'javascript:void(0)';
|
||||||
|
a.onclick = hide_youtube_replies;
|
||||||
|
a.setAttribute('data-sub-text', video_data.hide_replies_text);
|
||||||
|
a.setAttribute('data-inner-text', video_data.show_replies_text);
|
||||||
|
a.innerText = video_data.hide_replies_text;
|
||||||
|
|
||||||
|
var div = document.createElement('div');
|
||||||
|
div.innerHTML = xhr.response.contentHtml;
|
||||||
|
|
||||||
|
body.appendChild(p);
|
||||||
|
body.appendChild(div);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
body.innerHTML = fallback;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
xhr.ontimeout = function () {
|
||||||
|
console.log('Pulling comments timed out.');
|
||||||
|
body.innerHTML = fallback;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (video_data.play_next) {
|
||||||
|
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);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (video_data.plid) {
|
||||||
|
get_playlist(video_data.plid);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (video_data.params.comments[0] === 'youtube') {
|
||||||
get_youtube_comments();
|
get_youtube_comments();
|
||||||
} else if (source == "reddit") {
|
} else if (video_data.params.comments[0] === 'reddit') {
|
||||||
get_reddit_comments();
|
get_reddit_comments();
|
||||||
}
|
} else if (video_data.params.comments[1] === 'youtube') {
|
||||||
}
|
get_youtube_comments();
|
||||||
|
} else if (video_data.params.comments[1] === 'reddit') {
|
||||||
String.prototype.supplant = function(o) {
|
get_reddit_comments();
|
||||||
return this.replace(/{([^{}]*)}/g, function(a, b) {
|
} else {
|
||||||
var r = o[b];
|
comments = document.getElementById('comments');
|
||||||
return typeof r === "string" || typeof r === "number" ? r : a;
|
comments.innerHTML = '';
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
function show_youtube_replies(target, inner_text, sub_text) {
|
|
||||||
body = target.parentNode.parentNode.children[1];
|
|
||||||
body.style.display = "";
|
|
||||||
|
|
||||||
target.innerHTML = inner_text;
|
|
||||||
target.setAttribute("onclick", "hide_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')");
|
|
||||||
}
|
|
||||||
|
|
||||||
function hide_youtube_replies(target, inner_text, sub_text) {
|
|
||||||
body = target.parentNode.parentNode.children[1];
|
|
||||||
body.style.display = "none";
|
|
||||||
|
|
||||||
target.innerHTML = sub_text;
|
|
||||||
target.setAttribute("onclick", "show_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')");
|
|
||||||
}
|
}
|
||||||
|
|||||||
46
assets/js/watched_widget.js
Normal file
46
assets/js/watched_widget.js
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
function mark_watched(target) {
|
||||||
|
var tile = target.parentNode.parentNode.parentNode.parentNode.parentNode;
|
||||||
|
tile.style.display = 'none';
|
||||||
|
|
||||||
|
var url = '/watch_ajax?action_mark_watched=1&redirect=false' +
|
||||||
|
'&id=' + target.getAttribute('data-id');
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.responseType = 'json';
|
||||||
|
xhr.timeout = 20000;
|
||||||
|
xhr.open('POST', url, true);
|
||||||
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||||
|
xhr.send('csrf_token=' + watched_data.csrf_token);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState == 4) {
|
||||||
|
if (xhr.status != 200) {
|
||||||
|
tile.style.display = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function mark_unwatched(target) {
|
||||||
|
var tile = target.parentNode.parentNode.parentNode.parentNode.parentNode;
|
||||||
|
tile.style.display = "none";
|
||||||
|
var count = document.getElementById('count')
|
||||||
|
count.innerText = count.innerText - 1;
|
||||||
|
|
||||||
|
var url = '/watch_ajax?action_mark_unwatched=1&redirect=false' +
|
||||||
|
'&id=' + target.getAttribute('data-id');
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.responseType = 'json';
|
||||||
|
xhr.timeout = 20000;
|
||||||
|
xhr.open('POST', url, true);
|
||||||
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||||
|
xhr.send('csrf_token=' + watched_data.csrf_token);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState == 4) {
|
||||||
|
if (xhr.status != 200) {
|
||||||
|
count.innerText = count.innerText - 1 + 2;
|
||||||
|
tile.style.display = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
video_threads: 0
|
|
||||||
crawl_threads: 0
|
|
||||||
channel_threads: 1
|
channel_threads: 1
|
||||||
feed_threads: 1
|
feed_threads: 1
|
||||||
db:
|
db:
|
||||||
@@ -10,4 +8,4 @@ db:
|
|||||||
dbname: invidious
|
dbname: invidious
|
||||||
full_refresh: false
|
full_refresh: false
|
||||||
https_only: false
|
https_only: false
|
||||||
domain: invidio.us
|
domain:
|
||||||
|
|||||||
4
config/migrate-scripts/migrate-db-17cf077.sh
Executable file
4
config/migrate-scripts/migrate-db-17cf077.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
psql invidious kemal -c "ALTER TABLE channels ADD COLUMN subscribed bool;"
|
||||||
|
psql invidious kemal -c "UPDATE channels SET subscribed = false;"
|
||||||
7
config/migrate-scripts/migrate-db-1c8075c.sh
Executable file
7
config/migrate-scripts/migrate-db-1c8075c.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
psql invidious kemal -c "ALTER TABLE channel_videos DROP COLUMN live_now CASCADE"
|
||||||
|
psql invidious kemal -c "ALTER TABLE channel_videos DROP COLUMN premiere_timestamp CASCADE"
|
||||||
|
|
||||||
|
psql invidious kemal -c "ALTER TABLE channel_videos ADD COLUMN live_now bool"
|
||||||
|
psql invidious kemal -c "ALTER TABLE channel_videos ADD COLUMN premiere_timestamp timestamptz"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
psql invidious -c "ALTER TABLE channels ADD COLUMN deleted bool;"
|
psql invidious kemal -c "ALTER TABLE channels ADD COLUMN deleted bool;"
|
||||||
psql invidious -c "UPDATE channels SET deleted = false;"
|
psql invidious kemal -c "UPDATE channels SET deleted = false;"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
psql invidious < config/sql/session_ids.sql
|
psql invidious < config/sql/session_ids.sql
|
||||||
psql invidious -c "INSERT INTO session_ids (SELECT unnest(id), email, CURRENT_TIMESTAMP FROM users) ON CONFLICT (id) DO NOTHING"
|
psql invidious kemal -c "INSERT INTO session_ids (SELECT unnest(id), email, CURRENT_TIMESTAMP FROM users) ON CONFLICT (id) DO NOTHING"
|
||||||
psql invidious -c "ALTER TABLE users DROP COLUMN id"
|
psql invidious kemal -c "ALTER TABLE users DROP COLUMN id"
|
||||||
|
|||||||
3
config/migrate-scripts/migrate-db-3bcb98e.sh
Executable file
3
config/migrate-scripts/migrate-db-3bcb98e.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
psql invidious kemal < config/sql/annotations.sql
|
||||||
3
config/migrate-scripts/migrate-db-52cb239.sh
Executable file
3
config/migrate-scripts/migrate-db-52cb239.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
psql invidious kemal -c "ALTER TABLE channel_videos ADD COLUMN views bigint;"
|
||||||
4
config/migrate-scripts/migrate-db-6e51189.sh
Executable file
4
config/migrate-scripts/migrate-db-6e51189.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
psql invidious kemal -c "ALTER TABLE channel_videos ADD COLUMN live_now bool;"
|
||||||
|
psql invidious kemal -c "UPDATE channel_videos SET live_now = false;"
|
||||||
3
config/migrate-scripts/migrate-db-701b5ea.sh
Executable file
3
config/migrate-scripts/migrate-db-701b5ea.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
psql invidious kemal -c "ALTER TABLE users ADD COLUMN feed_needs_update boolean"
|
||||||
3
config/migrate-scripts/migrate-db-88b7097.sh
Executable file
3
config/migrate-scripts/migrate-db-88b7097.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
psql invidious kemal -c "ALTER TABLE channel_videos ADD COLUMN premiere_timestamp timestamptz;"
|
||||||
5
config/migrate-scripts/migrate-db-8e884fe.sh
Executable file
5
config/migrate-scripts/migrate-db-8e884fe.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
psql invidious kemal -c "ALTER TABLE channels DROP COLUMN subscribed"
|
||||||
|
psql invidious kemal -c "ALTER TABLE channels ADD COLUMN subscribed timestamptz"
|
||||||
|
psql invidious kemal -c "UPDATE channels SET subscribed = '2019-01-01 00:00:00+00'"
|
||||||
12
config/sql/annotations.sql
Normal file
12
config/sql/annotations.sql
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
-- Table: public.annotations
|
||||||
|
|
||||||
|
-- DROP TABLE public.annotations;
|
||||||
|
|
||||||
|
CREATE TABLE public.annotations
|
||||||
|
(
|
||||||
|
id text NOT NULL,
|
||||||
|
annotations xml,
|
||||||
|
CONSTRAINT annotations_id_key UNIQUE (id)
|
||||||
|
);
|
||||||
|
|
||||||
|
GRANT ALL ON TABLE public.annotations TO kemal;
|
||||||
@@ -11,20 +11,14 @@ CREATE TABLE public.channel_videos
|
|||||||
ucid text,
|
ucid text,
|
||||||
author text,
|
author text,
|
||||||
length_seconds integer,
|
length_seconds integer,
|
||||||
|
live_now boolean,
|
||||||
|
premiere_timestamp timestamp with time zone,
|
||||||
|
views bigint,
|
||||||
CONSTRAINT channel_videos_id_key UNIQUE (id)
|
CONSTRAINT channel_videos_id_key UNIQUE (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
GRANT ALL ON TABLE public.channel_videos TO kemal;
|
GRANT ALL ON TABLE public.channel_videos TO kemal;
|
||||||
|
|
||||||
-- Index: public.channel_videos_published_idx
|
|
||||||
|
|
||||||
-- DROP INDEX public.channel_videos_published_idx;
|
|
||||||
|
|
||||||
CREATE INDEX channel_videos_published_idx
|
|
||||||
ON public.channel_videos
|
|
||||||
USING btree
|
|
||||||
(published);
|
|
||||||
|
|
||||||
-- Index: public.channel_videos_ucid_idx
|
-- Index: public.channel_videos_ucid_idx
|
||||||
|
|
||||||
-- DROP INDEX public.channel_videos_ucid_idx;
|
-- DROP INDEX public.channel_videos_ucid_idx;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ CREATE TABLE public.channels
|
|||||||
author text,
|
author text,
|
||||||
updated timestamp with time zone,
|
updated timestamp with time zone,
|
||||||
deleted boolean,
|
deleted boolean,
|
||||||
|
subscribed timestamp with time zone,
|
||||||
CONSTRAINT channels_id_key UNIQUE (id)
|
CONSTRAINT channels_id_key UNIQUE (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ CREATE TABLE public.users
|
|||||||
password text,
|
password text,
|
||||||
token text,
|
token text,
|
||||||
watched text[],
|
watched text[],
|
||||||
|
feed_needs_update boolean,
|
||||||
CONSTRAINT users_email_key UNIQUE (email)
|
CONSTRAINT users_email_key UNIQUE (email)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM archlinux/base
|
FROM archlinux/base
|
||||||
|
|
||||||
RUN pacman -Sy --noconfirm shards crystal imagemagick librsvg \
|
RUN pacman -Sy --noconfirm shards crystal imagemagick librsvg \
|
||||||
which pkgconf gcc ttf-liberation
|
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
|
# base-devel contains many other basic packages, that are normally assumed to already exist on a clean arch system
|
||||||
|
|
||||||
ADD . /invidious
|
ADD . /invidious
|
||||||
@@ -9,7 +9,7 @@ ADD . /invidious
|
|||||||
WORKDIR /invidious
|
WORKDIR /invidious
|
||||||
|
|
||||||
RUN sed -i 's/host: localhost/host: postgres/' config/config.yml && \
|
RUN sed -i 's/host: localhost/host: postgres/' config/config.yml && \
|
||||||
shards && \
|
shards update && shards install && \
|
||||||
crystal build src/invidious.cr
|
crystal build src/invidious.cr
|
||||||
|
|
||||||
CMD [ "/invidious/invidious" ]
|
CMD [ "/invidious/invidious" ]
|
||||||
|
|||||||
@@ -12,12 +12,13 @@ if [ ! -f /var/lib/postgresql/data/setupFinished ]; then
|
|||||||
>&2 echo "### importing table schemas"
|
>&2 echo "### importing table schemas"
|
||||||
su postgres -c 'createdb invidious'
|
su postgres -c 'createdb invidious'
|
||||||
su postgres -c 'psql -c "CREATE USER kemal WITH PASSWORD '"'kemal'"'"'
|
su postgres -c 'psql -c "CREATE USER kemal WITH PASSWORD '"'kemal'"'"'
|
||||||
su postgres -c 'psql invidious < config/sql/channels.sql'
|
su postgres -c 'psql invidious kemal < config/sql/channels.sql'
|
||||||
su postgres -c 'psql invidious < config/sql/videos.sql'
|
su postgres -c 'psql invidious kemal < config/sql/videos.sql'
|
||||||
su postgres -c 'psql invidious < config/sql/channel_videos.sql'
|
su postgres -c 'psql invidious kemal < config/sql/channel_videos.sql'
|
||||||
su postgres -c 'psql invidious < config/sql/users.sql'
|
su postgres -c 'psql invidious kemal < config/sql/users.sql'
|
||||||
su postgres -c 'psql invidious < config/sql/session_ids.sql'
|
su postgres -c 'psql invidious kemal < config/sql/session_ids.sql'
|
||||||
su postgres -c 'psql invidious < config/sql/nonces.sql'
|
su postgres -c 'psql invidious kemal < config/sql/nonces.sql'
|
||||||
|
su postgres -c 'psql invidious kemal < config/sql/annotations.sql'
|
||||||
touch /var/lib/postgresql/data/setupFinished
|
touch /var/lib/postgresql/data/setupFinished
|
||||||
echo "### invidious database setup finished"
|
echo "### invidious database setup finished"
|
||||||
exit
|
exit
|
||||||
|
|||||||
602
locales/ar.json
602
locales/ar.json
@@ -1,286 +1,318 @@
|
|||||||
{
|
{
|
||||||
"`x` subscribers": "`x` المشتركين",
|
"`x` subscribers": "`x` المشتركين",
|
||||||
"`x` videos": "`x` الفيديوهات",
|
"`x` videos": "`x` الفيديوهات",
|
||||||
"LIVE": "مباشر",
|
"LIVE": "مباشر",
|
||||||
"Shared `x` ago": "تم رفع الفيديو منذ `x`",
|
"Shared `x` ago": "تم رفع الفيديو منذ `x`",
|
||||||
"Unsubscribe": "إلغاء الإشتراك",
|
"Unsubscribe": "إلغاء الإشتراك",
|
||||||
"Subscribe": "إشتراك",
|
"Subscribe": "إشتراك",
|
||||||
"Login to subscribe to `x`": "سجل الدخول للإشتراك فى `x`",
|
"View channel on YouTube": "زيارة القناة على موقع يوتيوب",
|
||||||
"View channel on YouTube": "زيارة القناة على موقع يوتيوب",
|
"View playlist on YouTube": "",
|
||||||
"newest": "الأجدد",
|
"newest": "الأجدد",
|
||||||
"oldest": "الأقدم",
|
"oldest": "الأقدم",
|
||||||
"popular": "الاكثر شعبية",
|
"popular": "الاكثر شعبية",
|
||||||
"Preview page": "معاينة الصفحة",
|
"last": "اخر قوائم التشغيل المعدلة",
|
||||||
"Next page": "الصفحة الثانية",
|
"Next page": "الصفحة الثانية",
|
||||||
"Clear watch history?": "مسح السجل ؟",
|
"Previous page": "الصفحة السابقة",
|
||||||
"Yes": "نعم",
|
"Clear watch history?": "مسح السجل ؟",
|
||||||
"No": "لا",
|
"New password": "الرقم السرى الجديد",
|
||||||
"Import and Export Data": "استخراج و إضافة البيانات",
|
"New passwords must match": "الأرقام السرية يجب ان تكون متطابقة",
|
||||||
"Import": "إضافة",
|
"Cannot change password for Google accounts": "لا يستطيع تغيير الرقم السرى لحساب جوجل",
|
||||||
"Import Invidious data": "إضافة بيانات Invidious",
|
"Authorize token?": "رمز الإذن ؟",
|
||||||
"Import YouTube subscriptions": "إضافةالإشتراكات من موقع يوتيوب",
|
"Authorize token for `x`?": "رمز الإذن لـ `x` ?",
|
||||||
"Import FreeTube subscriptions (.db)": "إضافةالمشتركين من FreeTube (.db)",
|
"Yes": "نعم",
|
||||||
"Import NewPipe subscriptions (.json)": "إضافة المشتركين من NewPipe (.json)",
|
"No": "لا",
|
||||||
"Import NewPipe data (.zip)": "إضافة بيانات NewPipe (.zip)",
|
"Import and Export Data": "استخراج و إضافة البيانات",
|
||||||
"Export": "استخراج",
|
"Import": "إضافة",
|
||||||
"Export subscriptions as OPML": "استخراج المشتركين كـ OPML",
|
"Import Invidious data": "إضافة بيانات Invidious",
|
||||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "استخراج المشتركين كـ OPML (لـ NewPipe و FreeTube)",
|
"Import YouTube subscriptions": "إضافةالإشتراكات من موقع يوتيوب",
|
||||||
"Export data as JSON": "استخراج البيانات كـ JSON",
|
"Import FreeTube subscriptions (.db)": "إضافةالمشتركين من FreeTube (.db)",
|
||||||
"Delete account?": "حذف الحساب ؟",
|
"Import NewPipe subscriptions (.json)": "إضافة المشتركين من NewPipe (.json)",
|
||||||
"History": "السجل",
|
"Import NewPipe data (.zip)": "إضافة بيانات NewPipe (.zip)",
|
||||||
"Previous page": "الصفحة السابقة",
|
"Export": "استخراج",
|
||||||
"An alternative front-end to YouTube": "البديل الكامل لموقع يوتيوب",
|
"Export subscriptions as OPML": "استخراج المشتركين كـ OPML",
|
||||||
"JavaScript license information": "معلومات ترخيص JavaScript",
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "استخراج المشتركين كـ OPML (لـ NewPipe و FreeTube)",
|
||||||
"source": "المصدر",
|
"Export data as JSON": "استخراج البيانات كـ JSON",
|
||||||
"Login": "تسجيل الدخول",
|
"Delete account?": "حذف الحساب ؟",
|
||||||
"Login/Register": "تسجيل الدخول\\إنشاء حساب",
|
"History": "السجل",
|
||||||
"Login to Google": "تسجيل الدخول بإستخدام جوجل",
|
"An alternative front-end to YouTube": "البديل الكامل لموقع يوتيوب",
|
||||||
"User ID:": "إسم المستخدم:",
|
"JavaScript license information": "معلومات ترخيص JavaScript",
|
||||||
"Password:": "الرقم السرى:",
|
"source": "المصدر",
|
||||||
"Time (h:mm:ss):": "(يجب ان يكتب مثل هذا التنسيق) الوقت (h(ساعات):mm(دقائق):ss(ثوانى)):",
|
"Log in": "تسجيل الدخول",
|
||||||
"Text CAPTCHA": "CAPTCHA كلامية",
|
"Log in/register": "تسجيل الدخول\\إنشاء حساب",
|
||||||
"Image CAPTCHA": "CAPTCHA صورية",
|
"Log in with Google": "تسجيل الدخول بإستخدام جوجل",
|
||||||
"Sign In": "تسجيل الدخول",
|
"User ID": "إسم المستخدم",
|
||||||
"Register": "انشاء الحساب",
|
"Password": "الرقم السرى",
|
||||||
"Email:": "الإيميل:",
|
"Time (h:mm:ss):": "(يجب ان يكتب مثل هذا التنسيق) الوقت (h(ساعات):mm(دقائق):ss(ثوانى)):",
|
||||||
"Google verification code:": "رمز تحقق جوجل:",
|
"Text CAPTCHA": "CAPTCHA كلامية",
|
||||||
"Preferences": "التفضيلات",
|
"Image CAPTCHA": "CAPTCHA صورية",
|
||||||
"Player preferences": "التفضيلات المشغل",
|
"Sign In": "تسجيل الدخول",
|
||||||
"Always loop: ": "كرر الفيديو دائما: ",
|
"Register": "انشاء الحساب",
|
||||||
"Autoplay: ": "تشغيل تلقائى: ",
|
"E-mail": "الإيميل",
|
||||||
"Autoplay next video: ": "شغل الفيديو التالى تلقائى: ",
|
"Google verification code": "رمز تحقق جوجل",
|
||||||
"Listen by default: ": "تشغيل النسخة السمعية تلقائى: ",
|
"Preferences": "التفضيلات",
|
||||||
"Default speed: ": "السرعة الإفتراضية: ",
|
"Player preferences": "التفضيلات المشغل",
|
||||||
"Preferred video quality: ": "الجودة المفضلة للفيديوهات: ",
|
"Always loop: ": "كرر الفيديو دائما: ",
|
||||||
"Player volume: ": "صوت المشغل: ",
|
"Autoplay: ": "تشغيل تلقائى: ",
|
||||||
"Default comments: ": "إضهار التعليقات الإفتراضية لـ: ",
|
"Play next by default: ": "شغل الفيديو التالى تلقائيا",
|
||||||
"youtube": "يوتيوب",
|
"Autoplay next video: ": " شغل الفيديو التالى تلقائيا (فى قوائم التشغيل)",
|
||||||
"reddit": "Reddit",
|
"Listen by default: ": "تشغيل النسخة السمعية تلقائى: ",
|
||||||
"Default captions: ": "الترجمات الإفتراضية: ",
|
"Proxy videos? ": "عرض الفيديوهات عن طريق الوكيل(proxy) ؟",
|
||||||
"Fallback captions: ": "الترجمات المصاحبة: ",
|
"Default speed: ": "السرعة الإفتراضية: ",
|
||||||
"Show related videos? ": "عرض مقاطع الفيديو ذات الصلة؟",
|
"Preferred video quality: ": "الجودة المفضلة للفيديوهات: ",
|
||||||
"Visual preferences": "التفضيلات المرئية",
|
"Player volume: ": "صوت المشغل: ",
|
||||||
"Dark mode: ": "الوضع الليلى: ",
|
"Default comments: ": "إضهار التعليقات الإفتراضية لـ: ",
|
||||||
"Thin mode: ": "الوضع الخفيف: ",
|
"youtube": "يوتيوب",
|
||||||
"Subscription preferences": "تفضيلات الإشتراك",
|
"reddit": "Reddit",
|
||||||
"Redirect homepage to feed: ": "إعادة التوجية من الصفحة الرئيسية لصفحة المشتركين (لرؤية اخر فيديوهات المشتركين): ",
|
"Default captions: ": "الترجمات الإفتراضية: ",
|
||||||
"Number of videos shown in feed: ": "عدد الفيديوهات التى ستظهر فى صفحة المشتركين: ",
|
"Fallback captions: ": "الترجمات المصاحبة: ",
|
||||||
"Sort videos by: ": "ترتيب الفيديو بـ: ",
|
"Show related videos? ": "عرض مقاطع الفيديو ذات الصلة؟",
|
||||||
"published": "احدث فيديو",
|
"Show annotations by default? ": "عرض الملاحظات فى الفيديو تلقائيا ؟",
|
||||||
"published - reverse": "احدث فيديو - عكسى",
|
"Visual preferences": "التفضيلات المرئية",
|
||||||
"alphabetically": "ترتيب ابجدى",
|
"Dark mode: ": "الوضع الليلى: ",
|
||||||
"alphabetically - reverse": "ابجدى - عكسى",
|
"Thin mode: ": "الوضع الخفيف: ",
|
||||||
"channel name": "بإسم القناة",
|
"Subscription preferences": "تفضيلات الإشتراك",
|
||||||
"channel name - reverse": "بإسم القناة - عكسى",
|
"Show annotations by default for subscribed channels? ": "عرض الملاحظات فى الفيديوهات تلقائيا فى القنوات المشترك بها فقط ؟",
|
||||||
"Only show latest video from channel: ": "فقط إظهر اخر فيديو من القناة: ",
|
"Redirect homepage to feed: ": "إعادة التوجية من الصفحة الرئيسية لصفحة المشتركين (لرؤية اخر فيديوهات المشتركين): ",
|
||||||
"Only show latest unwatched video from channel: ": "فقط اظهر اخر فيديو لم يتم رؤيتة من القناة: ",
|
"Number of videos shown in feed: ": "عدد الفيديوهات التى ستظهر فى صفحة المشتركين: ",
|
||||||
"Only show unwatched: ": "فقط اظهر الذى لم يتم رؤيتة: ",
|
"Sort videos by: ": "ترتيب الفيديو بـ: ",
|
||||||
"Only show notifications (if there are any): ": "إظهار الإشعارات فقط (إذا كان هناك أي): ",
|
"published": "احدث فيديو",
|
||||||
"Data preferences": "إعدادات التفضيلات",
|
"published - reverse": "احدث فيديو - عكسى",
|
||||||
"Clear watch history": "حذف سجل المشاهدة",
|
"alphabetically": "ترتيب ابجدى",
|
||||||
"Import/Export data": "إضافة\\إستخراج البيانات",
|
"alphabetically - reverse": "ابجدى - عكسى",
|
||||||
"Manage subscriptions": "إدارة المشتركين",
|
"channel name": "بإسم القناة",
|
||||||
"Watch history": "سجل المشاهدة",
|
"channel name - reverse": "بإسم القناة - عكسى",
|
||||||
"Delete account": "حذف الحساب",
|
"Only show latest video from channel: ": "فقط إظهر اخر فيديو من القناة: ",
|
||||||
"Save preferences": "حفظ التفضيلات",
|
"Only show latest unwatched video from channel: ": "فقط اظهر اخر فيديو لم يتم رؤيتة من القناة: ",
|
||||||
"Subscription manager": "مدير الإشتراكات",
|
"Only show unwatched: ": "فقط اظهر الذى لم يتم رؤيتة: ",
|
||||||
"`x` subscriptions": "`x` مشتركين",
|
"Only show notifications (if there are any): ": "إظهار الإشعارات فقط (إذا كان هناك أي): ",
|
||||||
"Import/Export": "إضافة\\إستخراج",
|
"Enable web notifications": "",
|
||||||
"unsubscribe": "إلغاء الإشتراك",
|
"`x` uploaded a video": "",
|
||||||
"Subscriptions": "الإشتراكات",
|
"`x` is live": "",
|
||||||
"`x` unseen notifications": "`x` إشعارات لم تشاهدها بعد ",
|
"Data preferences": "إعدادات التفضيلات",
|
||||||
"search": "بحث",
|
"Clear watch history": "حذف سجل المشاهدة",
|
||||||
"Sign out": "تسجيل الخروج",
|
"Import/export data": "إضافة\\إستخراج البيانات",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "تم الإنشاء تحت AGPLv3 بواسطة عمر روث.",
|
"Change password": "غير الرقم السرى",
|
||||||
"Source available here.": "الأكواد متوفرة هنا.",
|
"Manage subscriptions": "إدارة المشتركين",
|
||||||
"Liberapay: ": "ليبرباى: ",
|
"Manage tokens": "إدارة الرموز",
|
||||||
"Patreon: ": "باتريون: ",
|
"Watch history": "سجل المشاهدة",
|
||||||
"BTC: ": "بيتكوين: ",
|
"Delete account": "حذف الحساب",
|
||||||
"BCH: ": "بيتكوين كاش: ",
|
"Administrator preferences": "إعدادات المدير",
|
||||||
"View JavaScript license information.": "مشاهدة معلومات حول تراخيص الجافاسكريبت.",
|
"Default homepage: ": "الصفحة الرئيسية الافتراضية ",
|
||||||
"Trending": "الشائع",
|
"Feed menu: ": "قائمة التغذية",
|
||||||
"Watch video on Youtube": "مشاهدة الفيديو على اليوتيوب",
|
"Top enabled? ": "تفعيل 'الأفضل' ؟ ",
|
||||||
"Genre: ": "النوع: ",
|
"CAPTCHA enabled? ": "تفعيل الكابتشا ؟",
|
||||||
"License: ": "التراخيص: ",
|
"Login enabled? ": "تفعيل تسجيل الدخول ؟",
|
||||||
"Family friendly? ": "محتوى عائلى? ",
|
"Registration enabled? ": "تفعيل التسجيل ؟",
|
||||||
"Wilson score: ": "درجة ويلسون: ",
|
"Report statistics? ": "إبلاغ الإحصائيات",
|
||||||
"Engagement: ": "نسبة المشاركة (عدد المشاهدات\\عدد الإعجابات): ",
|
"Save preferences": "حفظ التفضيلات",
|
||||||
"Whitelisted regions: ": "الدول المسموح فيها هذا الفيديو: ",
|
"Subscription manager": "مدير الإشتراكات",
|
||||||
"Blacklisted regions: ": "الدول الحظور فيها هذا الفيديو: ",
|
"Token manager": "إداره الرمز",
|
||||||
"Shared `x`": "شارك منذ `x`",
|
"Token": "الرمز",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "اهلا! يبدو ان الجافاسكريبت معطلة. اضغط هنا لعرض التعليقات, ضع فى إعتبارك انها ستأخذ وقت اطول للعرض.",
|
"`x` subscriptions": "`x` مشتركين",
|
||||||
"View YouTube comments": "عرض تعليقات اليوتيوب",
|
"`x` tokens": "`x` رموز",
|
||||||
"View more comments on Reddit": "عرض المزيد من التعليقات على\\من موقع Reddit",
|
"Import/export": "إضافة\\إستخراج",
|
||||||
"View `x` comments": "عرض `x` تعليقات",
|
"unsubscribe": "إلغاء الإشتراك",
|
||||||
"View Reddit comments": "عرض تعليقات ريدإت Reddit",
|
"revoke": "مسح",
|
||||||
"Hide replies": "إخفاء الردود",
|
"Subscriptions": "الإشتراكات",
|
||||||
"Show replies": "عرض الردود",
|
"`x` unseen notifications": "`x` إشعارات لم تشاهدها بعد ",
|
||||||
"Incorrect password": "الرقم السرى غير صحيح",
|
"search": "بحث",
|
||||||
"Quota exceeded, try again in a few hours": "تم تجاوز عدد المرات المسموح بها, حاول مرة اخرى بعد عدة ساعات",
|
"Log out": "تسجيل الخروج",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "غير قادر على تسجيل الدخول, تأكد من تشغيل المصادقة الثنائية 2FA.",
|
"Released under the AGPLv3 by Omar Roth.": "تم الإنشاء تحت AGPLv3 بواسطة عمر روث.",
|
||||||
"Invalid TFA code": "كود مصادقة ثنائية 2FA غير صحيح",
|
"Source available here.": "الأكواد متوفرة هنا.",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on your account.": "لم يتم تسجيل الدخول. هذا ربما بسبب ان المصادقة الثنائية 2FA معطلة فى حسابك.",
|
"View JavaScript license information.": "مشاهدة معلومات حول تراخيص الجافاسكريبت.",
|
||||||
"Invalid answer": "إجابة خاطئة",
|
"View privacy policy.": "عرض سياسة الخصوصية",
|
||||||
"Invalid CAPTCHA": "الكابتشا CAPTCHA غير صاحلة",
|
"Trending": "الشائع",
|
||||||
"CAPTCHA is a required field": "مكان الكابتشا CAPTCHA مطلوب",
|
"Unlisted": "غير مصنف",
|
||||||
"User ID is a required field": "مكان إسم المستخدم مطلوب",
|
"Watch on YouTube": "مشاهدة الفيديو على اليوتيوب",
|
||||||
"Password is a required field": "مكان الرقم السرى مطلوب",
|
"Hide annotations": "إخفاء الملاحظات فى الفيديو",
|
||||||
"Invalid username or password": "إسم المستخدم او الرقم السرى غير صحيح",
|
"Show annotations": "عرض الملاحظات فى الفيديو",
|
||||||
"Please sign in using 'Sign in with Google'": "الرجاء تسجيل الدخول 'تسجيل الدخول بواسطة جوجل'",
|
"Genre: ": "النوع: ",
|
||||||
"Password cannot be empty": "الرقم السرى لايمكن ان يكون فارغ",
|
"License: ": "التراخيص: ",
|
||||||
"Password cannot be longer than 55 characters": "الرقم السرى لا يتعدى 55 حرف",
|
"Family friendly? ": "محتوى عائلى? ",
|
||||||
"Please sign in": "الرجاء تسجيل الدخول",
|
"Wilson score: ": "درجة ويلسون: ",
|
||||||
"Invidious Private Feed for `x`": "صفحة Invidious للمشتركين الخاصة\\مخفية لـ `x`",
|
"Engagement: ": "نسبة المشاركة (عدد المشاهدات\\عدد الإعجابات): ",
|
||||||
"channel:`x`": "قناة:`x`",
|
"Whitelisted regions: ": "الدول المسموح فيها هذا الفيديو: ",
|
||||||
"Deleted or invalid channel": "قناة ممسوحة او غير صالحة",
|
"Blacklisted regions: ": "الدول الحظور فيها هذا الفيديو: ",
|
||||||
"This channel does not exist.": "القناة غير موجودة.",
|
"Shared `x`": "شارك منذ `x`",
|
||||||
"Could not get channel info.": "لم يستطع الحصول على معلومات القناة.",
|
"`x` views": "`x` مشاهدون",
|
||||||
"Could not fetch comments": "لم يتمكن من إحضار التعليقات",
|
"Premieres in `x`": "يعرض فى `x`",
|
||||||
"View `x` replies": "عرض `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.": "اهلا! يبدو ان الجافاسكريبت معطلة. اضغط هنا لعرض التعليقات, ضع فى إعتبارك انها ستأخذ وقت اطول للعرض.",
|
||||||
"`x` ago": "`x` منذ",
|
"View YouTube comments": "عرض تعليقات اليوتيوب",
|
||||||
"Load more": "عرض المزيد",
|
"View more comments on Reddit": "عرض المزيد من التعليقات على\\من موقع Reddit",
|
||||||
"`x` points": "`x` نقاط",
|
"View `x` comments": "عرض `x` تعليقات",
|
||||||
"Could not create mix.": "لم يستطع عمل خلط.",
|
"View Reddit comments": "عرض تعليقات ريدإت Reddit",
|
||||||
"Playlist is empty": "قائمة التشغيل فارغة",
|
"Hide replies": "إخفاء الردود",
|
||||||
"Invalid playlist.": "قائمة التشغيل غير صالحة.",
|
"Show replies": "عرض الردود",
|
||||||
"Playlist does not exist.": "قائمة التشغيل غير موجودة.",
|
"Incorrect password": "الرقم السرى غير صحيح",
|
||||||
"Could not pull trending pages.": "لم يستطع عرض الصفحات الراجئة.",
|
"Quota exceeded, try again in a few hours": "تم تجاوز عدد المرات المسموح بها, حاول مرة اخرى بعد عدة ساعات",
|
||||||
"Hidden field \"challenge\" is a required field": "مكان مخفى \"تحدى\" مكان مطلوب",
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "غير قادر على تسجيل الدخول, تأكد من تشغيل المصادقة الثنائية 2FA.",
|
||||||
"Hidden field \"token\" is a required field": "مكان مخفى \"رمز\" مكان مطلوب",
|
"Invalid TFA code": "كود مصادقة ثنائية 2FA غير صحيح",
|
||||||
"Invalid challenge": "تحدى غير صالح",
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "لم يتم تسجيل الدخول. هذا ربما بسبب ان المصادقة الثنائية 2FA معطلة فى حسابك.",
|
||||||
"Invalid token": "روز غير صالح",
|
"Wrong answer": "إجابة خاطئة",
|
||||||
"Invalid user": "مستخدم غير صالح",
|
"Erroneous CAPTCHA": "الكابتشا CAPTCHA غير صاحلة",
|
||||||
"Token is expired, please try again": "الرمز منتهى الصلاحية , الرجاء المحاولة مرة اخرى",
|
"CAPTCHA is a required field": "مكان الكابتشا CAPTCHA مطلوب",
|
||||||
"English": "إنجليزى",
|
"User ID is a required field": "مكان إسم المستخدم مطلوب",
|
||||||
"English (auto-generated)": "إنجليزى (تم إنشائة تلقائى)",
|
"Password is a required field": "مكان الرقم السرى مطلوب",
|
||||||
"Afrikaans": "الأفريكانية",
|
"Wrong username or password": "إسم المستخدم او الرقم السرى غير صحيح",
|
||||||
"Albanian": "الألبانية",
|
"Please sign in using 'Log in with Google'": "الرجاء تسجيل الدخول 'تسجيل الدخول بواسطة جوجل'",
|
||||||
"Amharic": "الأمهرية",
|
"Password cannot be empty": "الرقم السرى لايمكن ان يكون فارغ",
|
||||||
"Arabic": "العربية",
|
"Password cannot be longer than 55 characters": "الرقم السرى لا يتعدى 55 حرف",
|
||||||
"Armenian": "الأرميني",
|
"Please log in": "الرجاء تسجيل الدخول",
|
||||||
"Azerbaijani": "أذربيجان",
|
"Invidious Private Feed for `x`": "صفحة Invidious للمشتركين الخاصة\\مخفية لـ `x`",
|
||||||
"Bangla": "البنغالية",
|
"channel:`x`": "قناة:`x`",
|
||||||
"Basque": "الباسكي",
|
"Deleted or invalid channel": "قناة ممسوحة او غير صالحة",
|
||||||
"Belarusian": "البيلاروسية",
|
"This channel does not exist.": "القناة غير موجودة.",
|
||||||
"Bosnian": "البوسنية",
|
"Could not get channel info.": "لم يستطع الحصول على معلومات القناة.",
|
||||||
"Bulgarian": "البلغارية",
|
"Could not fetch comments": "لم يتمكن من إحضار التعليقات",
|
||||||
"Burmese": "البورمية",
|
"View `x` replies": "عرض `x` ردود",
|
||||||
"Catalan": "الكاتالونية",
|
"`x` ago": "`x` منذ",
|
||||||
"Cebuano": "السيبيونو",
|
"Load more": "عرض المزيد",
|
||||||
"Chinese (Simplified)": "الصينية (المبسطة)",
|
"`x` points": "`x` نقاط",
|
||||||
"Chinese (Traditional)": "الصينية (التقليدية)",
|
"Could not create mix.": "لم يستطع عمل خلط.",
|
||||||
"Corsican": "الكورسيكية",
|
"Empty playlist": "قائمة التشغيل فارغة",
|
||||||
"Croatian": "الكرواتية",
|
"Not a playlist.": "قائمة التشغيل غير صالحة.",
|
||||||
"Czech": "تشيكي",
|
"Playlist does not exist.": "قائمة التشغيل غير موجودة.",
|
||||||
"Danish": "دانماركي",
|
"Could not pull trending pages.": "لم يستطع عرض الصفحات الراجئة.",
|
||||||
"Dutch": "هولندي",
|
"Hidden field \"challenge\" is a required field": "مكان مخفى \"تحدى\" مكان مطلوب",
|
||||||
"Esperanto": "الاسبرانتو",
|
"Hidden field \"token\" is a required field": "مكان مخفى \"رمز\" مكان مطلوب",
|
||||||
"Estonian": "الإستونية",
|
"Erroneous challenge": "تحدى غير صالح",
|
||||||
"Filipino": "الفلبينية",
|
"Erroneous token": "روز غير صالح",
|
||||||
"Finnish": "الفنلندية",
|
"No such user": "مستخدم غير صالح",
|
||||||
"French": "الفرنسية",
|
"Token is expired, please try again": "الرمز منتهى الصلاحية , الرجاء المحاولة مرة اخرى",
|
||||||
"Galician": "الجاليكية",
|
"English": "إنجليزى",
|
||||||
"Georgian": "الجورجية",
|
"English (auto-generated)": "إنجليزى (تم إنشائة تلقائى)",
|
||||||
"German": "ألمانية",
|
"Afrikaans": "الأفريكانية",
|
||||||
"Greek": "الإغريقي",
|
"Albanian": "الألبانية",
|
||||||
"Gujarati": "الغوجاراتية",
|
"Amharic": "الأمهرية",
|
||||||
"Haitian Creole": "الكاثوليكية الهايتية",
|
"Arabic": "العربية",
|
||||||
"Hausa": "الهوسا",
|
"Armenian": "الأرميني",
|
||||||
"Hawaiian": "هاواي",
|
"Azerbaijani": "أذربيجان",
|
||||||
"Hebrew": "العبرية",
|
"Bangla": "البنغالية",
|
||||||
"Hindi": "الهندية",
|
"Basque": "الباسكي",
|
||||||
"Hmong": "همونغ",
|
"Belarusian": "البيلاروسية",
|
||||||
"Hungarian": "الهنغارية",
|
"Bosnian": "البوسنية",
|
||||||
"Icelandic": "أيسلندي",
|
"Bulgarian": "البلغارية",
|
||||||
"Igbo": "الإيبو",
|
"Burmese": "البورمية",
|
||||||
"Indonesian": "الأندونيسية",
|
"Catalan": "الكاتالونية",
|
||||||
"Irish": "الأيرلندية",
|
"Cebuano": "السيبيونو",
|
||||||
"Italian": "الإيطالي",
|
"Chinese (Simplified)": "الصينية (المبسطة)",
|
||||||
"Japanese": "اليابانية",
|
"Chinese (Traditional)": "الصينية (التقليدية)",
|
||||||
"Javanese": "جاوي",
|
"Corsican": "الكورسيكية",
|
||||||
"Kannada": "الكانادا",
|
"Croatian": "الكرواتية",
|
||||||
"Kazakh": "الكازاخية",
|
"Czech": "تشيكي",
|
||||||
"Khmer": "الخمير",
|
"Danish": "دانماركي",
|
||||||
"Korean": "الكورية",
|
"Dutch": "هولندي",
|
||||||
"Kurdish": "كردي",
|
"Esperanto": "الاسبرانتو",
|
||||||
"Kyrgyz": "قيرغيزستان",
|
"Estonian": "الإستونية",
|
||||||
"Lao": "لاو",
|
"Filipino": "الفلبينية",
|
||||||
"Latin": "لاتينية",
|
"Finnish": "الفنلندية",
|
||||||
"Latvian": "اللاتفية",
|
"French": "الفرنسية",
|
||||||
"Lithuanian": "اللتوانية",
|
"Galician": "الجاليكية",
|
||||||
"Luxembourgish": "اللوكسمبرجية",
|
"Georgian": "الجورجية",
|
||||||
"Macedonian": "المقدونية",
|
"German": "ألمانية",
|
||||||
"Malagasy": "مدجشقر\\مدغشقر",
|
"Greek": "الإغريقي",
|
||||||
"Malay": "الملايو",
|
"Gujarati": "الغوجاراتية",
|
||||||
"Malayalam": "المالايالامية",
|
"Haitian Creole": "الكاثوليكية الهايتية",
|
||||||
"Maltese": "المالطية",
|
"Hausa": "الهوسا",
|
||||||
"Maori": "الماوري",
|
"Hawaiian": "هاواي",
|
||||||
"Marathi": "المهاراتية",
|
"Hebrew": "العبرية",
|
||||||
"Mongolian": "المنغولية",
|
"Hindi": "الهندية",
|
||||||
"Nepali": "النيبالية",
|
"Hmong": "همونغ",
|
||||||
"Norwegian": "النرويجية",
|
"Hungarian": "الهنغارية",
|
||||||
"Nyanja": "نيانجا",
|
"Icelandic": "أيسلندي",
|
||||||
"Pashto": "الباشتو",
|
"Igbo": "الإيبو",
|
||||||
"Persian": "الفارسية",
|
"Indonesian": "الأندونيسية",
|
||||||
"Polish": "البولندي",
|
"Irish": "الأيرلندية",
|
||||||
"Portuguese": "البرتغالية",
|
"Italian": "الإيطالي",
|
||||||
"Punjabi": "البنجابية",
|
"Japanese": "اليابانية",
|
||||||
"Romanian": "روماني",
|
"Javanese": "جاوي",
|
||||||
"Russian": "الروسية",
|
"Kannada": "الكانادا",
|
||||||
"Samoan": "ساموا",
|
"Kazakh": "الكازاخية",
|
||||||
"Scottish Gaelic": "الغيلية الاسكتلندية",
|
"Khmer": "الخمير",
|
||||||
"Serbian": "صربي",
|
"Korean": "الكورية",
|
||||||
"Shona": "شونا",
|
"Kurdish": "كردي",
|
||||||
"Sindhi": "السندية",
|
"Kyrgyz": "قيرغيزستان",
|
||||||
"Sinhala": "السنهالية",
|
"Lao": "لاو",
|
||||||
"Slovak": "السلوفاكية",
|
"Latin": "لاتينية",
|
||||||
"Slovenian": "سلوفيني",
|
"Latvian": "اللاتفية",
|
||||||
"Somali": "الصومالية",
|
"Lithuanian": "اللتوانية",
|
||||||
"Southern Sotho": "جنوب سوثو",
|
"Luxembourgish": "اللوكسمبرجية",
|
||||||
"Spanish": "الأسبانية",
|
"Macedonian": "المقدونية",
|
||||||
"Spanish (Latin America)": "الأسبانية (أمريكا اللاتينية)",
|
"Malagasy": "مدجشقر\\مدغشقر",
|
||||||
"Sundanese": "السودانية",
|
"Malay": "الملايو",
|
||||||
"Swahili": "السواحلية",
|
"Malayalam": "المالايالامية",
|
||||||
"Swedish": "السويدية",
|
"Maltese": "المالطية",
|
||||||
"Tajik": "الطاجيكية",
|
"Maori": "الماوري",
|
||||||
"Tamil": "التاميل",
|
"Marathi": "المهاراتية",
|
||||||
"Telugu": "التيلجو",
|
"Mongolian": "المنغولية",
|
||||||
"Thai": "التايلاندية",
|
"Nepali": "النيبالية",
|
||||||
"Turkish": "التركية",
|
"Norwegian Bokmål": "النرويجية",
|
||||||
"Ukrainian": "الأوكراني",
|
"Nyanja": "نيانجا",
|
||||||
"Urdu": "الأردية",
|
"Pashto": "الباشتو",
|
||||||
"Uzbek": "الأوزبكي",
|
"Persian": "الفارسية",
|
||||||
"Vietnamese": "الفيتنامية",
|
"Polish": "البولندي",
|
||||||
"Welsh": "الولزية",
|
"Portuguese": "البرتغالية",
|
||||||
"Western Frisian": "الفريزية الغربية",
|
"Punjabi": "البنجابية",
|
||||||
"Xhosa": "زوسا",
|
"Romanian": "روماني",
|
||||||
"Yiddish": "اليديشية",
|
"Russian": "الروسية",
|
||||||
"Yoruba": "اليوروبا",
|
"Samoan": "ساموا",
|
||||||
"Zulu": "الزولو",
|
"Scottish Gaelic": "الغيلية الاسكتلندية",
|
||||||
"`x` years": "`x` سنوات",
|
"Serbian": "صربي",
|
||||||
"`x` months": "`x` شهور",
|
"Shona": "شونا",
|
||||||
"`x` weeks": "`x` اسابيع",
|
"Sindhi": "السندية",
|
||||||
"`x` days": "`x` ايام",
|
"Sinhala": "السنهالية",
|
||||||
"`x` hours": "`x` ساعات",
|
"Slovak": "السلوفاكية",
|
||||||
"`x` minutes": "`x` دقائق",
|
"Slovenian": "سلوفيني",
|
||||||
"`x` seconds": "`x` ثوانى",
|
"Somali": "الصومالية",
|
||||||
"Fallback comments: ": "التعليقات المصاحبة",
|
"Southern Sotho": "جنوب سوثو",
|
||||||
"Popular": "لاكثر شعبية",
|
"Spanish": "الأسبانية",
|
||||||
"Top": "الأفضل",
|
"Spanish (Latin America)": "الأسبانية (أمريكا اللاتينية)",
|
||||||
"About": "حول",
|
"Sundanese": "السودانية",
|
||||||
"Rating: ": "التقييم",
|
"Swahili": "السواحلية",
|
||||||
"Language: ": "اللغة",
|
"Swedish": "السويدية",
|
||||||
"Default": "الكل",
|
"Tajik": "الطاجيكية",
|
||||||
"Music": "الاغانى",
|
"Tamil": "التاميل",
|
||||||
"Gaming": "الألعاب",
|
"Telugu": "التيلجو",
|
||||||
"News": "الأخبار",
|
"Thai": "التايلاندية",
|
||||||
"Movies": "الأفلام",
|
"Turkish": "التركية",
|
||||||
"Download as: ": "تحميل كـ",
|
"Ukrainian": "الأوكراني",
|
||||||
"Download": "تحميل",
|
"Urdu": "الأردية",
|
||||||
"%A %B %-d, %Y": "",
|
"Uzbek": "الأوزبكي",
|
||||||
"(edited)": "",
|
"Vietnamese": "الفيتنامية",
|
||||||
"Youtube permalink of the comment": "",
|
"Welsh": "الولزية",
|
||||||
"`x` marked it with a ❤": "",
|
"Western Frisian": "الفريزية الغربية",
|
||||||
"Audio mode": "",
|
"Xhosa": "زوسا",
|
||||||
"Video mode": ""
|
"Yiddish": "اليديشية",
|
||||||
}
|
"Yoruba": "اليوروبا",
|
||||||
|
"Zulu": "الزولو",
|
||||||
|
"`x` years": "`x` سنوات",
|
||||||
|
"`x` months": "`x` شهور",
|
||||||
|
"`x` weeks": "`x` اسابيع",
|
||||||
|
"`x` days": "`x` ايام",
|
||||||
|
"`x` hours": "`x` ساعات",
|
||||||
|
"`x` minutes": "`x` دقائق",
|
||||||
|
"`x` seconds": "`x` ثوانى",
|
||||||
|
"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": "رابط التعليق على اليوتيوب",
|
||||||
|
"`x` marked it with a ❤": "`x` اعجب بهذا",
|
||||||
|
"Audio mode": "الوضع الصوتى",
|
||||||
|
"Video mode": "وضع الفيديو",
|
||||||
|
"Videos": "الفيديوهات",
|
||||||
|
"Playlists": "قوائم التشغيل",
|
||||||
|
"Current version: ": "الإصدار الحالى"
|
||||||
|
}
|
||||||
600
locales/de.json
600
locales/de.json
@@ -1,286 +1,318 @@
|
|||||||
{
|
{
|
||||||
"`x` subscribers": "`x` Abonnenten",
|
"`x` subscribers": "`x` Abonnenten",
|
||||||
"`x` videos": "`x` Videos",
|
"`x` videos": "`x` Videos",
|
||||||
"LIVE": "LIVE",
|
"LIVE": "LIVE",
|
||||||
"Shared `x` ago": "Vor `x` geteilt",
|
"Shared `x` ago": "Vor `x` geteilt",
|
||||||
"Unsubscribe": "Abbestellen",
|
"Unsubscribe": "Abbestellen",
|
||||||
"Subscribe": "Abonnieren",
|
"Subscribe": "Abonnieren",
|
||||||
"Login to subscribe to `x`": "Einloggen um `x` zu abonnieren",
|
"View channel on YouTube": "Kanal auf YouTube anzeigen",
|
||||||
"View channel on YouTube": "Kanal auf YouTube anzeigen",
|
"View playlist on YouTube": "Wiedergabeliste auf YouTube anzeigen",
|
||||||
"newest": "neueste",
|
"newest": "neueste",
|
||||||
"oldest": "älteste",
|
"oldest": "älteste",
|
||||||
"popular": "beliebt",
|
"popular": "beliebt",
|
||||||
"Preview page": "Vorschau Seite",
|
"last": "letzte",
|
||||||
"Next page": "Nächste Seite",
|
"Next page": "Nächste Seite",
|
||||||
"Clear watch history?": "Verlauf löschen?",
|
"Previous page": "Vorherige Seite",
|
||||||
"Yes": "Ja",
|
"Clear watch history?": "Verlauf löschen?",
|
||||||
"No": "Nein",
|
"New password": "Neues Passwort",
|
||||||
"Import and Export Data": "Import und Export Daten",
|
"New passwords must match": "Neue Passwörter müssen übereinstimmen",
|
||||||
"Import": "Importieren",
|
"Cannot change password for Google accounts": "Das Passwort für Google -Konten kann nicht geändert werden",
|
||||||
"Import Invidious data": "Invidious Daten importieren",
|
"Authorize token?": "Token autorisieren?",
|
||||||
"Import YouTube subscriptions": "YouTube Abonnements importieren",
|
"Authorize token for `x`?": "Token für `x` autorisieren?",
|
||||||
"Import FreeTube subscriptions (.db)": "FreeTube Abonnements importieren (.db)",
|
"Yes": "Ja",
|
||||||
"Import NewPipe subscriptions (.json)": "NewPipe Abonnements importieren (.json)",
|
"No": "Nein",
|
||||||
"Import NewPipe data (.zip)": "NewPipe Daten importieren (.zip)",
|
"Import and Export Data": "Import und Export Daten",
|
||||||
"Export": "Exportieren",
|
"Import": "Importieren",
|
||||||
"Export subscriptions as OPML": "Abonnements als OPML exportieren",
|
"Import Invidious data": "Invidious Daten importieren",
|
||||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Abonnements als OPML exportieren (für NewPipe & FreeTube)",
|
"Import YouTube subscriptions": "YouTube Abonnements importieren",
|
||||||
"Export data as JSON": "Daten als JSON exportieren",
|
"Import FreeTube subscriptions (.db)": "FreeTube Abonnements importieren (.db)",
|
||||||
"Delete account?": "Account löschen?",
|
"Import NewPipe subscriptions (.json)": "NewPipe Abonnements importieren (.json)",
|
||||||
"History": "Verlauf",
|
"Import NewPipe data (.zip)": "NewPipe Daten importieren (.zip)",
|
||||||
"Previous page": "Vorherige Seite",
|
"Export": "Exportieren",
|
||||||
"An alternative front-end to YouTube": "Eine alternative Oberfläche für YouTube",
|
"Export subscriptions as OPML": "Abonnements als OPML exportieren",
|
||||||
"JavaScript license information": "JavaScript Lizenzinformationen",
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Abonnements als OPML exportieren (für NewPipe & FreeTube)",
|
||||||
"source": "Quelle",
|
"Export data as JSON": "Daten als JSON exportieren",
|
||||||
"Login": "Einloggen",
|
"Delete account?": "Account löschen?",
|
||||||
"Login/Register": "Einloggen/Registrieren",
|
"History": "Verlauf",
|
||||||
"Login to Google": "In Google einloggen",
|
"An alternative front-end to YouTube": "Eine alternative Oberfläche für YouTube",
|
||||||
"User ID:": "Benutzer ID:",
|
"JavaScript license information": "JavaScript Lizenzinformationen",
|
||||||
"Password:": "Passwort:",
|
"source": "Quelle",
|
||||||
"Time (h:mm:ss):": "Zeit (h:mm:ss):",
|
"Log in": "Einloggen",
|
||||||
"Text CAPTCHA": "Text CAPTCHA",
|
"Log in/register": "Einloggen/Registrieren",
|
||||||
"Image CAPTCHA": "Image CAPTCHA",
|
"Log in with Google": "In Google einloggen",
|
||||||
"Sign In": "Einloggen",
|
"User ID": "Benutzer ID",
|
||||||
"Register": "Registrieren",
|
"Password": "Passwort",
|
||||||
"Email:": "Email:",
|
"Time (h:mm:ss):": "Zeit (h:mm:ss):",
|
||||||
"Google verification code:": "Google Bestätigungscode:",
|
"Text CAPTCHA": "Text CAPTCHA",
|
||||||
"Preferences": "Einstellungen",
|
"Image CAPTCHA": "Image CAPTCHA",
|
||||||
"Player preferences": "Playereinstellungen",
|
"Sign In": "Einloggen",
|
||||||
"Always loop: ": "Immer wiederholen: ",
|
"Register": "Registrieren",
|
||||||
"Autoplay: ": "Automatisch abspielen: ",
|
"E-mail": "Email",
|
||||||
"Autoplay next video: ": "nächstes Video automatisch abspielen: ",
|
"Google verification code": "Google Bestätigungscode",
|
||||||
"Listen by default: ": "Nur Ton als Standard: ",
|
"Preferences": "Einstellungen",
|
||||||
"Default speed: ": "Standardgeschwindigkeit: ",
|
"Player preferences": "Playereinstellungen",
|
||||||
"Preferred video quality: ": "Bevorzugte Videoqualität: ",
|
"Always loop: ": "Immer wiederholen: ",
|
||||||
"Player volume: ": "Playerlautstärke: ",
|
"Autoplay: ": "Automatisch abspielen: ",
|
||||||
"Default comments: ": "Standardkommentare: ",
|
"Play next by default: ": "Standardmäßig als nächstes abspielen: ",
|
||||||
"youtube": "youtube",
|
"Autoplay next video: ": "nächstes Video automatisch abspielen: ",
|
||||||
"reddit": "reddit",
|
"Listen by default: ": "Nur Ton als Standard: ",
|
||||||
"Default captions: ": "Standarduntertitel: ",
|
"Proxy videos? ": "Proxy-Videos? ",
|
||||||
"Fallback captions: ": "Ersatzuntertitel: ",
|
"Default speed: ": "Standardgeschwindigkeit: ",
|
||||||
"Show related videos? ": "Ähnliche Videos anzeigen? ",
|
"Preferred video quality: ": "Bevorzugte Videoqualität: ",
|
||||||
"Visual preferences": "Anzeigeeinstellungen",
|
"Player volume: ": "Playerlautstärke: ",
|
||||||
"Dark mode: ": "Nachtmodus: ",
|
"Default comments: ": "Standardkommentare: ",
|
||||||
"Thin mode: ": "Schlanker Modus: ",
|
"youtube": "youtube",
|
||||||
"Subscription preferences": "Abonnementeinstellungen",
|
"reddit": "reddit",
|
||||||
"Redirect homepage to feed: ": "Startseite zu Feed umleiten: ",
|
"Default captions: ": "Standarduntertitel: ",
|
||||||
"Number of videos shown in feed: ": "Anzahl von Videos die im Feed angezeigt werden: ",
|
"Fallback captions: ": "Ersatzuntertitel: ",
|
||||||
"Sort videos by: ": "Videos sortieren nach: ",
|
"Show related videos? ": "Ähnliche Videos anzeigen? ",
|
||||||
"published": "veröffentlicht",
|
"Show annotations by default? ": "Standardmäßig Anmerkungen anzeigen? ",
|
||||||
"published - reverse": "veröffentlicht - invertiert",
|
"Visual preferences": "Anzeigeeinstellungen",
|
||||||
"alphabetically": "alphabetisch",
|
"Dark mode: ": "Nachtmodus: ",
|
||||||
"alphabetically - reverse": "alphabetisch - invertiert",
|
"Thin mode: ": "Schlanker Modus: ",
|
||||||
"channel name": "Kanalname",
|
"Subscription preferences": "Abonnementeinstellungen",
|
||||||
"channel name - reverse": "Kanalname - invertiert",
|
"Show annotations by default for subscribed channels? ": "Anmerkungen für abonnierte Kanäle standardmäßig anzeigen? ",
|
||||||
"Only show latest video from channel: ": "Nur neueste Videos des Kanals anzeigen: ",
|
"Redirect homepage to feed: ": "Startseite zu Feed umleiten: ",
|
||||||
"Only show latest unwatched video from channel: ": "Nur neueste ungesehene Videos des Kanals anzeigen: ",
|
"Number of videos shown in feed: ": "Anzahl von Videos die im Feed angezeigt werden: ",
|
||||||
"Only show unwatched: ": "Nur ungesehene anzeigen: ",
|
"Sort videos by: ": "Videos sortieren nach: ",
|
||||||
"Only show notifications (if there are any): ": "Nur Benachrichtigungen anzeigen (wenn es welche gibt): ",
|
"published": "veröffentlicht",
|
||||||
"Data preferences": "Dateneinstellungen",
|
"published - reverse": "veröffentlicht - invertiert",
|
||||||
"Clear watch history": "Verlauf löschen",
|
"alphabetically": "alphabetisch",
|
||||||
"Import/Export data": "Daten im- exportieren",
|
"alphabetically - reverse": "alphabetisch - invertiert",
|
||||||
"Manage subscriptions": "Abonnements verwalten",
|
"channel name": "Kanalname",
|
||||||
"Watch history": "Verlauf",
|
"channel name - reverse": "Kanalname - invertiert",
|
||||||
"Delete account": "Account löschen",
|
"Only show latest video from channel: ": "Nur neueste Videos des Kanals anzeigen: ",
|
||||||
"Save preferences": "Einstellungen speichern",
|
"Only show latest unwatched video from channel: ": "Nur neueste ungesehene Videos des Kanals anzeigen: ",
|
||||||
"Subscription manager": "Abonnementverwaltung",
|
"Only show unwatched: ": "Nur ungesehene anzeigen: ",
|
||||||
"`x` subscriptions": "`x` Abonnements",
|
"Only show notifications (if there are any): ": "Nur Benachrichtigungen anzeigen (wenn es welche gibt): ",
|
||||||
"Import/Export": "Importieren/Exportieren",
|
"Enable web notifications": "",
|
||||||
"unsubscribe": "abbestellen",
|
"`x` uploaded a video": "",
|
||||||
"Subscriptions": "Abonnements",
|
"`x` is live": "",
|
||||||
"`x` unseen notifications": "`x` ungesehene Benachrichtigungen",
|
"Data preferences": "Dateneinstellungen",
|
||||||
"search": "Suchen",
|
"Clear watch history": "Verlauf löschen",
|
||||||
"Sign out": "Abmelden",
|
"Import/export data": "Daten im- exportieren",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Veröffentlicht unter AGPLv3 von Omar Roth.",
|
"Change password": "Passwort ändern",
|
||||||
"Source available here.": "Quellcode verfügbar hier.",
|
"Manage subscriptions": "Abonnements verwalten",
|
||||||
"Liberapay: ": "Liberapay: ",
|
"Manage tokens": "Token verwalten",
|
||||||
"Patreon: ": "Patreon: ",
|
"Watch history": "Verlauf",
|
||||||
"BTC: ": "BTC: ",
|
"Delete account": "Account löschen",
|
||||||
"BCH: ": "BCH: ",
|
"Administrator preferences": "Administratoreinstellungen",
|
||||||
"View JavaScript license information.": "Javascript Lizenzinformationen anzeigen.",
|
"Default homepage: ": "Standard-Homepage: ",
|
||||||
"Trending": "Trending",
|
"Feed menu: ": "Feed-Menü: ",
|
||||||
"Watch video on Youtube": "Video auf YouTube ansehen",
|
"Top enabled? ": "Top aktiviert? ",
|
||||||
"Genre: ": "Genre: ",
|
"CAPTCHA enabled? ": "CAPTCHA aktiviert? ",
|
||||||
"License: ": "Lizenz: ",
|
"Login enabled? ": "Login aktiviert? ",
|
||||||
"Family friendly? ": "Familienfreundlich? ",
|
"Registration enabled? ": "Registrierung aktiviert? ",
|
||||||
"Wilson score: ": "Wilson-Score: ",
|
"Report statistics? ": "Statistiken berichten? ",
|
||||||
"Engagement: ": "Engagement: ",
|
"Save preferences": "Einstellungen speichern",
|
||||||
"Whitelisted regions: ": "Erlaubte Regionen: ",
|
"Subscription manager": "Abonnementverwaltung",
|
||||||
"Blacklisted regions: ": "Unerlaubte Regionen: ",
|
"Token manager": "Token-Manager",
|
||||||
"Shared `x`": "Geteilt `x`",
|
"Token": "Token",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it 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.",
|
"`x` subscriptions": "`x` Abonnements",
|
||||||
"View YouTube comments": "YouTube Kommentare anzeigen",
|
"`x` tokens": "`x` Tokens",
|
||||||
"View more comments on Reddit": "Mehr Kommentare auf Reddit anzeigen",
|
"Import/export": "Importieren/Exportieren",
|
||||||
"View `x` comments": "`x` Kommentare anzeigen",
|
"unsubscribe": "abbestellen",
|
||||||
"View Reddit comments": "Reddit Kommentare anzeigen",
|
"revoke": "widerrufen",
|
||||||
"Hide replies": "Antworten verstecken",
|
"Subscriptions": "Abonnements",
|
||||||
"Show replies": "Antworten anzeigen",
|
"`x` unseen notifications": "`x` ungesehene Benachrichtigungen",
|
||||||
"Incorrect password": "Falsches Passwort",
|
"search": "Suchen",
|
||||||
"Quota exceeded, try again in a few hours": "Kontingent überschritten, versuche es in ein paar Stunden erneut",
|
"Log out": "Abmelden",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "Login nicht möglich, stellen Sie sicher dass two-factor Authentifikation (Authentifizierung oder SMS) aktiviert ist.",
|
"Released under the AGPLv3 by Omar Roth.": "Veröffentlicht unter AGPLv3 von Omar Roth.",
|
||||||
"Invalid TFA code": "Ungültiger TFA Code",
|
"Source available here.": "Quellcode verfügbar hier.",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on your account.": "Login fehlgeschlagen. Das kann daran liegen dass two-factor Authentifizierung in ihrem Account nicht aktiviert ist.",
|
"View JavaScript license information.": "Javascript Lizenzinformationen anzeigen.",
|
||||||
"Invalid answer": "Ungültige Antwort",
|
"View privacy policy.": "Datenschutzerklärung einsehen.",
|
||||||
"Invalid CAPTCHA": "Ungültiges CAPTCHA",
|
"Trending": "Trending",
|
||||||
"CAPTCHA is a required field": "CAPTCHA ist eine erforderliche Eingabe",
|
"Unlisted": "Nicht aufgeführt",
|
||||||
"User ID is a required field": "Benutzer ID ist eine erforderliche Eingabe",
|
"Watch on YouTube": "Video auf YouTube ansehen",
|
||||||
"Password is a required field": "Passwort ist eine erforderliche Eingabe",
|
"Hide annotations": "Anmerkungen ausblenden",
|
||||||
"Invalid username or password": "Ungültiger Benutzername oder Passwort",
|
"Show annotations": "Anmerkungen anzeigen",
|
||||||
"Please sign in using 'Sign in with Google'": "Bitte melden sie sich mit 'Mit Google anmelden' an",
|
"Genre: ": "Genre: ",
|
||||||
"Password cannot be empty": "Passwort darf nicht leer sein",
|
"License: ": "Lizenz: ",
|
||||||
"Password cannot be longer than 55 characters": "Passwort darf nicht länger als 55 Zeichen sein",
|
"Family friendly? ": "Familienfreundlich? ",
|
||||||
"Please sign in": "Bitte anmelden",
|
"Wilson score: ": "Wilson-Score: ",
|
||||||
"Invidious Private Feed for `x`": "Invidious Persönlicher Feed für `x`",
|
"Engagement: ": "Engagement: ",
|
||||||
"channel:`x`": "Kanal:`x`",
|
"Whitelisted regions: ": "Erlaubte Regionen: ",
|
||||||
"Deleted or invalid channel": "Gelöschter oder ungültiger Kanal",
|
"Blacklisted regions: ": "Unerlaubte Regionen: ",
|
||||||
"This channel does not exist.": "Dieser Kanal existiert nicht.",
|
"Shared `x`": "Geteilt `x`",
|
||||||
"Could not get channel info.": "Kanalinformationen konnten nicht geladen werden.",
|
"`x` views": "`x` Ansichten",
|
||||||
"Could not fetch comments": "Kommentare konnten nicht geladen werden",
|
"Premieres in `x`": "Premieren in `x`",
|
||||||
"View `x` replies": "Zeige `x` Antworten",
|
"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.",
|
||||||
"`x` ago": "vor `x`",
|
"View YouTube comments": "YouTube Kommentare anzeigen",
|
||||||
"Load more": "Mehr laden",
|
"View more comments on Reddit": "Mehr Kommentare auf Reddit anzeigen",
|
||||||
"`x` points": "`x` Punkte",
|
"View `x` comments": "`x` Kommentare anzeigen",
|
||||||
"Could not create mix.": "Mix konnte nicht erstellt werden.",
|
"View Reddit comments": "Reddit Kommentare anzeigen",
|
||||||
"Playlist is empty": "Playlist ist leer",
|
"Hide replies": "Antworten verstecken",
|
||||||
"Invalid playlist.": "Ungültige Playlist.",
|
"Show replies": "Antworten anzeigen",
|
||||||
"Playlist does not exist.": "Playlist existiert nicht.",
|
"Incorrect password": "Falsches Passwort",
|
||||||
"Could not pull trending pages.": "Trending Seiten konnten nicht geladen werden.",
|
"Quota exceeded, try again in a few hours": "Kontingent überschritten, versuche es in ein paar Stunden erneut",
|
||||||
"Hidden field \"challenge\" is a required field": "Verstecktes Feld \"challenge\" ist eine erforderliche Eingabe",
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Login nicht möglich, stellen Sie sicher dass two-factor Authentifikation (Authentifizierung oder SMS) aktiviert ist.",
|
||||||
"Hidden field \"token\" is a required field": "Verstecktes Feld \"token\" ist eine erforderliche Eingabe",
|
"Invalid TFA code": "Ungültiger TFA Code",
|
||||||
"Invalid challenge": "Ungültiger Test",
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Login fehlgeschlagen. Das kann daran liegen dass two-factor Authentifizierung in ihrem Account nicht aktiviert ist.",
|
||||||
"Invalid token": "Ungöltige Marke",
|
"Wrong answer": "Ungültige Antwort",
|
||||||
"Invalid user": "Ungültiger Benutzer",
|
"Erroneous CAPTCHA": "Ungültiges CAPTCHA",
|
||||||
"Token is expired, please try again": "Marke ist abgelaufen, bitte erneut versuchen",
|
"CAPTCHA is a required field": "CAPTCHA ist eine erforderliche Eingabe",
|
||||||
"English": "Englisch",
|
"User ID is a required field": "Benutzer ID ist eine erforderliche Eingabe",
|
||||||
"English (auto-generated)": "Englisch (automatisch erzeugt)",
|
"Password is a required field": "Passwort ist eine erforderliche Eingabe",
|
||||||
"Afrikaans": "Afrikaans",
|
"Wrong username or password": "Ungültiger Benutzername oder Passwort",
|
||||||
"Albanian": "Albanisch",
|
"Please sign in using 'Log in with Google'": "Bitte melden sie sich mit 'Mit Google anmelden' an",
|
||||||
"Amharic": "Amharisch",
|
"Password cannot be empty": "Passwort darf nicht leer sein",
|
||||||
"Arabic": "Arabisch",
|
"Password cannot be longer than 55 characters": "Passwort darf nicht länger als 55 Zeichen sein",
|
||||||
"Armenian": "Armenisch",
|
"Please log in": "Bitte anmelden",
|
||||||
"Azerbaijani": "Aserbaidschanisch",
|
"Invidious Private Feed for `x`": "Invidious Persönlicher Feed für `x`",
|
||||||
"Bangla": "Bengalisch",
|
"channel:`x`": "Kanal:`x`",
|
||||||
"Basque": "Baskisch",
|
"Deleted or invalid channel": "Gelöschter oder ungültiger Kanal",
|
||||||
"Belarusian": "Weißrussisch",
|
"This channel does not exist.": "Dieser Kanal existiert nicht.",
|
||||||
"Bosnian": "Bosnisch",
|
"Could not get channel info.": "Kanalinformationen konnten nicht geladen werden.",
|
||||||
"Bulgarian": "Bulgarisch",
|
"Could not fetch comments": "Kommentare konnten nicht geladen werden",
|
||||||
"Burmese": "Burmesisch",
|
"View `x` replies": "Zeige `x` Antworten",
|
||||||
"Catalan": "Katalanisch",
|
"`x` ago": "vor `x`",
|
||||||
"Cebuano": "Cebuano",
|
"Load more": "Mehr laden",
|
||||||
"Chinese (Simplified)": "Chinesisch (vereinfacht)",
|
"`x` points": "`x` Punkte",
|
||||||
"Chinese (Traditional)": "Chinesisch (traditionell)",
|
"Could not create mix.": "Mix konnte nicht erstellt werden.",
|
||||||
"Corsican": "Korsisch",
|
"Empty playlist": "Playlist ist leer",
|
||||||
"Croatian": "Kroatisch",
|
"Not a playlist.": "Ungültige Playlist.",
|
||||||
"Czech": "Tschechisch",
|
"Playlist does not exist.": "Playlist existiert nicht.",
|
||||||
"Danish": "Dänisch",
|
"Could not pull trending pages.": "Trending Seiten konnten nicht geladen werden.",
|
||||||
"Dutch": "Niederländisch",
|
"Hidden field \"challenge\" is a required field": "Verstecktes Feld \"challenge\" ist eine erforderliche Eingabe",
|
||||||
"Esperanto": "Esperanto",
|
"Hidden field \"token\" is a required field": "Verstecktes Feld \"token\" ist eine erforderliche Eingabe",
|
||||||
"Estonian": "Estnisch",
|
"Erroneous challenge": "Ungültiger Test",
|
||||||
"Filipino": "Philippinisch",
|
"Erroneous token": "Ungöltige Marke",
|
||||||
"Finnish": "Finnisch",
|
"No such user": "Ungültiger Benutzer",
|
||||||
"French": "Französisch",
|
"Token is expired, please try again": "Marke ist abgelaufen, bitte erneut versuchen",
|
||||||
"Galician": "Galizisch",
|
"English": "Englisch",
|
||||||
"Georgian": "Georgisch",
|
"English (auto-generated)": "Englisch (automatisch erzeugt)",
|
||||||
"German": "Deutsch",
|
"Afrikaans": "Afrikaans",
|
||||||
"Greek": "Griechisch",
|
"Albanian": "Albanisch",
|
||||||
"Gujarati": "Gujarati",
|
"Amharic": "Amharisch",
|
||||||
"Haitian Creole": "Haitianisches Kreolisch",
|
"Arabic": "Arabisch",
|
||||||
"Hausa": "Hausa",
|
"Armenian": "Armenisch",
|
||||||
"Hawaiian": "Hawaiianisch",
|
"Azerbaijani": "Aserbaidschanisch",
|
||||||
"Hebrew": "Hebräisch",
|
"Bangla": "Bengalisch",
|
||||||
"Hindi": "Hindi",
|
"Basque": "Baskisch",
|
||||||
"Hmong": "Hmong",
|
"Belarusian": "Weißrussisch",
|
||||||
"Hungarian": "Ungarisch",
|
"Bosnian": "Bosnisch",
|
||||||
"Icelandic": "Isländisch",
|
"Bulgarian": "Bulgarisch",
|
||||||
"Igbo": "Igbo",
|
"Burmese": "Burmesisch",
|
||||||
"Indonesian": "Indonesisch",
|
"Catalan": "Katalanisch",
|
||||||
"Irish": "Irisch",
|
"Cebuano": "Cebuano",
|
||||||
"Italian": "Italienisch",
|
"Chinese (Simplified)": "Chinesisch (vereinfacht)",
|
||||||
"Japanese": "Japanisch",
|
"Chinese (Traditional)": "Chinesisch (traditionell)",
|
||||||
"Javanese": "Javanisch",
|
"Corsican": "Korsisch",
|
||||||
"Kannada": "Kannada",
|
"Croatian": "Kroatisch",
|
||||||
"Kazakh": "Kasachisch",
|
"Czech": "Tschechisch",
|
||||||
"Khmer": "Khmer",
|
"Danish": "Dänisch",
|
||||||
"Korean": "Koreanisch",
|
"Dutch": "Niederländisch",
|
||||||
"Kurdish": "Kurdisch",
|
"Esperanto": "Esperanto",
|
||||||
"Kyrgyz": "Kirgisisch",
|
"Estonian": "Estnisch",
|
||||||
"Lao": "Laotisch",
|
"Filipino": "Philippinisch",
|
||||||
"Latin": "Lateinisch",
|
"Finnish": "Finnisch",
|
||||||
"Latvian": "Lettisch",
|
"French": "Französisch",
|
||||||
"Lithuanian": "Litauisch",
|
"Galician": "Galizisch",
|
||||||
"Luxembourgish": "Luxemburgisch",
|
"Georgian": "Georgisch",
|
||||||
"Macedonian": "Mazedonisch",
|
"German": "Deutsch",
|
||||||
"Malagasy": "Madagassisch",
|
"Greek": "Griechisch",
|
||||||
"Malay": "Malaiisch",
|
"Gujarati": "Gujarati",
|
||||||
"Malayalam": "Malayalam",
|
"Haitian Creole": "Haitianisches Kreolisch",
|
||||||
"Maltese": "Maltesisch",
|
"Hausa": "Hausa",
|
||||||
"Maori": "Maori",
|
"Hawaiian": "Hawaiianisch",
|
||||||
"Marathi": "Marathi",
|
"Hebrew": "Hebräisch",
|
||||||
"Mongolian": "Mongolisch",
|
"Hindi": "Hindi",
|
||||||
"Nepali": "Nepalesisch",
|
"Hmong": "Hmong",
|
||||||
"Norwegian": "Norwegisch",
|
"Hungarian": "Ungarisch",
|
||||||
"Nyanja": "Nyanja",
|
"Icelandic": "Isländisch",
|
||||||
"Pashto": "Paschtunisch",
|
"Igbo": "Igbo",
|
||||||
"Persian": "Persisch",
|
"Indonesian": "Indonesisch",
|
||||||
"Polish": "Polnisch",
|
"Irish": "Irisch",
|
||||||
"Portuguese": "Portugiesisch",
|
"Italian": "Italienisch",
|
||||||
"Punjabi": "Pandschabi",
|
"Japanese": "Japanisch",
|
||||||
"Romanian": "Rumänisch",
|
"Javanese": "Javanisch",
|
||||||
"Russian": "Russisch",
|
"Kannada": "Kannada",
|
||||||
"Samoan": "Samoanisch",
|
"Kazakh": "Kasachisch",
|
||||||
"Scottish Gaelic": "Schottisches Gälisch",
|
"Khmer": "Khmer",
|
||||||
"Serbian": "Serbisch",
|
"Korean": "Koreanisch",
|
||||||
"Shona": "Schona",
|
"Kurdish": "Kurdisch",
|
||||||
"Sindhi": "Sindhi",
|
"Kyrgyz": "Kirgisisch",
|
||||||
"Sinhala": "Singhalesisch",
|
"Lao": "Laotisch",
|
||||||
"Slovak": "Slowakisch",
|
"Latin": "Lateinisch",
|
||||||
"Slovenian": "Slowenisch",
|
"Latvian": "Lettisch",
|
||||||
"Somali": "Somali",
|
"Lithuanian": "Litauisch",
|
||||||
"Southern Sotho": "Südliches Sotho",
|
"Luxembourgish": "Luxemburgisch",
|
||||||
"Spanish": "Spanisch",
|
"Macedonian": "Mazedonisch",
|
||||||
"Spanish (Latin America)": "Spanisch (Lateinamerika)",
|
"Malagasy": "Madagassisch",
|
||||||
"Sundanese": "Sundanesisch",
|
"Malay": "Malaiisch",
|
||||||
"Swahili": "Suaheli",
|
"Malayalam": "Malayalam",
|
||||||
"Swedish": "Schwedisch",
|
"Maltese": "Maltesisch",
|
||||||
"Tajik": "Tadschikisch",
|
"Maori": "Maori",
|
||||||
"Tamil": "Tamilisch",
|
"Marathi": "Marathi",
|
||||||
"Telugu": "Telugu",
|
"Mongolian": "Mongolisch",
|
||||||
"Thai": "Thailändisch",
|
"Nepali": "Nepalesisch",
|
||||||
"Turkish": "Türkisch",
|
"Norwegian Bokmål": "Norwegisch",
|
||||||
"Ukrainian": "Ukrainisch",
|
"Nyanja": "Nyanja",
|
||||||
"Urdu": "Urdu",
|
"Pashto": "Paschtunisch",
|
||||||
"Uzbek": "Usbekisch",
|
"Persian": "Persisch",
|
||||||
"Vietnamese": "Vietnamesisch",
|
"Polish": "Polnisch",
|
||||||
"Welsh": "Walisisch",
|
"Portuguese": "Portugiesisch",
|
||||||
"Western Frisian": "Westfriesisch",
|
"Punjabi": "Pandschabi",
|
||||||
"Xhosa": "Xhosa",
|
"Romanian": "Rumänisch",
|
||||||
"Yiddish": "Jiddisch",
|
"Russian": "Russisch",
|
||||||
"Yoruba": "Joruba",
|
"Samoan": "Samoanisch",
|
||||||
"Zulu": "Zulu",
|
"Scottish Gaelic": "Schottisches Gälisch",
|
||||||
"`x` years": "`x` Jahre",
|
"Serbian": "Serbisch",
|
||||||
"`x` months": "`x` Monate",
|
"Shona": "Schona",
|
||||||
"`x` weeks": "`x` Wochen",
|
"Sindhi": "Sindhi",
|
||||||
"`x` days": "`x` Tage",
|
"Sinhala": "Singhalesisch",
|
||||||
"`x` hours": "`x` Stunden",
|
"Slovak": "Slowakisch",
|
||||||
"`x` minutes": "`x` Minuten",
|
"Slovenian": "Slowenisch",
|
||||||
"`x` seconds": "`x` Sekunden",
|
"Somali": "Somali",
|
||||||
"Fallback comments: ": "Alternative Kommentare: ",
|
"Southern Sotho": "Südliches Sotho",
|
||||||
"Popular": "Populär",
|
"Spanish": "Spanisch",
|
||||||
"Top": "Top",
|
"Spanish (Latin America)": "Spanisch (Lateinamerika)",
|
||||||
"About": "Über",
|
"Sundanese": "Sundanesisch",
|
||||||
"Rating: ": "Bewertung: ",
|
"Swahili": "Suaheli",
|
||||||
"Language: ": "Sprache: ",
|
"Swedish": "Schwedisch",
|
||||||
"Default": "",
|
"Tajik": "Tadschikisch",
|
||||||
"Music": "",
|
"Tamil": "Tamilisch",
|
||||||
"Gaming": "",
|
"Telugu": "Telugu",
|
||||||
"News": "",
|
"Thai": "Thailändisch",
|
||||||
"Movies": "",
|
"Turkish": "Türkisch",
|
||||||
"Download": "",
|
"Ukrainian": "Ukrainisch",
|
||||||
"Download as: ": "",
|
"Urdu": "Urdu",
|
||||||
"%A %B %-d, %Y": "",
|
"Uzbek": "Usbekisch",
|
||||||
"(edited)": "",
|
"Vietnamese": "Vietnamesisch",
|
||||||
"Youtube permalink of the comment": "",
|
"Welsh": "Walisisch",
|
||||||
"`x` marked it with a ❤": "",
|
"Western Frisian": "Westfriesisch",
|
||||||
"Audio mode": "",
|
"Xhosa": "Xhosa",
|
||||||
"Video mode": ""
|
"Yiddish": "Jiddisch",
|
||||||
|
"Yoruba": "Joruba",
|
||||||
|
"Zulu": "Zulu",
|
||||||
|
"`x` years": "`x` Jahre",
|
||||||
|
"`x` months": "`x` Monate",
|
||||||
|
"`x` weeks": "`x` Wochen",
|
||||||
|
"`x` days": "`x` Tage",
|
||||||
|
"`x` hours": "`x` Stunden",
|
||||||
|
"`x` minutes": "`x` Minuten",
|
||||||
|
"`x` seconds": "`x` Sekunden",
|
||||||
|
"Fallback comments: ": "Alternative Kommentare: ",
|
||||||
|
"Popular": "Populär",
|
||||||
|
"Top": "Top",
|
||||||
|
"About": "Über",
|
||||||
|
"Rating: ": "Bewertung: ",
|
||||||
|
"Language: ": "Sprache: ",
|
||||||
|
"View as playlist": "Als Wiedergabeliste anzeigen",
|
||||||
|
"Default": "Standard",
|
||||||
|
"Music": "Musik",
|
||||||
|
"Gaming": "Videospiele",
|
||||||
|
"News": "Neuigkeiten",
|
||||||
|
"Movies": "Filme",
|
||||||
|
"Download": "Herunterladen",
|
||||||
|
"Download as: ": "Herunterladen als: ",
|
||||||
|
"%A %B %-d, %Y": "%A %B %-d, %Y",
|
||||||
|
"(edited)": "(editiert)",
|
||||||
|
"YouTube comment permalink": "YouTube-Kommentar Permalink",
|
||||||
|
"`x` marked it with a ❤": "`x` markierte es mit einem ❤",
|
||||||
|
"Audio mode": "Audiomodus",
|
||||||
|
"Video mode": "Videomodus",
|
||||||
|
"Videos": "Videos",
|
||||||
|
"Playlists": "Wiedergabelisten",
|
||||||
|
"Current version: ": "Aktuelle Version: "
|
||||||
}
|
}
|
||||||
|
|||||||
363
locales/el.json
Normal file
363
locales/el.json
Normal file
@@ -0,0 +1,363 @@
|
|||||||
|
{
|
||||||
|
"`x` subscribers": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` συνδρομητής",
|
||||||
|
"": "`x` συνδρομητές"
|
||||||
|
},
|
||||||
|
"`x` videos": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` βίντεο",
|
||||||
|
"": "`x` βίντεο"
|
||||||
|
},
|
||||||
|
"LIVE": "ΖΩΝΤΑΝΑ",
|
||||||
|
"Shared `x` ago": "Μοιράστηκε πριν `x`",
|
||||||
|
"Unsubscribe": "Απεγγραφή",
|
||||||
|
"Subscribe": "Εγγραφή",
|
||||||
|
"View channel on YouTube": "Προβολή καναλιού στο YouTube",
|
||||||
|
"View playlist on 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": "Ταυτότητα χρήστη",
|
||||||
|
"Password": "Κωδικός πρόσβασης",
|
||||||
|
"Time (h:mm:ss):": "Ώρα (ω:λλ:δδ):",
|
||||||
|
"Text CAPTCHA": "Κείμενο CAPTCHA",
|
||||||
|
"Image CAPTCHA": "Εικόνα CAPTCHA",
|
||||||
|
"Sign In": "Σύνδεση",
|
||||||
|
"Register": "Εγγραφή",
|
||||||
|
"E-mail": "E-mail",
|
||||||
|
"Google verification code": "Κωδικός επαλήθευσης Google",
|
||||||
|
"Preferences": "Προτιμήσεις",
|
||||||
|
"Player preferences": "Προτιμήσεις αναπαραγωγής",
|
||||||
|
"Always loop: ": "Αυτόματη επανάληψη: ",
|
||||||
|
"Autoplay: ": "Αυτόματη αναπαραγωγή: ",
|
||||||
|
"Play next by default: ": "Αναπαραγωγή επόμενου: ",
|
||||||
|
"Autoplay next video: ": "Αυτόματη αναπαραγωγή επόμενου: ",
|
||||||
|
"Listen by default: ": "Φόρτωση μόνο ήχου: ",
|
||||||
|
"Proxy videos? ": "Αναπαραγωγή με διακομιστή μεσολάβησης (proxy): ",
|
||||||
|
"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": "Προτιμήσεις εμφάνισης",
|
||||||
|
"Dark mode: ": "Σκοτεινή λειτουργία: ",
|
||||||
|
"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? ": "Ενεργοποίηση CAPTCHA; ",
|
||||||
|
"Login enabled? ": "Ενεργοποίηση σύνδεσης; ",
|
||||||
|
"Registration enabled? ": "Ενεργοποίηση εγγραφής; ",
|
||||||
|
"Report statistics? ": "Αναφορά στατιστικών; ",
|
||||||
|
"Save preferences": "Αποθήκευση προτιμήσεων",
|
||||||
|
"Subscription manager": "Διαχειριστής συνδρομών",
|
||||||
|
"Token manager": "Διαχειριστής διασυνδέσεων",
|
||||||
|
"Token": "Διασύνδεση",
|
||||||
|
"`x` subscriptions": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` συνδρομή",
|
||||||
|
"": "`x` συνδρομές"
|
||||||
|
},
|
||||||
|
"`x` tokens": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` διασύνδεση",
|
||||||
|
"": "`x` διασυνδέσεις"
|
||||||
|
},
|
||||||
|
"Import/export": "Εισαγωγή/εξαγωγή",
|
||||||
|
"unsubscribe": "κατάργηση συνδρομής",
|
||||||
|
"revoke": "ανάκληση",
|
||||||
|
"Subscriptions": "Συνδρομές",
|
||||||
|
"`x` unseen notifications": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` καινούρια ειδοποίηση",
|
||||||
|
"": "`x` καινούριες ειδοποιήσεις"
|
||||||
|
},
|
||||||
|
"search": "αναζήτηση",
|
||||||
|
"Log out": "Αποσύνδεση",
|
||||||
|
"Released under the AGPLv3 by Omar Roth.": "Κυκλοφορεί υπό την άδεια AGPLv3 από τον Omar Roth.",
|
||||||
|
"Source available here.": "Προβολή πηγαίου κώδικα εδώ.",
|
||||||
|
"View JavaScript license information.": "Προβολή πληροφοριών άδειας JavaScript.",
|
||||||
|
"View privacy policy.": "Προβολή πολιτικής απορρήτου.",
|
||||||
|
"Trending": "Τάσεις",
|
||||||
|
"Unlisted": "Κρυφό",
|
||||||
|
"Watch on YouTube": "Προβολή στο YouTube",
|
||||||
|
"Hide annotations": "Απόκρυψη σημειώσεων",
|
||||||
|
"Show annotations": "Προβολή σημειώσεων",
|
||||||
|
"Genre: ": "Είδος: ",
|
||||||
|
"License: ": "Άδεια: ",
|
||||||
|
"Family friendly? ": "Φιλικό προς την οικογένεια; ",
|
||||||
|
"Wilson score: ": "Wilson score: ",
|
||||||
|
"Engagement: ": "Ενδιαφέρον: ",
|
||||||
|
"Whitelisted regions: ": "Επιτρεπτές περιοχές: ",
|
||||||
|
"Blacklisted regions: ": "Μη-επιτρεπτές περιοχές: ",
|
||||||
|
"Shared `x`": "Μοιράστηκε το `x`",
|
||||||
|
"`x` views": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` προβολή",
|
||||||
|
"": "`x` προβολές"
|
||||||
|
},
|
||||||
|
"Premieres in `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.": "Αδυναμία σύνδεσης, βεβαιωθείτε πως ο έλεγχος ταυτότητας δύο παραγόντων (με Authenticator ή SMS) είναι ενεργοποιημένος.",
|
||||||
|
"Invalid TFA code": "Μη έγκυρος κωδικός ελέγχου ταυτότητας δύο παραγόντων",
|
||||||
|
"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": "Η ταυτότητα χρήστη είναι απαιτούμενο πεδίο",
|
||||||
|
"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`": "Ροή RSS του Invidious για το χρήστη `x`",
|
||||||
|
"channel:`x`": "κανάλι:`x`",
|
||||||
|
"Deleted or invalid channel": "Διαγραμμένο ή μη έγκυρο κανάλι",
|
||||||
|
"This channel does not exist.": "Αυτό το κανάλι δεν υπάρχει.",
|
||||||
|
"Could not get channel info.": "Αδύναμια εύρεσης πληροφοριών καναλιού.",
|
||||||
|
"Could not fetch comments": "Αδυναμία λήψης σχολίων",
|
||||||
|
"View `x` replies": {
|
||||||
|
"(\\D|^)1(\\D|$)": "Προβολή `x` απάντησης",
|
||||||
|
"": "Προβολή `x` απαντήσεων"
|
||||||
|
},
|
||||||
|
"`x` ago": "Πριν `x`",
|
||||||
|
"Load more": "Φόρτωση περισσότερων",
|
||||||
|
"`x` points": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`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": "Το Κρυφό πεδίο \"δοκιμασία\" είναι απαραίτητο",
|
||||||
|
"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": "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": "Xhosa",
|
||||||
|
"Yiddish": "Γίντις",
|
||||||
|
"Yoruba": "Γιορούμπα",
|
||||||
|
"Zulu": "Ζουλού",
|
||||||
|
"`x` years": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` χρόνο",
|
||||||
|
"": "`x` χρόνια"
|
||||||
|
},
|
||||||
|
"`x` months": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` μήνα",
|
||||||
|
"": "`x` μήνες"
|
||||||
|
},
|
||||||
|
"`x` weeks": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` εβδομάδα",
|
||||||
|
"": "`x` εβδομάδες"
|
||||||
|
},
|
||||||
|
"`x` days": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` ημέρα",
|
||||||
|
"": "`x` ημέρες"
|
||||||
|
},
|
||||||
|
"`x` hours": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` ώρα",
|
||||||
|
"": "`x` ώρες"
|
||||||
|
},
|
||||||
|
"`x` minutes": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` λεπτό",
|
||||||
|
"": "`x` λεπτά"
|
||||||
|
},
|
||||||
|
"`x` seconds": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` δευτερόλεπτο",
|
||||||
|
"": "`x` δευτερόλεπτα"
|
||||||
|
},
|
||||||
|
"Fallback comments: ": "Εναλλακτικά σχόλια: ",
|
||||||
|
"Popular": "Δημοφιλή",
|
||||||
|
"Top": "Κορυφαία",
|
||||||
|
"About": "Σχετικά",
|
||||||
|
"Rating: ": "Aξιολόγηση: ",
|
||||||
|
"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 σχολίου",
|
||||||
|
"`x` marked it with a ❤": "Ο χρηστης `x` έβαλε ❤",
|
||||||
|
"Audio mode": "Λειτουργία ήχου",
|
||||||
|
"Video mode": "Λειτουργία βίντεο",
|
||||||
|
"Videos": "Βίντεο",
|
||||||
|
"Playlists": "Λίστες Αναπαραγωγής",
|
||||||
|
"Current version: ": "Τρέχουσα έκδοση: "
|
||||||
|
}
|
||||||
@@ -1,280 +1,363 @@
|
|||||||
{
|
{
|
||||||
"`x` subscribers": "`x` subscribers",
|
"`x` subscribers": {
|
||||||
"`x` videos": "`x` videos",
|
"(\\D|^)1(\\D|$)": "`x` subscriber",
|
||||||
"LIVE": "LIVE",
|
"": "`x` subscribers"
|
||||||
"Shared `x` ago": "Shared `x` ago",
|
},
|
||||||
"Unsubscribe": "Unsubscribe",
|
"`x` videos": {
|
||||||
"Subscribe": "Subscribe",
|
"(\\D|^)1(\\D|$)": "`x` video",
|
||||||
"Login to subscribe to `x`": "Login to subscribe to `x`",
|
"": "`x` videos"
|
||||||
"View channel on YouTube": "View channel on YouTube",
|
},
|
||||||
"newest": "newest",
|
"LIVE": "LIVE",
|
||||||
"oldest": "oldest",
|
"Shared `x` ago": "Shared `x` ago",
|
||||||
"popular": "popular",
|
"Unsubscribe": "Unsubscribe",
|
||||||
"Preview page": "Preview page",
|
"Subscribe": "Subscribe",
|
||||||
"Next page": "Next page",
|
"View channel on YouTube": "View channel on YouTube",
|
||||||
"Clear watch history?": "Clear watch history?",
|
"View playlist on YouTube": "View playlist on YouTube",
|
||||||
"Yes": "Yes",
|
"newest": "newest",
|
||||||
"No": "No",
|
"oldest": "oldest",
|
||||||
"Import and Export Data": "Import and Export Data",
|
"popular": "popular",
|
||||||
"Import": "Import",
|
"last": "last",
|
||||||
"Import Invidious data": "Import Invidious data",
|
"Next page": "Next page",
|
||||||
"Import YouTube subscriptions": "Import YouTube subscriptions",
|
"Previous page": "Previous page",
|
||||||
"Import FreeTube subscriptions (.db)": "Import FreeTube subscriptions (.db)",
|
"Clear watch history?": "Clear watch history?",
|
||||||
"Import NewPipe subscriptions (.json)": "Import NewPipe subscriptions (.json)",
|
"New password": "New password",
|
||||||
"Import NewPipe data (.zip)": "Import NewPipe data (.zip)",
|
"New passwords must match": "New passwords must match",
|
||||||
"Export": "Export",
|
"Cannot change password for Google accounts": "Cannot change password for Google accounts",
|
||||||
"Export subscriptions as OPML": "Export subscriptions as OPML",
|
"Authorize token?": "Authorize token?",
|
||||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Export subscriptions as OPML (for NewPipe & FreeTube)",
|
"Authorize token for `x`?": "Authorize token for `x`?",
|
||||||
"Export data as JSON": "Export data as JSON",
|
"Yes": "Yes",
|
||||||
"Delete account?": "Delete account?",
|
"No": "No",
|
||||||
"History": "History",
|
"Import and Export Data": "Import and Export Data",
|
||||||
"Previous page": "Previous page",
|
"Import": "Import",
|
||||||
"An alternative front-end to YouTube": "An alternative front-end to YouTube",
|
"Import Invidious data": "Import Invidious data",
|
||||||
"JavaScript license information": "JavaScript license information",
|
"Import YouTube subscriptions": "Import YouTube subscriptions",
|
||||||
"source": "source",
|
"Import FreeTube subscriptions (.db)": "Import FreeTube subscriptions (.db)",
|
||||||
"Login": "Login",
|
"Import NewPipe subscriptions (.json)": "Import NewPipe subscriptions (.json)",
|
||||||
"Login/Register": "Login/Register",
|
"Import NewPipe data (.zip)": "Import NewPipe data (.zip)",
|
||||||
"Login to Google": "Login to Google",
|
"Export": "Export",
|
||||||
"User ID:": "User ID:",
|
"Export subscriptions as OPML": "Export subscriptions as OPML",
|
||||||
"Password:": "Password:",
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Export subscriptions as OPML (for NewPipe & FreeTube)",
|
||||||
"Time (h:mm:ss):": "Time (h:mm:ss):",
|
"Export data as JSON": "Export data as JSON",
|
||||||
"Text CAPTCHA": "Text CAPTCHA",
|
"Delete account?": "Delete account?",
|
||||||
"Image CAPTCHA": "Image CAPTCHA",
|
"History": "History",
|
||||||
"Sign In": "Sign In",
|
"An alternative front-end to YouTube": "An alternative front-end to YouTube",
|
||||||
"Register": "Register",
|
"JavaScript license information": "JavaScript license information",
|
||||||
"Email:": "Email:",
|
"source": "source",
|
||||||
"Google verification code:": "Google verification code:",
|
"Log in": "Log in",
|
||||||
"Preferences": "Preferences",
|
"Log in/register": "Log in/register",
|
||||||
"Player preferences": "Player preferences",
|
"Log in with Google": "Log in with Google",
|
||||||
"Always loop: ": "Always loop: ",
|
"User ID": "User ID",
|
||||||
"Autoplay: ": "Autoplay: ",
|
"Password": "Password",
|
||||||
"Autoplay next video: ": "Autoplay next video: ",
|
"Time (h:mm:ss):": "Time (h:mm:ss):",
|
||||||
"Listen by default: ": "Listen by default: ",
|
"Text CAPTCHA": "Text CAPTCHA",
|
||||||
"Default speed: ": "Default speed: ",
|
"Image CAPTCHA": "Image CAPTCHA",
|
||||||
"Preferred video quality: ": "Preferred video quality: ",
|
"Sign In": "Sign In",
|
||||||
"Player volume: ": "Player volume: ",
|
"Register": "Register",
|
||||||
"Default comments: ": "Default comments: ",
|
"E-mail": "E-mail",
|
||||||
"Default captions: ": "Default captions: ",
|
"Google verification code": "Google verification code",
|
||||||
"Fallback captions: ": "Fallback captions: ",
|
"Preferences": "Preferences",
|
||||||
"Show related videos? ": "Show related videos? ",
|
"Player preferences": "Player preferences",
|
||||||
"Visual preferences": "Visual preferences",
|
"Always loop: ": "Always loop: ",
|
||||||
"Dark mode: ": "Dark mode: ",
|
"Autoplay: ": "Autoplay: ",
|
||||||
"Thin mode: ": "Thin mode: ",
|
"Play next by default: ": "Play next by default: ",
|
||||||
"Subscription preferences": "Subscription preferences",
|
"Autoplay next video: ": "Autoplay next video: ",
|
||||||
"Redirect homepage to feed: ": "Redirect homepage to feed: ",
|
"Listen by default: ": "Listen by default: ",
|
||||||
"Number of videos shown in feed: ": "Number of videos shown in feed: ",
|
"Proxy videos? ": "Proxy videos? ",
|
||||||
"Sort videos by: ": "Sort videos by: ",
|
"Default speed: ": "Default speed: ",
|
||||||
"published": "published",
|
"Preferred video quality: ": "Preferred video quality: ",
|
||||||
"published - reverse": "published - reverse",
|
"Player volume: ": "Player volume: ",
|
||||||
"alphabetically": "alphabetically",
|
"Default comments: ": "Default comments: ",
|
||||||
"alphabetically - reverse": "alphabetically - reverse",
|
"youtube": "youtube",
|
||||||
"channel name": "channel name",
|
"reddit": "reddit",
|
||||||
"channel name - reverse": "channel name - reverse",
|
"Default captions: ": "Default captions: ",
|
||||||
"Only show latest video from channel: ": "Only show latest video from channel: ",
|
"Fallback captions: ": "Fallback captions: ",
|
||||||
"Only show latest unwatched video from channel: ": "Only show latest unwatched video from channel: ",
|
"Show related videos? ": "Show related videos? ",
|
||||||
"Only show unwatched: ": "Only show unwatched: ",
|
"Show annotations by default? ": "Show annotations by default? ",
|
||||||
"Only show notifications (if there are any): ": "Only show notifications (if there are any): ",
|
"Visual preferences": "Visual preferences",
|
||||||
"Data preferences": "Data preferences",
|
"Dark mode: ": "Dark mode: ",
|
||||||
"Clear watch history": "Clear watch history",
|
"Thin mode: ": "Thin mode: ",
|
||||||
"Import/Export data": "Import/Export data",
|
"Subscription preferences": "Subscription preferences",
|
||||||
"Manage subscriptions": "Manage subscriptions",
|
"Show annotations by default for subscribed channels? ": "Show annotations by default for subscribed channels? ",
|
||||||
"Watch history": "Watch history",
|
"Redirect homepage to feed: ": "Redirect homepage to feed: ",
|
||||||
"Delete account": "Delete account",
|
"Number of videos shown in feed: ": "Number of videos shown in feed: ",
|
||||||
"Save preferences": "Save preferences",
|
"Sort videos by: ": "Sort videos by: ",
|
||||||
"Subscription manager": "Subscription manager",
|
"published": "published",
|
||||||
"`x` subscriptions": "`x` subscriptions",
|
"published - reverse": "published - reverse",
|
||||||
"Import/Export": "Import/Export",
|
"alphabetically": "alphabetically",
|
||||||
"unsubscribe": "unsubscribe",
|
"alphabetically - reverse": "alphabetically - reverse",
|
||||||
"Subscriptions": "Subscriptions",
|
"channel name": "channel name",
|
||||||
"`x` unseen notifications": "`x` unseen notifications",
|
"channel name - reverse": "channel name - reverse",
|
||||||
"search": "search",
|
"Only show latest video from channel: ": "Only show latest video from channel: ",
|
||||||
"Sign out": "Sign out",
|
"Only show latest unwatched video from channel: ": "Only show latest unwatched video from channel: ",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Released under the AGPLv3 by Omar Roth.",
|
"Only show unwatched: ": "Only show unwatched: ",
|
||||||
"Source available here.": "Source available here.",
|
"Only show notifications (if there are any): ": "Only show notifications (if there are any): ",
|
||||||
"View JavaScript license information.": "View JavaScript license information.",
|
"Enable web notifications": "Enable web notifications",
|
||||||
"Trending": "Trending",
|
"`x` uploaded a video": "`x` uploaded a video",
|
||||||
"Watch video on Youtube": "Watch video on Youtube",
|
"`x` is live": "`x` is live",
|
||||||
"Genre: ": "Genre: ",
|
"Data preferences": "Data preferences",
|
||||||
"License: ": "License: ",
|
"Clear watch history": "Clear watch history",
|
||||||
"Family friendly? ": "Family friendly? ",
|
"Import/export data": "Import/export data",
|
||||||
"Wilson score: ": "Wilson score: ",
|
"Change password": "Change password",
|
||||||
"Engagement: ": "Engagement: ",
|
"Manage subscriptions": "Manage subscriptions",
|
||||||
"Whitelisted regions: ": "Whitelisted regions: ",
|
"Manage tokens": "Manage tokens",
|
||||||
"Blacklisted regions: ": "Blacklisted regions: ",
|
"Watch history": "Watch history",
|
||||||
"Shared `x`": "Shared `x`",
|
"Delete account": "Delete account",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.",
|
"Administrator preferences": "Administrator preferences",
|
||||||
"View YouTube comments": "View YouTube comments",
|
"Default homepage: ": "Default homepage: ",
|
||||||
"View more comments on Reddit": "View more comments on Reddit",
|
"Feed menu: ": "Feed menu: ",
|
||||||
"View `x` comments": "View `x` comments",
|
"Top enabled? ": "Top enabled? ",
|
||||||
"View Reddit comments": "View Reddit comments",
|
"CAPTCHA enabled? ": "CAPTCHA enabled? ",
|
||||||
"Hide replies": "Hide replies",
|
"Login enabled? ": "Login enabled? ",
|
||||||
"Show replies": "Show replies",
|
"Registration enabled? ": "Registration enabled? ",
|
||||||
"Incorrect password": "Incorrect password",
|
"Report statistics? ": "Report statistics? ",
|
||||||
"Quota exceeded, try again in a few hours": "Quota exceeded, try again in a few hours",
|
"Save preferences": "Save preferences",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.",
|
"Subscription manager": "Subscription manager",
|
||||||
"Invalid TFA code": "Invalid TFA code",
|
"Token manager": "Token manager",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on your account.": "Login failed. This may be because two-factor authentication is not enabled on your account.",
|
"Token": "Token",
|
||||||
"Invalid answer": "Invalid answer",
|
"`x` subscriptions": {
|
||||||
"Invalid CAPTCHA": "Invalid CAPTCHA",
|
"(\\D|^)1(\\D|$)": "`x` subscription",
|
||||||
"CAPTCHA is a required field": "CAPTCHA is a required field",
|
"": "`x` subscriptions"
|
||||||
"User ID is a required field": "User ID is a required field",
|
},
|
||||||
"Password is a required field": "Password is a required field",
|
"`x` tokens": {
|
||||||
"Invalid username or password": "Invalid username or password",
|
"(\\D|^)1(\\D|$)": "`x` token",
|
||||||
"Please sign in using 'Sign in with Google'": "Please sign in using 'Sign in with Google'",
|
"": "`x` tokens"
|
||||||
"Password cannot be empty": "Password cannot be empty",
|
},
|
||||||
"Password cannot be longer than 55 characters": "Password cannot be longer than 55 characters",
|
"Import/export": "Import/export",
|
||||||
"Please sign in": "Please sign in",
|
"unsubscribe": "unsubscribe",
|
||||||
"Invidious Private Feed for `x`": "Invidious Private Feed for `x`",
|
"revoke": "revoke",
|
||||||
"channel:`x`": "channel:`x`",
|
"Subscriptions": "Subscriptions",
|
||||||
"Deleted or invalid channel": "Deleted or invalid channel",
|
"`x` unseen notifications": {
|
||||||
"This channel does not exist.": "This channel does not exist.",
|
"(\\D|^)1(\\D|$)": "`x` unseen notification",
|
||||||
"Could not get channel info.": "Could not get channel info.",
|
"": "`x` unseen notifications"
|
||||||
"Could not fetch comments": "Could not fetch comments",
|
},
|
||||||
"View `x` replies": "View `x` replies",
|
"search": "search",
|
||||||
"`x` ago": "`x` ago",
|
"Log out": "Log out",
|
||||||
"Load more": "Load more",
|
"Released under the AGPLv3 by Omar Roth.": "Released under the AGPLv3 by Omar Roth.",
|
||||||
"`x` points": "`x` points",
|
"Source available here.": "Source available here.",
|
||||||
"Could not create mix.": "Could not create mix.",
|
"View JavaScript license information.": "View JavaScript license information.",
|
||||||
"Playlist is empty": "Playlist is empty",
|
"View privacy policy.": "View privacy policy.",
|
||||||
"Invalid playlist.": "Invalid playlist.",
|
"Trending": "Trending",
|
||||||
"Playlist does not exist.": "Playlist does not exist.",
|
"Unlisted": "Unlisted",
|
||||||
"Could not pull trending pages.": "Could not pull trending pages.",
|
"Watch on YouTube": "Watch on YouTube",
|
||||||
"Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field",
|
"Hide annotations": "Hide annotations",
|
||||||
"Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field",
|
"Show annotations": "Show annotations",
|
||||||
"Invalid challenge": "Invalid challenge",
|
"Genre: ": "Genre: ",
|
||||||
"Invalid token": "Invalid token",
|
"License: ": "License: ",
|
||||||
"Invalid user": "Invalid user",
|
"Family friendly? ": "Family friendly? ",
|
||||||
"Token is expired, please try again": "Token is expired, please try again",
|
"Wilson score: ": "Wilson score: ",
|
||||||
"English": "English",
|
"Engagement: ": "Engagement: ",
|
||||||
"English (auto-generated)": "English (auto-generated)",
|
"Whitelisted regions: ": "Whitelisted regions: ",
|
||||||
"Afrikaans": "Afrikaans",
|
"Blacklisted regions: ": "Blacklisted regions: ",
|
||||||
"Albanian": "Albanian",
|
"Shared `x`": "Shared `x`",
|
||||||
"Amharic": "Amharic",
|
"`x` views": {
|
||||||
"Arabic": "Arabic",
|
"(\\D|^)1(\\D|$)": "`x` views",
|
||||||
"Armenian": "Armenian",
|
"": "`x` views"
|
||||||
"Azerbaijani": "Azerbaijani",
|
},
|
||||||
"Bangla": "Bangla",
|
"Premieres in `x`": "Premieres in `x`",
|
||||||
"Basque": "Basque",
|
"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.",
|
||||||
"Belarusian": "Belarusian",
|
"View YouTube comments": "View YouTube comments",
|
||||||
"Bosnian": "Bosnian",
|
"View more comments on Reddit": "View more comments on Reddit",
|
||||||
"Bulgarian": "Bulgarian",
|
"View `x` comments": "View `x` comments",
|
||||||
"Burmese": "Burmese",
|
"View Reddit comments": "View Reddit comments",
|
||||||
"Catalan": "Catalan",
|
"Hide replies": "Hide replies",
|
||||||
"Cebuano": "Cebuano",
|
"Show replies": "Show replies",
|
||||||
"Chinese (Simplified)": "Chinese (Simplified)",
|
"Incorrect password": "Incorrect password",
|
||||||
"Chinese (Traditional)": "Chinese (Traditional)",
|
"Quota exceeded, try again in a few hours": "Quota exceeded, try again in a few hours",
|
||||||
"Corsican": "Corsican",
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.",
|
||||||
"Croatian": "Croatian",
|
"Invalid TFA code": "Invalid TFA code",
|
||||||
"Czech": "Czech",
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Login failed. This may be because two-factor authentication is not turned on for your account.",
|
||||||
"Danish": "Danish",
|
"Wrong answer": "Wrong answer",
|
||||||
"Dutch": "Dutch",
|
"Erroneous CAPTCHA": "Erroneous CAPTCHA",
|
||||||
"Esperanto": "Esperanto",
|
"CAPTCHA is a required field": "CAPTCHA is a required field",
|
||||||
"Estonian": "Estonian",
|
"User ID is a required field": "User ID is a required field",
|
||||||
"Filipino": "Filipino",
|
"Password is a required field": "Password is a required field",
|
||||||
"Finnish": "Finnish",
|
"Wrong username or password": "Wrong username or password",
|
||||||
"French": "French",
|
"Please sign in using 'Log in with Google'": "Please sign in using 'Log in with Google'",
|
||||||
"Galician": "Galician",
|
"Password cannot be empty": "Password cannot be empty",
|
||||||
"Georgian": "Georgian",
|
"Password cannot be longer than 55 characters": "Password cannot be longer than 55 characters",
|
||||||
"German": "German",
|
"Please log in": "Please log in",
|
||||||
"Greek": "Greek",
|
"Invidious Private Feed for `x`": "Invidious Private Feed for `x`",
|
||||||
"Gujarati": "Gujarati",
|
"channel:`x`": "channel:`x`",
|
||||||
"Haitian Creole": "Haitian Creole",
|
"Deleted or invalid channel": "Deleted or invalid channel",
|
||||||
"Hausa": "Hausa",
|
"This channel does not exist.": "This channel does not exist.",
|
||||||
"Hawaiian": "Hawaiian",
|
"Could not get channel info.": "Could not get channel info.",
|
||||||
"Hebrew": "Hebrew",
|
"Could not fetch comments": "Could not fetch comments",
|
||||||
"Hindi": "Hindi",
|
"View `x` replies": {
|
||||||
"Hmong": "Hmong",
|
"(\\D|^)1(\\D|$)": "View `x` reply",
|
||||||
"Hungarian": "Hungarian",
|
"": "View `x` replies"
|
||||||
"Icelandic": "Icelandic",
|
},
|
||||||
"Igbo": "Igbo",
|
"`x` ago": "`x` ago",
|
||||||
"Indonesian": "Indonesian",
|
"Load more": "Load more",
|
||||||
"Irish": "Irish",
|
"`x` points": {
|
||||||
"Italian": "Italian",
|
"(\\D|^)1(\\D|$)": "`x` point",
|
||||||
"Japanese": "Japanese",
|
"": "`x` points"
|
||||||
"Javanese": "Javanese",
|
},
|
||||||
"Kannada": "Kannada",
|
"Could not create mix.": "Could not create mix.",
|
||||||
"Kazakh": "Kazakh",
|
"Empty playlist": "Empty playlist",
|
||||||
"Khmer": "Khmer",
|
"Not a playlist.": "Not a playlist.",
|
||||||
"Korean": "Korean",
|
"Playlist does not exist.": "Playlist does not exist.",
|
||||||
"Kurdish": "Kurdish",
|
"Could not pull trending pages.": "Could not pull trending pages.",
|
||||||
"Kyrgyz": "Kyrgyz",
|
"Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field",
|
||||||
"Lao": "Lao",
|
"Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field",
|
||||||
"Latin": "Latin",
|
"Erroneous challenge": "Erroneous challenge",
|
||||||
"Latvian": "Latvian",
|
"Erroneous token": "Erroneous token",
|
||||||
"Lithuanian": "Lithuanian",
|
"No such user": "No such user",
|
||||||
"Luxembourgish": "Luxembourgish",
|
"Token is expired, please try again": "Token is expired, please try again",
|
||||||
"Macedonian": "Macedonian",
|
"English": "English",
|
||||||
"Malagasy": "Malagasy",
|
"English (auto-generated)": "English (auto-generated)",
|
||||||
"Malay": "Malay",
|
"Afrikaans": "Afrikaans",
|
||||||
"Malayalam": "Malayalam",
|
"Albanian": "Albanian",
|
||||||
"Maltese": "Maltese",
|
"Amharic": "Amharic",
|
||||||
"Maori": "Maori",
|
"Arabic": "Arabic",
|
||||||
"Marathi": "Marathi",
|
"Armenian": "Armenian",
|
||||||
"Mongolian": "Mongolian",
|
"Azerbaijani": "Azerbaijani",
|
||||||
"Nepali": "Nepali",
|
"Bangla": "Bangla",
|
||||||
"Norwegian": "Norwegian",
|
"Basque": "Basque",
|
||||||
"Nyanja": "Nyanja",
|
"Belarusian": "Belarusian",
|
||||||
"Pashto": "Pashto",
|
"Bosnian": "Bosnian",
|
||||||
"Persian": "Persian",
|
"Bulgarian": "Bulgarian",
|
||||||
"Polish": "Polish",
|
"Burmese": "Burmese",
|
||||||
"Portuguese": "Portuguese",
|
"Catalan": "Catalan",
|
||||||
"Punjabi": "Punjabi",
|
"Cebuano": "Cebuano",
|
||||||
"Romanian": "Romanian",
|
"Chinese (Simplified)": "Chinese (Simplified)",
|
||||||
"Russian": "Russian",
|
"Chinese (Traditional)": "Chinese (Traditional)",
|
||||||
"Samoan": "Samoan",
|
"Corsican": "Corsican",
|
||||||
"Scottish Gaelic": "Scottish Gaelic",
|
"Croatian": "Croatian",
|
||||||
"Serbian": "Serbian",
|
"Czech": "Czech",
|
||||||
"Shona": "Shona",
|
"Danish": "Danish",
|
||||||
"Sindhi": "Sindhi",
|
"Dutch": "Dutch",
|
||||||
"Sinhala": "Sinhala",
|
"Esperanto": "Esperanto",
|
||||||
"Slovak": "Slovak",
|
"Estonian": "Estonian",
|
||||||
"Slovenian": "Slovenian",
|
"Filipino": "Filipino",
|
||||||
"Somali": "Somali",
|
"Finnish": "Finnish",
|
||||||
"Southern Sotho": "Southern Sotho",
|
"French": "French",
|
||||||
"Spanish": "Spanish",
|
"Galician": "Galician",
|
||||||
"Spanish (Latin America)": "Spanish (Latin America)",
|
"Georgian": "Georgian",
|
||||||
"Sundanese": "Sundanese",
|
"German": "German",
|
||||||
"Swahili": "Swahili",
|
"Greek": "Greek",
|
||||||
"Swedish": "Swedish",
|
"Gujarati": "Gujarati",
|
||||||
"Tajik": "Tajik",
|
"Haitian Creole": "Haitian Creole",
|
||||||
"Tamil": "Tamil",
|
"Hausa": "Hausa",
|
||||||
"Telugu": "Telugu",
|
"Hawaiian": "Hawaiian",
|
||||||
"Thai": "Thai",
|
"Hebrew": "Hebrew",
|
||||||
"Turkish": "Turkish",
|
"Hindi": "Hindi",
|
||||||
"Ukrainian": "Ukrainian",
|
"Hmong": "Hmong",
|
||||||
"Urdu": "Urdu",
|
"Hungarian": "Hungarian",
|
||||||
"Uzbek": "Uzbek",
|
"Icelandic": "Icelandic",
|
||||||
"Vietnamese": "Vietnamese",
|
"Igbo": "Igbo",
|
||||||
"Welsh": "Welsh",
|
"Indonesian": "Indonesian",
|
||||||
"Western Frisian": "Western Frisian",
|
"Irish": "Irish",
|
||||||
"Xhosa": "Xhosa",
|
"Italian": "Italian",
|
||||||
"Yiddish": "Yiddish",
|
"Japanese": "Japanese",
|
||||||
"Yoruba": "Yoruba",
|
"Javanese": "Javanese",
|
||||||
"Zulu": "Zulu",
|
"Kannada": "Kannada",
|
||||||
"`x` years": "`x` years",
|
"Kazakh": "Kazakh",
|
||||||
"`x` months": "`x` months",
|
"Khmer": "Khmer",
|
||||||
"`x` weeks": "`x` weeks",
|
"Korean": "Korean",
|
||||||
"`x` days": "`x` days",
|
"Kurdish": "Kurdish",
|
||||||
"`x` hours": "`x` hours",
|
"Kyrgyz": "Kyrgyz",
|
||||||
"`x` minutes": "`x` minutes",
|
"Lao": "Lao",
|
||||||
"`x` seconds": "`x` seconds",
|
"Latin": "Latin",
|
||||||
"Fallback comments: ": "Fallback comments: ",
|
"Latvian": "Latvian",
|
||||||
"Popular": "Popular",
|
"Lithuanian": "Lithuanian",
|
||||||
"Top": "Top",
|
"Luxembourgish": "Luxembourgish",
|
||||||
"About": "About",
|
"Macedonian": "Macedonian",
|
||||||
"Rating: ": "Rating: ",
|
"Malagasy": "Malagasy",
|
||||||
"Language: ": "Language: ",
|
"Malay": "Malay",
|
||||||
"Default": "Default",
|
"Malayalam": "Malayalam",
|
||||||
"Music": "Music",
|
"Maltese": "Maltese",
|
||||||
"Gaming": "Gaming",
|
"Maori": "Maori",
|
||||||
"News": "News",
|
"Marathi": "Marathi",
|
||||||
"Movies": "Movies",
|
"Mongolian": "Mongolian",
|
||||||
"Download": "Download",
|
"Nepali": "Nepali",
|
||||||
"Download as: ": "Download as: ",
|
"Norwegian Bokmål": "Norwegian Bokmål",
|
||||||
"%A %B %-d, %Y": "%A %B %-d, %Y",
|
"Nyanja": "Nyanja",
|
||||||
"(edited)": "(edited)",
|
"Pashto": "Pashto",
|
||||||
"Youtube permalink of the comment": "Youtube permalink of the comment",
|
"Persian": "Persian",
|
||||||
"`x` marked it with a ❤": "`x` marked it with a ❤",
|
"Polish": "Polish",
|
||||||
"Audio mode": "Audio mode",
|
"Portuguese": "Portuguese",
|
||||||
"Video mode": "Video mode"
|
"Punjabi": "Punjabi",
|
||||||
}
|
"Romanian": "Romanian",
|
||||||
|
"Russian": "Russian",
|
||||||
|
"Samoan": "Samoan",
|
||||||
|
"Scottish Gaelic": "Scottish Gaelic",
|
||||||
|
"Serbian": "Serbian",
|
||||||
|
"Shona": "Shona",
|
||||||
|
"Sindhi": "Sindhi",
|
||||||
|
"Sinhala": "Sinhala",
|
||||||
|
"Slovak": "Slovak",
|
||||||
|
"Slovenian": "Slovenian",
|
||||||
|
"Somali": "Somali",
|
||||||
|
"Southern Sotho": "Southern Sotho",
|
||||||
|
"Spanish": "Spanish",
|
||||||
|
"Spanish (Latin America)": "Spanish (Latin America)",
|
||||||
|
"Sundanese": "Sundanese",
|
||||||
|
"Swahili": "Swahili",
|
||||||
|
"Swedish": "Swedish",
|
||||||
|
"Tajik": "Tajik",
|
||||||
|
"Tamil": "Tamil",
|
||||||
|
"Telugu": "Telugu",
|
||||||
|
"Thai": "Thai",
|
||||||
|
"Turkish": "Turkish",
|
||||||
|
"Ukrainian": "Ukrainian",
|
||||||
|
"Urdu": "Urdu",
|
||||||
|
"Uzbek": "Uzbek",
|
||||||
|
"Vietnamese": "Vietnamese",
|
||||||
|
"Welsh": "Welsh",
|
||||||
|
"Western Frisian": "Western Frisian",
|
||||||
|
"Xhosa": "Xhosa",
|
||||||
|
"Yiddish": "Yiddish",
|
||||||
|
"Yoruba": "Yoruba",
|
||||||
|
"Zulu": "Zulu",
|
||||||
|
"`x` years": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` year",
|
||||||
|
"": "`x` years"
|
||||||
|
},
|
||||||
|
"`x` months": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` month",
|
||||||
|
"": "`x` months"
|
||||||
|
},
|
||||||
|
"`x` weeks": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` week",
|
||||||
|
"": "`x` weeks"
|
||||||
|
},
|
||||||
|
"`x` days": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` day",
|
||||||
|
"": "`x` days"
|
||||||
|
},
|
||||||
|
"`x` hours": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` hour",
|
||||||
|
"": "`x` hours"
|
||||||
|
},
|
||||||
|
"`x` minutes": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` minute",
|
||||||
|
"": "`x` minutes"
|
||||||
|
},
|
||||||
|
"`x` seconds": {
|
||||||
|
"(\\D|^)1(\\D|$)": "`x` second",
|
||||||
|
"": "`x` seconds"
|
||||||
|
},
|
||||||
|
"Fallback comments: ": "Fallback comments: ",
|
||||||
|
"Popular": "Popular",
|
||||||
|
"Top": "Top",
|
||||||
|
"About": "About",
|
||||||
|
"Rating: ": "Rating: ",
|
||||||
|
"Language: ": "Language: ",
|
||||||
|
"View as playlist": "View as playlist",
|
||||||
|
"Default": "Default",
|
||||||
|
"Music": "Music",
|
||||||
|
"Gaming": "Gaming",
|
||||||
|
"News": "News",
|
||||||
|
"Movies": "Movies",
|
||||||
|
"Download": "Download",
|
||||||
|
"Download as: ": "Download as: ",
|
||||||
|
"%A %B %-d, %Y": "%A %B %-d, %Y",
|
||||||
|
"(edited)": "(edited)",
|
||||||
|
"YouTube comment permalink": "YouTube comment permalink",
|
||||||
|
"`x` marked it with a ❤": "`x` marked it with a ❤",
|
||||||
|
"Audio mode": "Audio mode",
|
||||||
|
"Video mode": "Video mode",
|
||||||
|
"Videos": "Videos",
|
||||||
|
"Playlists": "Playlists",
|
||||||
|
"Current version: ": "Current version: "
|
||||||
|
}
|
||||||
318
locales/eo.json
Normal file
318
locales/eo.json
Normal file
@@ -0,0 +1,318 @@
|
|||||||
|
{
|
||||||
|
"`x` subscribers": "`x` abonantoj",
|
||||||
|
"`x` videos": "`x` videoj",
|
||||||
|
"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",
|
||||||
|
"newest": "pli novaj",
|
||||||
|
"oldest": "pli malnovaj",
|
||||||
|
"popular": "popularaj",
|
||||||
|
"last": "lasta",
|
||||||
|
"Next page": "Sekva paĝo",
|
||||||
|
"Previous page": "Antaŭa paĝo",
|
||||||
|
"Clear watch history?": "Ĉu forigi vidohistorion?",
|
||||||
|
"New password": "Nova pasvorto",
|
||||||
|
"New passwords must match": "Novaj pasvortoj devas kongrui",
|
||||||
|
"Cannot change password for Google accounts": "Ne eblas ŝanĝi pasvorton por kontoj de Google",
|
||||||
|
"Authorize token?": "Ĉu rajtigi ĵetonon?",
|
||||||
|
"Authorize token for `x`?": "Ĉu rajtigi ĵetonon por `x`?",
|
||||||
|
"Yes": "Jes",
|
||||||
|
"No": "Ne",
|
||||||
|
"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 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)",
|
||||||
|
"Export": "Eksporti",
|
||||||
|
"Export subscriptions as OPML": "Eksporti abonojn kiel OPML",
|
||||||
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksporti abonojn kiel OPML (por NewPipe kaj FreeTube)",
|
||||||
|
"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",
|
||||||
|
"JavaScript license information": "Ĝavoskripta licenca informo",
|
||||||
|
"source": "fonto",
|
||||||
|
"Log in": "Ensaluti",
|
||||||
|
"Log in/register": "Ensaluti/Registriĝi",
|
||||||
|
"Log in with Google": "Ensaluti al Google",
|
||||||
|
"User ID": "Uzula identigilo",
|
||||||
|
"Password": "Pasvorto",
|
||||||
|
"Time (h:mm:ss):": "Horo (h:mm:ss):",
|
||||||
|
"Text CAPTCHA": "Teksta CAPTCHA",
|
||||||
|
"Image CAPTCHA": "Bilda CAPTCHA",
|
||||||
|
"Sign In": "Ensaluti",
|
||||||
|
"Register": "Registriĝi",
|
||||||
|
"E-mail": "Retpoŝto",
|
||||||
|
"Google verification code": "Kontrolkodo de Google",
|
||||||
|
"Preferences": "Agordoj",
|
||||||
|
"Player preferences": "Spektilaj agordoj",
|
||||||
|
"Always loop: ": "Ĉiam ripeti: ",
|
||||||
|
"Autoplay: ": "Aŭtomate ludi: ",
|
||||||
|
"Play next by default: ": "Ludi sekvan defaŭlte: ",
|
||||||
|
"Autoplay next video: ": "Aŭtomate ludi sekvan videon: ",
|
||||||
|
"Listen by default: ": "Aŭskulti defaŭlte: ",
|
||||||
|
"Proxy videos? ": "Ĉu uzi prokuran servilon por videoj? ",
|
||||||
|
"Default speed: ": "Defaŭlta rapido: ",
|
||||||
|
"Preferred video quality: ": "Preferita videkvalito: ",
|
||||||
|
"Player volume: ": "Ludila sonforteco: ",
|
||||||
|
"Default comments: ": "Defaŭltaj komentoj: ",
|
||||||
|
"youtube": "youtube",
|
||||||
|
"reddit": "reddit",
|
||||||
|
"Default captions: ": "Defaŭltaj subtekstoj: ",
|
||||||
|
"Fallback captions: ": "Retrodefaŭltaj subtekstoj: ",
|
||||||
|
"Show related videos? ": "Ĉu montri rilatajn videojn? ",
|
||||||
|
"Show annotations by default? ": "Ĉu montri prinotojn defaŭlte? ",
|
||||||
|
"Visual preferences": "Vidaj preferoj",
|
||||||
|
"Dark mode: ": "Malhela reĝimo: ",
|
||||||
|
"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ŭ: ",
|
||||||
|
"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 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` is live": "`x` estas nuna",
|
||||||
|
"Data preferences": "Datumagordoj",
|
||||||
|
"Clear watch history": "Forigi vidohistorion",
|
||||||
|
"Import/export data": "Importi/Eksporti datumojn",
|
||||||
|
"Change password": "Ŝanĝi pasvorton",
|
||||||
|
"Manage subscriptions": "Administri abonojn",
|
||||||
|
"Manage tokens": "Administri ĵetonojn",
|
||||||
|
"Watch history": "Vidohistorio",
|
||||||
|
"Delete account": "Forigi konton",
|
||||||
|
"Administrator preferences": "Agordoj de administranto",
|
||||||
|
"Default homepage: ": "Defaŭlta hejmpaĝo: ",
|
||||||
|
"Feed menu: ": "Flua menuo: ",
|
||||||
|
"Top enabled? ": "Ĉu pli bonaj ŝaltitaj? ",
|
||||||
|
"CAPTCHA enabled? ": "Ĉu CAPTCHA ŝaltita? ",
|
||||||
|
"Login enabled? ": "Ĉu ensaluto aktivita? ",
|
||||||
|
"Registration enabled? ": "Ĉu registriĝo aktivita? ",
|
||||||
|
"Report statistics? ": "Ĉu raporti statistikojn? ",
|
||||||
|
"Save preferences": "Konservi agordojn",
|
||||||
|
"Subscription manager": "Administrilo de abonoj",
|
||||||
|
"Token manager": "Ĵetona administrilo",
|
||||||
|
"Token": "Ĵetono",
|
||||||
|
"`x` subscriptions": "`x` abonoj",
|
||||||
|
"`x` tokens": "`x` ĵetonoj",
|
||||||
|
"Import/export": "Importi/Eksporti",
|
||||||
|
"unsubscribe": "malaboni",
|
||||||
|
"revoke": "senvalidigi",
|
||||||
|
"Subscriptions": "Abonoj",
|
||||||
|
"`x` unseen notifications": "`x` neviditaj sciigoj",
|
||||||
|
"search": "serĉi",
|
||||||
|
"Log out": "Elsaluti",
|
||||||
|
"Released under the AGPLv3 by Omar Roth.": "Eldonita sub la AGPLv3 de Omar Roth.",
|
||||||
|
"Source available here.": "Fonto havebla ĉi tie.",
|
||||||
|
"View JavaScript license information.": "Vidi Ĝavoskriptan licencan informon.",
|
||||||
|
"View privacy policy.": "Vidi regularon pri privateco.",
|
||||||
|
"Trending": "Tendencoj",
|
||||||
|
"Unlisted": "Ne listigita",
|
||||||
|
"Watch on YouTube": "Vidi videon en Youtube",
|
||||||
|
"Hide annotations": "Kaŝi prinotojn",
|
||||||
|
"Show annotations": "Montri prinotojn",
|
||||||
|
"Genre: ": "Ĝenro: ",
|
||||||
|
"License: ": "Licenco: ",
|
||||||
|
"Family friendly? ": "Ĉu familie amika? ",
|
||||||
|
"Wilson score: ": "Poentaro de Wilson: ",
|
||||||
|
"Engagement: ": "Intereso: ",
|
||||||
|
"Whitelisted regions: ": "Regionoj listigitaj en blanka listo: ",
|
||||||
|
"Blacklisted regions: ": "Regionoj listigitaj en nigra listo: ",
|
||||||
|
"Shared `x`": "Konigita `x`",
|
||||||
|
"`x` views": "`x` spektaĵoj",
|
||||||
|
"Premieres in `x`": "Premieras en `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 more comments on Reddit": "Vidi pli komentoj en Reddit",
|
||||||
|
"View `x` comments": "Vidi `x` komentojn",
|
||||||
|
"View Reddit comments": "Vidi komentojn de Reddit",
|
||||||
|
"Hide replies": "Kaŝi respondojn",
|
||||||
|
"Show replies": "Montri respondojn",
|
||||||
|
"Incorrect password": "Malbona pasvorto",
|
||||||
|
"Quota exceeded, try again in a few hours": "Kvoto transpasita, provu denove post iuj horoj",
|
||||||
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Ne povas ensaluti, certigu, ke dufaktora aŭtentigo (Authenticator aŭ SMS) estas ebligita.",
|
||||||
|
"Invalid TFA code": "Nevalida TFA-kodo",
|
||||||
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Ensalutado fiaskis. Eble ĉar la dufaktora aŭtentigo estas malebligita en via konto.",
|
||||||
|
"Wrong answer": "Nevalida respondo",
|
||||||
|
"Erroneous CAPTCHA": "Nevalida CAPTCHA",
|
||||||
|
"CAPTCHA is a required field": "CAPTCHA estas deviga kampo",
|
||||||
|
"User ID is a required field": "Uzula identigilo estas deviga kampo",
|
||||||
|
"Password is a required field": "Pasvorto estas deviga kampo",
|
||||||
|
"Wrong username or password": "Nevalida uzantnomo aŭ pasvorto",
|
||||||
|
"Please sign in using 'Log in with Google'": "Bonvolu ensaluti per 'Ensaluti per Google'",
|
||||||
|
"Password cannot be empty": "Pasvorto ne povas esti malplena",
|
||||||
|
"Password cannot be longer than 55 characters": "Pasvorto ne povas esti pli longa ol 55 signoj",
|
||||||
|
"Please log in": "Bonvolu ensaluti",
|
||||||
|
"Invidious Private Feed for `x`": "Privata Fluo de Invidious por `x`",
|
||||||
|
"channel:`x`": "kanalo:`x`",
|
||||||
|
"Deleted or invalid channel": "Forigita aŭ nevalida kanalo",
|
||||||
|
"This channel does not exist.": "Ĉi tiu kanalo ne ekzistas.",
|
||||||
|
"Could not get channel info.": "Ne povis havigi kanalan informon.",
|
||||||
|
"Could not fetch comments": "Ne povis venigi komentojn",
|
||||||
|
"View `x` replies": "Vidi `x` respondojn",
|
||||||
|
"`x` ago": "antaŭ `x`",
|
||||||
|
"Load more": "Ŝarĝi pli",
|
||||||
|
"`x` points": "`x` poentoj",
|
||||||
|
"Could not create mix.": "Ne povis krei mikson.",
|
||||||
|
"Empty playlist": "Ludlisto estas malplena",
|
||||||
|
"Not a playlist.": "Nevalida ludlisto.",
|
||||||
|
"Playlist does not exist.": "Ludlisto ne ekzistas.",
|
||||||
|
"Could not pull trending pages.": "Ne povis venigi tendencajn paĝojn.",
|
||||||
|
"Hidden field \"challenge\" is a required field": "Kaŝita kampo \"challenge\" estas deviga kampo",
|
||||||
|
"Hidden field \"token\" is a required field": "Kaŝita kampo \"token\" estas deviga kampo",
|
||||||
|
"Erroneous challenge": "Nevalida defio",
|
||||||
|
"Erroneous token": "Nevalida ĵetono",
|
||||||
|
"No such user": "Nevalida uzanto",
|
||||||
|
"Token is expired, please try again": "Ĵetono senvalidiĝis, bonvolu provi denove",
|
||||||
|
"English": "Angla",
|
||||||
|
"English (auto-generated)": "Angla (aŭtomate generita)",
|
||||||
|
"Afrikaans": "Afrikansa",
|
||||||
|
"Albanian": "Albana",
|
||||||
|
"Amharic": "Amhara",
|
||||||
|
"Arabic": "Araba",
|
||||||
|
"Armenian": "Armena",
|
||||||
|
"Azerbaijani": "Azerbajĝana",
|
||||||
|
"Bangla": "Bengala",
|
||||||
|
"Basque": "Eŭska",
|
||||||
|
"Belarusian": "Belorusa",
|
||||||
|
"Bosnian": "Bosna",
|
||||||
|
"Bulgarian": "Bulgara",
|
||||||
|
"Burmese": "Birma",
|
||||||
|
"Catalan": "Kataluna",
|
||||||
|
"Cebuano": "Cebua",
|
||||||
|
"Chinese (Simplified)": "Ĉina (simpligita)",
|
||||||
|
"Chinese (Traditional)": "Ĉina (tradicia)",
|
||||||
|
"Corsican": "Korsika",
|
||||||
|
"Croatian": "Kroata",
|
||||||
|
"Czech": "Ĉeĥa",
|
||||||
|
"Danish": "Dana",
|
||||||
|
"Dutch": "Nederlanda",
|
||||||
|
"Esperanto": "Esperanto",
|
||||||
|
"Estonian": "Estona",
|
||||||
|
"Filipino": "Filipina",
|
||||||
|
"Finnish": "Finna",
|
||||||
|
"French": "Franca",
|
||||||
|
"Galician": "Galega",
|
||||||
|
"Georgian": "Kartvela",
|
||||||
|
"German": "Germana",
|
||||||
|
"Greek": "Greka",
|
||||||
|
"Gujarati": "Guĝarata",
|
||||||
|
"Haitian Creole": "Haitia kreola",
|
||||||
|
"Hausa": "Haŭsa",
|
||||||
|
"Hawaiian": "Havaja",
|
||||||
|
"Hebrew": "Hebrea",
|
||||||
|
"Hindi": "Hindia",
|
||||||
|
"Hmong": "Miaa",
|
||||||
|
"Hungarian": "Hungara",
|
||||||
|
"Icelandic": "Islanda",
|
||||||
|
"Igbo": "Igba",
|
||||||
|
"Indonesian": "Indonezia",
|
||||||
|
"Irish": "Irlanda",
|
||||||
|
"Italian": "Itala",
|
||||||
|
"Japanese": "Japana",
|
||||||
|
"Javanese": "Java",
|
||||||
|
"Kannada": "Kanara",
|
||||||
|
"Kazakh": "Kazaĥa",
|
||||||
|
"Khmer": "Kmera",
|
||||||
|
"Korean": "Korea",
|
||||||
|
"Kurdish": "Kurda",
|
||||||
|
"Kyrgyz": "Kirgiza",
|
||||||
|
"Lao": "Laosa",
|
||||||
|
"Latin": "Latina",
|
||||||
|
"Latvian": "Latva",
|
||||||
|
"Lithuanian": "Litova",
|
||||||
|
"Luxembourgish": "Luksemburga",
|
||||||
|
"Macedonian": "Makedona",
|
||||||
|
"Malagasy": "Malagasa",
|
||||||
|
"Malay": "Malaja",
|
||||||
|
"Malayalam": "Malajala",
|
||||||
|
"Maltese": "Malta",
|
||||||
|
"Maori": "Maoria",
|
||||||
|
"Marathi": "Marata",
|
||||||
|
"Mongolian": "Mongola",
|
||||||
|
"Nepali": "Nepala",
|
||||||
|
"Norwegian Bokmål": "Norvega",
|
||||||
|
"Nyanja": "Njanĝa",
|
||||||
|
"Pashto": "Paŝtuna",
|
||||||
|
"Persian": "Persa",
|
||||||
|
"Polish": "Pola",
|
||||||
|
"Portuguese": "Portugala",
|
||||||
|
"Punjabi": "Panĝaba",
|
||||||
|
"Romanian": "Rumana",
|
||||||
|
"Russian": "Rusa",
|
||||||
|
"Samoan": "Samoa",
|
||||||
|
"Scottish Gaelic": "Skotgaela",
|
||||||
|
"Serbian": "Serba",
|
||||||
|
"Shona": "Ŝona",
|
||||||
|
"Sindhi": "Sinda",
|
||||||
|
"Sinhala": "Sinhala",
|
||||||
|
"Slovak": "Slovaka",
|
||||||
|
"Slovenian": "Slovena",
|
||||||
|
"Somali": "Somala",
|
||||||
|
"Southern Sotho": "Sota",
|
||||||
|
"Spanish": "Hispana",
|
||||||
|
"Spanish (Latin America)": "Hispana (Latinameriko)",
|
||||||
|
"Sundanese": "Sunda",
|
||||||
|
"Swahili": "Svahila",
|
||||||
|
"Swedish": "Sveda",
|
||||||
|
"Tajik": "Taĝika",
|
||||||
|
"Tamil": "Tamila",
|
||||||
|
"Telugu": "Telugua",
|
||||||
|
"Thai": "Taja",
|
||||||
|
"Turkish": "Turka",
|
||||||
|
"Ukrainian": "Ukraina",
|
||||||
|
"Urdu": "Urduo",
|
||||||
|
"Uzbek": "Uzbeka",
|
||||||
|
"Vietnamese": "Vjetnama",
|
||||||
|
"Welsh": "Kimra",
|
||||||
|
"Western Frisian": "Okcidentfrisa",
|
||||||
|
"Xhosa": "Kosa",
|
||||||
|
"Yiddish": "Jida",
|
||||||
|
"Yoruba": "Joruba",
|
||||||
|
"Zulu": "Zulua",
|
||||||
|
"`x` years": "`x` jaroj",
|
||||||
|
"`x` months": "`x` monatoj",
|
||||||
|
"`x` weeks": "`x` semajnoj",
|
||||||
|
"`x` days": "`x` tagoj",
|
||||||
|
"`x` hours": "`x` horoj",
|
||||||
|
"`x` minutes": "`x` minutoj",
|
||||||
|
"`x` seconds": "`x` sekundoj",
|
||||||
|
"Fallback comments: ": "Retrodefaŭltaj komentoj: ",
|
||||||
|
"Popular": "Popularaj",
|
||||||
|
"Top": "Supraj",
|
||||||
|
"About": "Pri",
|
||||||
|
"Rating: ": "Takso: ",
|
||||||
|
"Language: ": "Lingvo: ",
|
||||||
|
"View as playlist": "Vidi kiel ludlisto",
|
||||||
|
"Default": "Defaŭlte",
|
||||||
|
"Music": "Musiko",
|
||||||
|
"Gaming": "Komputiloludoj",
|
||||||
|
"News": "Novaĵoj",
|
||||||
|
"Movies": "Filmoj",
|
||||||
|
"Download": "Elŝuti",
|
||||||
|
"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",
|
||||||
|
"`x` marked it with a ❤": "`x` markis ĝin per ❤",
|
||||||
|
"Audio mode": "Aŭda reĝimo",
|
||||||
|
"Video mode": "Videa reĝimo",
|
||||||
|
"Videos": "Videoj",
|
||||||
|
"Playlists": "Ludlistoj",
|
||||||
|
"Current version: ": "Nuna versio: "
|
||||||
|
}
|
||||||
318
locales/es.json
Normal file
318
locales/es.json
Normal file
@@ -0,0 +1,318 @@
|
|||||||
|
{
|
||||||
|
"`x` subscribers": "`x` suscriptores",
|
||||||
|
"`x` videos": "`x` vídeos",
|
||||||
|
"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": "",
|
||||||
|
"newest": "más nuevos",
|
||||||
|
"oldest": "más viejos",
|
||||||
|
"popular": "populares",
|
||||||
|
"last": "último",
|
||||||
|
"Next page": "Página siguiente",
|
||||||
|
"Previous page": "Página anterior",
|
||||||
|
"Clear watch history?": "¿Quiere borrar el historial de reproducción?",
|
||||||
|
"New password": "Nueva contraseña",
|
||||||
|
"New passwords must match": "Las nuevas contraseñas deben coincidir",
|
||||||
|
"Cannot change password for Google accounts": "No se puede cambiar la contraseña de la cuenta de Google",
|
||||||
|
"Authorize token?": "¿Autorizar el token?",
|
||||||
|
"Authorize token for `x`?": "¿Autorizar el token para `x`?",
|
||||||
|
"Yes": "Sí",
|
||||||
|
"No": "No",
|
||||||
|
"Import and Export Data": "Importación y exportación de datos",
|
||||||
|
"Import": "Importar",
|
||||||
|
"Import Invidious data": "Importar datos de Invidious",
|
||||||
|
"Import YouTube subscriptions": "Importar suscripciones de YouTube",
|
||||||
|
"Import FreeTube subscriptions (.db)": "Importar suscripciones de FreeTube (.db)",
|
||||||
|
"Import NewPipe subscriptions (.json)": "Importar suscripciones de NewPipe (.json)",
|
||||||
|
"Import NewPipe data (.zip)": "Importar datos de NewPipe (.zip)",
|
||||||
|
"Export": "Exportar",
|
||||||
|
"Export subscriptions as OPML": "Exportar suscripciones como OPML",
|
||||||
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exportar suscripciones como OPML (para NewPipe y FreeTube)",
|
||||||
|
"Export data as JSON": "Exportar datos como JSON",
|
||||||
|
"Delete account?": "¿Quiere borrar la cuenta?",
|
||||||
|
"History": "Historial",
|
||||||
|
"An alternative front-end to YouTube": "Una interfaz alternativa para YouTube",
|
||||||
|
"JavaScript license information": "Información de licencia de JavaScript",
|
||||||
|
"source": "código fuente",
|
||||||
|
"Log in": "Iniciar sesión",
|
||||||
|
"Log in/register": "Iniciar sesión/Registrarse",
|
||||||
|
"Log in with Google": "Iniciar sesión en Google",
|
||||||
|
"User ID": "Nombre",
|
||||||
|
"Password": "Contraseña",
|
||||||
|
"Time (h:mm:ss):": "Hora (h:mm:ss):",
|
||||||
|
"Text CAPTCHA": "CAPTCHA en texto",
|
||||||
|
"Image CAPTCHA": "CAPTCHA en imagen",
|
||||||
|
"Sign In": "Iniciar sesión",
|
||||||
|
"Register": "Registrarse",
|
||||||
|
"E-mail": "Correo",
|
||||||
|
"Google verification code": "Código de verificación de Google",
|
||||||
|
"Preferences": "Preferencias",
|
||||||
|
"Player preferences": "Preferencias del reproductor",
|
||||||
|
"Always loop: ": "Repetir siempre: ",
|
||||||
|
"Autoplay: ": "Reproducción automática: ",
|
||||||
|
"Play next by default: ": "Reproducir siguiente por defecto: ",
|
||||||
|
"Autoplay next video: ": "Reproducir automáticamente el vídeo siguiente: ",
|
||||||
|
"Listen by default: ": "Activar el sonido por defecto: ",
|
||||||
|
"Proxy videos? ": "¿Usar un proxy para los vídeos? ",
|
||||||
|
"Default speed: ": "Velocidad por defecto: ",
|
||||||
|
"Preferred video quality: ": "Calidad de vídeo preferida: ",
|
||||||
|
"Player volume: ": "Volumen del reproductor: ",
|
||||||
|
"Default comments: ": "Comentarios por defecto: ",
|
||||||
|
"youtube": "YouTube",
|
||||||
|
"reddit": "Reddit",
|
||||||
|
"Default captions: ": "Subtítulos por defecto: ",
|
||||||
|
"Fallback captions: ": "Subtítulos alternativos: ",
|
||||||
|
"Show related videos? ": "¿Mostrar vídeos relacionados? ",
|
||||||
|
"Show annotations by default? ": "¿Mostrar anotaciones por defecto? ",
|
||||||
|
"Visual preferences": "Preferencias visuales",
|
||||||
|
"Dark mode: ": "Modo oscuro: ",
|
||||||
|
"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? ",
|
||||||
|
"Redirect homepage to feed: ": "Redirigir la página de inicio a la fuente: ",
|
||||||
|
"Number of videos shown in feed: ": "Número de vídeos mostrados en la fuente: ",
|
||||||
|
"Sort videos by: ": "Ordenar los vídeos por: ",
|
||||||
|
"published": "fecha de publicación",
|
||||||
|
"published - reverse": "fecha de publicación: orden inverso",
|
||||||
|
"alphabetically": "alfabéticamente",
|
||||||
|
"alphabetically - reverse": "alfabéticamente: orden inverso",
|
||||||
|
"channel name": "nombre del canal",
|
||||||
|
"channel name - reverse": "nombre del canal: orden inverso",
|
||||||
|
"Only show latest video from channel: ": "Mostrar solo el último vídeo del canal: ",
|
||||||
|
"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": "",
|
||||||
|
"Data preferences": "Preferencias de los datos",
|
||||||
|
"Clear watch history": "Borrar el historial de reproducción",
|
||||||
|
"Import/export data": "Importar/Exportar datos",
|
||||||
|
"Change password": "Cambiar contraseña",
|
||||||
|
"Manage subscriptions": "Gestionar las suscripciones",
|
||||||
|
"Manage tokens": "Gestionar tokens",
|
||||||
|
"Watch history": "Historial de reproducción",
|
||||||
|
"Delete account": "Borrar cuenta",
|
||||||
|
"Administrator preferences": "Preferencias de administrador",
|
||||||
|
"Default homepage: ": "Página de inicio por defecto: ",
|
||||||
|
"Feed menu: ": "Menú de fuentes: ",
|
||||||
|
"Top enabled? ": "¿Habilitar los destacados? ",
|
||||||
|
"CAPTCHA enabled? ": "¿Habilitar los CAPTCHA? ",
|
||||||
|
"Login enabled? ": "¿Habilitar el inicio de sesión? ",
|
||||||
|
"Registration enabled? ": "¿Habilitar el registro? ",
|
||||||
|
"Report statistics? ": "¿Enviar estadísticas? ",
|
||||||
|
"Save preferences": "Guardar las preferencias",
|
||||||
|
"Subscription manager": "Gestor de suscripciones",
|
||||||
|
"Token manager": "Gestor de tokens",
|
||||||
|
"Token": "Token",
|
||||||
|
"`x` subscriptions": "`x` suscripciones",
|
||||||
|
"`x` tokens": "`x` tokens",
|
||||||
|
"Import/export": "Importar/Exportar",
|
||||||
|
"unsubscribe": "Desuscribirse",
|
||||||
|
"revoke": "revocar",
|
||||||
|
"Subscriptions": "Suscripciones",
|
||||||
|
"`x` unseen notifications": "`x` notificaciones sin ver",
|
||||||
|
"search": "buscar",
|
||||||
|
"Log out": "Cerrar la sesión",
|
||||||
|
"Released under the AGPLv3 by Omar Roth.": "Publicado bajo licencia AGPLv3 por Omar Roth.",
|
||||||
|
"Source available here.": "Código fuente disponible aquí.",
|
||||||
|
"View JavaScript license information.": "Ver información de licencia de JavaScript.",
|
||||||
|
"View privacy policy.": "Ver la política de privacidad.",
|
||||||
|
"Trending": "Tendencias",
|
||||||
|
"Unlisted": "No listado",
|
||||||
|
"Watch on YouTube": "Ver el vídeo en Youtube",
|
||||||
|
"Hide annotations": "Ocultar anotaciones",
|
||||||
|
"Show annotations": "Mostrar anotaciones",
|
||||||
|
"Genre: ": "Género: ",
|
||||||
|
"License: ": "Licencia: ",
|
||||||
|
"Family friendly? ": "¿Filtrar contenidos? ",
|
||||||
|
"Wilson score: ": "Puntuación Wilson: ",
|
||||||
|
"Engagement: ": "Compromiso: ",
|
||||||
|
"Whitelisted regions: ": "Regiones permitidas: ",
|
||||||
|
"Blacklisted regions: ": "Regiones bloqueadas: ",
|
||||||
|
"Shared `x`": "Compartido `x`",
|
||||||
|
"`x` views": "`x` visualizaciones",
|
||||||
|
"Premieres in `x`": "Se estrena en `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",
|
||||||
|
"View `x` comments": "Ver `x` comentarios",
|
||||||
|
"View Reddit comments": "Ver los comentarios de Reddit",
|
||||||
|
"Hide replies": "Ocultar las respuestas",
|
||||||
|
"Show replies": "Mostrar las respuestas",
|
||||||
|
"Incorrect password": "Contraseña incorrecta",
|
||||||
|
"Quota exceeded, try again in a few hours": "Cuota excedida, pruebe otra vez en unas horas",
|
||||||
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "No se puede iniciar sesión, asegúrese de que la autentificación de dos factores (autentificador o SMS) esté habilitada.",
|
||||||
|
"Invalid TFA code": "Código TFA no válido",
|
||||||
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Error de inicio de sesion. Puede deberse a que la autentificación de dos factores no está habilitada en su cuenta.",
|
||||||
|
"Wrong answer": "Respuesta no válida",
|
||||||
|
"Erroneous CAPTCHA": "CAPTCHA no válido",
|
||||||
|
"CAPTCHA is a required field": "El CAPTCHA es un campo obligatorio",
|
||||||
|
"User ID is a required field": "El nombre es un campo obligatorio",
|
||||||
|
"Password is a required field": "La contraseña es un campo obligatorio",
|
||||||
|
"Wrong username or password": "Nombre o contraseña incorrecto",
|
||||||
|
"Please sign in using 'Log in with Google'": "Inicie sesión con «Iniciar sesión con Google»",
|
||||||
|
"Password cannot be empty": "La contraseña no puede estar en blanco",
|
||||||
|
"Password cannot be longer than 55 characters": "La contraseña no puede tener más de 55 caracteres",
|
||||||
|
"Please log in": "Inicie sesión, por favor",
|
||||||
|
"Invidious Private Feed for `x`": "Fuente privada de Invidious para `x`",
|
||||||
|
"channel:`x`": "canal: `x`",
|
||||||
|
"Deleted or invalid channel": "El canal no es válido o ha sido borrado",
|
||||||
|
"This channel does not exist.": "El canal no existe.",
|
||||||
|
"Could not get channel info.": "No se ha podido obtener información del canal.",
|
||||||
|
"Could not fetch comments": "No se han podido recuperar los comentarios",
|
||||||
|
"View `x` replies": "Ver `x` respuestas",
|
||||||
|
"`x` ago": "hace `x`",
|
||||||
|
"Load more": "Cargar más",
|
||||||
|
"`x` points": "`x` puntos",
|
||||||
|
"Could not create mix.": "No se ha podido crear la mezcla.",
|
||||||
|
"Empty playlist": "La lista de reproducción está vacía",
|
||||||
|
"Not a playlist.": "Lista de reproducción no válida.",
|
||||||
|
"Playlist does not exist.": "La lista de reproducción no existe.",
|
||||||
|
"Could not pull trending pages.": "No se han podido obtener las páginas de tendencias.",
|
||||||
|
"Hidden field \"challenge\" is a required field": "El campo oculto «desafío» es un campo obligatorio",
|
||||||
|
"Hidden field \"token\" is a required field": "El campo oculto «símbolo» es un campo obligatorio",
|
||||||
|
"Erroneous challenge": "Desafío no válido",
|
||||||
|
"Erroneous token": "Símbolo no válido",
|
||||||
|
"No such user": "Usuario no válido",
|
||||||
|
"Token is expired, please try again": "El símbolo ha caducado, inténtelo de nuevo",
|
||||||
|
"English": "Inglés",
|
||||||
|
"English (auto-generated)": "Inglés (autogenerado)",
|
||||||
|
"Afrikaans": "Afrikáans",
|
||||||
|
"Albanian": "Albanés",
|
||||||
|
"Amharic": "Amárico",
|
||||||
|
"Arabic": "Árabe",
|
||||||
|
"Armenian": "Armenio",
|
||||||
|
"Azerbaijani": "Azerbaiyano",
|
||||||
|
"Bangla": "Bengalí",
|
||||||
|
"Basque": "Euskera",
|
||||||
|
"Belarusian": "Bielorruso",
|
||||||
|
"Bosnian": "Bosnio",
|
||||||
|
"Bulgarian": "Búlgaro",
|
||||||
|
"Burmese": "Birmano",
|
||||||
|
"Catalan": "Catalán",
|
||||||
|
"Cebuano": "Cebuano",
|
||||||
|
"Chinese (Simplified)": "Chino (simplificado)",
|
||||||
|
"Chinese (Traditional)": "Chino (tradicional)",
|
||||||
|
"Corsican": "Corso",
|
||||||
|
"Croatian": "Croata",
|
||||||
|
"Czech": "Checo",
|
||||||
|
"Danish": "Danés",
|
||||||
|
"Dutch": "Holandés",
|
||||||
|
"Esperanto": "Esperanto",
|
||||||
|
"Estonian": "Estonio",
|
||||||
|
"Filipino": "Filipino",
|
||||||
|
"Finnish": "Finés",
|
||||||
|
"French": "Francés",
|
||||||
|
"Galician": "Gallego",
|
||||||
|
"Georgian": "Georgiano",
|
||||||
|
"German": "Alemán",
|
||||||
|
"Greek": "Griego",
|
||||||
|
"Gujarati": "Guyaratí",
|
||||||
|
"Haitian Creole": "Criollo haitiano",
|
||||||
|
"Hausa": "Hausa",
|
||||||
|
"Hawaiian": "Hawaiano",
|
||||||
|
"Hebrew": "Hebreo",
|
||||||
|
"Hindi": "Hindi",
|
||||||
|
"Hmong": "Hmong",
|
||||||
|
"Hungarian": "Húngaro",
|
||||||
|
"Icelandic": "Islandés",
|
||||||
|
"Igbo": "Igbo",
|
||||||
|
"Indonesian": "Indonesio",
|
||||||
|
"Irish": "Irlandés",
|
||||||
|
"Italian": "Italiano",
|
||||||
|
"Japanese": "Japonés",
|
||||||
|
"Javanese": "Javanés",
|
||||||
|
"Kannada": "Canarés",
|
||||||
|
"Kazakh": "Kazajo",
|
||||||
|
"Khmer": "Camboyano",
|
||||||
|
"Korean": "Coreano",
|
||||||
|
"Kurdish": "Kurdo",
|
||||||
|
"Kyrgyz": "Kirguís",
|
||||||
|
"Lao": "Laosiano",
|
||||||
|
"Latin": "Latín",
|
||||||
|
"Latvian": "Letón",
|
||||||
|
"Lithuanian": "Lituano",
|
||||||
|
"Luxembourgish": "Luxemburgués",
|
||||||
|
"Macedonian": "Macedonio",
|
||||||
|
"Malagasy": "Malgache",
|
||||||
|
"Malay": "Malayo",
|
||||||
|
"Malayalam": "Malabar",
|
||||||
|
"Maltese": "Maltés",
|
||||||
|
"Maori": "Maorí",
|
||||||
|
"Marathi": "Maratí",
|
||||||
|
"Mongolian": "Mongol",
|
||||||
|
"Nepali": "Nepalí",
|
||||||
|
"Norwegian Bokmål": "Noruego",
|
||||||
|
"Nyanja": "Chichewa",
|
||||||
|
"Pashto": "Pastún",
|
||||||
|
"Persian": "Persa",
|
||||||
|
"Polish": "Polaco",
|
||||||
|
"Portuguese": "Portugués",
|
||||||
|
"Punjabi": "Panyabí",
|
||||||
|
"Romanian": "Rumano",
|
||||||
|
"Russian": "Ruso",
|
||||||
|
"Samoan": "Samoano",
|
||||||
|
"Scottish Gaelic": "Gaélico escocés",
|
||||||
|
"Serbian": "Serbio",
|
||||||
|
"Shona": "Shona",
|
||||||
|
"Sindhi": "Sindi",
|
||||||
|
"Sinhala": "Cingalés",
|
||||||
|
"Slovak": "Eslovaco",
|
||||||
|
"Slovenian": "Esloveno",
|
||||||
|
"Somali": "Somalí",
|
||||||
|
"Southern Sotho": "Sesoto",
|
||||||
|
"Spanish": "Español",
|
||||||
|
"Spanish (Latin America)": "Español (Hispanoamérica)",
|
||||||
|
"Sundanese": "Sondanés",
|
||||||
|
"Swahili": "Suajili",
|
||||||
|
"Swedish": "Sueco",
|
||||||
|
"Tajik": "Tayiko",
|
||||||
|
"Tamil": "Tamil",
|
||||||
|
"Telugu": "Telugu",
|
||||||
|
"Thai": "Tailandés",
|
||||||
|
"Turkish": "Turco",
|
||||||
|
"Ukrainian": "Ucraniano",
|
||||||
|
"Urdu": "Urdu",
|
||||||
|
"Uzbek": "Uzbeko",
|
||||||
|
"Vietnamese": "Vietnamita",
|
||||||
|
"Welsh": "Galés",
|
||||||
|
"Western Frisian": "Frisón",
|
||||||
|
"Xhosa": "Xhosa",
|
||||||
|
"Yiddish": "Yidis",
|
||||||
|
"Yoruba": "Yoruba",
|
||||||
|
"Zulu": "Zulú",
|
||||||
|
"`x` years": "`x` años",
|
||||||
|
"`x` months": "`x` meses",
|
||||||
|
"`x` weeks": "`x` semanas",
|
||||||
|
"`x` days": "`x` días",
|
||||||
|
"`x` hours": "`x` horas",
|
||||||
|
"`x` minutes": "`x` minutos",
|
||||||
|
"`x` seconds": "`x` segundos",
|
||||||
|
"Fallback comments: ": "Comentarios alternativos: ",
|
||||||
|
"Popular": "Populares",
|
||||||
|
"Top": "Destacados",
|
||||||
|
"About": "Acerca de",
|
||||||
|
"Rating: ": "Valoración: ",
|
||||||
|
"Language: ": "Idioma: ",
|
||||||
|
"View as playlist": "Ver como lista de reproducción",
|
||||||
|
"Default": "Por defecto",
|
||||||
|
"Music": "Música",
|
||||||
|
"Gaming": "Videojuegos",
|
||||||
|
"News": "Noticias",
|
||||||
|
"Movies": "Películas",
|
||||||
|
"Download": "Descargar",
|
||||||
|
"Download as: ": "Descargar como: ",
|
||||||
|
"%A %B %-d, %Y": "%A %B %-d, %Y",
|
||||||
|
"(edited)": "(editado)",
|
||||||
|
"YouTube comment permalink": "Enlace permanente de YouTube del comentario",
|
||||||
|
"`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",
|
||||||
|
"Current version: ": "Versión actual: "
|
||||||
|
}
|
||||||
594
locales/eu.json
594
locales/eu.json
@@ -1,280 +1,316 @@
|
|||||||
{
|
{
|
||||||
"`x` subscribers": "",
|
"`x` subscribers": "`x` harpidedun",
|
||||||
"`x` videos": "",
|
"`x` videos": "`x` bideo",
|
||||||
"LIVE": "",
|
"LIVE": "ZUZENEAN",
|
||||||
"Shared `x` ago": "",
|
"Shared `x` ago": "Duela `x` partekatua",
|
||||||
"Unsubscribe": "",
|
"Unsubscribe": "Harpidetza kendu",
|
||||||
"Subscribe": "Harpidetu",
|
"Subscribe": "Harpidetu",
|
||||||
"Login to subscribe to `x`": "",
|
"View channel on YouTube": "Ikusi kanala YouTuben",
|
||||||
"View channel on YouTube": "Ikusi kanala YouTuben",
|
"View playlist on YouTube": "",
|
||||||
"newest": "berrienak",
|
"newest": "berrienak",
|
||||||
"oldest": "zaharrenak",
|
"oldest": "zaharrenak",
|
||||||
"popular": "ospetsuenak",
|
"popular": "ospetsuenak",
|
||||||
"Preview page": "Aurrebista orria",
|
"last": "azkena",
|
||||||
"Next page": "Hurrengo orria",
|
"Next page": "Hurrengo orria",
|
||||||
"Clear watch history?": "Garbitu ikusitakoen historia?",
|
"Previous page": "Aurreko orria",
|
||||||
"Yes": "Bai",
|
"Clear watch history?": "Garbitu ikusitakoen historia?",
|
||||||
"No": "Ez",
|
"New password": "Pasahitz berria",
|
||||||
"Import and Export Data": "Datuak inportatu eta esportatu",
|
"New passwords must match": "",
|
||||||
"Import": "Inportatu",
|
"Cannot change password for Google accounts": "",
|
||||||
"Import Invidious data": "Invidiouseko datuak inportatu",
|
"Authorize token?": "",
|
||||||
"Import YouTube subscriptions": "YouTubeko harpidetzak inportatu",
|
"Authorize token for `x`?": "",
|
||||||
"Import FreeTube subscriptions (.db)": "FreeTubeko harpidetzak inportatu (.db)",
|
"Yes": "Bai",
|
||||||
"Import NewPipe subscriptions (.json)": "NewPipeko harpidetzak inportatu (.json)",
|
"No": "Ez",
|
||||||
"Import NewPipe data (.zip)": "NewPipeko datuak inportatu (.zip)",
|
"Import and Export Data": "Datuak inportatu eta esportatu",
|
||||||
"Export": "Esportatu",
|
"Import": "Inportatu",
|
||||||
"Export subscriptions as OPML": "Esportatu harpidetzak OPML bezala",
|
"Import Invidious data": "Invidiouseko datuak inportatu",
|
||||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "",
|
"Import YouTube subscriptions": "YouTubeko harpidetzak inportatu",
|
||||||
"Export data as JSON": "",
|
"Import FreeTube subscriptions (.db)": "FreeTubeko harpidetzak inportatu (.db)",
|
||||||
"Delete account?": "Kontua ezabatu?",
|
"Import NewPipe subscriptions (.json)": "NewPipeko harpidetzak inportatu (.json)",
|
||||||
"History": "Historia",
|
"Import NewPipe data (.zip)": "NewPipeko datuak inportatu (.zip)",
|
||||||
"Previous page": "Aurreko orria",
|
"Export": "Esportatu",
|
||||||
"An alternative front-end to YouTube": "",
|
"Export subscriptions as OPML": "Esportatu harpidetzak OPML bezala",
|
||||||
"JavaScript license information": "",
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Harpidetzak OPML bezala esportatu (NewPipe eta FreeTuberako)",
|
||||||
"source": "",
|
"Export data as JSON": "Datuak JSON bezala esportatu",
|
||||||
"Login": "",
|
"Delete account?": "Kontua ezabatu?",
|
||||||
"Login/Register": "",
|
"History": "Historia",
|
||||||
"Login to Google": "",
|
"An alternative front-end to YouTube": "YouTuberako interfaze alternatibo bat",
|
||||||
"User ID:": "",
|
"JavaScript license information": "JavaScript lizentzia informazioa",
|
||||||
"Password:": "",
|
"source": "iturburua",
|
||||||
"Time (h:mm:ss):": "",
|
"Log in": "Saioa hasi",
|
||||||
"Text CAPTCHA": "",
|
"Log in/register": "Saioa hasi/Izena eman",
|
||||||
"Image CAPTCHA": "",
|
"Log in with Google": "Googlekin hasi saioa",
|
||||||
"Sign In": "",
|
"User ID": "Erabiltzaile IDa",
|
||||||
"Register": "",
|
"Password": "Pasahitza",
|
||||||
"Email:": "",
|
"Time (h:mm:ss):": "Denbora (o:mm:ss):",
|
||||||
"Google verification code:": "",
|
"Text CAPTCHA": "Testu CAPTCHA",
|
||||||
"Preferences": "",
|
"Image CAPTCHA": "Irudi CAPTCHA",
|
||||||
"Player preferences": "",
|
"Sign In": "",
|
||||||
"Always loop: ": "",
|
"Register": "",
|
||||||
"Autoplay: ": "",
|
"E-mail": "",
|
||||||
"Autoplay next video: ": "",
|
"Google verification code": "",
|
||||||
"Listen by default: ": "",
|
"Preferences": "",
|
||||||
"Default speed: ": "",
|
"Player preferences": "",
|
||||||
"Preferred video quality: ": "",
|
"Always loop: ": "",
|
||||||
"Player volume: ": "",
|
"Autoplay: ": "",
|
||||||
"Default comments: ": "",
|
"Play next by default: ": "",
|
||||||
"Default captions: ": "",
|
"Autoplay next video: ": "",
|
||||||
"Fallback captions: ": "",
|
"Listen by default: ": "",
|
||||||
"Show related videos? ": "",
|
"Proxy videos? ": "",
|
||||||
"Visual preferences": "",
|
"Default speed: ": "",
|
||||||
"Dark mode: ": "",
|
"Preferred video quality: ": "",
|
||||||
"Thin mode: ": "",
|
"Player volume: ": "",
|
||||||
"Subscription preferences": "",
|
"Default comments: ": "",
|
||||||
"Redirect homepage to feed: ": "",
|
"youtube": "",
|
||||||
"Number of videos shown in feed: ": "",
|
"reddit": "",
|
||||||
"Sort videos by: ": "",
|
"Default captions: ": "",
|
||||||
"published": "",
|
"Fallback captions: ": "",
|
||||||
"published - reverse": "",
|
"Show related videos? ": "",
|
||||||
"alphabetically": "",
|
"Show annotations by default? ": "",
|
||||||
"alphabetically - reverse": "",
|
"Visual preferences": "",
|
||||||
"channel name": "",
|
"Dark mode: ": "",
|
||||||
"channel name - reverse": "",
|
"Thin mode: ": "",
|
||||||
"Only show latest video from channel: ": "",
|
"Subscription preferences": "",
|
||||||
"Only show latest unwatched video from channel: ": "",
|
"Show annotations by default for subscribed channels? ": "",
|
||||||
"Only show unwatched: ": "",
|
"Redirect homepage to feed: ": "",
|
||||||
"Only show notifications (if there are any): ": "",
|
"Number of videos shown in feed: ": "",
|
||||||
"Data preferences": "",
|
"Sort videos by: ": "",
|
||||||
"Clear watch history": "",
|
"published": "",
|
||||||
"Import/Export data": "",
|
"published - reverse": "",
|
||||||
"Manage subscriptions": "",
|
"alphabetically": "",
|
||||||
"Watch history": "",
|
"alphabetically - reverse": "",
|
||||||
"Delete account": "",
|
"channel name": "",
|
||||||
"Save preferences": "",
|
"channel name - reverse": "",
|
||||||
"Subscription manager": "",
|
"Only show latest video from channel: ": "",
|
||||||
"`x` subscriptions": "",
|
"Only show latest unwatched video from channel: ": "",
|
||||||
"Import/Export": "",
|
"Only show unwatched: ": "",
|
||||||
"unsubscribe": "",
|
"Only show notifications (if there are any): ": "",
|
||||||
"Subscriptions": "",
|
"Enable web notifications": "",
|
||||||
"`x` unseen notifications": "",
|
"`x` uploaded a video": "",
|
||||||
"search": "",
|
"`x` is live": "",
|
||||||
"Sign out": "",
|
"Data preferences": "",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "",
|
"Clear watch history": "",
|
||||||
"Source available here.": "",
|
"Import/export data": "",
|
||||||
"View JavaScript license information.": "",
|
"Change password": "",
|
||||||
"Trending": "",
|
"Manage subscriptions": "",
|
||||||
"Watch video on Youtube": "",
|
"Manage tokens": "",
|
||||||
"Genre: ": "",
|
"Watch history": "",
|
||||||
"License: ": "",
|
"Delete account": "",
|
||||||
"Family friendly? ": "",
|
"Administrator preferences": "",
|
||||||
"Wilson score: ": "",
|
"Default homepage: ": "",
|
||||||
"Engagement: ": "",
|
"Feed menu: ": "",
|
||||||
"Whitelisted regions: ": "",
|
"Top enabled? ": "",
|
||||||
"Blacklisted regions: ": "",
|
"CAPTCHA enabled? ": "",
|
||||||
"Shared `x`": "",
|
"Login enabled? ": "",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "",
|
"Registration enabled? ": "",
|
||||||
"View YouTube comments": "",
|
"Report statistics? ": "",
|
||||||
"View more comments on Reddit": "",
|
"Save preferences": "",
|
||||||
"View `x` comments": "",
|
"Subscription manager": "",
|
||||||
"View Reddit comments": "",
|
"Token manager": "",
|
||||||
"Hide replies": "",
|
"Token": "",
|
||||||
"Show replies": "",
|
"`x` subscriptions": "",
|
||||||
"Incorrect password": "",
|
"`x` tokens": "",
|
||||||
"Quota exceeded, try again in a few hours": "",
|
"Import/export": "",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "",
|
"unsubscribe": "",
|
||||||
"Invalid TFA code": "",
|
"revoke": "",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on your account.": "",
|
"Subscriptions": "",
|
||||||
"Invalid answer": "",
|
"`x` unseen notifications": "",
|
||||||
"Invalid CAPTCHA": "",
|
"search": "",
|
||||||
"CAPTCHA is a required field": "",
|
"Log out": "",
|
||||||
"User ID is a required field": "",
|
"Released under the AGPLv3 by Omar Roth.": "",
|
||||||
"Password is a required field": "",
|
"Source available here.": "",
|
||||||
"Invalid username or password": "",
|
"View JavaScript license information.": "",
|
||||||
"Please sign in using 'Sign in with Google'": "",
|
"View privacy policy.": "",
|
||||||
"Password cannot be empty": "",
|
"Trending": "",
|
||||||
"Password cannot be longer than 55 characters": "",
|
"Unlisted": "",
|
||||||
"Please sign in": "",
|
"Watch on YouTube": "",
|
||||||
"Invidious Private Feed for `x`": "",
|
"Hide annotations": "",
|
||||||
"channel:`x`": "",
|
"Show annotations": "",
|
||||||
"Deleted or invalid channel": "",
|
"Genre: ": "",
|
||||||
"This channel does not exist.": "",
|
"License: ": "",
|
||||||
"Could not get channel info.": "",
|
"Family friendly? ": "",
|
||||||
"Could not fetch comments": "",
|
"Wilson score: ": "",
|
||||||
"View `x` replies": "",
|
"Engagement: ": "",
|
||||||
"`x` ago": "",
|
"Whitelisted regions: ": "",
|
||||||
"Load more": "",
|
"Blacklisted regions: ": "",
|
||||||
"`x` points": "",
|
"Shared `x`": "",
|
||||||
"Could not create mix.": "",
|
"`x` views": "",
|
||||||
"Playlist is empty": "",
|
"Premieres in `x`": "",
|
||||||
"Invalid playlist.": "",
|
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "",
|
||||||
"Playlist does not exist.": "",
|
"View YouTube comments": "",
|
||||||
"Could not pull trending pages.": "",
|
"View more comments on Reddit": "",
|
||||||
"Hidden field \"challenge\" is a required field": "",
|
"View `x` comments": "",
|
||||||
"Hidden field \"token\" is a required field": "",
|
"View Reddit comments": "",
|
||||||
"Invalid challenge": "",
|
"Hide replies": "",
|
||||||
"Invalid token": "",
|
"Show replies": "",
|
||||||
"Invalid user": "",
|
"Incorrect password": "",
|
||||||
"Token is expired, please try again": "",
|
"Quota exceeded, try again in a few hours": "",
|
||||||
"English": "",
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "",
|
||||||
"English (auto-generated)": "",
|
"Invalid TFA code": "",
|
||||||
"Afrikaans": "",
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "",
|
||||||
"Albanian": "",
|
"Wrong answer": "",
|
||||||
"Amharic": "",
|
"Erroneous CAPTCHA": "",
|
||||||
"Arabic": "",
|
"CAPTCHA is a required field": "",
|
||||||
"Armenian": "",
|
"User ID is a required field": "",
|
||||||
"Azerbaijani": "",
|
"Password is a required field": "",
|
||||||
"Bangla": "",
|
"Wrong username or password": "",
|
||||||
"Basque": "",
|
"Please sign in using 'Log in with Google'": "",
|
||||||
"Belarusian": "",
|
"Password cannot be empty": "",
|
||||||
"Bosnian": "",
|
"Password cannot be longer than 55 characters": "",
|
||||||
"Bulgarian": "",
|
"Please log in": "",
|
||||||
"Burmese": "",
|
"Invidious Private Feed for `x`": "",
|
||||||
"Catalan": "",
|
"channel:`x`": "",
|
||||||
"Cebuano": "",
|
"Deleted or invalid channel": "",
|
||||||
"Chinese (Simplified)": "",
|
"This channel does not exist.": "",
|
||||||
"Chinese (Traditional)": "",
|
"Could not get channel info.": "",
|
||||||
"Corsican": "",
|
"Could not fetch comments": "",
|
||||||
"Croatian": "",
|
"View `x` replies": "",
|
||||||
"Czech": "",
|
"`x` ago": "",
|
||||||
"Danish": "",
|
"Load more": "",
|
||||||
"Dutch": "",
|
"`x` points": "",
|
||||||
"Esperanto": "",
|
"Could not create mix.": "",
|
||||||
"Estonian": "",
|
"Empty playlist": "",
|
||||||
"Filipino": "",
|
"Not a playlist.": "",
|
||||||
"Finnish": "",
|
"Playlist does not exist.": "",
|
||||||
"French": "",
|
"Could not pull trending pages.": "",
|
||||||
"Galician": "",
|
"Hidden field \"challenge\" is a required field": "",
|
||||||
"Georgian": "",
|
"Hidden field \"token\" is a required field": "",
|
||||||
"German": "",
|
"Erroneous challenge": "",
|
||||||
"Greek": "",
|
"Erroneous token": "",
|
||||||
"Gujarati": "",
|
"No such user": "",
|
||||||
"Haitian Creole": "",
|
"Token is expired, please try again": "",
|
||||||
"Hausa": "",
|
"English": "",
|
||||||
"Hawaiian": "",
|
"English (auto-generated)": "",
|
||||||
"Hebrew": "",
|
"Afrikaans": "",
|
||||||
"Hindi": "",
|
"Albanian": "",
|
||||||
"Hmong": "",
|
"Amharic": "",
|
||||||
"Hungarian": "",
|
"Arabic": "",
|
||||||
"Icelandic": "",
|
"Armenian": "",
|
||||||
"Igbo": "",
|
"Azerbaijani": "",
|
||||||
"Indonesian": "",
|
"Bangla": "",
|
||||||
"Irish": "",
|
"Basque": "",
|
||||||
"Italian": "",
|
"Belarusian": "",
|
||||||
"Japanese": "",
|
"Bosnian": "",
|
||||||
"Javanese": "",
|
"Bulgarian": "",
|
||||||
"Kannada": "",
|
"Burmese": "",
|
||||||
"Kazakh": "",
|
"Catalan": "",
|
||||||
"Khmer": "",
|
"Cebuano": "",
|
||||||
"Korean": "",
|
"Chinese (Simplified)": "",
|
||||||
"Kurdish": "",
|
"Chinese (Traditional)": "",
|
||||||
"Kyrgyz": "",
|
"Corsican": "",
|
||||||
"Lao": "",
|
"Croatian": "",
|
||||||
"Latin": "",
|
"Czech": "",
|
||||||
"Latvian": "",
|
"Danish": "",
|
||||||
"Lithuanian": "",
|
"Dutch": "",
|
||||||
"Luxembourgish": "",
|
"Esperanto": "",
|
||||||
"Macedonian": "",
|
"Estonian": "",
|
||||||
"Malagasy": "",
|
"Filipino": "",
|
||||||
"Malay": "",
|
"Finnish": "",
|
||||||
"Malayalam": "",
|
"French": "",
|
||||||
"Maltese": "",
|
"Galician": "",
|
||||||
"Maori": "",
|
"Georgian": "",
|
||||||
"Marathi": "",
|
"German": "",
|
||||||
"Mongolian": "",
|
"Greek": "",
|
||||||
"Nepali": "",
|
"Gujarati": "",
|
||||||
"Norwegian": "",
|
"Haitian Creole": "",
|
||||||
"Nyanja": "",
|
"Hausa": "",
|
||||||
"Pashto": "",
|
"Hawaiian": "",
|
||||||
"Persian": "",
|
"Hebrew": "",
|
||||||
"Polish": "",
|
"Hindi": "",
|
||||||
"Portuguese": "",
|
"Hmong": "",
|
||||||
"Punjabi": "",
|
"Hungarian": "",
|
||||||
"Romanian": "",
|
"Icelandic": "",
|
||||||
"Russian": "",
|
"Igbo": "",
|
||||||
"Samoan": "",
|
"Indonesian": "",
|
||||||
"Scottish Gaelic": "",
|
"Irish": "",
|
||||||
"Serbian": "",
|
"Italian": "",
|
||||||
"Shona": "",
|
"Japanese": "",
|
||||||
"Sindhi": "",
|
"Javanese": "",
|
||||||
"Sinhala": "",
|
"Kannada": "",
|
||||||
"Slovak": "",
|
"Kazakh": "",
|
||||||
"Slovenian": "",
|
"Khmer": "",
|
||||||
"Somali": "",
|
"Korean": "",
|
||||||
"Southern Sotho": "",
|
"Kurdish": "",
|
||||||
"Spanish": "",
|
"Kyrgyz": "",
|
||||||
"Spanish (Latin America)": "",
|
"Lao": "",
|
||||||
"Sundanese": "",
|
"Latin": "",
|
||||||
"Swahili": "",
|
"Latvian": "",
|
||||||
"Swedish": "",
|
"Lithuanian": "",
|
||||||
"Tajik": "",
|
"Luxembourgish": "",
|
||||||
"Tamil": "",
|
"Macedonian": "",
|
||||||
"Telugu": "",
|
"Malagasy": "",
|
||||||
"Thai": "",
|
"Malay": "",
|
||||||
"Turkish": "",
|
"Malayalam": "",
|
||||||
"Ukrainian": "",
|
"Maltese": "",
|
||||||
"Urdu": "",
|
"Maori": "",
|
||||||
"Uzbek": "",
|
"Marathi": "",
|
||||||
"Vietnamese": "",
|
"Mongolian": "",
|
||||||
"Welsh": "",
|
"Nepali": "",
|
||||||
"Western Frisian": "",
|
"Norwegian Bokmål": "",
|
||||||
"Xhosa": "",
|
"Nyanja": "",
|
||||||
"Yiddish": "",
|
"Pashto": "",
|
||||||
"Yoruba": "",
|
"Persian": "",
|
||||||
"Zulu": "",
|
"Polish": "",
|
||||||
"`x` years": "",
|
"Portuguese": "",
|
||||||
"`x` months": "",
|
"Punjabi": "",
|
||||||
"`x` weeks": "",
|
"Romanian": "",
|
||||||
"`x` days": "",
|
"Russian": "",
|
||||||
"`x` hours": "",
|
"Samoan": "",
|
||||||
"`x` minutes": "",
|
"Scottish Gaelic": "",
|
||||||
"`x` seconds": "",
|
"Serbian": "",
|
||||||
"Fallback comments: ": "",
|
"Shona": "",
|
||||||
"Popular": "",
|
"Sindhi": "",
|
||||||
"Top": "",
|
"Sinhala": "",
|
||||||
"About": "",
|
"Slovak": "",
|
||||||
"Rating: ": "",
|
"Slovenian": "",
|
||||||
"Language: ": "",
|
"Somali": "",
|
||||||
"Default": "",
|
"Southern Sotho": "",
|
||||||
"Music": "",
|
"Spanish": "",
|
||||||
"Gaming": "",
|
"Spanish (Latin America)": "",
|
||||||
"News": "",
|
"Sundanese": "",
|
||||||
"Movies": "",
|
"Swahili": "",
|
||||||
"Download": "",
|
"Swedish": "",
|
||||||
"Download as: ": "",
|
"Tajik": "",
|
||||||
"%A %B %-d, %Y": "",
|
"Tamil": "",
|
||||||
"(edited)": "",
|
"Telugu": "",
|
||||||
"Youtube permalink of the comment": "",
|
"Thai": "",
|
||||||
"`x` marked it with a ❤": "",
|
"Turkish": "",
|
||||||
"Audio mode": "",
|
"Ukrainian": "",
|
||||||
"Video mode": ""
|
"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": "",
|
||||||
|
"`x` marked it with a ❤": "",
|
||||||
|
"Audio mode": "",
|
||||||
|
"Video mode": "",
|
||||||
|
"Videos": ""
|
||||||
|
}
|
||||||
595
locales/fr.json
595
locales/fr.json
@@ -1,279 +1,318 @@
|
|||||||
{
|
{
|
||||||
"`x` subscribers": "`x` abonnés",
|
"`x` subscribers": "`x` abonnés",
|
||||||
"`x` videos": "`x` vidéos",
|
"`x` videos": "`x` vidéos",
|
||||||
"LIVE": "EN DIRECT",
|
"LIVE": "EN DIRECT",
|
||||||
"Shared `x` ago": "Partagé il y a `x`",
|
"Shared `x` ago": "Ajoutée il y a `x`",
|
||||||
"Unsubscribe": "Se désabonner",
|
"Unsubscribe": "Se désabonner",
|
||||||
"Subscribe": "S'abonner",
|
"Subscribe": "S'abonner",
|
||||||
"Login to subscribe to `x`": "Vous devez vous connecter pour vous abonner à `x`",
|
"View channel on YouTube": "Voir la chaîne sur YouTube",
|
||||||
"View channel on YouTube": "Voir la chaîne sur YouTube",
|
"View playlist on YouTube": "",
|
||||||
"newest": "Date d'ajout (la plus récente)",
|
"newest": "Date d'ajout (la plus récente)",
|
||||||
"oldest": "Date d'ajout (la plus ancienne)",
|
"oldest": "Date d'ajout (la plus ancienne)",
|
||||||
"popular": "Les plus populaires",
|
"popular": "Les plus populaires",
|
||||||
"Next page": "Page suivante",
|
"last": "Dernières",
|
||||||
"Clear watch history?": "Êtes-vous sûr de vouloir supprimer l'historique des vidéos regardées ?",
|
"Next page": "Page suivante",
|
||||||
"Yes": "Oui",
|
"Previous page": "Page précédente",
|
||||||
"No": "Non",
|
"Clear watch history?": "Êtes-vous sûr de vouloir supprimer l'historique des vidéos regardées ?",
|
||||||
"Import and Export Data": "Importer et Exporter les Données",
|
"New password": "Nouveau mot de passe",
|
||||||
"Import": "Importer",
|
"New passwords must match": "Les nouveaux mots de passe doivent être identiques",
|
||||||
"Import Invidious data": "Importer des données Invidious",
|
"Cannot change password for Google accounts": "Le mot de passe d'un compte Google ne peut pas être changé",
|
||||||
"Import YouTube subscriptions": "Importer des abonnements YouTube",
|
"Authorize token?": "Autoriser le token ?",
|
||||||
"Import FreeTube subscriptions (.db)": "Importer des abonnements FreeTube (.db)",
|
"Authorize token for `x`?": "Autoriser le token pour `x` ?",
|
||||||
"Import NewPipe subscriptions (.json)": "Importer des abonnements NewPipe (.json)",
|
"Yes": "Oui",
|
||||||
"Import NewPipe data (.zip)": "Importer des données NewPipe (.zip)",
|
"No": "Non",
|
||||||
"Export": "Exporter",
|
"Import and Export Data": "Importer et exporter des données",
|
||||||
"Export subscriptions as OPML": "Exporter les abonnements en OPML",
|
"Import": "Importer",
|
||||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exporter les abonnements en OPML (pour NewPipe & FreeTube)",
|
"Import Invidious data": "Importer des données Invidious",
|
||||||
"Export data as JSON": "Exporter les données au format JSON",
|
"Import YouTube subscriptions": "Importer des abonnements YouTube",
|
||||||
"Delete account?": "Supprimer votre compte ?",
|
"Import FreeTube subscriptions (.db)": "Importer des abonnements FreeTube (.db)",
|
||||||
"History": "Historique",
|
"Import NewPipe subscriptions (.json)": "Importer des abonnements NewPipe (.json)",
|
||||||
"Previous page": "Page précédente",
|
"Import NewPipe data (.zip)": "Importer des données NewPipe (.zip)",
|
||||||
"An alternative front-end to YouTube": "Un front-end alternatif à YouTube",
|
"Export": "Exporter",
|
||||||
"JavaScript license information": "Informations sur les licences JavaScript",
|
"Export subscriptions as OPML": "Exporter les abonnements en OPML",
|
||||||
"source": "source",
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exporter les abonnements en OPML (pour NewPipe & FreeTube)",
|
||||||
"Login": "Connexion",
|
"Export data as JSON": "Exporter les données au format JSON",
|
||||||
"Login/Register": "Connexion/S'inscrire",
|
"Delete account?": "Êtes-vous sûr de vouloir supprimer votre compte ?",
|
||||||
"Login to Google": "Se connecter à Google",
|
"History": "Historique",
|
||||||
"User ID:": "ID utilisateur :",
|
"An alternative front-end to YouTube": "Un front-end alternatif à YouTube",
|
||||||
"Password:": "Mot de passe :",
|
"JavaScript license information": "Informations sur les licences JavaScript",
|
||||||
"Time (h:mm:ss):": "Heure (h:mm:ss) :",
|
"source": "source",
|
||||||
"Text CAPTCHA": "CAPTCHA Texte",
|
"Log in": "Se connecter",
|
||||||
"Image CAPTCHA": "CAPTCHA Image",
|
"Log in/register": "Se connecter/Créer un compte",
|
||||||
"Sign In": "S'identifier",
|
"Log in with Google": "Se connecter avec Google",
|
||||||
"Register": "S'inscrire",
|
"User ID": "Identifiant utilisateur",
|
||||||
"Email:": "Email :",
|
"Password": "Mot de passe",
|
||||||
"Google verification code:": "Code de vérification Google :",
|
"Time (h:mm:ss):": "Heure (h:mm:ss) :",
|
||||||
"Preferences": "Préférences",
|
"Text CAPTCHA": "CAPTCHA Texte",
|
||||||
"Player preferences": "Préférences du Lecteur",
|
"Image CAPTCHA": "CAPTCHA Image",
|
||||||
"Always loop: ": "Lire en boucle : ",
|
"Sign In": "Se connecter",
|
||||||
"Autoplay: ": "Lire Automatiquement : ",
|
"Register": "S'inscrire",
|
||||||
"Autoplay next video: ": "Lire automatiquement la vidéo suivante : ",
|
"E-mail": "E-mail",
|
||||||
"Listen by default: ": "Audio Uniquement par défaut : ",
|
"Google verification code": "Code de vérification Google",
|
||||||
"Default speed: ": "Vitesse par défaut : ",
|
"Preferences": "Préférences",
|
||||||
"Preferred video quality: ": "Qualité vidéo souhaitée : ",
|
"Player preferences": "Préférences du lecteur",
|
||||||
"Player volume: ": "Volume du lecteur : ",
|
"Always loop: ": "Lire en boucle : ",
|
||||||
"Default comments: ": "Source des Commentaires : ",
|
"Autoplay: ": "Lire automatiquement : ",
|
||||||
"Default captions: ": "Sous-titres principal : ",
|
"Play next by default: ": "Jouer suirvante par défaut : ",
|
||||||
"Fallback captions: ": "Sous-titres secondaire : ",
|
"Autoplay next video: ": "Lire automatiquement la vidéo suivante : ",
|
||||||
"Show related videos? ": "Voir les vidéos liées à ce sujet ? ",
|
"Listen by default: ": "Audio uniquement : ",
|
||||||
"Visual preferences": "Préférences visuelles",
|
"Proxy videos? ": "Charger les vidéos à travers un proxy ? ",
|
||||||
"Dark mode: ": "Mode Sombre : ",
|
"Default speed: ": "Vitesse par défaut : ",
|
||||||
"Thin mode: ": "Mode Simplifié : ",
|
"Preferred video quality: ": "Qualité vidéo souhaitée : ",
|
||||||
"Subscription preferences": "Préférences de la page d'abonnements",
|
"Player volume: ": "Volume du lecteur : ",
|
||||||
"Redirect homepage to feed: ": "Rediriger la page d'accueil vers la page d'abonnements : ",
|
"Default comments: ": "Source des commentaires : ",
|
||||||
"Number of videos shown in feed: ": "Nombre de vidéos montrées dans la page d'abonnements : ",
|
"youtube": "YouTube",
|
||||||
"Sort videos by: ": "Trier les vidéos par : ",
|
"reddit": "Reddit",
|
||||||
"published": "publication",
|
"Default captions: ": "Sous-titres par défaut : ",
|
||||||
"published - reverse": "publication - inversé",
|
"Fallback captions: ": "Sous-titres de repli : ",
|
||||||
"alphabetically": "alphabétiquement",
|
"Show related videos? ": "Voir les vidéos liées ? ",
|
||||||
"alphabetically - reverse": "alphabétiquement - inversé",
|
"Show annotations by default? ": "Voir les annotations par défaut ? ",
|
||||||
"channel name": "nom de la chaîne",
|
"Visual preferences": "Préférences du site",
|
||||||
"channel name - reverse": "nom de la chaîne - inversé",
|
"Dark mode: ": "Mode Sombre : ",
|
||||||
"Only show latest video from channel: ": "Afficher uniquement la dernière vidéo de la chaîne : ",
|
"Thin mode: ": "Mode Simplifié : ",
|
||||||
"Only show latest unwatched video from channel: ": "Afficher uniquement la dernière vidéo de la chaîne non regardée : ",
|
"Subscription preferences": "Préférences de la page d'abonnements",
|
||||||
"Only show unwatched: ": "Afficher uniquement les vidéos non regardées : ",
|
"Show annotations by default for subscribed channels? ": "Voir les annotations par défaut sur les chaînes suivies ? ",
|
||||||
"Only show notifications (if there are any): ": "Afficher uniquement les notifications (s'il y en a) : ",
|
"Redirect homepage to feed: ": "Rediriger la page d'accueil vers la page d'abonnements : ",
|
||||||
"Data preferences": "Préférences liées aux données",
|
"Number of videos shown in feed: ": "Nombre de vidéos montrées dans la page d'abonnements : ",
|
||||||
"Clear watch history": "Supprimer l'historique des vidéos regardées",
|
"Sort videos by: ": "Trier les vidéos par : ",
|
||||||
"Import/Export data": "Importer/exporter les données",
|
"published": "date de publication",
|
||||||
"Manage subscriptions": "Gérer les abonnements",
|
"published - reverse": "date de publication - inversé",
|
||||||
"Watch history": "Historique de visionnage",
|
"alphabetically": "alphabétiquement",
|
||||||
"Delete account": "Supprimer votre compte",
|
"alphabetically - reverse": "alphabétiquement - inversé",
|
||||||
"Save preferences": "Enregistrer les préférences",
|
"channel name": "nom de la chaîne",
|
||||||
"Subscription manager": "Gestionnaire d'abonnement",
|
"channel name - reverse": "nom de la chaîne - inversé",
|
||||||
"`x` subscriptions": "`x` abonnements",
|
"Only show latest video from channel: ": "Afficher uniquement la dernière vidéo de la chaîne : ",
|
||||||
"Import/Export": "Importer/Exporter",
|
"Only show latest unwatched video from channel: ": "Afficher uniquement la dernière vidéo de la chaîne non regardée : ",
|
||||||
"unsubscribe": "se désabonner",
|
"Only show unwatched: ": "Afficher uniquement les vidéos non regardées : ",
|
||||||
"Subscriptions": "Abonnements",
|
"Only show notifications (if there are any): ": "Afficher uniquement les notifications (s'il y en a) : ",
|
||||||
"`x` unseen notifications": "`x` notifications non vues",
|
"Enable web notifications": "",
|
||||||
"search": "Rechercher",
|
"`x` uploaded a video": "",
|
||||||
"Sign out": "Déconnexion",
|
"`x` is live": "",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Publié sous licence AGPLv3 par Omar Roth.",
|
"Data preferences": "Préférences liées aux données",
|
||||||
"Source available here.": "Code Source.",
|
"Clear watch history": "Supprimer l'historique des vidéos regardées",
|
||||||
"View JavaScript license information.": "Voir les informations des licences JavaScript.",
|
"Import/export data": "Importer/exporter les données",
|
||||||
"Trending": "Tendances",
|
"Change password": "Modifier le mot de passe",
|
||||||
"Watch video on Youtube": "Voir la vidéo sur Youtube",
|
"Manage subscriptions": "Gérer les abonnements",
|
||||||
"Genre: ": "Genre : ",
|
"Manage tokens": "Gérer les tokens",
|
||||||
"License: ": "Licence : ",
|
"Watch history": "Historique de visionnage",
|
||||||
"Family friendly? ": "Tout Public ? ",
|
"Delete account": "Supprimer votre compte",
|
||||||
"Wilson score: ": "Score de Wilson : ",
|
"Administrator preferences": "Préferences d'Administrateur",
|
||||||
"Engagement: ": "Poucentage de spectateur aillant aimé Liker ou Disliker la vidéo : ",
|
"Default homepage: ": "Page d'accueil par défaut : ",
|
||||||
"Whitelisted regions: ": "Régions en liste blanche : ",
|
"Feed menu: ": "Menu des Flux : ",
|
||||||
"Blacklisted regions: ": "Régions sur liste noire : ",
|
"Top enabled? ": "Top activé ? ",
|
||||||
"Shared `x`": "Partagée `x`",
|
"CAPTCHA enabled? ": "CAPTCHA activé ? ",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "Il semblerait que JavaScript sois désactivé. Cliquez ici pour voir les commentaires. Gardez à l'esprit que le chargement peut prendre plus de temps.",
|
"Login enabled? ": "Connexion activé ? ",
|
||||||
"View YouTube comments": "Voir les commentaires YouTube",
|
"Registration enabled? ": "Inscription activée ? ",
|
||||||
"View more comments on Reddit": "Voir plus de commentaires sur Reddit",
|
"Report statistics? ": "Télémétrie activé ? ",
|
||||||
"View `x` comments": "Voir `x` commentaires",
|
"Save preferences": "Enregistrer les préférences",
|
||||||
"View Reddit comments": "Voir les commentaires Reddit",
|
"Subscription manager": "Gestionnaire d'abonnement",
|
||||||
"Hide replies": "Masquer les réponses",
|
"Token manager": "Gestionnaire de tokens",
|
||||||
"Show replies": "Afficher les réponses",
|
"Token": "Token",
|
||||||
"Incorrect password": "Mot de passe incorrect",
|
"`x` subscriptions": "`x` abonnements",
|
||||||
"Quota exceeded, try again in a few hours": "Nombre de tentative de connexion dépassé, réessayez dans quelques heures",
|
"`x` tokens": "`x` tokens",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "Si vous ne parvenez pas à vous connecter, assurez-vous que l'authentification à deux facteurs (Authenticator ou SMS) est activée.",
|
"Import/export": "Importer/Exporter",
|
||||||
"Invalid TFA code": "Code d'authentification à deux facteurs invalide",
|
"unsubscribe": "se désabonner",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on 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.",
|
"revoke": "annuler",
|
||||||
"Invalid answer": "Réponse non valide",
|
"Subscriptions": "Abonnements",
|
||||||
"Invalid CAPTCHA": "CAPTCHA invalide",
|
"`x` unseen notifications": "`x` notifications non vues",
|
||||||
"CAPTCHA is a required field": "Veuillez rentrez un CAPTCHA",
|
"search": "Rechercher",
|
||||||
"User ID is a required field": "Veuillez rentrez un Identifiant Utilisateur",
|
"Log out": "Déconnexion",
|
||||||
"Password is a required field": "Veuillez rentrez un Mot de passe",
|
"Released under the AGPLv3 by Omar Roth.": "Publié sous licence AGPLv3 par Omar Roth.",
|
||||||
"Invalid username or password": "Nom d'utilisateur ou mot de passe invalide",
|
"Source available here.": "Code Source.",
|
||||||
"Please sign in using 'Sign in with Google'": "Veuillez vous connecter en utilisant \"S'identifier avec Google\"",
|
"View JavaScript license information.": "Voir les informations des licences JavaScript.",
|
||||||
"Password cannot be empty": "Le mot de passe ne peut pas être vide",
|
"View privacy policy.": "Voir la politique de confidentialité.",
|
||||||
"Password cannot be longer than 55 characters": "Le mot de passe ne doit pas comporter plus de 55 caractères",
|
"Trending": "Tendances",
|
||||||
"Please sign in": "Veuillez vous connecter",
|
"Unlisted": "Non répertoriée",
|
||||||
"Invidious Private Feed for `x`": "Flux RSS privé pour `x`",
|
"Watch on YouTube": "Voir la vidéo sur Youtube",
|
||||||
"channel:`x`": "chaîne:`x`",
|
"Hide annotations": "Masquer les annotations",
|
||||||
"Deleted or invalid channel": "Chaîne supprimée ou invalide",
|
"Show annotations": "Afficher les annotations",
|
||||||
"This channel does not exist.": "Cette chaine n'existe pas.",
|
"Genre: ": "Genre : ",
|
||||||
"Could not get channel info.": "Impossible de charger les informations de cette chaîne.",
|
"License: ": "Licence : ",
|
||||||
"Could not fetch comments": "Impossible de charger les commentaires",
|
"Family friendly? ": "Tout Public ? ",
|
||||||
"View `x` replies": "Voir `x` réponses",
|
"Wilson score: ": "Score de Wilson : ",
|
||||||
"`x` ago": "il y a `x`",
|
"Engagement: ": "Poucentage de spectateur aillant aimé Like ou Dislike la vidéo : ",
|
||||||
"Load more": "Charger plus",
|
"Whitelisted regions: ": "Régions en liste blanche : ",
|
||||||
"`x` points": "`x` points",
|
"Blacklisted regions: ": "Régions sur liste noire : ",
|
||||||
"Could not create mix.": "Impossible de charger cette liste de lecture.",
|
"Shared `x`": "Ajoutée le `x`",
|
||||||
"Playlist is empty": "La liste de lecture est vide",
|
"`x` views": "`x` vues",
|
||||||
"Invalid playlist.": "Liste de lecture invalide.",
|
"Premieres in `x`": "Première dans `x`",
|
||||||
"Playlist does not exist.": "La liste de lecture n'existe pas.",
|
"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.",
|
||||||
"Could not pull trending pages.": "Impossible de charger les pages de tendances.",
|
"View YouTube comments": "Voir les commentaires YouTube",
|
||||||
"Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field",
|
"View more comments on Reddit": "Voir plus de commentaires sur Reddit",
|
||||||
"Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field",
|
"View `x` comments": "Voir `x` commentaires",
|
||||||
"Invalid challenge": "Invalid challenge",
|
"View Reddit comments": "Voir les commentaires Reddit",
|
||||||
"Invalid token": "Invalid token",
|
"Hide replies": "Masquer les réponses",
|
||||||
"Invalid user": "Invalid user",
|
"Show replies": "Afficher les réponses",
|
||||||
"Token is expired, please try again": "Token is expired, please try again",
|
"Incorrect password": "Mot de passe incorrect",
|
||||||
"English": "Anglais",
|
"Quota exceeded, try again in a few hours": "Nombre de tentative de connexion dépassé, réessayez dans quelques heures",
|
||||||
"English (auto-generated)": "Anglais (générés automatiquement)",
|
"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.",
|
||||||
"Afrikaans": "Afrikaans",
|
"Invalid TFA code": "Code d'authentification à deux facteurs invalide",
|
||||||
"Albanian": "Albanais",
|
"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.",
|
||||||
"Amharic": "Amharique",
|
"Wrong answer": "Réponse invalide",
|
||||||
"Arabic": "Arabe",
|
"Erroneous CAPTCHA": "CAPTCHA invalide",
|
||||||
"Armenian": "Arménien",
|
"CAPTCHA is a required field": "Veuillez entrer un CAPTCHA",
|
||||||
"Azerbaijani": "Azerbaïdjanais",
|
"User ID is a required field": "Veuillez entrer un Identifiant Utilisateur",
|
||||||
"Bangla": "Bangla",
|
"Password is a required field": "Veuillez entrer un Mot de passe",
|
||||||
"Basque": "Basque",
|
"Wrong username or password": "Nom d'utilisateur ou mot de passe invalide",
|
||||||
"Belarusian": "Belarusian",
|
"Please sign in using 'Log in with Google'": "Veuillez vous connecter en utilisant \"Se connecter avec Google\"",
|
||||||
"Bosnian": "Bosnian",
|
"Password cannot be empty": "Le mot de passe ne peut pas être vide",
|
||||||
"Bulgarian": "Bulgarian",
|
"Password cannot be longer than 55 characters": "Le mot de passe ne doit pas comporter plus de 55 caractères",
|
||||||
"Burmese": "Birman",
|
"Please log in": "Veuillez vous connecter",
|
||||||
"Catalan": "Catalan",
|
"Invidious Private Feed for `x`": "Flux RSS privé pour `x`",
|
||||||
"Cebuano": "Cebuano",
|
"channel:`x`": "chaîne:`x`",
|
||||||
"Chinese (Simplified)": "Chinois (Simplifié)",
|
"Deleted or invalid channel": "Chaîne supprimée ou invalide",
|
||||||
"Chinese (Traditional)": "Chinois (Traditionnel)",
|
"This channel does not exist.": "Cette chaine n'existe pas.",
|
||||||
"Corsican": "Corse",
|
"Could not get channel info.": "Impossible de charger les informations de cette chaîne.",
|
||||||
"Croatian": "Croate",
|
"Could not fetch comments": "Impossible de charger les commentaires",
|
||||||
"Czech": "Tchèque",
|
"View `x` replies": "Voir `x` réponses",
|
||||||
"Danish": "Danois",
|
"`x` ago": "il y a `x`",
|
||||||
"Dutch": "Hollandais",
|
"Load more": "Charger plus",
|
||||||
"Esperanto": "Espéranto",
|
"`x` points": "`x` points",
|
||||||
"Estonian": "Estonien",
|
"Could not create mix.": "Impossible de charger cette liste de lecture.",
|
||||||
"Filipino": "Philippin",
|
"Empty playlist": "La liste de lecture est vide",
|
||||||
"Finnish": "Finlandais",
|
"Not a playlist.": "Liste de lecture invalide.",
|
||||||
"French": "Français",
|
"Playlist does not exist.": "La liste de lecture n'existe pas.",
|
||||||
"Galician": "Galicien",
|
"Could not pull trending pages.": "Impossible de charger les pages de tendances.",
|
||||||
"Georgian": "Géorgien",
|
"Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field",
|
||||||
"German": "Allemand",
|
"Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field",
|
||||||
"Greek": "Grec",
|
"Erroneous challenge": "Erroneous challenge",
|
||||||
"Gujarati": "Gujarati",
|
"Erroneous token": "Erroneous token",
|
||||||
"Haitian Creole": "Créole Haïtien",
|
"No such user": "No such user",
|
||||||
"Hausa": "Haoussa",
|
"Token is expired, please try again": "Token is expired, please try again",
|
||||||
"Hawaiian": "Hawaïen",
|
"English": "Anglais",
|
||||||
"Hebrew": "Hébraïque",
|
"English (auto-generated)": "Anglais (générés automatiquement)",
|
||||||
"Hindi": "Hindi",
|
"Afrikaans": "Afrikaans",
|
||||||
"Hmong": "Hmong",
|
"Albanian": "Albanais",
|
||||||
"Hungarian": "Hongrois",
|
"Amharic": "Amharique",
|
||||||
"Icelandic": "Islandais",
|
"Arabic": "Arabe",
|
||||||
"Igbo": "Igbo",
|
"Armenian": "Arménien",
|
||||||
"Indonesian": "Indonésien",
|
"Azerbaijani": "Azerbaïdjanais",
|
||||||
"Irish": "Irlandais",
|
"Bangla": "Bangla",
|
||||||
"Italian": "Italien",
|
"Basque": "Basque",
|
||||||
"Japanese": "Japonais",
|
"Belarusian": "Belarusian",
|
||||||
"Javanese": "Javanais",
|
"Bosnian": "Bosnian",
|
||||||
"Kannada": "Kannada",
|
"Bulgarian": "Bulgarian",
|
||||||
"Kazakh": "Kazakh",
|
"Burmese": "Birman",
|
||||||
"Khmer": "Khmer",
|
"Catalan": "Catalan",
|
||||||
"Korean": "Coréen",
|
"Cebuano": "Cebuano",
|
||||||
"Kurdish": "Kurde",
|
"Chinese (Simplified)": "Chinois (Simplifié)",
|
||||||
"Kyrgyz": "Kirghize",
|
"Chinese (Traditional)": "Chinois (Traditionnel)",
|
||||||
"Lao": "Lao",
|
"Corsican": "Corse",
|
||||||
"Latin": "Latin",
|
"Croatian": "Croate",
|
||||||
"Latvian": "Letton",
|
"Czech": "Tchèque",
|
||||||
"Lithuanian": "Lituanien",
|
"Danish": "Danois",
|
||||||
"Luxembourgish": "Luxembourgeois",
|
"Dutch": "Hollandais",
|
||||||
"Macedonian": "Macédonien",
|
"Esperanto": "Espéranto",
|
||||||
"Malagasy": "Malgache",
|
"Estonian": "Estonien",
|
||||||
"Malay": "Malais",
|
"Filipino": "Philippin",
|
||||||
"Malayalam": "Malayalam",
|
"Finnish": "Finlandais",
|
||||||
"Maltese": "Maltais",
|
"French": "Français",
|
||||||
"Maori": "Maori",
|
"Galician": "Galicien",
|
||||||
"Marathi": "Marathi",
|
"Georgian": "Géorgien",
|
||||||
"Mongolian": "Mongol",
|
"German": "Allemand",
|
||||||
"Nepali": "Népalais",
|
"Greek": "Grec",
|
||||||
"Norwegian": "Norvégien",
|
"Gujarati": "Gujarati",
|
||||||
"Nyanja": "Nyanja",
|
"Haitian Creole": "Créole Haïtien",
|
||||||
"Pashto": "Pachtou",
|
"Hausa": "Haoussa",
|
||||||
"Persian": "Persan",
|
"Hawaiian": "Hawaïen",
|
||||||
"Polish": "Polonais",
|
"Hebrew": "Hébraïque",
|
||||||
"Portuguese": "Portugais",
|
"Hindi": "Hindi",
|
||||||
"Punjabi": "Punjabi",
|
"Hmong": "Hmong",
|
||||||
"Romanian": "Roumain",
|
"Hungarian": "Hongrois",
|
||||||
"Russian": "Russe",
|
"Icelandic": "Islandais",
|
||||||
"Samoan": "Samoan",
|
"Igbo": "Igbo",
|
||||||
"Scottish Gaelic": "Eaélique Ècossais",
|
"Indonesian": "Indonésien",
|
||||||
"Serbian": "Serbe",
|
"Irish": "Irlandais",
|
||||||
"Shona": "Shona",
|
"Italian": "Italien",
|
||||||
"Sindhi": "Sindhi",
|
"Japanese": "Japonais",
|
||||||
"Sinhala": "Cinghalais",
|
"Javanese": "Javanais",
|
||||||
"Slovak": "Slovaque",
|
"Kannada": "Kannada",
|
||||||
"Slovenian": "Slovène",
|
"Kazakh": "Kazakh",
|
||||||
"Somali": "Somalien",
|
"Khmer": "Khmer",
|
||||||
"Southern Sotho": "Sotho du Sud",
|
"Korean": "Coréen",
|
||||||
"Spanish": "Espagnol",
|
"Kurdish": "Kurde",
|
||||||
"Spanish (Latin America)": "Espagnol (Amérique latine)",
|
"Kyrgyz": "Kirghize",
|
||||||
"Sundanese": "Sundanais",
|
"Lao": "Lao",
|
||||||
"Swahili": "Swahili",
|
"Latin": "Latin",
|
||||||
"Swedish": "Suédois",
|
"Latvian": "Letton",
|
||||||
"Tajik": "Tajik",
|
"Lithuanian": "Lituanien",
|
||||||
"Tamil": "Tamil",
|
"Luxembourgish": "Luxembourgeois",
|
||||||
"Telugu": "Telugu",
|
"Macedonian": "Macédonien",
|
||||||
"Thai": "Thaï",
|
"Malagasy": "Malgache",
|
||||||
"Turkish": "Turc",
|
"Malay": "Malais",
|
||||||
"Ukrainian": "Ukrainien",
|
"Malayalam": "Malayalam",
|
||||||
"Urdu": "Ourdou",
|
"Maltese": "Maltais",
|
||||||
"Uzbek": "Ouzbek",
|
"Maori": "Maori",
|
||||||
"Vietnamese": "Vietnamien",
|
"Marathi": "Marathi",
|
||||||
"Welsh": "Gallois",
|
"Mongolian": "Mongol",
|
||||||
"Western Frisian": "Frison occidental",
|
"Nepali": "Népalais",
|
||||||
"Xhosa": "Xhosa",
|
"Norwegian Bokmål": "Norvégien",
|
||||||
"Yiddish": "Yiddish",
|
"Nyanja": "Nyanja",
|
||||||
"Yoruba": "Yoruba",
|
"Pashto": "Pachtou",
|
||||||
"Zulu": "Zoulou",
|
"Persian": "Persan",
|
||||||
"`x` years": "`x` ans",
|
"Polish": "Polonais",
|
||||||
"`x` months": "`x` mois",
|
"Portuguese": "Portugais",
|
||||||
"`x` weeks": "`x` semaines",
|
"Punjabi": "Punjabi",
|
||||||
"`x` days": "`x` jours",
|
"Romanian": "Roumain",
|
||||||
"`x` hours": "`x` heures",
|
"Russian": "Russe",
|
||||||
"`x` minutes": "`x` minutes",
|
"Samoan": "Samoan",
|
||||||
"`x` seconds": "`x` secondes",
|
"Scottish Gaelic": "Eaélique Ècossais",
|
||||||
"Fallback comments: ": "Commentaires secondaires : ",
|
"Serbian": "Serbe",
|
||||||
"Popular": "Populaire",
|
"Shona": "Shona",
|
||||||
"Top": "Top",
|
"Sindhi": "Sindhi",
|
||||||
"About": "A Propos",
|
"Sinhala": "Cinghalais",
|
||||||
"Rating: ": "Évaluation : ",
|
"Slovak": "Slovaque",
|
||||||
"Language: ": "Langue : ",
|
"Slovenian": "Slovène",
|
||||||
"Default": "Défaut",
|
"Somali": "Somalien",
|
||||||
"Music": "Musique",
|
"Southern Sotho": "Sotho du Sud",
|
||||||
"Gaming": "Jeux Vidéo",
|
"Spanish": "Espagnol",
|
||||||
"News": "Actualités",
|
"Spanish (Latin America)": "Espagnol (Amérique latine)",
|
||||||
"Movies": "Films",
|
"Sundanese": "Sundanais",
|
||||||
"Download": "Télécharger",
|
"Swahili": "Swahili",
|
||||||
"Download as: ": "Télécharger en : ",
|
"Swedish": "Suédois",
|
||||||
"%A %B %-d, %Y": "%A %-d %B %Y",
|
"Tajik": "Tajik",
|
||||||
"(edited)": "(modifié)",
|
"Tamil": "Tamil",
|
||||||
"Youtube permalink of the comment": "Lien YouTube permanent vers le commentaire",
|
"Telugu": "Telugu",
|
||||||
"`x` marked it with a ❤": "`x` l'a marqué d'un ❤",
|
"Thai": "Thaï",
|
||||||
"Audio mode": "Mode Audio",
|
"Turkish": "Turc",
|
||||||
"Video mode": "Mode Vidéo"
|
"Ukrainian": "Ukrainien",
|
||||||
}
|
"Urdu": "Ourdou",
|
||||||
|
"Uzbek": "Ouzbek",
|
||||||
|
"Vietnamese": "Vietnamien",
|
||||||
|
"Welsh": "Gallois",
|
||||||
|
"Western Frisian": "Frison occidental",
|
||||||
|
"Xhosa": "Xhosa",
|
||||||
|
"Yiddish": "Yiddish",
|
||||||
|
"Yoruba": "Yoruba",
|
||||||
|
"Zulu": "Zoulou",
|
||||||
|
"`x` years": "`x` ans",
|
||||||
|
"`x` months": "`x` mois",
|
||||||
|
"`x` weeks": "`x` semaines",
|
||||||
|
"`x` days": "`x` jours",
|
||||||
|
"`x` hours": "`x` heures",
|
||||||
|
"`x` minutes": "`x` minutes",
|
||||||
|
"`x` seconds": "`x` secondes",
|
||||||
|
"Fallback comments: ": "Fallback comments: ",
|
||||||
|
"Popular": "Populaire",
|
||||||
|
"Top": "Top",
|
||||||
|
"About": "À propos",
|
||||||
|
"Rating: ": "Évaluation : ",
|
||||||
|
"Language: ": "Langue : ",
|
||||||
|
"View as playlist": "Voir en tant que liste de lecture",
|
||||||
|
"Default": "Défaut",
|
||||||
|
"Music": "Musique",
|
||||||
|
"Gaming": "Jeux Vidéo",
|
||||||
|
"News": "Actualités",
|
||||||
|
"Movies": "Films",
|
||||||
|
"Download": "Télécharger",
|
||||||
|
"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",
|
||||||
|
"`x` marked it with a ❤": "`x` l'a marqué d'un ❤",
|
||||||
|
"Audio mode": "Mode Audio",
|
||||||
|
"Video mode": "Mode Vidéo",
|
||||||
|
"Videos": "Vidéos",
|
||||||
|
"Playlists": "Liste de lecture",
|
||||||
|
"Current version: ": "Version actuelle : "
|
||||||
|
}
|
||||||
595
locales/it.json
595
locales/it.json
@@ -1,279 +1,318 @@
|
|||||||
{
|
{
|
||||||
"`x` subscribers": "`x` iscritti",
|
"`x` subscribers": "`x` iscritti",
|
||||||
"`x` videos": "`x` video",
|
"`x` videos": "`x` video",
|
||||||
"LIVE": "IN DIRETTA",
|
"LIVE": "IN DIRETTA",
|
||||||
"Shared `x` ago": "Condiviso `x` fa",
|
"Shared `x` ago": "Condiviso `x` fa",
|
||||||
"Unsubscribe": "Disiscriviti",
|
"Unsubscribe": "Disiscriviti",
|
||||||
"Subscribe": "Iscriviti",
|
"Subscribe": "Iscriviti",
|
||||||
"Login to subscribe to `x`": "Accedi per iscriverti a `x`",
|
"View channel on YouTube": "Vedi canale su YouTube",
|
||||||
"View channel on YouTube": "Vedi canale su YouTube",
|
"View playlist on YouTube": "",
|
||||||
"newest": "Data di aggiunta (più recente)",
|
"newest": "Data di aggiunta (più recente)",
|
||||||
"oldest": "Data di aggiunta (più vecchia)",
|
"oldest": "Data di aggiunta (più vecchia)",
|
||||||
"popular": "Tendenze",
|
"popular": "Tendenze",
|
||||||
"Next page": "Pagina successiva",
|
"last": "durare",
|
||||||
"Clear watch history?": "Sei sicuro di voler cancellare la cronologia dei video guardati?",
|
"Next page": "Pagina successiva",
|
||||||
"Yes": "Si",
|
"Previous page": "Pagina precedente",
|
||||||
"No": "No",
|
"Clear watch history?": "Sei sicuro di voler cancellare la cronologia dei video guardati?",
|
||||||
"Import and Export Data": "Importazione ed esportazione dati",
|
"New password": "Nuova password",
|
||||||
"Import": "Importa",
|
"New passwords must match": "Le nuove password devono corrispondere",
|
||||||
"Import Invidious data": "Importa dati Invidious",
|
"Cannot change password for Google accounts": "Non è possibile modificare la password per gli account Google",
|
||||||
"Import YouTube subscriptions": "Importa le iscrizioni da YouTube",
|
"Authorize token?": "Autorizzare gettone?",
|
||||||
"Import FreeTube subscriptions (.db)": "Importa le iscrizioni da FreeTube (.db)",
|
"Authorize token for `x`?": "",
|
||||||
"Import NewPipe subscriptions (.json)": "Importa le iscrizioni da NewPipe (.json)",
|
"Yes": "Si",
|
||||||
"Import NewPipe data (.zip)": "Importa i dati di NewPipe (.zip)",
|
"No": "No",
|
||||||
"Export": "Esporta",
|
"Import and Export Data": "Importazione ed esportazione dati",
|
||||||
"Export subscriptions as OPML": "Esporta gli abbonamenti come OPML",
|
"Import": "Importa",
|
||||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Esporta gli abbonamenti come OPML (per NewPipe e FreeTube)",
|
"Import Invidious data": "Importa dati Invidious",
|
||||||
"Export data as JSON": "Esporta i dati in formato JSON",
|
"Import YouTube subscriptions": "Importa le iscrizioni da YouTube",
|
||||||
"Delete account?": "Sei sicuro di voler cancellare l'account?",
|
"Import FreeTube subscriptions (.db)": "Importa le iscrizioni da FreeTube (.db)",
|
||||||
"History": "Cronologia",
|
"Import NewPipe subscriptions (.json)": "Importa le iscrizioni da NewPipe (.json)",
|
||||||
"Previous page": "Pagina precedente",
|
"Import NewPipe data (.zip)": "Importa i dati di NewPipe (.zip)",
|
||||||
"An alternative front-end to YouTube": "Un'interfaccia alternativa per YouTube",
|
"Export": "Esporta",
|
||||||
"JavaScript license information": "Info licenze JavaScript",
|
"Export subscriptions as OPML": "Esporta gli abbonamenti come OPML",
|
||||||
"source": "sorgente",
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Esporta gli abbonamenti come OPML (per NewPipe e FreeTube)",
|
||||||
"Login": "Entra",
|
"Export data as JSON": "Esporta i dati in formato JSON",
|
||||||
"Login/Register": "Entra/Registrati",
|
"Delete account?": "Sei sicuro di voler cancellare l'account?",
|
||||||
"Login to Google": "Entra con Google",
|
"History": "Cronologia",
|
||||||
"User ID:": "ID utente:",
|
"An alternative front-end to YouTube": "Un'interfaccia alternativa per YouTube",
|
||||||
"Password:": "Password:",
|
"JavaScript license information": "Info licenze JavaScript",
|
||||||
"Time (h:mm:ss):": "Orario (h:mm:ss):",
|
"source": "sorgente",
|
||||||
"Text CAPTCHA": "Testo del CAPTCHA",
|
"Log in": "Entra",
|
||||||
"Image CAPTCHA": "Immagine CAPTCHA",
|
"Log in/register": "Entra/Registrati",
|
||||||
"Sign In": "Entra",
|
"Log in with Google": "Entra con Google",
|
||||||
"Register": "Registrati",
|
"User ID": "ID utente",
|
||||||
"Email:": "Email:",
|
"Password": "Password",
|
||||||
"Google verification code:": "Codice di verifica Google:",
|
"Time (h:mm:ss):": "Orario (h:mm:ss):",
|
||||||
"Preferences": "Preferenze",
|
"Text CAPTCHA": "Testo del CAPTCHA",
|
||||||
"Player preferences": "Preferenze del riproduttore",
|
"Image CAPTCHA": "Immagine CAPTCHA",
|
||||||
"Always loop: ": "Ripeti sempre: ",
|
"Sign In": "Entra",
|
||||||
"Autoplay: ": "Riproduzione automatica: ",
|
"Register": "Registrati",
|
||||||
"Autoplay next video: ": "Riproduci automaticamente il prossimo video: ",
|
"E-mail": "Email",
|
||||||
"Listen by default: ": "Modalità solo audio come predefinita: ",
|
"Google verification code": "Codice di verifica Google",
|
||||||
"Default speed: ": "Velocità di riproduzione predefinita: ",
|
"Preferences": "Preferenze",
|
||||||
"Preferred video quality: ": "Preferenza sulla qualità video: ",
|
"Player preferences": "Preferenze del riproduttore",
|
||||||
"Player volume: ": "Volume di riproduzione: ",
|
"Always loop: ": "Ripeti sempre: ",
|
||||||
"Default comments: ": "Origine dei commenti: ",
|
"Autoplay: ": "Riproduzione automatica: ",
|
||||||
"Default captions: ": "Sottotitoli predefiniti: ",
|
"Play next by default: ": "Riproduzione successiva per impostazione predefinita: ",
|
||||||
"Fallback captions: ": "Sottotitoli alternativi: ",
|
"Autoplay next video: ": "Riproduci automaticamente il prossimo video: ",
|
||||||
"Show related videos? ": "Mostra video correlati? ",
|
"Listen by default: ": "Modalità solo audio come predefinita: ",
|
||||||
"Visual preferences": "Preferenze grafiche",
|
"Proxy videos? ": "",
|
||||||
"Dark mode: ": "Tema scuro: ",
|
"Default speed: ": "Velocità di riproduzione predefinita: ",
|
||||||
"Thin mode: ": "Modalità per connessioni lente: ",
|
"Preferred video quality: ": "Preferenza sulla qualità video: ",
|
||||||
"Subscription preferences": "Preferenze iscrizioni",
|
"Player volume: ": "Volume di riproduzione: ",
|
||||||
"Redirect homepage to feed: ": "Reindirizza la pagina principale a quella delle iscrizioni: ",
|
"Default comments: ": "Origine dei commenti: ",
|
||||||
"Number of videos shown in feed: ": "Numero di video da mostrare nelle iscrizioni: ",
|
"youtube": "",
|
||||||
"Sort videos by: ": "Ordinare i video per: ",
|
"reddit": "",
|
||||||
"published": "data di pubblicazione",
|
"Default captions: ": "Sottotitoli predefiniti: ",
|
||||||
"published - reverse": "data di pubblicazione - decrescente",
|
"Fallback captions: ": "Sottotitoli alternativi: ",
|
||||||
"alphabetically": "ordine alfabetico",
|
"Show related videos? ": "Mostra video correlati? ",
|
||||||
"alphabetically - reverse": "ordine alfabetico - decrescente",
|
"Show annotations by default? ": "Mostra le annotazioni per impostazione predefinita? ",
|
||||||
"channel name": "nome del canale",
|
"Visual preferences": "Preferenze grafiche",
|
||||||
"channel name - reverse": "nome del canale - decrescente",
|
"Dark mode: ": "Tema scuro: ",
|
||||||
"Only show latest video from channel: ": "Mostra solo il video più recente del canale: ",
|
"Thin mode: ": "Modalità per connessioni lente: ",
|
||||||
"Only show latest unwatched video from channel: ": "Mostra solo il video più recente non guardato del canale: ",
|
"Subscription preferences": "Preferenze iscrizioni",
|
||||||
"Only show unwatched: ": "Mostra solo i video non guardati: ",
|
"Show annotations by default for subscribed channels? ": "",
|
||||||
"Only show notifications (if there are any): ": "Mostra solo le notifiche (se presenti): ",
|
"Redirect homepage to feed: ": "Reindirizza la pagina principale a quella delle iscrizioni: ",
|
||||||
"Data preferences": "Preferenze dati",
|
"Number of videos shown in feed: ": "Numero di video da mostrare nelle iscrizioni: ",
|
||||||
"Clear watch history": "Cancella la cronologia dei video guardati",
|
"Sort videos by: ": "Ordinare i video per: ",
|
||||||
"Import/Export data": "Importazione/esportazione dati",
|
"published": "data di pubblicazione",
|
||||||
"Manage subscriptions": "Gestisci le iscrizioni",
|
"published - reverse": "data di pubblicazione - decrescente",
|
||||||
"Watch history": "Cronologia dei video",
|
"alphabetically": "ordine alfabetico",
|
||||||
"Delete account": "Elimina l'account",
|
"alphabetically - reverse": "ordine alfabetico - decrescente",
|
||||||
"Save preferences": "Salva le preferenze",
|
"channel name": "nome del canale",
|
||||||
"Subscription manager": "Gestisci le iscrizioni",
|
"channel name - reverse": "nome del canale - decrescente",
|
||||||
"`x` subscriptions": "`x` iscrizioni",
|
"Only show latest video from channel: ": "Mostra solo il video più recente del canale: ",
|
||||||
"Import/Export": "Importa/esporta",
|
"Only show latest unwatched video from channel: ": "Mostra solo il video più recente non guardato del canale: ",
|
||||||
"unsubscribe": "disiscriviti",
|
"Only show unwatched: ": "Mostra solo i video non guardati: ",
|
||||||
"Subscriptions": "Iscrizioni",
|
"Only show notifications (if there are any): ": "Mostra solo le notifiche (se presenti): ",
|
||||||
"`x` unseen notifications": "`x` notifiche non visualizzate",
|
"Enable web notifications": "",
|
||||||
"search": "Cerca",
|
"`x` uploaded a video": "",
|
||||||
"Sign out": "Esci",
|
"`x` is live": "",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Pubblicato con licenza AGPLv3 da Omar Roth.",
|
"Data preferences": "Preferenze dati",
|
||||||
"Source available here.": "Codice sorgente.",
|
"Clear watch history": "Cancella la cronologia dei video guardati",
|
||||||
"View JavaScript license information.": "Guarda le informazioni di licenza del codice JavaScript.",
|
"Import/export data": "Importazione/esportazione dati",
|
||||||
"Trending": "Tendenze",
|
"Change password": "",
|
||||||
"Watch video on Youtube": "Guarda il video su YouTube",
|
"Manage subscriptions": "Gestisci le iscrizioni",
|
||||||
"Genre: ": "Genere: ",
|
"Manage tokens": "",
|
||||||
"License: ": "Licenza: ",
|
"Watch history": "Cronologia dei video",
|
||||||
"Family friendly? ": "Per tutti? ",
|
"Delete account": "Elimina l'account",
|
||||||
"Wilson score: ": "Punteggio di Wilson: ",
|
"Administrator preferences": "",
|
||||||
"Engagement: ": "Tasso di coinvolgimento: ",
|
"Default homepage: ": "",
|
||||||
"Whitelisted regions: ": "Regioni nella lista bianca: ",
|
"Feed menu: ": "",
|
||||||
"Blacklisted regions: ": "Regioni nella lista nera: ",
|
"Top enabled? ": "",
|
||||||
"Shared `x`": "Condiviso `x`",
|
"CAPTCHA enabled? ": "",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it 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.",
|
"Login enabled? ": "",
|
||||||
"View YouTube comments": "Visualizza i commenti da YouTube",
|
"Registration enabled? ": "",
|
||||||
"View more comments on Reddit": "Visualizza più commenti su Reddit",
|
"Report statistics? ": "",
|
||||||
"View `x` comments": "Visualizza `x` commenti",
|
"Save preferences": "Salva le preferenze",
|
||||||
"View Reddit comments": "Visualizza i commenti da Reddit",
|
"Subscription manager": "Gestisci le iscrizioni",
|
||||||
"Hide replies": "Nascondi le risposte",
|
"Token manager": "",
|
||||||
"Show replies": "Mostra le risposte",
|
"Token": "",
|
||||||
"Incorrect password": "Password sbagliata",
|
"`x` subscriptions": "`x` iscrizioni",
|
||||||
"Quota exceeded, try again in a few hours": "Limite superato, prova di nuovo fra qualche ora",
|
"`x` tokens": "",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "Impossibile autenticarsi, controlla che l'autenticazione in due passaggi (Authenticator o SMS) sia attiva.",
|
"Import/export": "Importa/esporta",
|
||||||
"Invalid TFA code": "Codice di autenticazione a due fattori non valido",
|
"unsubscribe": "disiscriviti",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on your account.": "Login fallito. L'errore potrebbe essere causato dal fatto che la verifica in due passaggi non è attiva sul tuo account.",
|
"revoke": "",
|
||||||
"Invalid answer": "Risposta errata",
|
"Subscriptions": "Iscrizioni",
|
||||||
"Invalid CAPTCHA": "CAPTCHA errato",
|
"`x` unseen notifications": "`x` notifiche non visualizzate",
|
||||||
"CAPTCHA is a required field": "Il CAPTCHA è un campo obbligatorio",
|
"search": "Cerca",
|
||||||
"User ID is a required field": "L'ID utente è obbligatorio",
|
"Log out": "Esci",
|
||||||
"Password is a required field": "La password è un campo obbligatorio",
|
"Released under the AGPLv3 by Omar Roth.": "Pubblicato con licenza AGPLv3 da Omar Roth.",
|
||||||
"Invalid username or password": "Nome utente o password errati",
|
"Source available here.": "Codice sorgente.",
|
||||||
"Please sign in using 'Sign in with Google'": "Per favore accedi con \"Entra con Google\"",
|
"View JavaScript license information.": "Guarda le informazioni di licenza del codice JavaScript.",
|
||||||
"Password cannot be empty": "La password non può essere vuota",
|
"View privacy policy.": "",
|
||||||
"Password cannot be longer than 55 characters": "La password non può contenere più di 55 caratteri",
|
"Trending": "Tendenze",
|
||||||
"Please sign in": "Per favore, entra",
|
"Unlisted": "",
|
||||||
"Invidious Private Feed for `x`": "Feed privato Invidious per `x`",
|
"Watch on YouTube": "Guarda il video su YouTube",
|
||||||
"channel:`x`": "canale:`x`",
|
"Hide annotations": "",
|
||||||
"Deleted or invalid channel": "Canale cancellato o invalido",
|
"Show annotations": "",
|
||||||
"This channel does not exist.": "Canale inesistente.",
|
"Genre: ": "Genere: ",
|
||||||
"Could not get channel info.": "Impossibile ottenere le informazioni del canale.",
|
"License: ": "Licenza: ",
|
||||||
"Could not fetch comments": "Impossibile recuperare i commenti",
|
"Family friendly? ": "Per tutti? ",
|
||||||
"View `x` replies": "Visualizza `x` risposte",
|
"Wilson score: ": "Punteggio di Wilson: ",
|
||||||
"`x` ago": "`x` fa",
|
"Engagement: ": "Tasso di coinvolgimento: ",
|
||||||
"Load more": "Carica altro",
|
"Whitelisted regions: ": "Regioni nella lista bianca: ",
|
||||||
"`x` points": "`x` punti",
|
"Blacklisted regions: ": "Regioni nella lista nera: ",
|
||||||
"Could not create mix.": "Impossibile creare il mix.",
|
"Shared `x`": "Condiviso `x`",
|
||||||
"Playlist is empty": "Playlist vuota",
|
"`x` views": "",
|
||||||
"Invalid playlist.": "Playlist invalida.",
|
"Premieres in `x`": "",
|
||||||
"Playlist does not exist.": "Playlist inesistente.",
|
"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.",
|
||||||
"Could not pull trending pages.": "Impossibile recuperare le tendenze.",
|
"View YouTube comments": "Visualizza i commenti da YouTube",
|
||||||
"Hidden field \"challenge\" is a required field": "Il campo nascosto \"challenge\" è obbligatorio",
|
"View more comments on Reddit": "Visualizza più commenti su Reddit",
|
||||||
"Hidden field \"token\" is a required field": "Il campo nascosto \"token\" è obbligatorio",
|
"View `x` comments": "Visualizza `x` commenti",
|
||||||
"Invalid challenge": "Campo \"challenge\" invalido",
|
"View Reddit comments": "Visualizza i commenti da Reddit",
|
||||||
"Invalid token": "Campo \"token\" invalido",
|
"Hide replies": "Nascondi le risposte",
|
||||||
"Invalid user": "Utente invalido",
|
"Show replies": "Mostra le risposte",
|
||||||
"Token is expired, please try again": "Token scaduto, riprova",
|
"Incorrect password": "Password sbagliata",
|
||||||
"English": "Inglese",
|
"Quota exceeded, try again in a few hours": "Limite superato, prova di nuovo fra qualche ora",
|
||||||
"English (auto-generated)": "Inglese (generati automaticamente)",
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Impossibile autenticarsi, controlla che l'autenticazione in due passaggi (Authenticator o SMS) sia attiva.",
|
||||||
"Afrikaans": "Afrikaans",
|
"Invalid TFA code": "Codice di autenticazione a due fattori non valido",
|
||||||
"Albanian": "Albanese",
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Login fallito. L'errore potrebbe essere causato dal fatto che la verifica in due passaggi non è attiva sul tuo account.",
|
||||||
"Amharic": "Amarico",
|
"Wrong answer": "Risposta errata",
|
||||||
"Arabic": "Arabo",
|
"Erroneous CAPTCHA": "CAPTCHA errato",
|
||||||
"Armenian": "Armeno",
|
"CAPTCHA is a required field": "Il CAPTCHA è un campo obbligatorio",
|
||||||
"Azerbaijani": "Azero",
|
"User ID is a required field": "L'ID utente è obbligatorio",
|
||||||
"Bangla": "Bengalese",
|
"Password is a required field": "La password è un campo obbligatorio",
|
||||||
"Basque": "Basco",
|
"Wrong username or password": "Nome utente o password errati",
|
||||||
"Belarusian": "Biellorusso",
|
"Please sign in using 'Log in with Google'": "Per favore accedi con \"Entra con Google\"",
|
||||||
"Bosnian": "Bosniaco",
|
"Password cannot be empty": "La password non può essere vuota",
|
||||||
"Bulgarian": "Bulgaro",
|
"Password cannot be longer than 55 characters": "La password non può contenere più di 55 caratteri",
|
||||||
"Burmese": "Birmano",
|
"Please log in": "Per favore, entra",
|
||||||
"Catalan": "Catalano",
|
"Invidious Private Feed for `x`": "Feed privato Invidious per `x`",
|
||||||
"Cebuano": "Sugbuanon",
|
"channel:`x`": "canale:`x`",
|
||||||
"Chinese (Simplified)": "Cinese semplifiato",
|
"Deleted or invalid channel": "Canale cancellato o invalido",
|
||||||
"Chinese (Traditional)": "Cinese tradizionale",
|
"This channel does not exist.": "Canale inesistente.",
|
||||||
"Corsican": "Corso",
|
"Could not get channel info.": "Impossibile ottenere le informazioni del canale.",
|
||||||
"Croatian": "Croato",
|
"Could not fetch comments": "Impossibile recuperare i commenti",
|
||||||
"Czech": "Ceco",
|
"View `x` replies": "Visualizza `x` risposte",
|
||||||
"Danish": "Danese",
|
"`x` ago": "`x` fa",
|
||||||
"Dutch": "Olandese",
|
"Load more": "Carica altro",
|
||||||
"Esperanto": "Esperanto",
|
"`x` points": "`x` punti",
|
||||||
"Estonian": "Estone",
|
"Could not create mix.": "Impossibile creare il mix.",
|
||||||
"Filipino": "Filippino",
|
"Empty playlist": "Playlist vuota",
|
||||||
"Finnish": "Finlandese",
|
"Not a playlist.": "Playlist invalida.",
|
||||||
"French": "Francese",
|
"Playlist does not exist.": "Playlist inesistente.",
|
||||||
"Galician": "Galiziano",
|
"Could not pull trending pages.": "Impossibile recuperare le tendenze.",
|
||||||
"Georgian": "Georgiano",
|
"Hidden field \"challenge\" is a required field": "Il campo nascosto \"challenge\" è obbligatorio",
|
||||||
"German": "Tedesco",
|
"Hidden field \"token\" is a required field": "Il campo nascosto \"token\" è obbligatorio",
|
||||||
"Greek": "Greco",
|
"Erroneous challenge": "Campo \"challenge\" invalido",
|
||||||
"Gujarati": "Gujarati",
|
"Erroneous token": "Campo \"token\" invalido",
|
||||||
"Haitian Creole": "Creolo haitiano",
|
"No such user": "Utente invalido",
|
||||||
"Hausa": "Lingua hausa",
|
"Token is expired, please try again": "Token scaduto, riprova",
|
||||||
"Hawaiian": "Hawaiano",
|
"English": "Inglese",
|
||||||
"Hebrew": "Ebreo",
|
"English (auto-generated)": "Inglese (generati automaticamente)",
|
||||||
"Hindi": "Hindi",
|
"Afrikaans": "Afrikaans",
|
||||||
"Hmong": "Hmong",
|
"Albanian": "Albanese",
|
||||||
"Hungarian": "Ungarese",
|
"Amharic": "Amarico",
|
||||||
"Icelandic": "Islandese",
|
"Arabic": "Arabo",
|
||||||
"Igbo": "Igbo",
|
"Armenian": "Armeno",
|
||||||
"Indonesian": "Indonesiano",
|
"Azerbaijani": "Azero",
|
||||||
"Irish": "Irlandese",
|
"Bangla": "Bengalese",
|
||||||
"Italian": "Italiano",
|
"Basque": "Basco",
|
||||||
"Japanese": "Giapponese",
|
"Belarusian": "Biellorusso",
|
||||||
"Javanese": "Giavanese",
|
"Bosnian": "Bosniaco",
|
||||||
"Kannada": "Kannada",
|
"Bulgarian": "Bulgaro",
|
||||||
"Kazakh": "Kazaco",
|
"Burmese": "Birmano",
|
||||||
"Khmer": "Khmer",
|
"Catalan": "Catalano",
|
||||||
"Korean": "Coreano",
|
"Cebuano": "Sugbuanon",
|
||||||
"Kurdish": "Curdo",
|
"Chinese (Simplified)": "Cinese semplifiato",
|
||||||
"Kyrgyz": "Kirghize",
|
"Chinese (Traditional)": "Cinese tradizionale",
|
||||||
"Lao": "Lao",
|
"Corsican": "Corso",
|
||||||
"Latin": "Latino",
|
"Croatian": "Croato",
|
||||||
"Latvian": "Lettone",
|
"Czech": "Ceco",
|
||||||
"Lithuanian": "Lituano",
|
"Danish": "Danese",
|
||||||
"Luxembourgish": "Lussemburghese",
|
"Dutch": "Olandese",
|
||||||
"Macedonian": "Macedone",
|
"Esperanto": "Esperanto",
|
||||||
"Malagasy": "Malgascio",
|
"Estonian": "Estone",
|
||||||
"Malay": "Malese",
|
"Filipino": "Filippino",
|
||||||
"Malayalam": "Lingua malayalam",
|
"Finnish": "Finlandese",
|
||||||
"Maltese": "Maltese",
|
"French": "Francese",
|
||||||
"Maori": "Maori",
|
"Galician": "Galiziano",
|
||||||
"Marathi": "Marathi",
|
"Georgian": "Georgiano",
|
||||||
"Mongolian": "Mongolo",
|
"German": "Tedesco",
|
||||||
"Nepali": "Nepalese",
|
"Greek": "Greco",
|
||||||
"Norwegian": "Norvegese",
|
"Gujarati": "Gujarati",
|
||||||
"Nyanja": "Nyanja",
|
"Haitian Creole": "Creolo haitiano",
|
||||||
"Pashto": "Lingua pashtu",
|
"Hausa": "Lingua hausa",
|
||||||
"Persian": "Persiano",
|
"Hawaiian": "Hawaiano",
|
||||||
"Polish": "Polacco",
|
"Hebrew": "Ebreo",
|
||||||
"Portuguese": "Portoghese",
|
"Hindi": "Hindi",
|
||||||
"Punjabi": "Punjabi",
|
"Hmong": "Hmong",
|
||||||
"Romanian": "Rumeno",
|
"Hungarian": "Ungarese",
|
||||||
"Russian": "Russo",
|
"Icelandic": "Islandese",
|
||||||
"Samoan": "Samoan",
|
"Igbo": "Igbo",
|
||||||
"Scottish Gaelic": "Gaelico scozzese",
|
"Indonesian": "Indonesiano",
|
||||||
"Serbian": "Serbo",
|
"Irish": "Irlandese",
|
||||||
"Shona": "Shona",
|
"Italian": "Italiano",
|
||||||
"Sindhi": "Sindhi",
|
"Japanese": "Giapponese",
|
||||||
"Sinhala": "Cingalese",
|
"Javanese": "Giavanese",
|
||||||
"Slovak": "Slovacco",
|
"Kannada": "Kannada",
|
||||||
"Slovenian": "Sloveno",
|
"Kazakh": "Kazaco",
|
||||||
"Somali": "Somalo",
|
"Khmer": "Khmer",
|
||||||
"Southern Sotho": "Sotho del Sud",
|
"Korean": "Coreano",
|
||||||
"Spanish": "Spagnolo",
|
"Kurdish": "Curdo",
|
||||||
"Spanish (Latin America)": "Spagnolo (America latina)",
|
"Kyrgyz": "Kirghize",
|
||||||
"Sundanese": "Sudanese",
|
"Lao": "Lao",
|
||||||
"Swahili": "Swahili",
|
"Latin": "Latino",
|
||||||
"Swedish": "Svedese",
|
"Latvian": "Lettone",
|
||||||
"Tajik": "Tajik",
|
"Lithuanian": "Lituano",
|
||||||
"Tamil": "Tamil",
|
"Luxembourgish": "Lussemburghese",
|
||||||
"Telugu": "Telugu",
|
"Macedonian": "Macedone",
|
||||||
"Thai": "Thaï",
|
"Malagasy": "Malgascio",
|
||||||
"Turkish": "Turco",
|
"Malay": "Malese",
|
||||||
"Ukrainian": "Ucraino",
|
"Malayalam": "Lingua malayalam",
|
||||||
"Urdu": "Urdu",
|
"Maltese": "Maltese",
|
||||||
"Uzbek": "Uzbeco",
|
"Maori": "Maori",
|
||||||
"Vietnamese": "Vietnamese",
|
"Marathi": "Marathi",
|
||||||
"Welsh": "Gallese",
|
"Mongolian": "Mongolo",
|
||||||
"Western Frisian": "Frisone occidentale",
|
"Nepali": "Nepalese",
|
||||||
"Xhosa": "Xhosa",
|
"Norwegian Bokmål": "Norvegese",
|
||||||
"Yiddish": "Yiddish",
|
"Nyanja": "Nyanja",
|
||||||
"Yoruba": "Yoruba",
|
"Pashto": "Lingua pashtu",
|
||||||
"Zulu": "Zulu",
|
"Persian": "Persiano",
|
||||||
"`x` years": "`x` anni",
|
"Polish": "Polacco",
|
||||||
"`x` months": "`x` mesi",
|
"Portuguese": "Portoghese",
|
||||||
"`x` weeks": "`x` settimane",
|
"Punjabi": "Punjabi",
|
||||||
"`x` days": "`x` giorni",
|
"Romanian": "Rumeno",
|
||||||
"`x` hours": "`x` ore",
|
"Russian": "Russo",
|
||||||
"`x` minutes": "`x` minuti",
|
"Samoan": "Samoan",
|
||||||
"`x` seconds": "`x` secondi",
|
"Scottish Gaelic": "Gaelico scozzese",
|
||||||
"Fallback comments: ": "Commenti alternativi: ",
|
"Serbian": "Serbo",
|
||||||
"Popular": "Popolare",
|
"Shona": "Shona",
|
||||||
"Top": "Top",
|
"Sindhi": "Sindhi",
|
||||||
"About": "A proposito",
|
"Sinhala": "Cingalese",
|
||||||
"Rating: ": "Punteggio: ",
|
"Slovak": "Slovacco",
|
||||||
"Language: ": "Lingua: ",
|
"Slovenian": "Sloveno",
|
||||||
"Default": "Predefinito",
|
"Somali": "Somalo",
|
||||||
"Music": "Musica",
|
"Southern Sotho": "Sotho del Sud",
|
||||||
"Gaming": "Videogiochi",
|
"Spanish": "Spagnolo",
|
||||||
"News": "Notizie",
|
"Spanish (Latin America)": "Spagnolo (America latina)",
|
||||||
"Movies": "Film",
|
"Sundanese": "Sudanese",
|
||||||
"Download": "Scarica",
|
"Swahili": "Swahili",
|
||||||
"Download as: ": "Scarica come: ",
|
"Swedish": "Svedese",
|
||||||
"%A %B %-d, %Y": "%A %-d %B %Y",
|
"Tajik": "Tajik",
|
||||||
"(edited)": "(modificato)",
|
"Tamil": "Tamil",
|
||||||
"Youtube permalink of the comment": "Link permanente al commento di YouTube",
|
"Telugu": "Telugu",
|
||||||
"`x` marked it with a ❤": "`x` l'ha contrassegnato con un ❤",
|
"Thai": "Thaï",
|
||||||
"Audio mode": "Modalità audio",
|
"Turkish": "Turco",
|
||||||
"Video mode": "Modalità video"
|
"Ukrainian": "Ucraino",
|
||||||
}
|
"Urdu": "Urdu",
|
||||||
|
"Uzbek": "Uzbeco",
|
||||||
|
"Vietnamese": "Vietnamese",
|
||||||
|
"Welsh": "Gallese",
|
||||||
|
"Western Frisian": "Frisone occidentale",
|
||||||
|
"Xhosa": "Xhosa",
|
||||||
|
"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",
|
||||||
|
"Fallback comments: ": "Commenti alternativi: ",
|
||||||
|
"Popular": "Popolare",
|
||||||
|
"Top": "Top",
|
||||||
|
"About": "A proposito",
|
||||||
|
"Rating: ": "Punteggio: ",
|
||||||
|
"Language: ": "Lingua: ",
|
||||||
|
"View as playlist": "",
|
||||||
|
"Default": "Predefinito",
|
||||||
|
"Music": "Musica",
|
||||||
|
"Gaming": "Videogiochi",
|
||||||
|
"News": "Notizie",
|
||||||
|
"Movies": "Film",
|
||||||
|
"Download": "Scarica",
|
||||||
|
"Download as: ": "Scarica come: ",
|
||||||
|
"%A %B %-d, %Y": "%A %-d %B %Y",
|
||||||
|
"(edited)": "(modificato)",
|
||||||
|
"YouTube comment permalink": "Link permanente al commento di YouTube",
|
||||||
|
"`x` marked it with a ❤": "`x` l'ha contrassegnato con un ❤",
|
||||||
|
"Audio mode": "Modalità audio",
|
||||||
|
"Video mode": "Modalità video",
|
||||||
|
"Videos": "",
|
||||||
|
"Playlists": "",
|
||||||
|
"Current version: ": ""
|
||||||
|
}
|
||||||
@@ -5,14 +5,20 @@
|
|||||||
"Shared `x` ago": "Delt for `x` siden",
|
"Shared `x` ago": "Delt for `x` siden",
|
||||||
"Unsubscribe": "Opphev abonnement",
|
"Unsubscribe": "Opphev abonnement",
|
||||||
"Subscribe": "Abonner",
|
"Subscribe": "Abonner",
|
||||||
"Login to subscribe to `x`": "Logg inn for å abonnere på `x`",
|
|
||||||
"View channel on YouTube": "Vis kanal på YouTube",
|
"View channel on YouTube": "Vis kanal på YouTube",
|
||||||
|
"View playlist on YouTube": "Vis spilleliste på YouTube",
|
||||||
"newest": "nyeste",
|
"newest": "nyeste",
|
||||||
"oldest": "eldste",
|
"oldest": "eldste",
|
||||||
"popular": "populært",
|
"popular": "populært",
|
||||||
"Preview page": "Forhåndsvis side",
|
"last": "siste",
|
||||||
"Next page": "Neste side",
|
"Next page": "Neste side",
|
||||||
|
"Previous page": "Forrige side",
|
||||||
"Clear watch history?": "Tøm visningshistorikk?",
|
"Clear watch history?": "Tøm visningshistorikk?",
|
||||||
|
"New password": "Nytt passord",
|
||||||
|
"New passwords must match": "Nye passordfelter må stemme overens",
|
||||||
|
"Cannot change password for Google accounts": "Kan ikke endre passord for Google-kontoer",
|
||||||
|
"Authorize token?": "Identitetsbekreft symbol?",
|
||||||
|
"Authorize token for `x`?": "Identitetsbekreft symbol for `x`?",
|
||||||
"Yes": "Ja",
|
"Yes": "Ja",
|
||||||
"No": "Nei",
|
"No": "Nei",
|
||||||
"Import and Export Data": "Importer- og eksporter data",
|
"Import and Export Data": "Importer- og eksporter data",
|
||||||
@@ -28,39 +34,44 @@
|
|||||||
"Export data as JSON": "Eksporter data som JSON",
|
"Export data as JSON": "Eksporter data som JSON",
|
||||||
"Delete account?": "Slett konto?",
|
"Delete account?": "Slett konto?",
|
||||||
"History": "Historikk",
|
"History": "Historikk",
|
||||||
"Previous page": "Forrige side",
|
|
||||||
"An alternative front-end to YouTube": "En alternativ grenseflate for YouTube",
|
"An alternative front-end to YouTube": "En alternativ grenseflate for YouTube",
|
||||||
"JavaScript license information": "JavaScript-lisensinformasjon",
|
"JavaScript license information": "JavaScript-lisensinformasjon",
|
||||||
"source": "kilde",
|
"source": "kilde",
|
||||||
"Login": "Logg inn",
|
"Log in": "Logg inn",
|
||||||
"Login/Register": "Logg inn/registrer",
|
"Log in/register": "Logg inn/registrer",
|
||||||
"Login to Google": "Logg inn med Google",
|
"Log in with Google": "Logg inn med Google",
|
||||||
"User ID:": "Bruker-ID:",
|
"User ID": "Bruker-ID",
|
||||||
"Password:": "Passord:",
|
"Password": "Passord",
|
||||||
"Time (h:mm:ss):": "Tid (h:mm:ss):",
|
"Time (h:mm:ss):": "Tid (h:mm:ss):",
|
||||||
"Text CAPTCHA": "Tekst-CAPTCHA",
|
"Text CAPTCHA": "Tekst-CAPTCHA",
|
||||||
"Image CAPTCHA": "Bilde-CAPTCHA",
|
"Image CAPTCHA": "Bilde-CAPTCHA",
|
||||||
"Sign In": "Innlogging",
|
"Sign In": "Innlogging",
|
||||||
"Register": "Registrer",
|
"Register": "Registrer",
|
||||||
"Email:": "E-post:",
|
"E-mail": "E-post",
|
||||||
"Google verification code:": "Google-bekreftelseskode:",
|
"Google verification code": "Google-bekreftelseskode",
|
||||||
"Preferences": "Innstillinger",
|
"Preferences": "Innstillinger",
|
||||||
"Player preferences": "Avspillerinnstillinger",
|
"Player preferences": "Avspillerinnstillinger",
|
||||||
"Always loop: ": "Alltid gjenta: ",
|
"Always loop: ": "Alltid gjenta: ",
|
||||||
"Autoplay: ": "Autoavspilling: ",
|
"Autoplay: ": "Autoavspilling: ",
|
||||||
|
"Play next by default: ": "Spill neste som forvalg: ",
|
||||||
"Autoplay next video: ": "Autospill neste video: ",
|
"Autoplay next video: ": "Autospill neste video: ",
|
||||||
"Listen by default: ": "Lytt som forvalg: ",
|
"Listen by default: ": "Lytt som forvalg: ",
|
||||||
|
"Proxy videos? ": "Mellomtjen videoer? ",
|
||||||
"Default speed: ": "Forvalgt hastighet: ",
|
"Default speed: ": "Forvalgt hastighet: ",
|
||||||
"Preferred video quality: ": "Foretrukket videokvalitet: ",
|
"Preferred video quality: ": "Foretrukket videokvalitet: ",
|
||||||
"Player volume: ": "Avspillerlydstyrke: ",
|
"Player volume: ": "Avspillerlydstyrke: ",
|
||||||
"Default comments: ": "Forvalgte kommentarer: ",
|
"Default comments: ": "Forvalgte kommentarer: ",
|
||||||
|
"youtube": "YouTube",
|
||||||
|
"reddit": "Reddit",
|
||||||
"Default captions: ": "Forvalgte undertitler: ",
|
"Default captions: ": "Forvalgte undertitler: ",
|
||||||
"Fallback captions: ": "Tilbakefallsundertitler: ",
|
"Fallback captions: ": "Tilbakefallsundertitler: ",
|
||||||
"Show related videos? ": "Vis relaterte videoer? ",
|
"Show related videos? ": "Vis relaterte videoer? ",
|
||||||
|
"Show annotations by default? ": "Vis merknader som forvalg? ",
|
||||||
"Visual preferences": "Visuelle innstillinger",
|
"Visual preferences": "Visuelle innstillinger",
|
||||||
"Dark mode: ": "Mørk drakt: ",
|
"Dark mode: ": "Mørk drakt: ",
|
||||||
"Thin mode: ": "Tynt modus: ",
|
"Thin mode: ": "Tynt modus: ",
|
||||||
"Subscription preferences": "Abonnementsinnstillinger",
|
"Subscription preferences": "Abonnementsinnstillinger",
|
||||||
|
"Show annotations by default for subscribed channels? ": "Vis merknader som forvalg for kanaler det abonneres på? ",
|
||||||
"Redirect homepage to feed: ": "Videresend hjemmeside til flyt: ",
|
"Redirect homepage to feed: ": "Videresend hjemmeside til flyt: ",
|
||||||
"Number of videos shown in feed: ": "Antall videoer å vise i flyt: ",
|
"Number of videos shown in feed: ": "Antall videoer å vise i flyt: ",
|
||||||
"Sort videos by: ": "Sorter videoer etter: ",
|
"Sort videos by: ": "Sorter videoer etter: ",
|
||||||
@@ -74,26 +85,47 @@
|
|||||||
"Only show latest unwatched video from channel: ": "Kun vis siste usette video fra kanal: ",
|
"Only show latest unwatched video from channel: ": "Kun vis siste usette video fra kanal: ",
|
||||||
"Only show unwatched: ": "Kun vis usette: ",
|
"Only show unwatched: ": "Kun vis usette: ",
|
||||||
"Only show notifications (if there are any): ": "Kun vis merknader (hvis det er noen): ",
|
"Only show notifications (if there are any): ": "Kun vis merknader (hvis det er noen): ",
|
||||||
|
"Enable web notifications": "Skru på nettmerknader",
|
||||||
|
"`x` uploaded a video": "`x` lastet opp en video",
|
||||||
|
"`x` is live": "`x` er pålogget",
|
||||||
"Data preferences": "Datainnstillinger",
|
"Data preferences": "Datainnstillinger",
|
||||||
"Clear watch history": "Tøm visningshistorikk",
|
"Clear watch history": "Tøm visningshistorikk",
|
||||||
"Import/Export data": "Importer/eksporter data",
|
"Import/export data": "Importer/eksporter data",
|
||||||
|
"Change password": "Endre passord",
|
||||||
"Manage subscriptions": "Behandle abonnementer",
|
"Manage subscriptions": "Behandle abonnementer",
|
||||||
|
"Manage tokens": "Behandle symboler",
|
||||||
"Watch history": "Visningshistorikk",
|
"Watch history": "Visningshistorikk",
|
||||||
"Delete account": "Slett konto",
|
"Delete account": "Slett konto",
|
||||||
|
"Administrator preferences": "Administratorinnstillinger",
|
||||||
|
"Default homepage: ": "Forvalgt hjemmeside: ",
|
||||||
|
"Feed menu: ": "Flyt-meny: ",
|
||||||
|
"Top enabled? ": "Topp påskrudd? ",
|
||||||
|
"CAPTCHA enabled? ": "CAPTCHA påskrudd? ",
|
||||||
|
"Login enabled? ": "Innlogging påskrudd? ",
|
||||||
|
"Registration enabled? ": "Registrering påskrudd? ",
|
||||||
|
"Report statistics? ": "Innrapporter statistikk? ",
|
||||||
"Save preferences": "Lagre innstillinger",
|
"Save preferences": "Lagre innstillinger",
|
||||||
"Subscription manager": "Abonnementsbehandler",
|
"Subscription manager": "Abonnementsbehandler",
|
||||||
|
"Token manager": "Symbolbehandler",
|
||||||
|
"Token": "Symbol",
|
||||||
"`x` subscriptions": "`x` abonnementer",
|
"`x` subscriptions": "`x` abonnementer",
|
||||||
"Import/Export": "Importer/eksporter",
|
"`x` tokens": "`x` symboler",
|
||||||
|
"Import/export": "Importer/eksporter",
|
||||||
"unsubscribe": "opphev abonnement",
|
"unsubscribe": "opphev abonnement",
|
||||||
|
"revoke": "tilbakekall",
|
||||||
"Subscriptions": "Abonnement",
|
"Subscriptions": "Abonnement",
|
||||||
"`x` unseen notifications": "`x` usette merknader",
|
"`x` unseen notifications": "`x` usette merknader",
|
||||||
"search": "søk",
|
"search": "søk",
|
||||||
"Sign out": "Logg ut",
|
"Log out": "Logg ut",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Utgitt med AGPLv3+lisens av Omar Roth.",
|
"Released under the AGPLv3 by Omar Roth.": "Utgitt med AGPLv3+lisens av Omar Roth.",
|
||||||
"Source available here.": "Kildekode tilgjengelig her.",
|
"Source available here.": "Kildekode tilgjengelig her.",
|
||||||
"View JavaScript license information.": "Vis JavaScript-lisensinfo.",
|
"View JavaScript license information.": "Vis JavaScript-lisensinfo.",
|
||||||
|
"View privacy policy.": "Vis personvernspraksis.",
|
||||||
"Trending": "Trendsettende",
|
"Trending": "Trendsettende",
|
||||||
"Watch video on Youtube": "Vis video på YouTube",
|
"Unlisted": "Ulistet",
|
||||||
|
"Watch on YouTube": "Vis video på YouTube",
|
||||||
|
"Hide annotations": "Skjul merknader",
|
||||||
|
"Show annotations": "Vis merknader",
|
||||||
"Genre: ": "Sjanger: ",
|
"Genre: ": "Sjanger: ",
|
||||||
"License: ": "Lisens: ",
|
"License: ": "Lisens: ",
|
||||||
"Family friendly? ": "Familievennlig? ",
|
"Family friendly? ": "Familievennlig? ",
|
||||||
@@ -102,7 +134,9 @@
|
|||||||
"Whitelisted regions: ": "Hvitlistede regioner: ",
|
"Whitelisted regions: ": "Hvitlistede regioner: ",
|
||||||
"Blacklisted regions: ": "Svartelistede regioner: ",
|
"Blacklisted regions: ": "Svartelistede regioner: ",
|
||||||
"Shared `x`": "Delt `x`",
|
"Shared `x`": "Delt `x`",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it 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.",
|
"`x` views": "`x` visninger",
|
||||||
|
"Premieres in `x`": "Premiere om `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 YouTube comments": "Vis YouTube-kommentarer",
|
||||||
"View more comments on Reddit": "Vis flere kommenterer på Reddit",
|
"View more comments on Reddit": "Vis flere kommenterer på Reddit",
|
||||||
"View `x` comments": "Vis `x` kommentarer",
|
"View `x` comments": "Vis `x` kommentarer",
|
||||||
@@ -111,19 +145,19 @@
|
|||||||
"Show replies": "Vis svar",
|
"Show replies": "Vis svar",
|
||||||
"Incorrect password": "Feil passord",
|
"Incorrect password": "Feil passord",
|
||||||
"Quota exceeded, try again in a few hours": "Kvote overskredet, prøv igjen om et par timer",
|
"Quota exceeded, try again in a few hours": "Kvote overskredet, prøv igjen om et par timer",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "Kunne ikke logge inn, forsikre deg om at tofaktor-identitetsbekreftelse (Authenticator eller SMS) er skrudd på.",
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Kunne ikke logge inn, forsikre deg om at tofaktor-identitetsbekreftelse (Authenticator eller SMS) er skrudd på.",
|
||||||
"Invalid TFA code": "Ugyldig tofaktorkode",
|
"Invalid TFA code": "Ugyldig tofaktorkode",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on your account.": "Innlogging mislyktes. Dette kan være fordi tofaktor-identitetsbekreftelse er skrudd av på kontoen din.",
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Innlogging mislyktes. Dette kan være fordi tofaktor-identitetsbekreftelse er skrudd av på kontoen din.",
|
||||||
"Invalid answer": "Ugyldig svar",
|
"Wrong answer": "Ugyldig svar",
|
||||||
"Invalid CAPTCHA": "Ugyldig CAPTCHA",
|
"Erroneous CAPTCHA": "Ugyldig CAPTCHA",
|
||||||
"CAPTCHA is a required field": "CAPTCHA er et påkrevd felt",
|
"CAPTCHA is a required field": "CAPTCHA er et påkrevd felt",
|
||||||
"User ID is a required field": "Bruker-ID er et påkrevd felt",
|
"User ID is a required field": "Bruker-ID er et påkrevd felt",
|
||||||
"Password is a required field": "Passord er et påkrevd felt",
|
"Password is a required field": "Passord er et påkrevd felt",
|
||||||
"Invalid username or password": "Ugyldig brukernavn eller passord",
|
"Wrong username or password": "Ugyldig brukernavn eller passord",
|
||||||
"Please sign in using 'Sign in with Google'": "Logg inn ved bruk av \"Google-innlogging\"",
|
"Please sign in using 'Log in with Google'": "Logg inn ved bruk av \"Google-innlogging\"",
|
||||||
"Password cannot be empty": "Passordet kan ikke være tomt",
|
"Password cannot be empty": "Passordet kan ikke være tomt",
|
||||||
"Password cannot be longer than 55 characters": "Passordet kan ikke være lengre enn 55 tegn",
|
"Password cannot be longer than 55 characters": "Passordet kan ikke være lengre enn 55 tegn",
|
||||||
"Please sign in": "Logg inn",
|
"Please log in": "Logg inn",
|
||||||
"Invidious Private Feed for `x`": "Ugyldig privat flyt for `x`",
|
"Invidious Private Feed for `x`": "Ugyldig privat flyt for `x`",
|
||||||
"channel:`x`": "kanal `x`",
|
"channel:`x`": "kanal `x`",
|
||||||
"Deleted or invalid channel": "Slettet eller ugyldig kanal",
|
"Deleted or invalid channel": "Slettet eller ugyldig kanal",
|
||||||
@@ -135,15 +169,15 @@
|
|||||||
"Load more": "Last inn flere",
|
"Load more": "Last inn flere",
|
||||||
"`x` points": "`x` poeng",
|
"`x` points": "`x` poeng",
|
||||||
"Could not create mix.": "Kunne ikke opprette miks.",
|
"Could not create mix.": "Kunne ikke opprette miks.",
|
||||||
"Playlist is empty": "Spillelisten er tom",
|
"Empty playlist": "Spillelisten er tom",
|
||||||
"Invalid playlist.": "Ugyldig spilleliste.",
|
"Not a playlist.": "Ugyldig spilleliste.",
|
||||||
"Playlist does not exist.": "Spillelisten finnes ikke.",
|
"Playlist does not exist.": "Spillelisten finnes ikke.",
|
||||||
"Could not pull trending pages.": "Kunne ikke hente trendsettende sider.",
|
"Could not pull trending pages.": "Kunne ikke hente trendsettende sider.",
|
||||||
"Hidden field \"challenge\" is a required field": "Skjult felt \"utfordring\" er et påkrevd felt",
|
"Hidden field \"challenge\" is a required field": "Skjult felt \"utfordring\" er et påkrevd felt",
|
||||||
"Hidden field \"token\" is a required field": "Skjult felt \"symbol\" er et påkrevd felt",
|
"Hidden field \"token\" is a required field": "Skjult felt \"symbol\" er et påkrevd felt",
|
||||||
"Invalid challenge": "Ugyldig utfordring",
|
"Erroneous challenge": "Ugyldig utfordring",
|
||||||
"Invalid token": "Ugyldig symbol",
|
"Erroneous token": "Ugyldig symbol",
|
||||||
"Invalid user": "Ugyldig bruker",
|
"No such user": "Ugyldig bruker",
|
||||||
"Token is expired, please try again": "Symbol utløpt, prøv igjen",
|
"Token is expired, please try again": "Symbol utløpt, prøv igjen",
|
||||||
"English": "Engelsk",
|
"English": "Engelsk",
|
||||||
"English (auto-generated)": "Engelsk (auto-generert)",
|
"English (auto-generated)": "Engelsk (auto-generert)",
|
||||||
@@ -212,7 +246,7 @@
|
|||||||
"Marathi": "",
|
"Marathi": "",
|
||||||
"Mongolian": "",
|
"Mongolian": "",
|
||||||
"Nepali": "",
|
"Nepali": "",
|
||||||
"Norwegian": "Norsk bokmål",
|
"Norwegian Bokmål": "Norsk bokmål",
|
||||||
"Nyanja": "",
|
"Nyanja": "",
|
||||||
"Pashto": "",
|
"Pashto": "",
|
||||||
"Persian": "",
|
"Persian": "",
|
||||||
@@ -264,6 +298,7 @@
|
|||||||
"About": "Om",
|
"About": "Om",
|
||||||
"Rating: ": "Vurdering: ",
|
"Rating: ": "Vurdering: ",
|
||||||
"Language: ": "Språk: ",
|
"Language: ": "Språk: ",
|
||||||
|
"View as playlist": "Vis som spilleliste",
|
||||||
"Default": "Forvalg",
|
"Default": "Forvalg",
|
||||||
"Music": "Musikk",
|
"Music": "Musikk",
|
||||||
"Gaming": "Spill",
|
"Gaming": "Spill",
|
||||||
@@ -273,8 +308,11 @@
|
|||||||
"Download as: ": "Last ned som: ",
|
"Download as: ": "Last ned som: ",
|
||||||
"%A %B %-d, %Y": "",
|
"%A %B %-d, %Y": "",
|
||||||
"(edited)": "(redigert)",
|
"(edited)": "(redigert)",
|
||||||
"Youtube permalink of the comment": "Permanent YouTube-lenke til innholdet",
|
"YouTube comment permalink": "Permanent YouTube-lenke til innholdet",
|
||||||
"`x` marked it with a ❤": "`x` levnet et ❤",
|
"`x` marked it with a ❤": "`x` levnet et ❤",
|
||||||
"Audio mode": "Lydmodus",
|
"Audio mode": "Lydmodus",
|
||||||
"Video mode": "Video-modus"
|
"Video mode": "Video-modus",
|
||||||
|
"Videos": "Videoer",
|
||||||
|
"Playlists": "Spillelister",
|
||||||
|
"Current version: ": "Nåværende versjon: "
|
||||||
}
|
}
|
||||||
|
|||||||
596
locales/nl.json
596
locales/nl.json
@@ -1,280 +1,318 @@
|
|||||||
{
|
{
|
||||||
"`x` subscribers": "`x` abonnees",
|
"`x` subscribers": "`x` abonnees",
|
||||||
"`x` videos": "`x` videos",
|
"`x` videos": "`x` video's",
|
||||||
"LIVE": "LIVE",
|
"LIVE": "LIVE",
|
||||||
"Shared `x` ago": "Gedeeld `x` geleden",
|
"Shared `x` ago": "Gedeeld: `x` geleden",
|
||||||
"Unsubscribe": "Abonnement opzeggen",
|
"Unsubscribe": "Deabonneren",
|
||||||
"Subscribe": "Abonneren",
|
"Subscribe": "Abonneren",
|
||||||
"Login to subscribe to `x`": "Log in om te abonneren op `x`",
|
"View channel on YouTube": "Bekijk kanaal op YouTube",
|
||||||
"View channel on YouTube": "Bekijk kanaal op Youtube",
|
"View playlist on YouTube": "Bekijk afspeellijst op YouTube",
|
||||||
"newest": "nieuwste",
|
"newest": "nieuwste",
|
||||||
"oldest": "oudste",
|
"oldest": "oudste",
|
||||||
"popular": "populair",
|
"popular": "populair",
|
||||||
"Preview page": "Pagina voorvertonen",
|
"last": "laatste",
|
||||||
"Next page": "Volgende pagina",
|
"Next page": "Volgende pagina",
|
||||||
"Clear watch history?": "Kijk geschiedenis wissen?",
|
"Previous page": "Vorige pagina",
|
||||||
"Yes": "Ja",
|
"Clear watch history?": "Wil je de kijkgeschiedenis wissen?",
|
||||||
"No": "Nee",
|
"New password": "Nieuw wachtwoord",
|
||||||
"Import and Export Data": "Importeer en Exporteer Gegevens",
|
"New passwords must match": "De nieuwe wachtwoorden moeten overeenkomen",
|
||||||
"Import": "Importeren",
|
"Cannot change password for Google accounts": "Kan het wachtwoord van Google-accounts niet wijzigen",
|
||||||
"Import Invidious data": "Importeer Invidious gegevens",
|
"Authorize token?": "Wil je de toegangssleutel machtigen?",
|
||||||
"Import YouTube subscriptions": "Importeer Youtube abonnees",
|
"Authorize token for `x`?": "Wil je de toegangssleutel machtigen voor `x`?",
|
||||||
"Import FreeTube subscriptions (.db)": "Importeer FreeTube abonnees (.db)",
|
"Yes": "Ja",
|
||||||
"Import NewPipe subscriptions (.json)": "Importeer NewPipe abonnees (.json)",
|
"No": "Nee",
|
||||||
"Import NewPipe data (.zip)": "Importeer NewPipe gegevens (.zip)",
|
"Import and Export Data": "Gegevens im- en exporteren",
|
||||||
"Export": "Exporteren",
|
"Import": "Importeren",
|
||||||
"Export subscriptions as OPML": "Exporteer abonnees als OPML",
|
"Import Invidious data": "Invidious-gegevens importeren",
|
||||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exporteer abonnees als OPML (voor NewPipe & FreeTube)",
|
"Import YouTube subscriptions": "YouTube-abonnementen importeren",
|
||||||
"Export data as JSON": "Exporteer gegevens als JSON",
|
"Import FreeTube subscriptions (.db)": "FreeTube-abonnementen importeren (.db)",
|
||||||
"Delete account?": "Verwijder account?",
|
"Import NewPipe subscriptions (.json)": "NewPipe-abonnementen importeren (.json)",
|
||||||
"History": "Geschiedenis",
|
"Import NewPipe data (.zip)": "NewPipe-gegevens importeren (.zip)",
|
||||||
"Previous page": "Vorige pagina",
|
"Export": "Exporteren",
|
||||||
"An alternative front-end to YouTube": "Een alternatieve front-end voor YouTube",
|
"Export subscriptions as OPML": "Abonnementen exporteren als OPML",
|
||||||
"JavaScript license information": "JavaScript licentie informatie",
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Abonnementen exporteren als OPML (voor NewPipe en FreeTube)",
|
||||||
"source": "bron",
|
"Export data as JSON": "Gegevens exporteren als JSON",
|
||||||
"Login": "Inloggen",
|
"Delete account?": "Wil je je account verwijderen?",
|
||||||
"Login/Register": "Inloggen/Registreren",
|
"History": "Geschiedenis",
|
||||||
"Login to Google": "Inloggen op Google",
|
"An alternative front-end to YouTube": "Een alternatief front-end voor YouTube",
|
||||||
"User ID:": "Gebruiker ID:",
|
"JavaScript license information": "JavaScript-licentieinformatie",
|
||||||
"Password:": "Wachtwoord:",
|
"source": "bron",
|
||||||
"Time (h:mm:ss):": "Tijd (h:mm:ss):",
|
"Log in": "Inloggen",
|
||||||
"Text CAPTCHA": "Tekst CAPTCHA",
|
"Log in/register": "Inloggen/Registreren",
|
||||||
"Image CAPTCHA": "Afbeelding CAPTCHA",
|
"Log in with Google": "Inloggen met Google",
|
||||||
"Sign In": "Aanmelden",
|
"User ID": "Gebruikers-id",
|
||||||
"Register": "Registreren",
|
"Password": "Wachtwoord",
|
||||||
"Email:": "Email:",
|
"Time (h:mm:ss):": "Tijd (h:mm:ss):",
|
||||||
"Google verification code:": "Google verificatie code:",
|
"Text CAPTCHA": "Tekst-CAPTCHA",
|
||||||
"Preferences": "Voorkeuren",
|
"Image CAPTCHA": "Afbeelding-CAPTCHA",
|
||||||
"Player preferences": "Afspeler voorkeuren",
|
"Sign In": "Inloggen",
|
||||||
"Always loop: ": "Altijd herhalen: ",
|
"Register": "Registreren",
|
||||||
"Autoplay: ": "Automatisch afspelen: ",
|
"E-mail": "E-mailadres",
|
||||||
"Autoplay next video: ": "Automatisch volgende video afspelen: ",
|
"Google verification code": "Google-verificatiecode",
|
||||||
"Listen by default: ": "Standaard luisteren: ",
|
"Preferences": "Instellingen",
|
||||||
"Default speed: ": "Standaard snelheid: ",
|
"Player preferences": "Spelerinstellingen",
|
||||||
"Preferred video quality: ": "Video kwaliteit voorkeur: ",
|
"Always loop: ": "Altijd herhalen: ",
|
||||||
"Player volume: ": "Afspeler volume: ",
|
"Autoplay: ": "Automatisch afspelen: ",
|
||||||
"Default comments: ": "Standaard reacties: ",
|
"Play next by default: ": "Standaard volgende video afspelen: ",
|
||||||
"Default captions: ": "Standaard ondertitels: ",
|
"Autoplay next video: ": "Volgende video automatisch afspelen: ",
|
||||||
"Fallback captions: ": "Alternatieve ondertitels: ",
|
"Listen by default: ": "Standaard luisteren: ",
|
||||||
"Show related videos? ": "Laat gerelateerde videos zien? ",
|
"Proxy videos? ": "Video's afspelen via proxy? ",
|
||||||
"Visual preferences": "Visuele voorkeuren",
|
"Default speed: ": "Standaard afspeelsnelheid: ",
|
||||||
"Dark mode: ": "Donkere modus: ",
|
"Preferred video quality: ": "Voorkeurskwaliteit: ",
|
||||||
"Thin mode: ": "Smalle modus: ",
|
"Player volume: ": "Spelervolume: ",
|
||||||
"Subscription preferences": "Abonnement voorkeuren",
|
"Default comments: ": "Reacties tonen van: ",
|
||||||
"Redirect homepage to feed: ": "Startpagina omleiden naar feed: ",
|
"youtube": "YouTube",
|
||||||
"Number of videos shown in feed: ": "Aantal videos te zien in feed: ",
|
"reddit": "Reddit",
|
||||||
"Sort videos by: ": "Sorteer videos op: ",
|
"Default captions: ": "Standaard ondertiteling: ",
|
||||||
"published": "gepubliceerd",
|
"Fallback captions: ": "Alternatieve ondertiteling: ",
|
||||||
"published - reverse": "gepubliceerd - omgekeerd",
|
"Show related videos? ": "Gerelateerde video's tonen? ",
|
||||||
"alphabetically": "alfabetische volgorde",
|
"Show annotations by default? ": "Standaard annotaties tonen? ",
|
||||||
"alphabetically - reverse": "alfabetisch - omgekeerd",
|
"Visual preferences": "Visuele instellingen",
|
||||||
"channel name": "kanaal naam",
|
"Dark mode: ": "Donkere modus: ",
|
||||||
"channel name - reverse": "kanaal naam - omgekeerd",
|
"Thin mode: ": "Smalle modus: ",
|
||||||
"Only show latest video from channel: ": "Laat alleen laatste video van kanaal zien: ",
|
"Subscription preferences": "Abonnementsinstellingen",
|
||||||
"Only show latest unwatched video from channel: ": "Laat alleen de laatste onbekeken video zien van kanaal: ",
|
"Show annotations by default for subscribed channels? ": "Standaard annotaties tonen voor geabonneerde kanalen? ",
|
||||||
"Only show unwatched: ": "Laat alleen onbekeken videos zien: ",
|
"Redirect homepage to feed: ": "Startpagina omleiden naar feed: ",
|
||||||
"Only show notifications (if there are any): ": "Laat alleen notificaties zien (als die er zijn): ",
|
"Number of videos shown in feed: ": "Aantal te tonen video's in feed: ",
|
||||||
"Data preferences": "Gegevens voorkeuren",
|
"Sort videos by: ": "Video's sorteren op: ",
|
||||||
"Clear watch history": "Kijkgeschiedenis wissen",
|
"published": "publicatiedatum",
|
||||||
"Import/Export data": "Importeer/Exporteer gegevens",
|
"published - reverse": "publicatiedatum - omgekeerd",
|
||||||
"Manage subscriptions": "Abonnees beheren",
|
"alphabetically": "alfabetische volgorde",
|
||||||
"Watch history": "Kijkgeschiedenis",
|
"alphabetically - reverse": "alfabetische volgorde - omgekeerd",
|
||||||
"Delete account": "Account verwijderen",
|
"channel name": "kanaalnaam",
|
||||||
"Save preferences": "Opslaan voorkeuren",
|
"channel name - reverse": "kanaalnaam - omgekeerd",
|
||||||
"Subscription manager": "Abonnees beheerder",
|
"Only show latest video from channel: ": "Alleen nieuwste video van kanaal tonen: ",
|
||||||
"`x` subscriptions": "`x` abonnees",
|
"Only show latest unwatched video from channel: ": "Alleen nieuwste niet-bekeken video van kanaal tonen: ",
|
||||||
"Import/Export": "Importeer/Exporteer",
|
"Only show unwatched: ": "Alleen niet-bekeken videos tonen: ",
|
||||||
"unsubscribe": "abonnement opzeggen",
|
"Only show notifications (if there are any): ": "Alleen meldingen tonen (als die er zijn): ",
|
||||||
"Subscriptions": "Abonnees",
|
"Enable web notifications": "",
|
||||||
"`x` unseen notifications": "`x` onbekeken notificaties",
|
"`x` uploaded a video": "",
|
||||||
"search": "zoeken",
|
"`x` is live": "",
|
||||||
"Sign out": "Afmelden",
|
"Data preferences": "Gegevensinstellingen",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Uitgegeven onder AGPLv3 door Omar Roth.",
|
"Clear watch history": "Kijkgeschiedenis wissen",
|
||||||
"Source available here.": "Bron beschikbaar hier.",
|
"Import/export data": "Gegevens im-/exporteren",
|
||||||
"View JavaScript license information.": "Bekijk JavaScript licentie informatie.",
|
"Change password": "Wachtwoord wijzigen",
|
||||||
"Trending": "Trending",
|
"Manage subscriptions": "Abonnementen beheren",
|
||||||
"Watch video on Youtube": "Bekijk video op Youtube",
|
"Manage tokens": "Toegangssleutels beheren",
|
||||||
"Genre: ": "Genre: ",
|
"Watch history": "Kijkgeschiedenis",
|
||||||
"License: ": "Licentie: ",
|
"Delete account": "Account verwijderen",
|
||||||
"Family friendly? ": "Gezinsvriendelijk? ",
|
"Administrator preferences": "Beheerdersinstellingen",
|
||||||
"Wilson score: ": "Wilson score: ",
|
"Default homepage: ": "Standaard startpagina: ",
|
||||||
"Engagement: ": "Betrokkenheid: ",
|
"Feed menu: ": "Feedmenu:",
|
||||||
"Whitelisted regions: ": "Toegestane regio's: ",
|
"Top enabled? ": "Bovenkant inschakelen? ",
|
||||||
"Blacklisted regions: ": "Geblokkeerde regio's: ",
|
"CAPTCHA enabled? ": "CAPTCHA gebruiken? ",
|
||||||
"Shared `x`": "`x` gedeeld",
|
"Login enabled? ": "Inloggen toestaan? ",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "Hoi! Het lijkt erop dat je JavaScript uit hebt staan. Klik hier om de reacties te bekijken, hou er rekening mee dat het wat langer duurt om te laden.",
|
"Registration enabled? ": "Registratie toestaan? ",
|
||||||
"View YouTube comments": "Bekijk YouTube reacties",
|
"Report statistics? ": "Statistieken bijhouden? ",
|
||||||
"View more comments on Reddit": "Bekijk meer reacties op Reddit",
|
"Save preferences": "Instellingen opslaan",
|
||||||
"View `x` comments": "`x` reacties zien",
|
"Subscription manager": "Abonnementen beheren",
|
||||||
"View Reddit comments": "Bekijk Reddit reacties",
|
"Token manager": "Toegangssleutels beheren",
|
||||||
"Hide replies": "Verberg antwoorden",
|
"Token": "Toegangssleutel",
|
||||||
"Show replies": "Laat antwoorden zien",
|
"`x` subscriptions": "`x` abonnementen",
|
||||||
"Incorrect password": "Onjuist wachtwoord",
|
"`x` tokens": "`x` toegangssleutels",
|
||||||
"Quota exceeded, try again in a few hours": "Quota overschreden, probeer het over een paar uur opnieuw",
|
"Import/export": "Importeren/Exporteren",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "Niet in staat om in te loggen, zorg ervoor dat two-factor authentication (Authenticator of SMS) is ingeschakeld.",
|
"unsubscribe": "Deabonneren",
|
||||||
"Invalid TFA code": "Onjuiste TFA code",
|
"revoke": "Intrekken",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on your account.": "Aanmelden mislukt. Dit kan zijn omdat two-factor authentication niet is ingeschakeld voor uw account.",
|
"Subscriptions": "Abonnementen",
|
||||||
"Invalid answer": "Onjuist antwoord",
|
"`x` unseen notifications": "`x` ongelezen meldingen",
|
||||||
"Invalid CAPTCHA": "Onjuiste CAPTCHA",
|
"search": "zoeken",
|
||||||
"CAPTCHA is a required field": "CAPTCHA is een vereist veld",
|
"Log out": "Uitloggen",
|
||||||
"User ID is a required field": "Gebruiker ID is een vereist veld",
|
"Released under the AGPLv3 by Omar Roth.": "Uitgegeven onder de AGPLv3-licentie door Omar Roth.",
|
||||||
"Password is a required field": "Wachtwoord is een vereist veld",
|
"Source available here.": "De broncode is hier beschikbaar.",
|
||||||
"Invalid username or password": "Ongeldige gebruikersnaam of wachtwoord",
|
"View JavaScript license information.": "JavaScript-licentieinformatie tonen.",
|
||||||
"Please sign in using 'Sign in with Google'": "Meld u aan met 'Aanmelden met Google'",
|
"View privacy policy.": "Privacybeleid tonen",
|
||||||
"Password cannot be empty": "Wachtwoord mag niet leeg zijn",
|
"Trending": "Uitgelicht",
|
||||||
"Password cannot be longer than 55 characters": "Wachtwoord mag niet langer dan 55 tekens zijn",
|
"Unlisted": "Verborgen",
|
||||||
"Please sign in": "Meld u aan",
|
"Watch on YouTube": "Bekijk video op YouTube",
|
||||||
"Invidious Private Feed for `x`": "Invidious Privé Feed voor `x`",
|
"Hide annotations": "Annotaties verbergen",
|
||||||
"channel:`x`": "kanaal:`x`",
|
"Show annotations": "Annotaties tonen",
|
||||||
"Deleted or invalid channel": "Verwijderd of ongeldig kanaal",
|
"Genre: ": "Genre: ",
|
||||||
"This channel does not exist.": "Dit kanaal bestaat niet.",
|
"License: ": "Licentie: ",
|
||||||
"Could not get channel info.": "Kan kanaal informatie niet verkrijgen.",
|
"Family friendly? ": "Gezinsvriendelijk? ",
|
||||||
"Could not fetch comments": "Kan reacties niet verkrijgen",
|
"Wilson score: ": "Wilson-score: ",
|
||||||
"View `x` replies": "`x` antwoorden zien",
|
"Engagement: ": "Betrokkenheid: ",
|
||||||
"`x` ago": "`x` geleden",
|
"Whitelisted regions: ": "Toegestane regio's: ",
|
||||||
"Load more": "Meer laden",
|
"Blacklisted regions: ": "Geblokkeerde regio's: ",
|
||||||
"`x` points": "`x` punten",
|
"Shared `x`": "`x` gedeeld",
|
||||||
"Could not create mix.": "Kon mix niet maken.",
|
"`x` views": "`x` weergaven",
|
||||||
"Playlist is empty": "Afspeellijst is leeg",
|
"Premieres in `x`": "Verschijnt over `x`",
|
||||||
"Invalid playlist.": "Ongeldige afspeellijst.",
|
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Hoi! Het lijkt erop dat je JavaScript hebt uitgeschakeld. Klik hier om de reacties te bekijken. Let op: het laden duurt wat langer.",
|
||||||
"Playlist does not exist.": "Afspeellijst bestaat niet.",
|
"View YouTube comments": "YouTube-reacties tonen",
|
||||||
"Could not pull trending pages.": "Kon trending paginas niet verkrijgen.",
|
"View more comments on Reddit": "Meer reacties bekijken op Reddit",
|
||||||
"Hidden field \"challenge\" is a required field": "Verborgen veld \"uitdaging\" is een vereist veld",
|
"View `x` comments": "`x` reacties tonen",
|
||||||
"Hidden field \"token\" is a required field": "Verborgen veld \"token\" is een vereist veld",
|
"View Reddit comments": "Reddit-reacties tonen",
|
||||||
"Invalid challenge": "Ongeldige uitdaging",
|
"Hide replies": "Antwoorden verbergen",
|
||||||
"Invalid token": "Ongeldige token",
|
"Show replies": "Antwoorden tonen",
|
||||||
"Invalid user": "Ongeldige gebruiker",
|
"Incorrect password": "Wachtwoord is onjuist",
|
||||||
"Token is expired, please try again": "Token is verlopen, probeer het opnieuw",
|
"Quota exceeded, try again in a few hours": "Quota overschreden; probeer het over een paar uur opnieuw",
|
||||||
"English": "",
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Kan niet inloggen. Zorg ervoor dat authenticatie in twee stappen (Authenticator of sms) is ingeschakeld.",
|
||||||
"English (auto-generated)": "",
|
"Invalid TFA code": "Onjuiste TFA-code",
|
||||||
"Afrikaans": "",
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Inloggen mislukt. Wellicht is authenticatie in twee stappen niet ingeschakeld op je account.",
|
||||||
"Albanian": "",
|
"Wrong answer": "Onjuist antwoord",
|
||||||
"Amharic": "",
|
"Erroneous CAPTCHA": "Onjuiste CAPTCHA",
|
||||||
"Arabic": "",
|
"CAPTCHA is a required field": "CAPTCHA is vereist",
|
||||||
"Armenian": "",
|
"User ID is a required field": "Gebruikers-id is vereist",
|
||||||
"Azerbaijani": "",
|
"Password is a required field": "Wachtwoord is vereist",
|
||||||
"Bangla": "",
|
"Wrong username or password": "Onjuiste gebruikersnaam of wachtwoord",
|
||||||
"Basque": "",
|
"Please sign in using 'Log in with Google'": "Log in via 'Inloggen met Google'",
|
||||||
"Belarusian": "",
|
"Password cannot be empty": "Het wachtwoordveld mag niet leeg zijn",
|
||||||
"Bosnian": "",
|
"Password cannot be longer than 55 characters": "Het wachtwoord mag niet langer dan 55 tekens zijn",
|
||||||
"Bulgarian": "",
|
"Please log in": "Log in",
|
||||||
"Burmese": "",
|
"Invidious Private Feed for `x`": "Invidious-privéfeed van `x`",
|
||||||
"Catalan": "",
|
"channel:`x`": "kanaal:`x`",
|
||||||
"Cebuano": "",
|
"Deleted or invalid channel": "Verwijderd of niet-bestaand kanaal",
|
||||||
"Chinese (Simplified)": "",
|
"This channel does not exist.": "Dit kanaal bestaat niet.",
|
||||||
"Chinese (Traditional)": "",
|
"Could not get channel info.": "Kan geen kanaalinformatie ophalen.",
|
||||||
"Corsican": "",
|
"Could not fetch comments": "Kan reacties niet ophalen",
|
||||||
"Croatian": "",
|
"View `x` replies": "`x` antwoorden tonen",
|
||||||
"Czech": "",
|
"`x` ago": "`x` geleden",
|
||||||
"Danish": "",
|
"Load more": "Meer laden",
|
||||||
"Dutch": "",
|
"`x` points": "`x` punten",
|
||||||
"Esperanto": "",
|
"Could not create mix.": "Kan geen mix maken.",
|
||||||
"Estonian": "",
|
"Empty playlist": "Lege afspeellijst",
|
||||||
"Filipino": "",
|
"Not a playlist.": "Ongeldige afspeellijst.",
|
||||||
"Finnish": "",
|
"Playlist does not exist.": "Afspeellijst bestaat niet.",
|
||||||
"French": "",
|
"Could not pull trending pages.": "Kan uitgelichte pagina's niet ophalen.",
|
||||||
"Galician": "",
|
"Hidden field \"challenge\" is a required field": "Verborgen veld \"uitdaging\" is vereist",
|
||||||
"Georgian": "",
|
"Hidden field \"token\" is a required field": "Verborgen veld \"toegangssleutel\" is vereist",
|
||||||
"German": "",
|
"Erroneous challenge": "Ongeldige uitdaging",
|
||||||
"Greek": "",
|
"Erroneous token": "Ongeldige toegangssleutel",
|
||||||
"Gujarati": "",
|
"No such user": "Gebruiker bestaat niet",
|
||||||
"Haitian Creole": "",
|
"Token is expired, please try again": "Toegangssleutel verlopen; probeer het opnieuw",
|
||||||
"Hausa": "",
|
"English": "Engels",
|
||||||
"Hawaiian": "",
|
"English (auto-generated)": "Engels (automatisch gegenereerd)",
|
||||||
"Hebrew": "",
|
"Afrikaans": "Afrikaans",
|
||||||
"Hindi": "",
|
"Albanian": "Albanees",
|
||||||
"Hmong": "",
|
"Amharic": "Amhaars",
|
||||||
"Hungarian": "",
|
"Arabic": "Arabisch",
|
||||||
"Icelandic": "",
|
"Armenian": "Armeens",
|
||||||
"Igbo": "",
|
"Azerbaijani": "Azerbeidzjaans",
|
||||||
"Indonesian": "",
|
"Bangla": "Bangla",
|
||||||
"Irish": "",
|
"Basque": "Baskisch",
|
||||||
"Italian": "",
|
"Belarusian": "Wit-Rrussisch",
|
||||||
"Japanese": "",
|
"Bosnian": "Bosnisch",
|
||||||
"Javanese": "",
|
"Bulgarian": "Bulgaars",
|
||||||
"Kannada": "",
|
"Burmese": "Birmaans",
|
||||||
"Kazakh": "",
|
"Catalan": "Catalaans",
|
||||||
"Khmer": "",
|
"Cebuano": "Cebuano",
|
||||||
"Korean": "",
|
"Chinese (Simplified)": "Chinees (Veereenvoudigd)",
|
||||||
"Kurdish": "",
|
"Chinese (Traditional)": "Chinees (Traditioneel)",
|
||||||
"Kyrgyz": "",
|
"Corsican": "Corsicaans",
|
||||||
"Lao": "",
|
"Croatian": "Kroatisch",
|
||||||
"Latin": "",
|
"Czech": "Tsjechisch",
|
||||||
"Latvian": "",
|
"Danish": "Deens",
|
||||||
"Lithuanian": "",
|
"Dutch": "Nederlands",
|
||||||
"Luxembourgish": "",
|
"Esperanto": "Esperanto",
|
||||||
"Macedonian": "",
|
"Estonian": "Ests",
|
||||||
"Malagasy": "",
|
"Filipino": "Filipijns",
|
||||||
"Malay": "",
|
"Finnish": "Fins",
|
||||||
"Malayalam": "",
|
"French": "Frans",
|
||||||
"Maltese": "",
|
"Galician": "Galicisch",
|
||||||
"Maori": "",
|
"Georgian": "Georgisch",
|
||||||
"Marathi": "",
|
"German": "Duits",
|
||||||
"Mongolian": "",
|
"Greek": "Grieks",
|
||||||
"Nepali": "",
|
"Gujarati": "Gujarati",
|
||||||
"Norwegian": "",
|
"Haitian Creole": "Creools",
|
||||||
"Nyanja": "",
|
"Hausa": "Hausa",
|
||||||
"Pashto": "",
|
"Hawaiian": "Hawaïaans",
|
||||||
"Persian": "",
|
"Hebrew": "Heebreeuws",
|
||||||
"Polish": "",
|
"Hindi": "Hindi",
|
||||||
"Portuguese": "",
|
"Hmong": "Hmong",
|
||||||
"Punjabi": "",
|
"Hungarian": "Hongaars",
|
||||||
"Romanian": "",
|
"Icelandic": "IJslands",
|
||||||
"Russian": "",
|
"Igbo": "Igbo",
|
||||||
"Samoan": "",
|
"Indonesian": "Indonesisch",
|
||||||
"Scottish Gaelic": "",
|
"Irish": "Iers",
|
||||||
"Serbian": "",
|
"Italian": "Italiaans",
|
||||||
"Shona": "",
|
"Japanese": "Japans",
|
||||||
"Sindhi": "",
|
"Javanese": "Javaans",
|
||||||
"Sinhala": "",
|
"Kannada": "Kannada",
|
||||||
"Slovak": "",
|
"Kazakh": "Kazachs",
|
||||||
"Slovenian": "",
|
"Khmer": "Khmer",
|
||||||
"Somali": "",
|
"Korean": "Koreaans",
|
||||||
"Southern Sotho": "",
|
"Kurdish": "Koerdisch",
|
||||||
"Spanish": "",
|
"Kyrgyz": "Kirgizisch",
|
||||||
"Spanish (Latin America)": "",
|
"Lao": "Laotiaans",
|
||||||
"Sundanese": "",
|
"Latin": "Latijns",
|
||||||
"Swahili": "",
|
"Latvian": "Lets",
|
||||||
"Swedish": "",
|
"Lithuanian": "Litouws",
|
||||||
"Tajik": "",
|
"Luxembourgish": "Luxemburgs",
|
||||||
"Tamil": "",
|
"Macedonian": "Macedonisch",
|
||||||
"Telugu": "",
|
"Malagasy": "Malagassisch",
|
||||||
"Thai": "",
|
"Malay": "Maleisisch",
|
||||||
"Turkish": "",
|
"Malayalam": "Malayalam",
|
||||||
"Ukrainian": "",
|
"Maltese": "Maltees",
|
||||||
"Urdu": "",
|
"Maori": "Maorisch",
|
||||||
"Uzbek": "",
|
"Marathi": "Marathi",
|
||||||
"Vietnamese": "",
|
"Mongolian": "Mongools",
|
||||||
"Welsh": "",
|
"Nepali": "Nepalees",
|
||||||
"Western Frisian": "",
|
"Norwegian Bokmål": "Noors (Bokmål)",
|
||||||
"Xhosa": "",
|
"Nyanja": "Nyanja",
|
||||||
"Yiddish": "",
|
"Pashto": "Pashto",
|
||||||
"Yoruba": "",
|
"Persian": "Perzisch",
|
||||||
"Zulu": "",
|
"Polish": "Pools",
|
||||||
"`x` years": "`x` jaar",
|
"Portuguese": "Portugees",
|
||||||
"`x` months": "`x` maanden",
|
"Punjabi": "Punjabi",
|
||||||
"`x` weeks": "`x` weken",
|
"Romanian": "Roemeens",
|
||||||
"`x` days": "`x` dagen",
|
"Russian": "Russisch",
|
||||||
"`x` hours": "`x` uur",
|
"Samoan": "Samoaans",
|
||||||
"`x` minutes": "`x` minuten",
|
"Scottish Gaelic": "Schots-Gaelisch",
|
||||||
"`x` seconds": "`x` seconden",
|
"Serbian": "Servisch",
|
||||||
"Fallback comments: ": "",
|
"Shona": "Shona",
|
||||||
"Popular": "",
|
"Sindhi": "Sindhi",
|
||||||
"Top": "",
|
"Sinhala": "Sinhala",
|
||||||
"About": "",
|
"Slovak": "Slowaaks",
|
||||||
"Rating: ": "",
|
"Slovenian": "Sloveens",
|
||||||
"Language: ": "",
|
"Somali": "Somalisch",
|
||||||
"Default": "",
|
"Southern Sotho": "Zuid-Sotho",
|
||||||
"Music": "",
|
"Spanish": "Spaans",
|
||||||
"Gaming": "",
|
"Spanish (Latin America)": "Spaans (Latijns-Amerika)",
|
||||||
"News": "",
|
"Sundanese": "Soedanees",
|
||||||
"Movies": "",
|
"Swahili": "Swahili",
|
||||||
"Download": "",
|
"Swedish": "Zweeds",
|
||||||
"Download as: ": "",
|
"Tajik": "Tajik",
|
||||||
"%A %B %-d, %Y": "",
|
"Tamil": "Tamil",
|
||||||
"(edited)": "",
|
"Telugu": "Telugu",
|
||||||
"Youtube permalink of the comment": "",
|
"Thai": "Thaïs",
|
||||||
"`x` marked it with a ❤": "",
|
"Turkish": "Turks",
|
||||||
"Audio mode": "",
|
"Ukrainian": "Oekraïens",
|
||||||
"Video mode": ""
|
"Urdu": "Urdu",
|
||||||
}
|
"Uzbek": "Oezbeeks",
|
||||||
|
"Vietnamese": "Vietnamees",
|
||||||
|
"Welsh": "Welsh",
|
||||||
|
"Western Frisian": "Fries",
|
||||||
|
"Xhosa": "Xhosa",
|
||||||
|
"Yiddish": "Joods",
|
||||||
|
"Yoruba": "Yoruba",
|
||||||
|
"Zulu": "Zulu",
|
||||||
|
"`x` years": "`x` jaar",
|
||||||
|
"`x` months": "`x` maanden",
|
||||||
|
"`x` weeks": "`x` weken",
|
||||||
|
"`x` days": "`x` dagen",
|
||||||
|
"`x` hours": "`x` uur",
|
||||||
|
"`x` minutes": "`x` minuten",
|
||||||
|
"`x` seconds": "`x` seconden",
|
||||||
|
"Fallback comments: ": "Terugvallen op",
|
||||||
|
"Popular": "Populair",
|
||||||
|
"Top": "Top",
|
||||||
|
"About": "Over",
|
||||||
|
"Rating: ": "Waardering",
|
||||||
|
"Language: ": "Taal",
|
||||||
|
"View as playlist": "Tonen als afspeellijst",
|
||||||
|
"Default": "Standaard",
|
||||||
|
"Music": "Muziek",
|
||||||
|
"Gaming": "Gaming",
|
||||||
|
"News": "Nieuws",
|
||||||
|
"Movies": "Films",
|
||||||
|
"Download": "Downloaden",
|
||||||
|
"Download as: ": "Downloaden als: ",
|
||||||
|
"%A %B %-d, %Y": "%A %B %-d, %Y",
|
||||||
|
"(edited)": "(bewerkt)",
|
||||||
|
"YouTube comment permalink": "Link naar YouTube-reactie",
|
||||||
|
"`x` marked it with a ❤": "`x` heeft dit gemarkeerd met ❤",
|
||||||
|
"Audio mode": "Audiomodus",
|
||||||
|
"Video mode": "Videomodus",
|
||||||
|
"Videos": "Video's",
|
||||||
|
"Playlists": "Afspeellijsten",
|
||||||
|
"Current version: ": "Huidige versie: "
|
||||||
|
}
|
||||||
596
locales/pl.json
596
locales/pl.json
@@ -1,280 +1,318 @@
|
|||||||
{
|
{
|
||||||
"`x` subscribers": "`x` subskrybcji",
|
"`x` subscribers": "`x` subskrybcji",
|
||||||
"`x` videos": "`x` filmów",
|
"`x` videos": "`x` filmów",
|
||||||
"LIVE": "NA ŻYWO",
|
"LIVE": "NA ŻYWO",
|
||||||
"Shared `x` ago": "Udostępniono `x` temu",
|
"Shared `x` ago": "Udostępniono `x` temu",
|
||||||
"Unsubscribe": "Odsubskrybuj",
|
"Unsubscribe": "Odsubskrybuj",
|
||||||
"Subscribe": "Subskrybuj",
|
"Subscribe": "Subskrybuj",
|
||||||
"Login to subscribe to `x`": "Zaloguj się, aby subskrybować `x`",
|
"View channel on YouTube": "Wyświetl kanał na YouTube",
|
||||||
"View channel on YouTube": "Wyświetl kanał na YouTube",
|
"View playlist on YouTube": "",
|
||||||
"newest": "najnowsze",
|
"newest": "najnowsze",
|
||||||
"oldest": "najstarsze",
|
"oldest": "najstarsze",
|
||||||
"popular": "popularne",
|
"popular": "popularne",
|
||||||
"Preview page": "Podgląd strony",
|
"last": "ostatnie",
|
||||||
"Next page": "Następna strona",
|
"Next page": "Następna strona",
|
||||||
"Clear watch history?": "Wyczyścić historię?",
|
"Previous page": "Poprzednia strona",
|
||||||
"Yes": "Tak",
|
"Clear watch history?": "Wyczyścić historię?",
|
||||||
"No": "Nie",
|
"New password": "",
|
||||||
"Import and Export Data": "Import i eksport danych",
|
"New passwords must match": "",
|
||||||
"Import": "Import",
|
"Cannot change password for Google accounts": "",
|
||||||
"Import Invidious data": "Importuj dane Invidious",
|
"Authorize token?": "",
|
||||||
"Import YouTube subscriptions": "Importuj subskrybcje z YouTube",
|
"Authorize token for `x`?": "",
|
||||||
"Import FreeTube subscriptions (.db)": "Importuj subskrybcje z FreeTube (.db)",
|
"Yes": "Tak",
|
||||||
"Import NewPipe subscriptions (.json)": "Importuj subskrybcje z NewPipe (.json)",
|
"No": "Nie",
|
||||||
"Import NewPipe data (.zip)": "Importuj dane NewPipe (.zip)",
|
"Import and Export Data": "Import i eksport danych",
|
||||||
"Export": "Eksport",
|
"Import": "Import",
|
||||||
"Export subscriptions as OPML": "Eksportuj subskrybcje jako OPML",
|
"Import Invidious data": "Importuj dane Invidious",
|
||||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksportuj subskrybcje jako OPML (dla NewPipe i FreeTube)",
|
"Import YouTube subscriptions": "Importuj subskrybcje z YouTube",
|
||||||
"Export data as JSON": "Eksportuj dane jako JSON",
|
"Import FreeTube subscriptions (.db)": "Importuj subskrybcje z FreeTube (.db)",
|
||||||
"Delete account?": "Usunąć konto?",
|
"Import NewPipe subscriptions (.json)": "Importuj subskrybcje z NewPipe (.json)",
|
||||||
"History": "Historia",
|
"Import NewPipe data (.zip)": "Importuj dane NewPipe (.zip)",
|
||||||
"Previous page": "Poprzednia strona",
|
"Export": "Eksport",
|
||||||
"An alternative front-end to YouTube": "",
|
"Export subscriptions as OPML": "Eksportuj subskrybcje jako OPML",
|
||||||
"JavaScript license information": "Informacja o licencji JavaScript",
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksportuj subskrybcje jako OPML (dla NewPipe i FreeTube)",
|
||||||
"source": "źródło",
|
"Export data as JSON": "Eksportuj dane jako JSON",
|
||||||
"Login": "Zaloguj",
|
"Delete account?": "Usunąć konto?",
|
||||||
"Login/Register": "Zaloguj/Zarejestruj",
|
"History": "Historia",
|
||||||
"Login to Google": "Zaloguj do Google",
|
"An alternative front-end to YouTube": "Alternatywny front-end dla YouTube",
|
||||||
"User ID:": "ID użytkownika:",
|
"JavaScript license information": "Informacja o licencji JavaScript",
|
||||||
"Password:": "Hasło:",
|
"source": "źródło",
|
||||||
"Time (h:mm:ss):": "Godzina (h:mm:ss):",
|
"Log in": "Zaloguj",
|
||||||
"Text CAPTCHA": "Tekst CAPTCHA",
|
"Log in/register": "Zaloguj/Zarejestruj",
|
||||||
"Image CAPTCHA": "Obraz CAPTCHA",
|
"Log in with Google": "Zaloguj do Google",
|
||||||
"Sign In": "Zaloguj się",
|
"User ID": "ID użytkownika",
|
||||||
"Register": "Zarejestruj się",
|
"Password": "Hasło",
|
||||||
"Email:": "Email:",
|
"Time (h:mm:ss):": "Godzina (h:mm:ss):",
|
||||||
"Google verification code:": "Kod weryfikacyjny Google:",
|
"Text CAPTCHA": "Tekst CAPTCHA",
|
||||||
"Preferences": "Preferencje",
|
"Image CAPTCHA": "Obraz CAPTCHA",
|
||||||
"Player preferences": "Ustawienia odtwarzacza",
|
"Sign In": "Zaloguj się",
|
||||||
"Always loop: ": "Zawsze zapętlaj: ",
|
"Register": "Zarejestruj się",
|
||||||
"Autoplay: ": "Autoodtwarzanie: ",
|
"E-mail": "Email",
|
||||||
"Autoplay next video: ": "Odtwórz następny film: ",
|
"Google verification code": "Kod weryfikacyjny Google",
|
||||||
"Listen by default: ": "Tryb dźwiękowy: ",
|
"Preferences": "Preferencje",
|
||||||
"Default speed: ": "Domyślna prędkość: ",
|
"Player preferences": "Ustawienia odtwarzacza",
|
||||||
"Preferred video quality: ": "Preferowana jakość filmów: ",
|
"Always loop: ": "Zawsze zapętlaj: ",
|
||||||
"Player volume: ": "Głośność odtwarzacza: ",
|
"Autoplay: ": "Autoodtwarzanie: ",
|
||||||
"Default comments: ": "Domyślne komentarze: ",
|
"Play next by default: ": "",
|
||||||
"Default captions: ": "Domyślne napisy: ",
|
"Autoplay next video: ": "Odtwórz następny film: ",
|
||||||
"Fallback captions: ": "Rezerwowe napisy: ",
|
"Listen by default: ": "Tryb dźwiękowy: ",
|
||||||
"Show related videos? ": "Pokaż powiązane filmy? ",
|
"Proxy videos? ": "Filmy przez proxy? ",
|
||||||
"Visual preferences": "Preferencje Wizualne",
|
"Default speed: ": "Domyślna prędkość: ",
|
||||||
"Dark mode: ": "Ciemny motyw: ",
|
"Preferred video quality: ": "Preferowana jakość filmów: ",
|
||||||
"Thin mode: ": "Tryb minimalny: ",
|
"Player volume: ": "Głośność odtwarzacza: ",
|
||||||
"Subscription preferences": "Preferencje subskrybcji",
|
"Default comments: ": "Domyślne komentarze: ",
|
||||||
"Redirect homepage to feed: ": "Przekieruj stronę główną do subskrybcji: ",
|
"youtube": "",
|
||||||
"Number of videos shown in feed: ": "Liczba filmów widoczna na stronie subskrybcji: ",
|
"reddit": "",
|
||||||
"Sort videos by: ": "Sortuj filmy po: ",
|
"Default captions: ": "Domyślne napisy: ",
|
||||||
"published": "czasie publikacji",
|
"Fallback captions: ": "Zastępcze napisy: ",
|
||||||
"published - reverse": "czasie publikacji od najstarszych",
|
"Show related videos? ": "Pokaż powiązane filmy? ",
|
||||||
"alphabetically": "alfabetycznie",
|
"Show annotations by default? ": "",
|
||||||
"alphabetically - reverse": "alfabetycznie od tyłu",
|
"Visual preferences": "Preferencje Wizualne",
|
||||||
"channel name": "nazwie kanału",
|
"Dark mode: ": "Ciemny motyw: ",
|
||||||
"channel name - reverse": "nazwie kanału od tyłu",
|
"Thin mode: ": "Tryb minimalny: ",
|
||||||
"Only show latest video from channel: ": "Pokazuj tylko najnowszy film z kanału: ",
|
"Subscription preferences": "Preferencje subskrybcji",
|
||||||
"Only show latest unwatched video from channel: ": "Pokazuj tylko najnowszy nie obejrzany film z kanału: ",
|
"Show annotations by default for subscribed channels? ": "",
|
||||||
"Only show unwatched: ": "Pokazuj tylko nie obejrzane: ",
|
"Redirect homepage to feed: ": "Przekieruj stronę główną do subskrybcji: ",
|
||||||
"Only show notifications (if there are any): ": "Pokazuj tylko powiadomienia (jeśli są): ",
|
"Number of videos shown in feed: ": "Liczba filmów widoczna na stronie subskrybcji: ",
|
||||||
"Data preferences": "Preferencje danych",
|
"Sort videos by: ": "Sortuj filmy: ",
|
||||||
"Clear watch history": "Wyczyść historię",
|
"published": "po czasie publikacji",
|
||||||
"Import/Export data": "Import/Eksport danych",
|
"published - reverse": "po czasie publikacji od najstarszych",
|
||||||
"Manage subscriptions": "Organizuj subskrybcje",
|
"alphabetically": "alfabetycznie",
|
||||||
"Watch history": "Historia",
|
"alphabetically - reverse": "alfabetycznie od tyłu",
|
||||||
"Delete account": "Usuń konto",
|
"channel name": "po nazwie kanału",
|
||||||
"Save preferences": "Zapisz preferencje",
|
"channel name - reverse": "po nazwie kanału od tyłu",
|
||||||
"Subscription manager": "Manager subskrybcji",
|
"Only show latest video from channel: ": "Pokazuj tylko najnowszy film z kanału: ",
|
||||||
"`x` subscriptions": "`x` subskrybcji",
|
"Only show latest unwatched video from channel: ": "Pokazuj tylko najnowszy nie obejrzany film z kanału: ",
|
||||||
"Import/Export": "Import/Eksport",
|
"Only show unwatched: ": "Pokazuj tylko nie obejrzane: ",
|
||||||
"unsubscribe": "odsubskrybuj",
|
"Only show notifications (if there are any): ": "Pokazuj tylko powiadomienia (jeśli są): ",
|
||||||
"Subscriptions": "Subskrybcje",
|
"Enable web notifications": "",
|
||||||
"`x` unseen notifications": "`x` niewidzianych powiadomień",
|
"`x` uploaded a video": "",
|
||||||
"search": "szukaj",
|
"`x` is live": "",
|
||||||
"Sign out": "Wyloguj",
|
"Data preferences": "Preferencje danych",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Wydano na licencji AGPLv3 przez Omar Roth.",
|
"Clear watch history": "Wyczyść historię",
|
||||||
"Source available here.": "Kod źródłowy dostępny tutaj.",
|
"Import/export data": "Import/Eksport danych",
|
||||||
"View JavaScript license information.": "Wyświetl informację o licencji JavaScript.",
|
"Change password": "",
|
||||||
"Trending": "Na czasie",
|
"Manage subscriptions": "Organizuj subskrybcje",
|
||||||
"Watch video on Youtube": "Zobacz film na YouTube",
|
"Manage tokens": "",
|
||||||
"Genre: ": "Gatunek: ",
|
"Watch history": "Historia",
|
||||||
"License: ": "Licencja: ",
|
"Delete account": "Usuń konto",
|
||||||
"Family friendly? ": "Przyjazny rodzinie? ",
|
"Administrator preferences": "Preferencje administratora",
|
||||||
"Wilson score: ": "Punktacja Wilsona: ",
|
"Default homepage: ": "Domyślna strona główna: ",
|
||||||
"Engagement: ": "Zaangażowanie: ",
|
"Feed menu: ": "",
|
||||||
"Whitelisted regions: ": "Dostępny na obszarach: ",
|
"Top enabled? ": "",
|
||||||
"Blacklisted regions: ": "Niedostępny na obszarach: ",
|
"CAPTCHA enabled? ": "CAPTCHA aktywna? ",
|
||||||
"Shared `x`": "Udostępniono `x`",
|
"Login enabled? ": "Logowanie włączone? ",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it 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.",
|
"Registration enabled? ": "Rejestracja włączona? ",
|
||||||
"View YouTube comments": "Wyświetl komentarze z YouTube",
|
"Report statistics? ": "Raportować statystyki? ",
|
||||||
"View more comments on Reddit": "Wyświetl więcej komentarzy na Reddicie",
|
"Save preferences": "Zapisz preferencje",
|
||||||
"View `x` comments": "Wyświetl `x` komentarzy",
|
"Subscription manager": "Manager subskrybcji",
|
||||||
"View Reddit comments": "Wyświetl komentarze z Redditta",
|
"Token manager": "",
|
||||||
"Hide replies": "Ukryj odpowiedzi",
|
"Token": "",
|
||||||
"Show replies": "Pokaż odpowiedzi",
|
"`x` subscriptions": "`x` subskrybcji",
|
||||||
"Incorrect password": "Niepoprawne hasło",
|
"`x` tokens": "",
|
||||||
"Quota exceeded, try again in a few hours": "Przekroczony limit zapytań, spróbuj ponownie za kilka godzin",
|
"Import/export": "Import/Eksport",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "Nie udało się zalogować, upewnij się, że dwuetapowe uwierzytelnianie (Autentykator lub SMS) jest aktywne.",
|
"unsubscribe": "odsubskrybuj",
|
||||||
"Invalid TFA code": "Niepoprawny kod TFA",
|
"revoke": "",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on your account.": "Nie udało się zalogować. To może być spowodowane wyłączoną dwustopniową autoryzacją na twoim koncie.",
|
"Subscriptions": "Subskrybcje",
|
||||||
"Invalid answer": "Niepoprawna odpowiedź",
|
"`x` unseen notifications": "`x` nowych powiadomień",
|
||||||
"Invalid CAPTCHA": "CAPTCHA wykonane błędnie",
|
"search": "szukaj",
|
||||||
"CAPTCHA is a required field": "CAPTCHA jest polem wymaganym",
|
"Log out": "Wyloguj",
|
||||||
"User ID is a required field": "ID użytkownika jest polem wymaganym",
|
"Released under the AGPLv3 by Omar Roth.": "Wydano na licencji AGPLv3 przez Omar Roth.",
|
||||||
"Password is a required field": "Hasło jest polem wymaganym",
|
"Source available here.": "Kod źródłowy dostępny tutaj.",
|
||||||
"Invalid username or password": "Niepoprawny login lub hasło",
|
"View JavaScript license information.": "Wyświetl informację o licencji JavaScript.",
|
||||||
"Please sign in using 'Sign in with Google'": "Zaloguj się używając \"Zaloguj się przez Google\"",
|
"View privacy policy.": "Polityka prywatności.",
|
||||||
"Password cannot be empty": "Hasło nie może być puste",
|
"Trending": "Na czasie",
|
||||||
"Password cannot be longer than 55 characters": "Hasło nie może być dłuższe niż 55 znaków",
|
"Unlisted": "",
|
||||||
"Please sign in": "Proszę się zalogować",
|
"Watch on YouTube": "Zobacz film na YouTube",
|
||||||
"Invidious Private Feed for `x`": "",
|
"Hide annotations": "",
|
||||||
"channel:`x`": "kanał:`x",
|
"Show annotations": "",
|
||||||
"Deleted or invalid channel": "Usunięty lub niepoprawny kanał",
|
"Genre: ": "Gatunek: ",
|
||||||
"This channel does not exist.": "Ten kanał nie istnieje.",
|
"License: ": "Licencja: ",
|
||||||
"Could not get channel info.": "Nie udało się uzyskać informacji o kanale.",
|
"Family friendly? ": "Przyjazny rodzinie? ",
|
||||||
"Could not fetch comments": "Nie udało się pobrać komentarzy",
|
"Wilson score: ": "Punktacja Wilsona: ",
|
||||||
"View `x` replies": "Wyświetl `x` odpowiedzi",
|
"Engagement: ": "Zaangażowanie: ",
|
||||||
"`x` ago": "`x` temu",
|
"Whitelisted regions: ": "Dostępny na obszarach: ",
|
||||||
"Load more": "Wczytaj więcej",
|
"Blacklisted regions: ": "Niedostępny na obszarach: ",
|
||||||
"`x` points": "`x` punktów",
|
"Shared `x`": "Udostępniono `x`",
|
||||||
"Could not create mix.": "Nie udało się utworzyć miksu.",
|
"`x` views": "`x` wyświetleń",
|
||||||
"Playlist is empty": "Lista odtwarzania jest pusta",
|
"Premieres in `x`": "Publikacja za `x`",
|
||||||
"Invalid playlist.": "Niepoprawna lista.",
|
"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.",
|
||||||
"Playlist does not exist.": "Lista odtwarzania nie istnieje.",
|
"View YouTube comments": "Wyświetl komentarze z YouTube",
|
||||||
"Could not pull trending pages.": "Nie udało się pobrać strony na czasie.",
|
"View more comments on Reddit": "Wyświetl więcej komentarzy na Reddicie",
|
||||||
"Hidden field \"challenge\" is a required field": "Ukryte pole \"wyzwanie\" jest polem wymaganym",
|
"View `x` comments": "Wyświetl `x` komentarzy",
|
||||||
"Hidden field \"token\" is a required field": "Ukryte pole \"token\" jest polem wymaganym",
|
"View Reddit comments": "Wyświetl komentarze z Redditta",
|
||||||
"Invalid challenge": "Niepoprawne wyzwanie",
|
"Hide replies": "Ukryj odpowiedzi",
|
||||||
"Invalid token": "Niepoprawny token",
|
"Show replies": "Pokaż odpowiedzi",
|
||||||
"Invalid user": "Niepoprawny użytkownik",
|
"Incorrect password": "Niepoprawne hasło",
|
||||||
"Token is expired, please try again": "Token wygasł, spróbuj ponownie",
|
"Quota exceeded, try again in a few hours": "Przekroczony limit zapytań, spróbuj ponownie za kilka godzin",
|
||||||
"English": "",
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Nie udało się zalogować, upewnij się, że dwuetapowe uwierzytelnianie (Autentykator lub SMS) jest aktywne.",
|
||||||
"English (auto-generated)": "",
|
"Invalid TFA code": "Niepoprawny kod TFA",
|
||||||
"Afrikaans": "",
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Nie udało się zalogować. To może być spowodowane wyłączoną dwustopniową autoryzacją na twoim koncie.",
|
||||||
"Albanian": "",
|
"Wrong answer": "Niepoprawna odpowiedź",
|
||||||
"Amharic": "",
|
"Erroneous CAPTCHA": "CAPTCHA wykonane błędnie",
|
||||||
"Arabic": "",
|
"CAPTCHA is a required field": "CAPTCHA jest polem wymaganym",
|
||||||
"Armenian": "",
|
"User ID is a required field": "ID użytkownika jest polem wymaganym",
|
||||||
"Azerbaijani": "",
|
"Password is a required field": "Hasło jest polem wymaganym",
|
||||||
"Bangla": "",
|
"Wrong username or password": "Niepoprawny login lub hasło",
|
||||||
"Basque": "",
|
"Please sign in using 'Log in with Google'": "Zaloguj się używając \"Zaloguj się przez Google\"",
|
||||||
"Belarusian": "",
|
"Password cannot be empty": "Hasło nie może być puste",
|
||||||
"Bosnian": "",
|
"Password cannot be longer than 55 characters": "Hasło nie może być dłuższe niż 55 znaków",
|
||||||
"Bulgarian": "",
|
"Please log in": "Proszę się zalogować",
|
||||||
"Burmese": "",
|
"Invidious Private Feed for `x`": "",
|
||||||
"Catalan": "",
|
"channel:`x`": "kanał:`x",
|
||||||
"Cebuano": "",
|
"Deleted or invalid channel": "Usunięty lub niepoprawny kanał",
|
||||||
"Chinese (Simplified)": "",
|
"This channel does not exist.": "Ten kanał nie istnieje.",
|
||||||
"Chinese (Traditional)": "",
|
"Could not get channel info.": "Nie udało się uzyskać informacji o kanale.",
|
||||||
"Corsican": "",
|
"Could not fetch comments": "Nie udało się pobrać komentarzy",
|
||||||
"Croatian": "",
|
"View `x` replies": "Wyświetl `x` odpowiedzi",
|
||||||
"Czech": "",
|
"`x` ago": "`x` temu",
|
||||||
"Danish": "",
|
"Load more": "Wczytaj więcej",
|
||||||
"Dutch": "",
|
"`x` points": "`x` punktów",
|
||||||
"Esperanto": "",
|
"Could not create mix.": "Nie udało się utworzyć miksu.",
|
||||||
"Estonian": "",
|
"Empty playlist": "Lista odtwarzania jest pusta",
|
||||||
"Filipino": "",
|
"Not a playlist.": "Niepoprawna lista.",
|
||||||
"Finnish": "",
|
"Playlist does not exist.": "Lista odtwarzania nie istnieje.",
|
||||||
"French": "",
|
"Could not pull trending pages.": "Nie udało się pobrać strony na czasie.",
|
||||||
"Galician": "",
|
"Hidden field \"challenge\" is a required field": "Ukryte pole \"wyzwanie\" jest polem wymaganym",
|
||||||
"Georgian": "",
|
"Hidden field \"token\" is a required field": "Ukryte pole \"token\" jest polem wymaganym",
|
||||||
"German": "",
|
"Erroneous challenge": "Niepoprawne wyzwanie",
|
||||||
"Greek": "",
|
"Erroneous token": "Niepoprawny token",
|
||||||
"Gujarati": "",
|
"No such user": "Niepoprawny użytkownik",
|
||||||
"Haitian Creole": "",
|
"Token is expired, please try again": "Token wygasł, spróbuj ponownie",
|
||||||
"Hausa": "",
|
"English": "angielski",
|
||||||
"Hawaiian": "",
|
"English (auto-generated)": "angielski (automatycznie generowane)",
|
||||||
"Hebrew": "",
|
"Afrikaans": "afrykanerski",
|
||||||
"Hindi": "",
|
"Albanian": "albański",
|
||||||
"Hmong": "",
|
"Amharic": "amharski",
|
||||||
"Hungarian": "",
|
"Arabic": "arabski",
|
||||||
"Icelandic": "",
|
"Armenian": "armeński",
|
||||||
"Igbo": "",
|
"Azerbaijani": "azerski",
|
||||||
"Indonesian": "",
|
"Bangla": "bengalski",
|
||||||
"Irish": "",
|
"Basque": "baskijski",
|
||||||
"Italian": "",
|
"Belarusian": "białoruski",
|
||||||
"Japanese": "",
|
"Bosnian": "bośniacki",
|
||||||
"Javanese": "",
|
"Bulgarian": "bułgarski",
|
||||||
"Kannada": "",
|
"Burmese": "birmański",
|
||||||
"Kazakh": "",
|
"Catalan": "kataloński",
|
||||||
"Khmer": "",
|
"Cebuano": "cebuański",
|
||||||
"Korean": "",
|
"Chinese (Simplified)": "chiński (uproszczony)",
|
||||||
"Kurdish": "",
|
"Chinese (Traditional)": "chiński (tradycyjny)",
|
||||||
"Kyrgyz": "",
|
"Corsican": "korsykański",
|
||||||
"Lao": "",
|
"Croatian": "chorwacki",
|
||||||
"Latin": "",
|
"Czech": "czeski",
|
||||||
"Latvian": "",
|
"Danish": "duński",
|
||||||
"Lithuanian": "",
|
"Dutch": "holenderski",
|
||||||
"Luxembourgish": "",
|
"Esperanto": "esperanto",
|
||||||
"Macedonian": "",
|
"Estonian": "estoński",
|
||||||
"Malagasy": "",
|
"Filipino": "filipiński",
|
||||||
"Malay": "",
|
"Finnish": "fiński",
|
||||||
"Malayalam": "",
|
"French": "francuski",
|
||||||
"Maltese": "",
|
"Galician": "galicyjski",
|
||||||
"Maori": "",
|
"Georgian": "gruziński",
|
||||||
"Marathi": "",
|
"German": "niemiecki",
|
||||||
"Mongolian": "",
|
"Greek": "grecki",
|
||||||
"Nepali": "",
|
"Gujarati": "gudźarati",
|
||||||
"Norwegian": "",
|
"Haitian Creole": "kreolski haitański",
|
||||||
"Nyanja": "",
|
"Hausa": "hausa",
|
||||||
"Pashto": "",
|
"Hawaiian": "hawajski",
|
||||||
"Persian": "",
|
"Hebrew": "hebrajski",
|
||||||
"Polish": "",
|
"Hindi": "hindi",
|
||||||
"Portuguese": "",
|
"Hmong": "hmong",
|
||||||
"Punjabi": "",
|
"Hungarian": "węgierski",
|
||||||
"Romanian": "",
|
"Icelandic": "islandzki",
|
||||||
"Russian": "",
|
"Igbo": "ibo",
|
||||||
"Samoan": "",
|
"Indonesian": "indonezyjski",
|
||||||
"Scottish Gaelic": "",
|
"Irish": "irlandzki",
|
||||||
"Serbian": "",
|
"Italian": "włoski",
|
||||||
"Shona": "",
|
"Japanese": "japoński",
|
||||||
"Sindhi": "",
|
"Javanese": "jawajski",
|
||||||
"Sinhala": "",
|
"Kannada": "kannada",
|
||||||
"Slovak": "",
|
"Kazakh": "kazachski",
|
||||||
"Slovenian": "",
|
"Khmer": "khmerski",
|
||||||
"Somali": "",
|
"Korean": "koreański",
|
||||||
"Southern Sotho": "",
|
"Kurdish": "kurdyjski",
|
||||||
"Spanish": "",
|
"Kyrgyz": "kirgiski",
|
||||||
"Spanish (Latin America)": "",
|
"Lao": "laotański",
|
||||||
"Sundanese": "",
|
"Latin": "łaciński",
|
||||||
"Swahili": "",
|
"Latvian": "łotewski",
|
||||||
"Swedish": "",
|
"Lithuanian": "litewski",
|
||||||
"Tajik": "",
|
"Luxembourgish": "luksemburski",
|
||||||
"Tamil": "",
|
"Macedonian": "macedoński",
|
||||||
"Telugu": "",
|
"Malagasy": "malgaski",
|
||||||
"Thai": "",
|
"Malay": "malajski",
|
||||||
"Turkish": "",
|
"Malayalam": "malajalam",
|
||||||
"Ukrainian": "",
|
"Maltese": "maltański",
|
||||||
"Urdu": "",
|
"Maori": "maoryski",
|
||||||
"Uzbek": "",
|
"Marathi": "marathi",
|
||||||
"Vietnamese": "",
|
"Mongolian": "mongolski",
|
||||||
"Welsh": "",
|
"Nepali": "nepalski",
|
||||||
"Western Frisian": "",
|
"Norwegian Bokmål": "norweski",
|
||||||
"Xhosa": "",
|
"Nyanja": "njandża",
|
||||||
"Yiddish": "",
|
"Pashto": "paszto",
|
||||||
"Yoruba": "",
|
"Persian": "perski",
|
||||||
"Zulu": "",
|
"Polish": "polski",
|
||||||
"`x` years": "`x` lat",
|
"Portuguese": "portugalski",
|
||||||
"`x` months": "`x` miesięcy",
|
"Punjabi": "pendżabski",
|
||||||
"`x` weeks": "`x` tygodni",
|
"Romanian": "rumuński",
|
||||||
"`x` days": "`x` dni",
|
"Russian": "rosyjski",
|
||||||
"`x` hours": "`x` godzin",
|
"Samoan": "samoański",
|
||||||
"`x` minutes": "`x` minut",
|
"Scottish Gaelic": "gaelicki szkocki",
|
||||||
"`x` seconds": "`x` sekund",
|
"Serbian": "serbski",
|
||||||
"Fallback comments: ": "",
|
"Shona": "shona",
|
||||||
"Popular": "",
|
"Sindhi": "sindhi",
|
||||||
"Top": "",
|
"Sinhala": "syngaleski",
|
||||||
"About": "",
|
"Slovak": "słowacki",
|
||||||
"Rating: ": "",
|
"Slovenian": "słoweński",
|
||||||
"Language: ": "",
|
"Somali": "somalijski",
|
||||||
"Default": "",
|
"Southern Sotho": "sotho południowy",
|
||||||
"Music": "",
|
"Spanish": "hiszpański",
|
||||||
"Gaming": "",
|
"Spanish (Latin America)": "hiszpański (ameryka łacińska)",
|
||||||
"News": "",
|
"Sundanese": "sundajski",
|
||||||
"Movies": "",
|
"Swahili": "suahili",
|
||||||
"Download": "",
|
"Swedish": "szwedzki",
|
||||||
"Download as: ": "",
|
"Tajik": "tadżycki",
|
||||||
"%A %B %-d, %Y": "",
|
"Tamil": "tamilski",
|
||||||
"(edited)": "",
|
"Telugu": "telugu",
|
||||||
"Youtube permalink of the comment": "",
|
"Thai": "tajski",
|
||||||
"`x` marked it with a ❤": "",
|
"Turkish": "turecki",
|
||||||
"Audio mode": "",
|
"Ukrainian": "ukraiński",
|
||||||
"Video mode": ""
|
"Urdu": "urdu",
|
||||||
}
|
"Uzbek": "uzbecki",
|
||||||
|
"Vietnamese": "wietnamski",
|
||||||
|
"Welsh": "walijski",
|
||||||
|
"Western Frisian": "zachodniofryzyjski",
|
||||||
|
"Xhosa": "xhosa",
|
||||||
|
"Yiddish": "jidysz",
|
||||||
|
"Yoruba": "joruba",
|
||||||
|
"Zulu": "zuluski",
|
||||||
|
"`x` years": "`x` lat",
|
||||||
|
"`x` months": "`x` miesięcy",
|
||||||
|
"`x` weeks": "`x` tygodni",
|
||||||
|
"`x` days": "`x` dni",
|
||||||
|
"`x` hours": "`x` godzin",
|
||||||
|
"`x` minutes": "`x` minut",
|
||||||
|
"`x` seconds": "`x` sekund",
|
||||||
|
"Fallback comments: ": "Zastępcze komentarze: ",
|
||||||
|
"Popular": "Popularne",
|
||||||
|
"Top": "Najczęściej oglądane",
|
||||||
|
"About": "Informacje",
|
||||||
|
"Rating: ": "Ocena: ",
|
||||||
|
"Language: ": "Język: ",
|
||||||
|
"View as playlist": "Obejrzyj w playliście",
|
||||||
|
"Default": "Domyślnie",
|
||||||
|
"Music": "Muzyka",
|
||||||
|
"Gaming": "Gry",
|
||||||
|
"News": "Wiadomości",
|
||||||
|
"Movies": "Filmy",
|
||||||
|
"Download": "Pobierz",
|
||||||
|
"Download as: ": "Pobierz jako: ",
|
||||||
|
"%A %B %-d, %Y": "",
|
||||||
|
"(edited)": "(edytowany)",
|
||||||
|
"YouTube comment permalink": "Odnośnik bezpośredni do komentarza na YouTube",
|
||||||
|
"`x` marked it with a ❤": "`x` oznaczonych ❤",
|
||||||
|
"Audio mode": "Tryb audio",
|
||||||
|
"Video mode": "Tryb wideo",
|
||||||
|
"Videos": "Filmy",
|
||||||
|
"Playlists": "Playlisty",
|
||||||
|
"Current version: ": "Aktualna wersja: "
|
||||||
|
}
|
||||||
602
locales/ru.json
602
locales/ru.json
@@ -1,286 +1,318 @@
|
|||||||
{
|
{
|
||||||
"`x` subscribers": "`x` подписчиков",
|
"`x` subscribers": "`x` подписчиков",
|
||||||
"`x` videos": "`x` видео",
|
"`x` videos": "`x` видео",
|
||||||
"LIVE": "ПРЯМОЙ ЭФИР",
|
"LIVE": "ПРЯМОЙ ЭФИР",
|
||||||
"Shared `x` ago": "Опубликовано `x` назад",
|
"Shared `x` ago": "Опубликовано `x` назад",
|
||||||
"Unsubscribe": "Отписаться",
|
"Unsubscribe": "Отписаться",
|
||||||
"Subscribe": "Подписаться",
|
"Subscribe": "Подписаться",
|
||||||
"Login to subscribe to `x`": "Войти, чтобы подписаться на `x`",
|
"View channel on YouTube": "Смотреть канал на YouTube",
|
||||||
"View channel on YouTube": "Канал на YouTube",
|
"View playlist on YouTube": "",
|
||||||
"newest": "новые",
|
"newest": "самые свежие",
|
||||||
"oldest": "старые",
|
"oldest": "самые старые",
|
||||||
"popular": "популярные",
|
"popular": "популярные",
|
||||||
"Preview page": "Предварительный просмотр",
|
"last": "недавние",
|
||||||
"Next page": "Следующая страница",
|
"Next page": "Следующая страница",
|
||||||
"Clear watch history?": "Очистить историю просмотров?",
|
"Previous page": "Предыдущая страница",
|
||||||
"Yes": "Да",
|
"Clear watch history?": "Очистить историю просмотров?",
|
||||||
"No": "Нет",
|
"New password": "Новый пароль",
|
||||||
"Import and Export Data": "Импорт и экспорт данных",
|
"New passwords must match": "Новые пароли не совпадают",
|
||||||
"Import": "Импорт",
|
"Cannot change password for Google accounts": "Изменить пароль аккаунта Google невозможно",
|
||||||
"Import Invidious data": "Импортировать данные Invidious",
|
"Authorize token?": "Авторизовать токен?",
|
||||||
"Import YouTube subscriptions": "Импортировать YouTube подписки",
|
"Authorize token for `x`?": "Авторизовать токен для `x`?",
|
||||||
"Import FreeTube subscriptions (.db)": "Импортировать FreeTube подписки (.db)",
|
"Yes": "Да",
|
||||||
"Import NewPipe subscriptions (.json)": "Импортировать NewPipe подписки (.json)",
|
"No": "Нет",
|
||||||
"Import NewPipe data (.zip)": "Импортировать данные NewPipe (.zip)",
|
"Import and Export Data": "Импорт и экспорт данных",
|
||||||
"Export": "Экспорт",
|
"Import": "Импорт",
|
||||||
"Export subscriptions as OPML": "Экспортировать подписки в OPML",
|
"Import Invidious data": "Импортировать данные Invidious",
|
||||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Экспортировать подписки в OPML (для NewPipe и FreeTube)",
|
"Import YouTube subscriptions": "Импортировать подписки из YouTube",
|
||||||
"Export data as JSON": "Экспортировать данные в JSON",
|
"Import FreeTube subscriptions (.db)": "Импортировать подписки из FreeTube (.db)",
|
||||||
"Delete account?": "Удалить аккаунт?",
|
"Import NewPipe subscriptions (.json)": "Импортировать подписки из NewPipe (.json)",
|
||||||
"History": "История",
|
"Import NewPipe data (.zip)": "Импортировать данные из NewPipe (.zip)",
|
||||||
"Previous page": "Предыдущая страница",
|
"Export": "Экспорт",
|
||||||
"An alternative front-end to YouTube": "Альтернативный фронтенд для YouTube",
|
"Export subscriptions as OPML": "Экспортировать подписки в формате OPML",
|
||||||
"JavaScript license information": "Лицензии JavaScript",
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Экспортировать подписки в формате OPML (для NewPipe и FreeTube)",
|
||||||
"source": "источник",
|
"Export data as JSON": "Экспортировать данные в формате JSON",
|
||||||
"Login": "Войти",
|
"Delete account?": "Удалить аккаунт?",
|
||||||
"Login/Register": "Войти/Регистрация",
|
"History": "История",
|
||||||
"Login to Google": "Войти через Google",
|
"An alternative front-end to YouTube": "Альтернативный фронтенд для YouTube",
|
||||||
"User ID:": "ID пользователя:",
|
"JavaScript license information": "Информация о лицензиях JavaScript",
|
||||||
"Password:": "Пароль:",
|
"source": "источник",
|
||||||
"Time (h:mm:ss):": "Время (ч:мм:сс):",
|
"Log in": "Войти",
|
||||||
"Text CAPTCHA": "Текст капчи",
|
"Log in/register": "Войти или зарегистрироваться",
|
||||||
"Image CAPTCHA": "Изображение капчи",
|
"Log in with Google": "Войти через Google",
|
||||||
"Sign In": "Войти",
|
"User ID": "ID пользователя",
|
||||||
"Register": "Регистрация",
|
"Password": "Пароль",
|
||||||
"Email:": "Эл. почта:",
|
"Time (h:mm:ss):": "Время (ч:мм:сс):",
|
||||||
"Google verification code:": "Код подтверждения Google:",
|
"Text CAPTCHA": "Текст капчи",
|
||||||
"Preferences": "Настройки",
|
"Image CAPTCHA": "Изображение капчи",
|
||||||
"Player preferences": "Настройки проигрывателя",
|
"Sign In": "Войти",
|
||||||
"Always loop: ": "Всегда повторять: ",
|
"Register": "Зарегистрироваться",
|
||||||
"Autoplay: ": "Автовоспроизведение: ",
|
"E-mail": "Электронная почта",
|
||||||
"Autoplay next video: ": "Автовоспроизведение следующего видео: ",
|
"Google verification code": "Код подтверждения Google",
|
||||||
"Listen by default: ": "Режим \"только аудио\" по-умолчанию: ",
|
"Preferences": "Настройки",
|
||||||
"Default speed: ": "Скорость по-умолчанию: ",
|
"Player preferences": "Настройки проигрывателя",
|
||||||
"Preferred video quality: ": "Предпочтительное качество видео: ",
|
"Always loop: ": "Всегда повторять: ",
|
||||||
"Player volume: ": "Громкость воспроизведения: ",
|
"Autoplay: ": "Автовоспроизведение: ",
|
||||||
"Default comments: ": "Источник комментариев: ",
|
"Play next by default: ": "Всегда включать следующее видео? ",
|
||||||
"youtube": "YouTube",
|
"Autoplay next video: ": "Автопроигрывание следующего видео: ",
|
||||||
"reddit": "Reddit",
|
"Listen by default: ": "Режим «только аудио» по умолчанию: ",
|
||||||
"Default captions: ": "Субтитры по-умолчанию: ",
|
"Proxy videos? ": "Проигрывать видео через прокси? ",
|
||||||
"Fallback captions: ": "Резервные субтитры: ",
|
"Default speed: ": "Скорость видео по умолчанию: ",
|
||||||
"Show related videos? ": "Показывать похожие видео? ",
|
"Preferred video quality: ": "Предпочтительное качество видео: ",
|
||||||
"Visual preferences": "Визуальные настройки",
|
"Player volume: ": "Громкость видео: ",
|
||||||
"Dark mode: ": "Темная тема: ",
|
"Default comments: ": "Источник комментариев: ",
|
||||||
"Thin mode: ": "Облегченный режим: ",
|
"youtube": "YouTube",
|
||||||
"Subscription preferences": "Настройки подписок",
|
"reddit": "Reddit",
|
||||||
"Redirect homepage to feed: ": "Отображать ленту вместо главной страницы: ",
|
"Default captions: ": "Основной язык субтитров: ",
|
||||||
"Number of videos shown in feed: ": "Число видео в ленте: ",
|
"Fallback captions: ": "Дополнительный язык субтитров: ",
|
||||||
"Sort videos by: ": "Сортировать видео по: ",
|
"Show related videos? ": "Показывать похожие видео? ",
|
||||||
"published": "дате публикации",
|
"Show annotations by default? ": "Всегда показывать аннотации? ",
|
||||||
"published - reverse": "дате - обратный порядок",
|
"Visual preferences": "Настройки сайта",
|
||||||
"alphabetically": "алфавиту",
|
"Dark mode: ": "Тёмное оформление: ",
|
||||||
"alphabetically - reverse": "алфавиту - обратный порядок",
|
"Thin mode: ": "Облегчённое оформление: ",
|
||||||
"channel name": "имени канала",
|
"Subscription preferences": "Настройки подписок",
|
||||||
"channel name - reverse": "имени канала - обратный порядок",
|
"Show annotations by default for subscribed channels? ": "Всегда показывать аннотации в видео каналов, на которые вы подписаны? ",
|
||||||
"Only show latest video from channel: ": "Отображать только последние видео с каждого канала: ",
|
"Redirect homepage to feed: ": "Отображать видео с каналов, на которые вы подписаны, как главную страницу: ",
|
||||||
"Only show latest unwatched video from channel: ": "Отображать только непросмотренные видео с каждого канала: ",
|
"Number of videos shown in feed: ": "Число видео, на которые вы подписаны, в ленте: ",
|
||||||
"Only show unwatched: ": "Отображать только непросмотренные видео: ",
|
"Sort videos by: ": "Сортировать видео: ",
|
||||||
"Only show notifications (if there are any): ": "Отображать только оповещения (если есть): ",
|
"published": "по дате публикации",
|
||||||
"Data preferences": "Настройки данных",
|
"published - reverse": "по дате публикации в обратном порядке",
|
||||||
"Clear watch history": "Очистить историю просмотра",
|
"alphabetically": "по алфавиту",
|
||||||
"Import/Export data": "Импорт/Экспорт данных",
|
"alphabetically - reverse": "по алфавиту в обратном порядке",
|
||||||
"Manage subscriptions": "Управление подписками",
|
"channel name": "по названию канала",
|
||||||
"Watch history": "История просмотров",
|
"channel name - reverse": "по названию канала в обратном порядке",
|
||||||
"Delete account": "Удалить аккаунт",
|
"Only show latest video from channel: ": "Показывать только последние видео с каналов: ",
|
||||||
"Save preferences": "Сохранить настройки",
|
"Only show latest unwatched video from channel: ": "Показывать только непросмотренные видео с каналов: ",
|
||||||
"Subscription manager": "Менеджер подписок",
|
"Only show unwatched: ": "Показывать только непросмотренные видео: ",
|
||||||
"`x` subscriptions": "`x` подписок",
|
"Only show notifications (if there are any): ": "Показывать только оповещения, если они есть: ",
|
||||||
"Import/Export": "Импорт/Экспорт",
|
"Enable web notifications": "",
|
||||||
"unsubscribe": "отписаться",
|
"`x` uploaded a video": "",
|
||||||
"Subscriptions": "Подписки",
|
"`x` is live": "",
|
||||||
"`x` unseen notifications": "`x` новых оповещений",
|
"Data preferences": "Настройки данных",
|
||||||
"search": "поиск",
|
"Clear watch history": "Очистить историю просмотров",
|
||||||
"Sign out": "Выйти",
|
"Import/export data": "Импорт/Экспорт данных",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Распространяется Omar Roth по AGPLv3.",
|
"Change password": "Изменить пароль",
|
||||||
"Source available here.": "Исходный код доступен здесь.",
|
"Manage subscriptions": "Управлять подписками",
|
||||||
"Liberapay: ": "Liberapay: ",
|
"Manage tokens": "Управлять токенами",
|
||||||
"Patreon: ": "Patreon: ",
|
"Watch history": "История просмотров",
|
||||||
"BTC: ": "BTC: ",
|
"Delete account": "Удалить аккаунт",
|
||||||
"BCH: ": "BCH: ",
|
"Administrator preferences": "Администраторские настройки",
|
||||||
"View JavaScript license information.": "Посмотреть лицензии JavaScript кода.",
|
"Default homepage: ": "Главная страница по умолчанию: ",
|
||||||
"Trending": "В тренде",
|
"Feed menu: ": "Меню ленты видео: ",
|
||||||
"Watch video on Youtube": "Смотреть на YouTube",
|
"Top enabled? ": "Включить топ видео? ",
|
||||||
"Genre: ": "Жанр: ",
|
"CAPTCHA enabled? ": "Включить капчу? ",
|
||||||
"License: ": "Лицензия: ",
|
"Login enabled? ": "Включить авторизацию? ",
|
||||||
"Family friendly? ": "Семейный просмотр: ",
|
"Registration enabled? ": "Включить регистрацию? ",
|
||||||
"Wilson score: ": "Рейтинг Вильсона: ",
|
"Report statistics? ": "Сообщать статистику? ",
|
||||||
"Engagement: ": "Вовлеченность: ",
|
"Save preferences": "Сохранить настройки",
|
||||||
"Whitelisted regions: ": "Доступно для: ",
|
"Subscription manager": "Менеджер подписок",
|
||||||
"Blacklisted regions: ": "Недоступно для: ",
|
"Token manager": "Менеджер токенов",
|
||||||
"Shared `x`": "Опубликовано `x`",
|
"Token": "Токен",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "Похоже, что у Вас отключен JavaScript. Нажмите сюда, чтобы увидеть комментарии (учтите, что они могут загружаться дольше).",
|
"`x` subscriptions": "`x` подписок",
|
||||||
"View YouTube comments": "Смотреть комментарии с YouTube",
|
"`x` tokens": "`x` токенов",
|
||||||
"View more comments on Reddit": "Больше комментариев на Reddit",
|
"Import/export": "Импорт и экспорт",
|
||||||
"View `x` comments": "Показать `x` комментариев",
|
"unsubscribe": "отписаться",
|
||||||
"View Reddit comments": "Смотреть комментарии с Reddit",
|
"revoke": "отозвать",
|
||||||
"Hide replies": "Скрыть ответы",
|
"Subscriptions": "Подписки",
|
||||||
"Show replies": "Показать ответы",
|
"`x` unseen notifications": "`x` непросмотренных оповещений",
|
||||||
"Incorrect password": "Неправильный пароль",
|
"search": "поиск",
|
||||||
"Quota exceeded, try again in a few hours": "Превышена квота, попробуйте снова через несколько часов",
|
"Log out": "Выйти",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "Вход не выполнен, проверьте, не включена ли двухфакторная аутентификация.",
|
"Released under the AGPLv3 by Omar Roth.": "Реализовано Омаром Ротом по лицензии AGPLv3.",
|
||||||
"Invalid TFA code": "Неправильный TFA код",
|
"Source available here.": "Исходный код доступен здесь.",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on your account.": "Не удалось войти. Это может быть из-за того, что в вашем аккаунте не включена двухфакторная аутентификация.",
|
"View JavaScript license information.": "Посмотреть информацию по лицензии JavaScript.",
|
||||||
"Invalid answer": "Неверный ответ",
|
"View privacy policy.": "Посмотреть политику конфиденциальности.",
|
||||||
"Invalid CAPTCHA": "Неверная капча",
|
"Trending": "В тренде",
|
||||||
"CAPTCHA is a required field": "Необходимо ввести капчу",
|
"Unlisted": "Нет в списке",
|
||||||
"User ID is a required field": "Необходимо ввести идентификатор пользователя",
|
"Watch on YouTube": "Смотреть на YouTube",
|
||||||
"Password is a required field": "Необходимо ввести пароль",
|
"Hide annotations": "Скрыть аннотации",
|
||||||
"Invalid username or password": "Недопустимый пароль или имя пользователя",
|
"Show annotations": "Показать аннотации",
|
||||||
"Please sign in using 'Sign in with Google'": "Пожалуйста войдите через Google",
|
"Genre: ": "Жанр: ",
|
||||||
"Password cannot be empty": "Пароль не может быть пустым",
|
"License: ": "Лицензия: ",
|
||||||
"Password cannot be longer than 55 characters": "Пароль не может быть длиннее 55 символов",
|
"Family friendly? ": "Семейный просмотр: ",
|
||||||
"Please sign in": "Пожалуйста, войдите",
|
"Wilson score: ": "Рейтинг Уилсона: ",
|
||||||
"Invidious Private Feed for `x`": "Приватная лента Invidious для `x`",
|
"Engagement: ": "Вовлечённость: ",
|
||||||
"channel:`x`": "канал: `x`",
|
"Whitelisted regions: ": "Доступно в регионах: ",
|
||||||
"Deleted or invalid channel": "Канал удален или не найден",
|
"Blacklisted regions: ": "Недоступно в регионах: ",
|
||||||
"This channel does not exist.": "Такой канал не существует.",
|
"Shared `x`": "Опубликовано `x`",
|
||||||
"Could not get channel info.": "Невозможно получить информацию о канале.",
|
"`x` views": "`x` просмотров",
|
||||||
"Could not fetch comments": "Невозможно получить комментарии",
|
"Premieres in `x`": "Премьера через `x`",
|
||||||
"View `x` replies": "Показать `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. Чтобы увидить комментарии, нажмите сюда, но учтите: они могут загружаться немного медленнее.",
|
||||||
"`x` ago": "`x` назад",
|
"View YouTube comments": "Смотреть комментарии с YouTube",
|
||||||
"Load more": "Загрузить больше",
|
"View more comments on Reddit": "Посмотреть больше комментариев на Reddit",
|
||||||
"`x` points": "`x` очков",
|
"View `x` comments": "Показать `x` комментариев",
|
||||||
"Could not create mix.": "Невозможно создать \"микс\".",
|
"View Reddit comments": "Смотреть комментарии с Reddit",
|
||||||
"Playlist is empty": "Плейлист пуст",
|
"Hide replies": "Скрыть ответы",
|
||||||
"Invalid playlist.": "Некорректный плейлист.",
|
"Show replies": "Показать ответы",
|
||||||
"Playlist does not exist.": "Плейлист не существует.",
|
"Incorrect password": "Неправильный пароль",
|
||||||
"Could not pull trending pages.": "Невозможно получить страницы \"в тренде\".",
|
"Quota exceeded, try again in a few hours": "Лимит превышен, попробуйте снова через несколько часов",
|
||||||
"Hidden field \"challenge\" is a required field": "Необходимо заполнить скрытое поле \"challenge\"",
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Войти не удаётся. Проверьте, не включена ли двухфакторная аутентификация (по коду или смс).",
|
||||||
"Hidden field \"token\" is a required field": "Необходимо заполнить скрытое поле \"токен\"",
|
"Invalid TFA code": "Неправильный код двухфакторной аутентификации",
|
||||||
"Invalid challenge": "Неправильный ответ в \"challenge\"",
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Не удаётся войти. Это может быть из-за того, что в вашем аккаунте не включена двухфакторная аутентификация.",
|
||||||
"Invalid token": "Неправильный токен",
|
"Wrong answer": "Неправильный ответ",
|
||||||
"Invalid user": "Недопустимое имя пользователя",
|
"Erroneous CAPTCHA": "Неправильная капча",
|
||||||
"Token is expired, please try again": "Срок действия токена истек, попробуйте позже",
|
"CAPTCHA is a required field": "Необходимо пройти капчу",
|
||||||
"English": "Английский",
|
"User ID is a required field": "Необходимо ввести ID пользователя",
|
||||||
"English (auto-generated)": "Английский (созданы автоматически)",
|
"Password is a required field": "Необходимо ввести пароль",
|
||||||
"Afrikaans": "Африкаанс",
|
"Wrong username or password": "Неправильный логин или пароль",
|
||||||
"Albanian": "Албанский",
|
"Please sign in using 'Log in with Google'": "Пожалуйста, нажмите «Войти через Google»",
|
||||||
"Amharic": "Амхарский",
|
"Password cannot be empty": "Пароль не может быть пустым",
|
||||||
"Arabic": "Арабский",
|
"Password cannot be longer than 55 characters": "Пароль не может быть длиннее 55 символов",
|
||||||
"Armenian": "Армянский",
|
"Please log in": "Пожалуйста, войдите",
|
||||||
"Azerbaijani": "Азербайджанский",
|
"Invidious Private Feed for `x`": "Приватная лента Invidious для `x`",
|
||||||
"Bangla": "",
|
"channel:`x`": "канал: `x`",
|
||||||
"Basque": "",
|
"Deleted or invalid channel": "Канал удалён или не найден",
|
||||||
"Belarusian": "",
|
"This channel does not exist.": "Такого канала не существует.",
|
||||||
"Bosnian": "",
|
"Could not get channel info.": "Не удаётся получить информацию об этом канале.",
|
||||||
"Bulgarian": "",
|
"Could not fetch comments": "Не удаётся загрузить комментарии",
|
||||||
"Burmese": "",
|
"View `x` replies": "Показать `x` ответов",
|
||||||
"Catalan": "",
|
"`x` ago": "`x` назад",
|
||||||
"Cebuano": "",
|
"Load more": "Загрузить больше",
|
||||||
"Chinese (Simplified)": "",
|
"`x` points": "`x` очков",
|
||||||
"Chinese (Traditional)": "",
|
"Could not create mix.": "Не удаётся создать микс.",
|
||||||
"Corsican": "",
|
"Empty playlist": "Плейлист пуст",
|
||||||
"Croatian": "",
|
"Not a playlist.": "Некорректный плейлист.",
|
||||||
"Czech": "",
|
"Playlist does not exist.": "Плейлист не существует.",
|
||||||
"Danish": "",
|
"Could not pull trending pages.": "Не удаётся загрузить страницы «в тренде».",
|
||||||
"Dutch": "",
|
"Hidden field \"challenge\" is a required field": "Необходимо заполнить скрытое поле «challenge»",
|
||||||
"Esperanto": "",
|
"Hidden field \"token\" is a required field": "Необходимо заполнить скрытое поле «токен»",
|
||||||
"Estonian": "",
|
"Erroneous challenge": "Неправильный ответ в «challenge»",
|
||||||
"Filipino": "",
|
"Erroneous token": "Неправильный токен",
|
||||||
"Finnish": "",
|
"No such user": "Недопустимое имя пользователя",
|
||||||
"French": "",
|
"Token is expired, please try again": "Срок действия токена истёк, попробуйте позже",
|
||||||
"Galician": "",
|
"English": "Английский",
|
||||||
"Georgian": "",
|
"English (auto-generated)": "Английский (созданы автоматически)",
|
||||||
"German": "",
|
"Afrikaans": "Африкаанс",
|
||||||
"Greek": "",
|
"Albanian": "Албанский",
|
||||||
"Gujarati": "",
|
"Amharic": "Амхарский",
|
||||||
"Haitian Creole": "",
|
"Arabic": "Арабский",
|
||||||
"Hausa": "",
|
"Armenian": "Армянский",
|
||||||
"Hawaiian": "",
|
"Azerbaijani": "Азербайджанский",
|
||||||
"Hebrew": "",
|
"Bangla": "Бенгальский",
|
||||||
"Hindi": "",
|
"Basque": "Баскский",
|
||||||
"Hmong": "",
|
"Belarusian": "Белорусский",
|
||||||
"Hungarian": "",
|
"Bosnian": "Боснийский",
|
||||||
"Icelandic": "",
|
"Bulgarian": "Болгарский",
|
||||||
"Igbo": "",
|
"Burmese": "Бирманский",
|
||||||
"Indonesian": "",
|
"Catalan": "Каталонский",
|
||||||
"Irish": "",
|
"Cebuano": "Себуанский",
|
||||||
"Italian": "",
|
"Chinese (Simplified)": "Китайский (упрощенный)",
|
||||||
"Japanese": "",
|
"Chinese (Traditional)": "Китайский (традиционный)",
|
||||||
"Javanese": "",
|
"Corsican": "Корсиканский",
|
||||||
"Kannada": "",
|
"Croatian": "Хорватский",
|
||||||
"Kazakh": "",
|
"Czech": "Чешский",
|
||||||
"Khmer": "",
|
"Danish": "Датский",
|
||||||
"Korean": "",
|
"Dutch": "Нидерландский",
|
||||||
"Kurdish": "",
|
"Esperanto": "Эсперанто",
|
||||||
"Kyrgyz": "",
|
"Estonian": "Эстонский",
|
||||||
"Lao": "",
|
"Filipino": "Филиппинский",
|
||||||
"Latin": "",
|
"Finnish": "Финский",
|
||||||
"Latvian": "",
|
"French": "Французский",
|
||||||
"Lithuanian": "",
|
"Galician": "Галисийский",
|
||||||
"Luxembourgish": "",
|
"Georgian": "Грузинский",
|
||||||
"Macedonian": "",
|
"German": "Немецкий",
|
||||||
"Malagasy": "",
|
"Greek": "Греческий",
|
||||||
"Malay": "",
|
"Gujarati": "Гуджаратский",
|
||||||
"Malayalam": "",
|
"Haitian Creole": "Гаит. креольский",
|
||||||
"Maltese": "",
|
"Hausa": "Хауса",
|
||||||
"Maori": "",
|
"Hawaiian": "Гавайский",
|
||||||
"Marathi": "",
|
"Hebrew": "Иврит",
|
||||||
"Mongolian": "",
|
"Hindi": "Хинди",
|
||||||
"Nepali": "",
|
"Hmong": "Хмонг (мяо)",
|
||||||
"Norwegian": "",
|
"Hungarian": "Венгерский",
|
||||||
"Nyanja": "",
|
"Icelandic": "Исландский",
|
||||||
"Pashto": "",
|
"Igbo": "Игбо",
|
||||||
"Persian": "",
|
"Indonesian": "Индонезийский",
|
||||||
"Polish": "",
|
"Irish": "Ирландский",
|
||||||
"Portuguese": "",
|
"Italian": "Итальянский",
|
||||||
"Punjabi": "",
|
"Japanese": "Японский",
|
||||||
"Romanian": "",
|
"Javanese": "Яванский",
|
||||||
"Russian": "",
|
"Kannada": "Каннада",
|
||||||
"Samoan": "",
|
"Kazakh": "Казахский",
|
||||||
"Scottish Gaelic": "",
|
"Khmer": "Кхмерский",
|
||||||
"Serbian": "",
|
"Korean": "Корейский",
|
||||||
"Shona": "",
|
"Kurdish": "Курдский",
|
||||||
"Sindhi": "",
|
"Kyrgyz": "Киргизский",
|
||||||
"Sinhala": "",
|
"Lao": "Лаосский",
|
||||||
"Slovak": "",
|
"Latin": "Латинский",
|
||||||
"Slovenian": "",
|
"Latvian": "Латышский",
|
||||||
"Somali": "",
|
"Lithuanian": "Литовский",
|
||||||
"Southern Sotho": "",
|
"Luxembourgish": "Люксембургский",
|
||||||
"Spanish": "",
|
"Macedonian": "Македонский",
|
||||||
"Spanish (Latin America)": "",
|
"Malagasy": "Малагасийский",
|
||||||
"Sundanese": "",
|
"Malay": "Малайский",
|
||||||
"Swahili": "",
|
"Malayalam": "Малаялам",
|
||||||
"Swedish": "",
|
"Maltese": "Мальтийский",
|
||||||
"Tajik": "",
|
"Maori": "Маори",
|
||||||
"Tamil": "",
|
"Marathi": "Маратхи",
|
||||||
"Telugu": "",
|
"Mongolian": "Монгольская",
|
||||||
"Thai": "",
|
"Nepali": "Непальский",
|
||||||
"Turkish": "",
|
"Norwegian Bokmål": "Норвежский",
|
||||||
"Ukrainian": "",
|
"Nyanja": "Ньянджа",
|
||||||
"Urdu": "",
|
"Pashto": "Пушту",
|
||||||
"Uzbek": "",
|
"Persian": "Персидский",
|
||||||
"Vietnamese": "",
|
"Polish": "Польский",
|
||||||
"Welsh": "",
|
"Portuguese": "Португальский",
|
||||||
"Western Frisian": "",
|
"Punjabi": "Панджаби",
|
||||||
"Xhosa": "",
|
"Romanian": "Румынский",
|
||||||
"Yiddish": "",
|
"Russian": "Русский",
|
||||||
"Yoruba": "",
|
"Samoan": "Самоанский",
|
||||||
"Zulu": "Зулусский",
|
"Scottish Gaelic": "Шотландский (гэльский)",
|
||||||
"`x` years": "`x` лет",
|
"Serbian": "Сербский",
|
||||||
"`x` months": "`x` месяцев",
|
"Shona": "Шона",
|
||||||
"`x` weeks": "`x` недель",
|
"Sindhi": "Синдхи",
|
||||||
"`x` days": "`x` дней",
|
"Sinhala": "Сингальский",
|
||||||
"`x` hours": "`x` часов",
|
"Slovak": "Словацкий",
|
||||||
"`x` minutes": "`x` минут",
|
"Slovenian": "Словенский",
|
||||||
"`x` seconds": "`x` секунд",
|
"Somali": "Сомалийский",
|
||||||
"Fallback comments: ": "Резервные комментарии: ",
|
"Southern Sotho": "Сесото (южный сото)",
|
||||||
"Popular": "Популярное",
|
"Spanish": "Испанский",
|
||||||
"Top": "Топ",
|
"Spanish (Latin America)": "Испанский (Латинская Америка)",
|
||||||
"About": "О сайте",
|
"Sundanese": "Сунданский",
|
||||||
"Rating: ": "Рейтинг: ",
|
"Swahili": "Суахили",
|
||||||
"Language: ": "Язык: ",
|
"Swedish": "Шведский",
|
||||||
"Default": "По-умолчанию",
|
"Tajik": "Таджикский",
|
||||||
"Music": "Музыка",
|
"Tamil": "Тамильский",
|
||||||
"Gaming": "Игры",
|
"Telugu": "Телугу",
|
||||||
"News": "Новости",
|
"Thai": "Тайский",
|
||||||
"Movies": "Фильмы",
|
"Turkish": "Турецкий",
|
||||||
"Download": "Скачать",
|
"Ukrainian": "Украинский",
|
||||||
"Download as: ": "Скачать как: ",
|
"Urdu": "Урду",
|
||||||
"%A %B %-d, %Y": "%-d %B %Y, %A",
|
"Uzbek": "Узбекский",
|
||||||
"(edited)": "(изменено)",
|
"Vietnamese": "Вьетнамский",
|
||||||
"Youtube permalink of the comment": "Прямая ссылка на YouTube",
|
"Welsh": "Валлийский",
|
||||||
"`x` marked it with a ❤": "❤ от автора канала \"`x`\"",
|
"Western Frisian": "Западнофризский",
|
||||||
"Audio mode": "",
|
"Xhosa": "Коса",
|
||||||
"Video mode": ""
|
"Yiddish": "Идиш",
|
||||||
}
|
"Yoruba": "Йоруба",
|
||||||
|
"Zulu": "Зулусский",
|
||||||
|
"`x` years": "`x` лет",
|
||||||
|
"`x` months": "`x` месяцев",
|
||||||
|
"`x` weeks": "`x` недель",
|
||||||
|
"`x` days": "`x` дней",
|
||||||
|
"`x` hours": "`x` часов",
|
||||||
|
"`x` minutes": "`x` минут",
|
||||||
|
"`x` seconds": "`x` секунд",
|
||||||
|
"Fallback comments: ": "Резервные комментарии: ",
|
||||||
|
"Popular": "Популярное",
|
||||||
|
"Top": "Топ",
|
||||||
|
"About": "О сайте",
|
||||||
|
"Rating: ": "Рейтинг: ",
|
||||||
|
"Language: ": "Язык: ",
|
||||||
|
"View as playlist": "Смотреть как плейлист",
|
||||||
|
"Default": "По-умолчанию",
|
||||||
|
"Music": "Музыка",
|
||||||
|
"Gaming": "Игры",
|
||||||
|
"News": "Новости",
|
||||||
|
"Movies": "Фильмы",
|
||||||
|
"Download": "Скачать",
|
||||||
|
"Download as: ": "Скачать как: ",
|
||||||
|
"%A %B %-d, %Y": "%-d %B %Y, %A",
|
||||||
|
"(edited)": "(изменено)",
|
||||||
|
"YouTube comment permalink": "Прямая ссылка на YouTube",
|
||||||
|
"`x` marked it with a ❤": "❤ от автора канала \"`x`\"",
|
||||||
|
"Audio mode": "Аудио режим",
|
||||||
|
"Video mode": "Видео режим",
|
||||||
|
"Videos": "Видео",
|
||||||
|
"Playlists": "Плейлисты",
|
||||||
|
"Current version: ": "Текущая версия: "
|
||||||
|
}
|
||||||
318
locales/uk.json
Normal file
318
locales/uk.json
Normal file
@@ -0,0 +1,318 @@
|
|||||||
|
{
|
||||||
|
"`x` subscribers": "`x` підписників",
|
||||||
|
"`x` videos": "`x` відео",
|
||||||
|
"LIVE": "ПРЯМИЙ ЕФІР",
|
||||||
|
"Shared `x` ago": "Розміщено `x` назад",
|
||||||
|
"Unsubscribe": "Відписатися",
|
||||||
|
"Subscribe": "Підписатися",
|
||||||
|
"View channel on YouTube": "Подивитися канал на YouTube",
|
||||||
|
"View playlist on 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": "Текст капчі",
|
||||||
|
"Image 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": "Налаштування сайту",
|
||||||
|
"Dark mode: ": "Темне оформлення: ",
|
||||||
|
"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` підписка / підписок / підписки",
|
||||||
|
"`x` tokens": "`x` токенів",
|
||||||
|
"Import/export": "Імпорт і експорт",
|
||||||
|
"unsubscribe": "відписатися",
|
||||||
|
"revoke": "скасувати",
|
||||||
|
"Subscriptions": "Підписки",
|
||||||
|
"`x` unseen notifications": "`x` непереглянуте сповіщення / непереглянутих сповіщень / непереглянутих сповіщення",
|
||||||
|
"search": "пошук",
|
||||||
|
"Log out": "Вийти",
|
||||||
|
"Released under the AGPLv3 by Omar Roth.": "Реалізовано Омаром Ротом за ліцензією AGPLv3.",
|
||||||
|
"Source available here.": "Програмний код доступний тут.",
|
||||||
|
"View JavaScript license information.": "Переглянути інформацію щодо ліцензії JavaScript.",
|
||||||
|
"View privacy policy.": "Переглянути політику приватності.",
|
||||||
|
"Trending": "У тренді",
|
||||||
|
"Unlisted": "Немає в списку",
|
||||||
|
"Watch on YouTube": "Дивитися на YouTube",
|
||||||
|
"Hide annotations": "Приховати анотації",
|
||||||
|
"Show annotations": "Показати анотації",
|
||||||
|
"Genre: ": "Жанр: ",
|
||||||
|
"License: ": "Ліцензія: ",
|
||||||
|
"Family friendly? ": "Перегляд із родиною? ",
|
||||||
|
"Wilson score: ": "Рейтинг Вілсона: ",
|
||||||
|
"Engagement: ": "Залученість: ",
|
||||||
|
"Whitelisted regions: ": "Доступно у регіонах: ",
|
||||||
|
"Blacklisted regions: ": "Недоступно у регіонах: ",
|
||||||
|
"Shared `x`": "Розміщено `x`",
|
||||||
|
"`x` views": "`x` переглядів",
|
||||||
|
"Premieres in `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": "Неправильний код двофакторної аутентифікації",
|
||||||
|
"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": "Необхідно ввести 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`": "Приватний поток відео Invidious для `x`",
|
||||||
|
"channel:`x`": "канал: `x`",
|
||||||
|
"Deleted or invalid channel": "Канал видалено або не знайдено",
|
||||||
|
"This channel does not exist.": "Такого каналу не існує.",
|
||||||
|
"Could not get channel info.": "Не вдається отримати інформацію щодо цього каналу.",
|
||||||
|
"Could not fetch comments": "Не вдається завантажити коментарі",
|
||||||
|
"View `x` replies": "Переглянути `x` відповідь / відповідей / відповіді",
|
||||||
|
"`x` ago": "`x` тому",
|
||||||
|
"Load more": "Завантажити більше",
|
||||||
|
"`x` points": "`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": "Недійсний токен",
|
||||||
|
"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` років",
|
||||||
|
"`x` months": "`x` місяців",
|
||||||
|
"`x` weeks": "`x` тижнів",
|
||||||
|
"`x` days": "`x` днів",
|
||||||
|
"`x` hours": "`x` годин",
|
||||||
|
"`x` minutes": "`x` хвилин",
|
||||||
|
"`x` seconds": "`x` секунд",
|
||||||
|
"Fallback comments: ": "Резервні коментарі: ",
|
||||||
|
"Popular": "Популярне",
|
||||||
|
"Top": "Топ",
|
||||||
|
"About": "Про сайт",
|
||||||
|
"Rating: ": "Рейтинг: ",
|
||||||
|
"Language: ": "Мова: ",
|
||||||
|
"View as playlist": "Дивитися як плейлист",
|
||||||
|
"Default": "Усталено",
|
||||||
|
"Music": "Музика",
|
||||||
|
"Gaming": "Ігри",
|
||||||
|
"News": "Новини",
|
||||||
|
"Movies": "Фільми",
|
||||||
|
"Download": "Завантажити",
|
||||||
|
"Download as: ": "Завантажити як: ",
|
||||||
|
"%A %B %-d, %Y": "%-d %B %Y, %A",
|
||||||
|
"(edited)": "(змінено)",
|
||||||
|
"YouTube comment permalink": "Пряме посилання на коментар в YouTube",
|
||||||
|
"`x` marked it with a ❤": "❤ цьому від каналу `x`",
|
||||||
|
"Audio mode": "Аудіорежим",
|
||||||
|
"Video mode": "Відеорежим",
|
||||||
|
"Videos": "Відео",
|
||||||
|
"Playlists": "Плейлисти",
|
||||||
|
"Current version: ": "Поточна версія: "
|
||||||
|
}
|
||||||
BIN
screenshots/native_notification.png
Normal file
BIN
screenshots/native_notification.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
@@ -1,24 +1,21 @@
|
|||||||
name: invidious
|
name: invidious
|
||||||
version: 0.14.0
|
version: 0.18.0
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- Omar Roth <omarroth@hotmail.com>
|
- Omar Roth <omarroth@protonmail.com>
|
||||||
|
|
||||||
targets:
|
targets:
|
||||||
invidious:
|
invidious:
|
||||||
main: src/invidious.cr
|
main: src/invidious.cr
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
detect_language:
|
|
||||||
github: detectlanguage/detectlanguage-crystal
|
|
||||||
kemal:
|
kemal:
|
||||||
github: kemalcr/kemal
|
github: kemalcr/kemal
|
||||||
commit: afd17fc
|
|
||||||
pg:
|
pg:
|
||||||
github: will/crystal-pg
|
github: will/crystal-pg
|
||||||
sqlite3:
|
sqlite3:
|
||||||
github: crystal-lang/crystal-sqlite3
|
github: crystal-lang/crystal-sqlite3
|
||||||
|
|
||||||
crystal: 0.27.1
|
crystal: 0.28.0
|
||||||
|
|
||||||
license: AGPLv3
|
license: AGPLv3
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
require "kemal"
|
require "kemal"
|
||||||
|
require "openssl/hmac"
|
||||||
require "pg"
|
require "pg"
|
||||||
require "spec"
|
require "spec"
|
||||||
require "yaml"
|
require "yaml"
|
||||||
require "../src/invidious/helpers/*"
|
require "../src/invidious/helpers/*"
|
||||||
require "../src/invidious/channels"
|
require "../src/invidious/channels"
|
||||||
|
require "../src/invidious/comments"
|
||||||
require "../src/invidious/playlists"
|
require "../src/invidious/playlists"
|
||||||
require "../src/invidious/search"
|
require "../src/invidious/search"
|
||||||
|
require "../src/invidious/users"
|
||||||
|
|
||||||
describe "Helpers" do
|
describe "Helper" do
|
||||||
describe "#produce_channel_videos_url" do
|
describe "#produce_channel_videos_url" do
|
||||||
it "correctly produces url for requesting page `x` of a channel's videos" do
|
it "correctly produces url for requesting page `x` of a channel's videos" do
|
||||||
produce_channel_videos_url(ucid: "UCXuqSBlHAE6Xw-yeJA0Tunw").should eq("/browse_ajax?continuation=4qmFsgI8EhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncaIEVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQUFlZ0V4&gl=US&hl=en")
|
produce_channel_videos_url(ucid: "UCXuqSBlHAE6Xw-yeJA0Tunw").should eq("/browse_ajax?continuation=4qmFsgI8EhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncaIEVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQUFlZ0V4&gl=US&hl=en")
|
||||||
@@ -16,9 +19,7 @@ describe "Helpers" do
|
|||||||
|
|
||||||
produce_channel_videos_url(ucid: "UCXuqSBlHAE6Xw-yeJA0Tunw", page: 20).should eq("/browse_ajax?continuation=4qmFsgJEEhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncaKEVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQUFlZ0l5TUElM0QlM0Q%3D&gl=US&hl=en")
|
produce_channel_videos_url(ucid: "UCXuqSBlHAE6Xw-yeJA0Tunw", page: 20).should eq("/browse_ajax?continuation=4qmFsgJEEhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncaKEVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQUFlZ0l5TUElM0QlM0Q%3D&gl=US&hl=en")
|
||||||
|
|
||||||
produce_channel_videos_url(ucid: "UC-9-kyTW8ZkZNDHQJ6FgpwQ", auto_generated: true).should eq("/browse_ajax?continuation=4qmFsgJIEhhVQy05LWt5VFc4WmtaTkRIUUo2Rmdwd1EaLEVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQTJlZ294TlRVeU1ESXlPVFE1&gl=US&hl=en")
|
produce_channel_videos_url(ucid: "UC-9-kyTW8ZkZNDHQJ6FgpwQ", page: 20, sort_by: "popular").should eq("/browse_ajax?continuation=4qmFsgJAEhhVQy05LWt5VFc4WmtaTkRIUUo2Rmdwd1EaJEVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQUFlZ0l5TUJnQg%3D%3D&gl=US&hl=en")
|
||||||
|
|
||||||
produce_channel_videos_url(ucid: "UC-9-kyTW8ZkZNDHQJ6FgpwQ", page: 20, auto_generated: true, sort_by: "popular").should eq("/browse_ajax?continuation=4qmFsgJOEhhVQy05LWt5VFc4WmtaTkRIUUo2Rmdwd1EaMkVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQTJlZ294TlRBeU1UY3dNVFE1R0FFJTNE&gl=US&hl=en")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -59,4 +60,49 @@ describe "Helpers" do
|
|||||||
produce_search_params(content_type: "channel").should eq("CAASAhAC")
|
produce_search_params(content_type: "channel").should eq("CAASAhAC")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe "#produce_comment_continuation" do
|
||||||
|
it "correctly produces a continuation token for comments" do
|
||||||
|
produce_comment_continuation("_cE8xSu6swE", "ADSJ_i2qvJeFtL0htmS5_K5Ctj3eGFVBMWL9Wd42o3kmUL6_mAzdLp85-liQZL0mYr_16BhaggUqX652Sv9JqV6VXinShSP-ZT6rL4NolPBaPXVtJsO5_rA_qE3GubAuLFw9uzIIXU2-HnpXbdgPLWTFavfX206hqWmmpHwUOrmxQV_OX6tYkM3ux3rPAKCDrT8eWL7MU3bLiNcnbgkW8o0h8KYLL_8BPa8LcHbTv8pAoNkjerlX1x7K4pqxaXPoyz89qNlnh6rRx6AXgAzzoHH1dmcyQ8CIBeOHg-m4i8ZxdX4dP88XWrIFg-jJGhpGP8JUMDgZgavxVx225hUEYZMyrLGler5em4FgbG62YWC51moLDLeYEA").should eq("EiYSC19jRTh4U3U2c3dFwAEByAEB4AEBogINKP___________wFAABgGMowDCvYCQURTSl9pMnF2SmVGdEwwaHRtUzVfSzVDdGozZUdGVkJNV0w5V2Q0Mm8za21VTDZfbUF6ZExwODUtbGlRWkwwbVlyXzE2QmhhZ2dVcVg2NTJTdjlKcVY2VlhpblNoU1AtWlQ2ckw0Tm9sUEJhUFhWdEpzTzVfckFfcUUzR3ViQXVMRnc5dXpJSVhVMi1IbnBYYmRnUExXVEZhdmZYMjA2aHFXbW1wSHdVT3JteFFWX09YNnRZa00zdXgzclBBS0NEclQ4ZVdMN01VM2JMaU5jbmJna1c4bzBoOEtZTExfOEJQYThMY0hiVHY4cEFvTmtqZXJsWDF4N0s0cHF4YVhQb3l6ODlxTmxuaDZyUng2QVhnQXp6b0hIMWRtY3lROENJQmVPSGctbTRpOFp4ZFg0ZFA4OFhXcklGZy1qSkdocEdQOEpVTURnWmdhdnhWeDIyNWhVRVlaTXlyTEdsZXI1ZW00RmdiRzYyWVdDNTFtb0xETGVZRUEiDyILX2NFOHhTdTZzd0UwACgU")
|
||||||
|
|
||||||
|
produce_comment_continuation("_cE8xSu6swE", "ADSJ_i1yz21HI4xrtsYXVC-2_kfZ6kx1yjYQumXAAxqH3CAd7ZxKxfLdZS1__fqhCtOASRbbpSBGH_tH1J96Dxux-Qfjk-lUbupMqv08Q3aHzGu7p70VoUMHhI2-GoJpnbpmcOxkGzeIuenRS_ym2Y8fkDowhqLPFgsS0n4djnZ2UmC17F3Ch3N1S1UYf1ZVOc991qOC1iW9kJDzyvRQTWCPsJUPneSaAKW-Rr97pdesOkR4i8cNvHZRnQKe2HEfsvlJOb2C3lF1dJBfJeNfnQYeh5hv6_fZN7bt3-JL1Xk3Qc9NXNxmmbDpwAC_yFR8dthFfUJdyIO9Nu1D79MLYeR-H5HxqUJokkJiGIz4lTE_CXXbhAI").should eq("EiYSC19jRTh4U3U2c3dFwAEByAEB4AEBogINKP___________wFAABgGMokDCvMCQURTSl9pMXl6MjFISTR4cnRzWVhWQy0yX2tmWjZreDF5allRdW1YQUF4cUgzQ0FkN1p4S3hmTGRaUzFfX2ZxaEN0T0FTUmJicFNCR0hfdEgxSjk2RHh1eC1RZmprLWxVYnVwTXF2MDhRM2FIekd1N3A3MFZvVU1IaEkyLUdvSnBuYnBtY094a0d6ZUl1ZW5SU195bTJZOGZrRG93aHFMUEZnc1MwbjRkam5aMlVtQzE3RjNDaDNOMVMxVVlmMVpWT2M5OTFxT0MxaVc5a0pEenl2UlFUV0NQc0pVUG5lU2FBS1ctUnI5N3BkZXNPa1I0aThjTnZIWlJuUUtlMkhFZnN2bEpPYjJDM2xGMWRKQmZKZU5mblFZZWg1aHY2X2ZaTjdidDMtSkwxWGszUWM5TlhOeG1tYkRwd0FDX3lGUjhkdGhGZlVKZHlJTzlOdTFENzlNTFllUi1INUh4cVVKb2trSmlHSXo0bFRFX0NYWGJoQUkiDyILX2NFOHhTdTZzd0UwACgU")
|
||||||
|
|
||||||
|
produce_comment_continuation("29-q7YnyUmY", "").should eq("EiYSCzI5LXE3WW55VW1ZwAEByAEB4AEBogINKP___________wFAABgGMhMiDyILMjktcTdZbnlVbVkwAHgC")
|
||||||
|
|
||||||
|
produce_comment_continuation("CvFH_6DNRCY", "").should eq("EiYSC0N2RkhfNkROUkNZwAEByAEB4AEBogINKP___________wFAABgGMhMiDyILQ3ZGSF82RE5SQ1kwAHgC")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
describe "#produce_comment_reply_continuation" do
|
||||||
|
it "correctly produces a continuation token for replies to a given comment" do
|
||||||
|
produce_comment_reply_continuation("cIHQWOoJeag", "UCq6VFHwMzcMXbuKyG7SQYIg", "Ugx1IP_wGVv3WtGWcdV4AaABAg").should eq("EiYSC2NJSFFXT29KZWFnwAEByAEB4AEBogINKP___________wFAABgGMk0aSxIaVWd4MUlQX3dHVnYzV3RHV2NkVjRBYUFCQWciAggAKhhVQ3E2VkZId016Y01YYnVLeUc3U1FZSWcyC2NJSFFXT29KZWFnQAFICg%3D%3D")
|
||||||
|
|
||||||
|
produce_comment_reply_continuation("cIHQWOoJeag", "UCq6VFHwMzcMXbuKyG7SQYIg", "Ugza62y_TlmTu9o2RfF4AaABAg").should eq("EiYSC2NJSFFXT29KZWFnwAEByAEB4AEBogINKP___________wFAABgGMk0aSxIaVWd6YTYyeV9UbG1UdTlvMlJmRjRBYUFCQWciAggAKhhVQ3E2VkZId016Y01YYnVLeUc3U1FZSWcyC2NJSFFXT29KZWFnQAFICg%3D%3D")
|
||||||
|
|
||||||
|
produce_comment_reply_continuation("_cE8xSu6swE", "UC1AZY74-dGVPe6bfxFwwEMg", "UgyBUaRGHB9Jmt1dsUZ4AaABAg").should eq("EiYSC19jRTh4U3U2c3dFwAEByAEB4AEBogINKP___________wFAABgGMk0aSxIaVWd5QlVhUkdIQjlKbXQxZHNVWjRBYUFCQWciAggAKhhVQzFBWlk3NC1kR1ZQZTZiZnhGd3dFTWcyC19jRTh4U3U2c3dFQAFICg%3D%3D")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
describe "#sign_token" do
|
||||||
|
it "correctly signs a given hash" do
|
||||||
|
token = {
|
||||||
|
"session" => "v1:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
||||||
|
"expires" => 1554680038,
|
||||||
|
"scopes" => [
|
||||||
|
":notifications",
|
||||||
|
":subscriptions/*",
|
||||||
|
"GET:tokens*",
|
||||||
|
],
|
||||||
|
"signature" => "f__2hS20th8pALF305PJFK-D2aVtvefNnQheILHD2vU=",
|
||||||
|
}
|
||||||
|
sign_token("SECRET_KEY", token).should eq(token["signature"])
|
||||||
|
|
||||||
|
token = {
|
||||||
|
"session" => "v1:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
||||||
|
"scopes" => [":notifications", "POST:subscriptions/*"],
|
||||||
|
"signature" => "fNvXoT0MRAL9eE6lTE33CEg8HitYJDOL9a22rSN2Ihg=",
|
||||||
|
}
|
||||||
|
sign_token("SECRET_KEY", token).should eq(token["signature"])
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
3422
src/invidious.cr
3422
src/invidious.cr
File diff suppressed because it is too large
Load Diff
@@ -1,48 +1,91 @@
|
|||||||
class InvidiousChannel
|
struct InvidiousChannel
|
||||||
add_mapping({
|
db_mapping({
|
||||||
id: String,
|
id: String,
|
||||||
author: String,
|
author: String,
|
||||||
updated: Time,
|
updated: Time,
|
||||||
deleted: Bool,
|
deleted: Bool,
|
||||||
|
subscribed: Time?,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class ChannelVideo
|
struct ChannelVideo
|
||||||
add_mapping({
|
def to_json(locale, config, kemal_config, json : JSON::Builder)
|
||||||
id: String,
|
json.object do
|
||||||
title: String,
|
json.field "type", "shortVideo"
|
||||||
published: Time,
|
|
||||||
updated: Time,
|
json.field "title", self.title
|
||||||
ucid: String,
|
json.field "videoId", self.id
|
||||||
author: String,
|
json.field "videoThumbnails" do
|
||||||
length_seconds: {
|
generate_thumbnails(json, self.id, config, Kemal.config)
|
||||||
type: Int32,
|
end
|
||||||
default: 0,
|
|
||||||
},
|
json.field "lengthSeconds", self.length_seconds
|
||||||
|
|
||||||
|
json.field "author", self.author
|
||||||
|
json.field "authorId", self.ucid
|
||||||
|
json.field "authorUrl", "/channel/#{self.ucid}"
|
||||||
|
json.field "published", self.published.to_unix
|
||||||
|
json.field "publishedText", translate(locale, "`x` ago", recode_date(self.published, locale))
|
||||||
|
|
||||||
|
json.field "viewCount", self.views
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def to_json(locale, config, kemal_config, json : JSON::Builder | Nil = nil)
|
||||||
|
if json
|
||||||
|
to_json(locale, config, kemal_config, json)
|
||||||
|
else
|
||||||
|
JSON.build do |json|
|
||||||
|
to_json(locale, config, kemal_config, json)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
db_mapping({
|
||||||
|
id: String,
|
||||||
|
title: String,
|
||||||
|
published: Time,
|
||||||
|
updated: Time,
|
||||||
|
ucid: String,
|
||||||
|
author: String,
|
||||||
|
length_seconds: {type: Int32, default: 0},
|
||||||
|
live_now: {type: Bool, default: false},
|
||||||
|
premiere_timestamp: {type: Time?, default: nil},
|
||||||
|
views: {type: Int64?, default: nil},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_batch_channels(channels, db, refresh = false, pull_all_videos = true, max_threads = 10)
|
def get_batch_channels(channels, db, refresh = false, pull_all_videos = true, max_threads = 10)
|
||||||
active_threads = 0
|
finished_channel = Channel(String | Nil).new
|
||||||
active_channel = Channel(String | Nil).new
|
|
||||||
|
|
||||||
final = [] of String
|
spawn do
|
||||||
channels.map do |ucid|
|
active_threads = 0
|
||||||
if active_threads >= max_threads
|
active_channel = Channel(Nil).new
|
||||||
if response = active_channel.receive
|
|
||||||
|
channels.each do |ucid|
|
||||||
|
if active_threads >= max_threads
|
||||||
|
active_channel.receive
|
||||||
active_threads -= 1
|
active_threads -= 1
|
||||||
final << response
|
end
|
||||||
|
|
||||||
|
active_threads += 1
|
||||||
|
spawn do
|
||||||
|
begin
|
||||||
|
get_channel(ucid, db, refresh, pull_all_videos)
|
||||||
|
finished_channel.send(ucid)
|
||||||
|
rescue ex
|
||||||
|
finished_channel.send(nil)
|
||||||
|
ensure
|
||||||
|
active_channel.send(nil)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
active_threads += 1
|
final = [] of String
|
||||||
spawn do
|
channels.size.times do
|
||||||
begin
|
if ucid = finished_channel.receive
|
||||||
get_channel(ucid, db, refresh, pull_all_videos)
|
final << ucid
|
||||||
active_channel.send(ucid)
|
|
||||||
rescue ex
|
|
||||||
active_channel.send(nil)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -91,51 +134,85 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
|||||||
auto_generated = true
|
auto_generated = true
|
||||||
end
|
end
|
||||||
|
|
||||||
if !pull_all_videos
|
page = 1
|
||||||
url = produce_channel_videos_url(ucid, 1, auto_generated: auto_generated)
|
|
||||||
response = client.get(url)
|
|
||||||
json = JSON.parse(response.body)
|
|
||||||
|
|
||||||
if json["content_html"]? && !json["content_html"].as_s.empty?
|
url = produce_channel_videos_url(ucid, page, auto_generated: auto_generated)
|
||||||
document = XML.parse_html(json["content_html"].as_s)
|
response = client.get(url)
|
||||||
nodeset = document.xpath_nodes(%q(//li[contains(@class, "feed-item-container")]))
|
json = JSON.parse(response.body)
|
||||||
|
|
||||||
if auto_generated
|
if json["content_html"]? && !json["content_html"].as_s.empty?
|
||||||
videos = extract_videos(nodeset)
|
document = XML.parse_html(json["content_html"].as_s)
|
||||||
else
|
nodeset = document.xpath_nodes(%q(//li[contains(@class, "feed-item-container")]))
|
||||||
videos = extract_videos(nodeset, ucid)
|
|
||||||
videos.each { |video| video.ucid = ucid }
|
if auto_generated
|
||||||
videos.each { |video| video.author = author }
|
videos = extract_videos(nodeset)
|
||||||
end
|
else
|
||||||
|
videos = extract_videos(nodeset, ucid, author)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
videos ||= [] of ChannelVideo
|
videos ||= [] of ChannelVideo
|
||||||
|
|
||||||
rss.xpath_nodes("//feed/entry").each do |entry|
|
rss.xpath_nodes("//feed/entry").each do |entry|
|
||||||
video_id = entry.xpath_node("videoid").not_nil!.content
|
video_id = entry.xpath_node("videoid").not_nil!.content
|
||||||
title = entry.xpath_node("title").not_nil!.content
|
title = entry.xpath_node("title").not_nil!.content
|
||||||
published = Time.parse(entry.xpath_node("published").not_nil!.content, "%FT%X%z", Time::Location.local)
|
published = Time.parse_rfc3339(entry.xpath_node("published").not_nil!.content)
|
||||||
updated = Time.parse(entry.xpath_node("updated").not_nil!.content, "%FT%X%z", Time::Location.local)
|
updated = Time.parse_rfc3339(entry.xpath_node("updated").not_nil!.content)
|
||||||
author = entry.xpath_node("author/name").not_nil!.content
|
author = entry.xpath_node("author/name").not_nil!.content
|
||||||
ucid = entry.xpath_node("channelid").not_nil!.content
|
ucid = entry.xpath_node("channelid").not_nil!.content
|
||||||
|
views = entry.xpath_node("group/community/statistics").try &.["views"]?.try &.to_i64?
|
||||||
|
views ||= 0_i64
|
||||||
|
|
||||||
length_seconds = videos.select { |video| video.id == video_id }[0]?.try &.length_seconds
|
channel_video = videos.select { |video| video.id == video_id }[0]?
|
||||||
length_seconds ||= 0
|
|
||||||
|
|
||||||
video = ChannelVideo.new(video_id, title, published, Time.now, ucid, author, length_seconds)
|
length_seconds = channel_video.try &.length_seconds
|
||||||
|
length_seconds ||= 0
|
||||||
|
|
||||||
db.exec("UPDATE users SET notifications = notifications || $1 \
|
live_now = channel_video.try &.live_now
|
||||||
WHERE updated < $2 AND $3 = ANY(subscriptions) AND $1 <> ALL(notifications)", video.id, video.published, ucid)
|
live_now ||= false
|
||||||
|
|
||||||
video_array = video.to_a
|
premiere_timestamp = channel_video.try &.premiere_timestamp
|
||||||
args = arg_array(video_array)
|
|
||||||
|
|
||||||
db.exec("INSERT INTO channel_videos VALUES (#{args}) \
|
video = ChannelVideo.new(
|
||||||
|
id: video_id,
|
||||||
|
title: title,
|
||||||
|
published: published,
|
||||||
|
updated: Time.now,
|
||||||
|
ucid: ucid,
|
||||||
|
author: author,
|
||||||
|
length_seconds: length_seconds,
|
||||||
|
live_now: live_now,
|
||||||
|
premiere_timestamp: premiere_timestamp,
|
||||||
|
views: views,
|
||||||
|
)
|
||||||
|
|
||||||
|
emails = db.query_all("UPDATE users SET notifications = notifications || $1 \
|
||||||
|
WHERE updated < $2 AND $3 = ANY(subscriptions) AND $1 <> ALL(notifications) RETURNING email",
|
||||||
|
video.id, video.published, ucid, as: String)
|
||||||
|
|
||||||
|
video_array = video.to_a
|
||||||
|
args = arg_array(video_array)
|
||||||
|
|
||||||
|
# We don't include the 'premiere_timestamp' here because channel pages don't include them,
|
||||||
|
# meaning the above timestamp is always null
|
||||||
|
db.exec("INSERT INTO channel_videos VALUES (#{args}) \
|
||||||
ON CONFLICT (id) DO UPDATE SET title = $2, published = $3, \
|
ON CONFLICT (id) DO UPDATE SET title = $2, published = $3, \
|
||||||
updated = $4, ucid = $5, author = $6, length_seconds = $7", video_array)
|
updated = $4, ucid = $5, author = $6, length_seconds = $7, \
|
||||||
|
live_now = $8, views = $10", video_array)
|
||||||
|
|
||||||
|
# Update all users affected by insert
|
||||||
|
if emails.empty?
|
||||||
|
values = "'{}'"
|
||||||
|
else
|
||||||
|
values = "VALUES #{emails.map { |id| %(('#{id}')) }.join(",")}"
|
||||||
end
|
end
|
||||||
else
|
|
||||||
page = 1
|
db.exec("UPDATE users SET feed_needs_update = true WHERE email = ANY(#{values})")
|
||||||
|
end
|
||||||
|
|
||||||
|
if pull_all_videos
|
||||||
|
page += 1
|
||||||
|
|
||||||
ids = [] of String
|
ids = [] of String
|
||||||
|
|
||||||
loop do
|
loop do
|
||||||
@@ -150,34 +227,59 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
|||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
|
nodeset = nodeset.not_nil!
|
||||||
|
|
||||||
if auto_generated
|
if auto_generated
|
||||||
videos = extract_videos(nodeset)
|
videos = extract_videos(nodeset)
|
||||||
else
|
else
|
||||||
videos = extract_videos(nodeset, ucid)
|
videos = extract_videos(nodeset, ucid, author)
|
||||||
videos.each { |video| video.ucid = ucid }
|
|
||||||
videos.each { |video| video.author = author }
|
|
||||||
end
|
end
|
||||||
|
|
||||||
count = nodeset.size
|
count = nodeset.size
|
||||||
videos = videos.map { |video| ChannelVideo.new(video.id, video.title, video.published, Time.now, video.ucid, video.author, video.length_seconds) }
|
videos = videos.map { |video| ChannelVideo.new(
|
||||||
|
id: video.id,
|
||||||
|
title: video.title,
|
||||||
|
published: video.published,
|
||||||
|
updated: Time.now,
|
||||||
|
ucid: video.ucid,
|
||||||
|
author: video.author,
|
||||||
|
length_seconds: video.length_seconds,
|
||||||
|
live_now: video.live_now,
|
||||||
|
premiere_timestamp: video.premiere_timestamp,
|
||||||
|
views: video.views
|
||||||
|
) }
|
||||||
|
|
||||||
videos.each do |video|
|
videos.each do |video|
|
||||||
ids << video.id
|
ids << video.id
|
||||||
|
|
||||||
# FIXME: Red videos don't provide published date, so the best we can do is ignore them
|
# 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.now - video.published > 1.minute
|
if Time.now - video.published > 1.minute
|
||||||
db.exec("UPDATE users SET notifications = notifications || $1 \
|
emails = db.query_all("UPDATE users SET notifications = notifications || $1 \
|
||||||
WHERE updated < $2 AND $3 = ANY(subscriptions) AND $1 <> ALL(notifications)", video.id, video.published, video.ucid)
|
WHERE updated < $2 AND $3 = ANY(subscriptions) AND $1 <> ALL(notifications) RETURNING email",
|
||||||
|
video.id, video.published, video.ucid, as: String)
|
||||||
|
|
||||||
video_array = video.to_a
|
video_array = video.to_a
|
||||||
args = arg_array(video_array)
|
args = arg_array(video_array)
|
||||||
|
|
||||||
db.exec("INSERT INTO channel_videos VALUES (#{args}) ON CONFLICT (id) DO UPDATE SET title = $2, \
|
# We don't update the 'premire_timestamp' here because channel pages don't include them
|
||||||
published = $3, updated = $4, ucid = $5, author = $6, length_seconds = $7", video_array)
|
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)
|
||||||
|
|
||||||
|
# Update all users affected by insert
|
||||||
|
if emails.empty?
|
||||||
|
values = "'{}'"
|
||||||
|
else
|
||||||
|
values = "VALUES #{emails.map { |id| %(('#{id}')) }.join(",")}"
|
||||||
|
end
|
||||||
|
|
||||||
|
db.exec("UPDATE users SET feed_needs_update = true WHERE email = ANY(#{values})")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if count < 30
|
if count < 25
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -188,11 +290,31 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
|||||||
db.exec("DELETE FROM channel_videos * WHERE NOT id = ANY ('{#{ids.map { |id| %("#{id}") }.join(",")}}') AND ucid = $1", ucid)
|
db.exec("DELETE FROM channel_videos * WHERE NOT id = ANY ('{#{ids.map { |id| %("#{id}") }.join(",")}}') AND ucid = $1", ucid)
|
||||||
end
|
end
|
||||||
|
|
||||||
channel = InvidiousChannel.new(ucid, author, Time.now, false)
|
channel = InvidiousChannel.new(ucid, author, Time.now, false, nil)
|
||||||
|
|
||||||
return channel
|
return channel
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def subscribe_pubsub(ucid, key, config)
|
||||||
|
client = make_client(PUBSUB_URL)
|
||||||
|
time = Time.now.to_unix.to_s
|
||||||
|
nonce = Random::Secure.hex(4)
|
||||||
|
signature = "#{time}:#{nonce}"
|
||||||
|
|
||||||
|
host_url = make_host_url(config, Kemal.config)
|
||||||
|
|
||||||
|
body = {
|
||||||
|
"hub.callback" => "#{host_url}/feed/webhook/v1:#{time}:#{nonce}:#{OpenSSL::HMAC.hexdigest(:sha1, key, signature)}",
|
||||||
|
"hub.topic" => "https://www.youtube.com/xml/feeds/videos.xml?channel_id=#{ucid}",
|
||||||
|
"hub.verify" => "async",
|
||||||
|
"hub.mode" => "subscribe",
|
||||||
|
"hub.lease_seconds" => "432000",
|
||||||
|
"hub.secret" => key.to_s,
|
||||||
|
}
|
||||||
|
|
||||||
|
return client.post("/subscribe", form: body)
|
||||||
|
end
|
||||||
|
|
||||||
def fetch_channel_playlists(ucid, author, auto_generated, continuation, sort_by)
|
def fetch_channel_playlists(ucid, author, auto_generated, continuation, sort_by)
|
||||||
client = make_client(YT_URL)
|
client = make_client(YT_URL)
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class RedditComment
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class RedditLink
|
struct RedditLink
|
||||||
JSON.mapping({
|
JSON.mapping({
|
||||||
author: String,
|
author: String,
|
||||||
score: Int32,
|
score: Int32,
|
||||||
@@ -41,7 +41,7 @@ class RedditLink
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class RedditMore
|
struct RedditMore
|
||||||
JSON.mapping({
|
JSON.mapping({
|
||||||
children: Array(String),
|
children: Array(String),
|
||||||
count: Int32,
|
count: Int32,
|
||||||
@@ -56,15 +56,14 @@ class RedditListing
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
def fetch_youtube_comments(id, db, continuation, proxies, format, locale, region)
|
def fetch_youtube_comments(id, db, continuation, proxies, format, locale, thin_mode, region, sort_by = "top")
|
||||||
video = get_video(id, db, proxies, region: region)
|
video = get_video(id, db, proxies, region: region)
|
||||||
|
|
||||||
session_token = video.info["session_token"]?
|
session_token = video.info["session_token"]?
|
||||||
itct = video.info["itct"]?
|
|
||||||
ctoken = video.info["ctoken"]?
|
ctoken = produce_comment_continuation(id, cursor: "", sort_by: sort_by)
|
||||||
continuation ||= ctoken
|
continuation ||= ctoken
|
||||||
|
|
||||||
if !continuation || !itct || !session_token
|
if !continuation || !session_token
|
||||||
if format == "json"
|
if format == "json"
|
||||||
return {"comments" => [] of String}.to_json
|
return {"comments" => [] of String}.to_json
|
||||||
else
|
else
|
||||||
@@ -73,7 +72,7 @@ def fetch_youtube_comments(id, db, continuation, proxies, format, locale, region
|
|||||||
end
|
end
|
||||||
|
|
||||||
post_req = {
|
post_req = {
|
||||||
"session_token" => session_token.not_nil!,
|
"session_token" => session_token,
|
||||||
}
|
}
|
||||||
post_req = HTTP::Params.encode(post_req)
|
post_req = HTTP::Params.encode(post_req)
|
||||||
|
|
||||||
@@ -90,7 +89,7 @@ def fetch_youtube_comments(id, db, continuation, proxies, format, locale, region
|
|||||||
headers["x-youtube-client-name"] = "1"
|
headers["x-youtube-client-name"] = "1"
|
||||||
headers["x-youtube-client-version"] = "2.20180719"
|
headers["x-youtube-client-version"] = "2.20180719"
|
||||||
|
|
||||||
response = client.post("/comment_service_ajax?action_get_comments=1&pbj=1&ctoken=#{continuation}&continuation=#{continuation}&itct=#{itct}&hl=en&gl=US", headers, post_req)
|
response = client.post("/comment_service_ajax?action_get_comments=1&ctoken=#{continuation}&continuation=#{continuation}&hl=en&gl=US", headers, post_req)
|
||||||
response = JSON.parse(response.body)
|
response = JSON.parse(response.body)
|
||||||
|
|
||||||
if !response["response"]["continuationContents"]?
|
if !response["response"]["continuationContents"]?
|
||||||
@@ -232,7 +231,7 @@ def fetch_youtube_comments(id, db, continuation, proxies, format, locale, region
|
|||||||
|
|
||||||
if format == "html"
|
if format == "html"
|
||||||
comments = JSON.parse(comments)
|
comments = JSON.parse(comments)
|
||||||
content_html = template_youtube_comments(comments, locale)
|
content_html = template_youtube_comments(comments, locale, thin_mode)
|
||||||
|
|
||||||
comments = JSON.build do |json|
|
comments = JSON.build do |json|
|
||||||
json.object do
|
json.object do
|
||||||
@@ -250,9 +249,9 @@ def fetch_youtube_comments(id, db, continuation, proxies, format, locale, region
|
|||||||
return comments
|
return comments
|
||||||
end
|
end
|
||||||
|
|
||||||
def fetch_reddit_comments(id)
|
def fetch_reddit_comments(id, sort_by = "confidence")
|
||||||
client = make_client(REDDIT_URL)
|
client = make_client(REDDIT_URL)
|
||||||
headers = HTTP::Headers{"User-Agent" => "web:invidio.us:v0.14.0 (by /u/omarroth)"}
|
headers = HTTP::Headers{"User-Agent" => "web:invidious:v#{CURRENT_VERSION} (by /u/omarroth)"}
|
||||||
|
|
||||||
query = "(url:3D#{id}%20OR%20url:#{id})%20(site:youtube.com%20OR%20site:youtu.be)"
|
query = "(url:3D#{id}%20OR%20url:#{id})%20(site:youtube.com%20OR%20site:youtu.be)"
|
||||||
search_results = client.get("/search.json?q=#{query}", headers)
|
search_results = client.get("/search.json?q=#{query}", headers)
|
||||||
@@ -260,12 +259,16 @@ def fetch_reddit_comments(id)
|
|||||||
if search_results.status_code == 200
|
if search_results.status_code == 200
|
||||||
search_results = RedditThing.from_json(search_results.body)
|
search_results = RedditThing.from_json(search_results.body)
|
||||||
|
|
||||||
|
# For videos that have more than one thread, choose the one with the highest score
|
||||||
thread = search_results.data.as(RedditListing).children.sort_by { |child| child.data.as(RedditLink).score }[-1]
|
thread = search_results.data.as(RedditListing).children.sort_by { |child| child.data.as(RedditLink).score }[-1]
|
||||||
thread = thread.data.as(RedditLink)
|
thread = thread.data.as(RedditLink)
|
||||||
|
|
||||||
result = client.get("/r/#{thread.subreddit}/comments/#{thread.id}.json?limit=100&sort=top", headers).body
|
result = client.get("/r/#{thread.subreddit}/comments/#{thread.id}.json?limit=100&sort=#{sort_by}", headers).body
|
||||||
result = Array(RedditThing).from_json(result)
|
result = Array(RedditThing).from_json(result)
|
||||||
elsif search_results.status_code == 302
|
elsif search_results.status_code == 302
|
||||||
|
# Previously, if there was only one result then the API would redirect to that result.
|
||||||
|
# Now, it appears it will still return a listing so this section is likely unnecessary.
|
||||||
|
|
||||||
result = client.get(search_results.headers["Location"], headers).body
|
result = client.get(search_results.headers["Location"], headers).body
|
||||||
result = Array(RedditThing).from_json(result)
|
result = Array(RedditThing).from_json(result)
|
||||||
|
|
||||||
@@ -278,7 +281,7 @@ def fetch_reddit_comments(id)
|
|||||||
return comments, thread
|
return comments, thread
|
||||||
end
|
end
|
||||||
|
|
||||||
def template_youtube_comments(comments, locale)
|
def template_youtube_comments(comments, locale, thin_mode)
|
||||||
html = ""
|
html = ""
|
||||||
|
|
||||||
root = comments["comments"].as_a
|
root = comments["comments"].as_a
|
||||||
@@ -297,28 +300,37 @@ def template_youtube_comments(comments, locale)
|
|||||||
END_HTML
|
END_HTML
|
||||||
end
|
end
|
||||||
|
|
||||||
author_thumbnail = "/ggpht#{URI.parse(child["authorThumbnails"][-1]["url"].as_s).full_path}"
|
if !thin_mode
|
||||||
|
author_thumbnail = "/ggpht#{URI.parse(child["authorThumbnails"][-1]["url"].as_s).full_path}"
|
||||||
|
else
|
||||||
|
author_thumbnail = ""
|
||||||
|
end
|
||||||
|
|
||||||
html += <<-END_HTML
|
html += <<-END_HTML
|
||||||
<div class="pure-g">
|
<div class="pure-g">
|
||||||
<div class="pure-u-4-24 pure-u-md-2-24">
|
<div class="pure-u-4-24 pure-u-md-2-24">
|
||||||
<img style="width:90%; padding-right:1em; padding-top:1em;" src="#{author_thumbnail}">
|
<img style="width:90%;padding-right:1em;padding-top:1em" src="#{author_thumbnail}">
|
||||||
</div>
|
</div>
|
||||||
<div class="pure-u-20-24 pure-u-md-22-24">
|
<div class="pure-u-20-24 pure-u-md-22-24">
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
<a class="#{child["authorIsChannelOwner"] == true ? "channel-owner" : ""}" href="#{child["authorUrl"]}">#{child["author"]}</a>
|
<a class="#{child["authorIsChannelOwner"] == true ? "channel-owner" : ""}" href="#{child["authorUrl"]}">#{child["author"]}</a>
|
||||||
</b>
|
</b>
|
||||||
<p style="white-space:pre-wrap">#{child["contentHtml"]}</p>
|
<p style="white-space:pre-wrap">#{child["contentHtml"]}</p>
|
||||||
<span title="#{Time.unix(child["published"].as_i64).to_s(translate(locale, "%A %B %-d, %Y"))}">#{translate(locale, "`x` ago", recode_date(Time.unix(child["published"].as_i64), locale))} #{child["isEdited"] == true ? translate(locale, "(edited)") : ""}</span>
|
<span title="#{Time.unix(child["published"].as_i64).to_s(translate(locale, "%A %B %-d, %Y"))}">#{translate(locale, "`x` ago", recode_date(Time.unix(child["published"].as_i64), locale))} #{child["isEdited"] == true ? translate(locale, "(edited)") : ""}</span>
|
||||||
|
|
|
|
||||||
<a href="https://www.youtube.com/watch?v=#{comments["videoId"]}&lc=#{child["commentId"]}" title="#{translate(locale, "Youtube permalink of the comment")}">[YT]</a>
|
<a href="https://www.youtube.com/watch?v=#{comments["videoId"]}&lc=#{child["commentId"]}" title="#{translate(locale, "YouTube comment permalink")}">[YT]</a>
|
||||||
|
|
|
|
||||||
<i class="icon ion-ios-thumbs-up"></i> #{number_with_separator(child["likeCount"])}
|
<i class="icon ion-ios-thumbs-up"></i> #{number_with_separator(child["likeCount"])}
|
||||||
END_HTML
|
END_HTML
|
||||||
|
|
||||||
if child["creatorHeart"]?
|
if child["creatorHeart"]?
|
||||||
creator_thumbnail = "/ggpht#{URI.parse(child["creatorHeart"]["creatorThumbnail"].as_s).full_path}"
|
if !thin_mode
|
||||||
|
creator_thumbnail = "/ggpht#{URI.parse(child["creatorHeart"]["creatorThumbnail"].as_s).full_path}"
|
||||||
|
else
|
||||||
|
creator_thumbnail = ""
|
||||||
|
end
|
||||||
|
|
||||||
html += <<-END_HTML
|
html += <<-END_HTML
|
||||||
<span class="creator-heart-container" title="#{translate(locale, "`x` marked it with a ❤", child["creatorHeart"]["creatorName"].as_s)}">
|
<span class="creator-heart-container" title="#{translate(locale, "`x` marked it with a ❤", child["creatorHeart"]["creatorName"].as_s)}">
|
||||||
<div class="creator-heart">
|
<div class="creator-heart">
|
||||||
@@ -372,8 +384,8 @@ def template_reddit_comments(root, locale)
|
|||||||
|
|
||||||
content = <<-END_HTML
|
content = <<-END_HTML
|
||||||
<p>
|
<p>
|
||||||
<a href="javascript:void(0)" onclick="toggle_parent(this)">[ - ]</a>
|
<a href="javascript:void(0)" onclick="toggle_parent(this)">[ - ]</a>
|
||||||
<b><a href="https://www.reddit.com/user/#{author}">#{author}</a></b>
|
<b><a href="https://www.reddit.com/user/#{author}">#{author}</a></b>
|
||||||
#{translate(locale, "`x` points", number_with_separator(score))}
|
#{translate(locale, "`x` points", number_with_separator(score))}
|
||||||
#{translate(locale, "`x` ago", recode_date(child.created_utc, locale))}
|
#{translate(locale, "`x` ago", recode_date(child.created_utc, locale))}
|
||||||
</p>
|
</p>
|
||||||
@@ -433,8 +445,12 @@ def replace_links(html)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
html = html.to_xml(options: XML::SaveOptions::NO_DECL)
|
html = html.xpath_node(%q(//body)).not_nil!
|
||||||
return html
|
if node = html.xpath_node(%q(./p))
|
||||||
|
html = node
|
||||||
|
end
|
||||||
|
|
||||||
|
return html.to_xml(options: XML::SaveOptions::NO_DECL)
|
||||||
end
|
end
|
||||||
|
|
||||||
def fill_links(html, scheme, host)
|
def fill_links(html, scheme, host)
|
||||||
@@ -451,12 +467,10 @@ def fill_links(html, scheme, host)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if host == "www.youtube.com"
|
if host == "www.youtube.com"
|
||||||
html = html.xpath_node(%q(//body)).not_nil!.to_xml
|
html = html.xpath_node(%q(//body/p)).not_nil!
|
||||||
else
|
|
||||||
html = html.to_xml(options: XML::SaveOptions::NO_DECL)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return html
|
return html.to_xml(options: XML::SaveOptions::NO_DECL)
|
||||||
end
|
end
|
||||||
|
|
||||||
def content_to_comment_html(content)
|
def content_to_comment_html(content)
|
||||||
@@ -507,3 +521,111 @@ def content_to_comment_html(content)
|
|||||||
|
|
||||||
return comment_html
|
return comment_html
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def produce_comment_continuation(video_id, cursor = "", sort_by = "top")
|
||||||
|
continuation = IO::Memory.new
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x12, 0x26])
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x12, video_id.size])
|
||||||
|
continuation.print(video_id)
|
||||||
|
|
||||||
|
continuation.write(Bytes[0xc0, 0x01, 0x01])
|
||||||
|
continuation.write(Bytes[0xc8, 0x01, 0x01])
|
||||||
|
continuation.write(Bytes[0xe0, 0x01, 0x01])
|
||||||
|
|
||||||
|
continuation.write(Bytes[0xa2, 0x02, 0x0d])
|
||||||
|
continuation.write(Bytes[0x28, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01])
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x40, 0x00])
|
||||||
|
continuation.write(Bytes[0x18, 0x06])
|
||||||
|
|
||||||
|
if cursor.empty?
|
||||||
|
continuation.write(Bytes[0x32])
|
||||||
|
continuation.write(write_var_int(video_id.size + 8))
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x22, video_id.size + 4])
|
||||||
|
continuation.write(Bytes[0x22, video_id.size])
|
||||||
|
continuation.print(video_id)
|
||||||
|
|
||||||
|
case sort_by
|
||||||
|
when "top"
|
||||||
|
continuation.write(Bytes[0x30, 0x00])
|
||||||
|
when "new", "newest"
|
||||||
|
continuation.write(Bytes[0x30, 0x01])
|
||||||
|
end
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x78, 0x02])
|
||||||
|
else
|
||||||
|
continuation.write(Bytes[0x32])
|
||||||
|
continuation.write(write_var_int(cursor.size + video_id.size + 11))
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x0a])
|
||||||
|
continuation.write(write_var_int(cursor.size))
|
||||||
|
continuation.print(cursor)
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x22, video_id.size + 4])
|
||||||
|
continuation.write(Bytes[0x22, video_id.size])
|
||||||
|
continuation.print(video_id)
|
||||||
|
|
||||||
|
case sort_by
|
||||||
|
when "top"
|
||||||
|
continuation.write(Bytes[0x30, 0x00])
|
||||||
|
when "new", "newest"
|
||||||
|
continuation.write(Bytes[0x30, 0x01])
|
||||||
|
end
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x28, 0x14])
|
||||||
|
end
|
||||||
|
|
||||||
|
continuation.rewind
|
||||||
|
continuation = continuation.gets_to_end
|
||||||
|
|
||||||
|
continuation = Base64.urlsafe_encode(continuation.to_slice)
|
||||||
|
continuation = URI.escape(continuation)
|
||||||
|
|
||||||
|
return continuation
|
||||||
|
end
|
||||||
|
|
||||||
|
def produce_comment_reply_continuation(video_id, ucid, comment_id)
|
||||||
|
continuation = IO::Memory.new
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x12, 0x26])
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x12, video_id.size])
|
||||||
|
continuation.print(video_id)
|
||||||
|
|
||||||
|
continuation.write(Bytes[0xc0, 0x01, 0x01])
|
||||||
|
continuation.write(Bytes[0xc8, 0x01, 0x01])
|
||||||
|
continuation.write(Bytes[0xe0, 0x01, 0x01])
|
||||||
|
|
||||||
|
continuation.write(Bytes[0xa2, 0x02, 0x0d])
|
||||||
|
continuation.write(Bytes[0x28, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01])
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x40, 0x00])
|
||||||
|
continuation.write(Bytes[0x18, 0x06])
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x32, ucid.size + video_id.size + comment_id.size + 16])
|
||||||
|
continuation.write(Bytes[0x1a, ucid.size + video_id.size + comment_id.size + 14])
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x12, comment_id.size])
|
||||||
|
continuation.print(comment_id)
|
||||||
|
|
||||||
|
continuation.write(Bytes[0x22, 0x02, 0x08, 0x00]) # ??
|
||||||
|
|
||||||
|
continuation.write(Bytes[ucid.size + video_id.size + 7])
|
||||||
|
continuation.write(Bytes[ucid.size])
|
||||||
|
continuation.print(ucid)
|
||||||
|
continuation.write(Bytes[0x32, video_id.size])
|
||||||
|
continuation.print(video_id)
|
||||||
|
continuation.write(Bytes[0x40, 0x01])
|
||||||
|
continuation.write(Bytes[0x48, 0x0a])
|
||||||
|
|
||||||
|
continuation.rewind
|
||||||
|
continuation = continuation.gets_to_end
|
||||||
|
|
||||||
|
continuation = Base64.urlsafe_encode(continuation.to_slice)
|
||||||
|
continuation = URI.escape(continuation)
|
||||||
|
|
||||||
|
return continuation
|
||||||
|
end
|
||||||
|
|||||||
227
src/invidious/helpers/handlers.cr
Normal file
227
src/invidious/helpers/handlers.cr
Normal file
@@ -0,0 +1,227 @@
|
|||||||
|
module HTTP::Handler
|
||||||
|
@@exclude_routes_tree = Radix::Tree(String).new
|
||||||
|
|
||||||
|
macro exclude(paths, method = "GET")
|
||||||
|
class_name = {{@type.name}}
|
||||||
|
method_downcase = {{method.downcase}}
|
||||||
|
class_name_method = "#{class_name}/#{method_downcase}"
|
||||||
|
({{paths}}).each do |path|
|
||||||
|
@@exclude_routes_tree.add class_name_method + path, '/' + method_downcase + path
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def exclude_match?(env : HTTP::Server::Context)
|
||||||
|
@@exclude_routes_tree.find(radix_path(env.request.method, env.request.path)).found?
|
||||||
|
end
|
||||||
|
|
||||||
|
private def radix_path(method : String, path : String)
|
||||||
|
"#{self.class}/#{method.downcase}#{path}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Kemal::RouteHandler
|
||||||
|
{% for method in %w(GET POST PUT HEAD DELETE PATCH OPTIONS) %}
|
||||||
|
exclude ["/api/v1/*"], {{method}}
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
# Processes the route if it's a match. Otherwise renders 404.
|
||||||
|
private def process_request(context)
|
||||||
|
raise Kemal::Exceptions::RouteNotFound.new(context) unless context.route_found?
|
||||||
|
content = context.route.handler.call(context)
|
||||||
|
|
||||||
|
if !Kemal.config.error_handlers.empty? && Kemal.config.error_handlers.has_key?(context.response.status_code) && exclude_match?(context)
|
||||||
|
raise Kemal::Exceptions::CustomException.new(context)
|
||||||
|
end
|
||||||
|
|
||||||
|
if context.request.method == "HEAD" &&
|
||||||
|
context.request.path.ends_with? ".jpg"
|
||||||
|
context.response.headers["Content-Type"] = "image/jpeg"
|
||||||
|
end
|
||||||
|
|
||||||
|
context.response.print(content)
|
||||||
|
context
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Kemal::ExceptionHandler
|
||||||
|
{% for method in %w(GET POST PUT HEAD DELETE PATCH OPTIONS) %}
|
||||||
|
exclude ["/api/v1/*"], {{method}}
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
private def call_exception_with_status_code(context : HTTP::Server::Context, exception : Exception, status_code : Int32)
|
||||||
|
return if context.response.closed?
|
||||||
|
return if exclude_match? context
|
||||||
|
|
||||||
|
if !Kemal.config.error_handlers.empty? && Kemal.config.error_handlers.has_key?(status_code)
|
||||||
|
context.response.content_type = "text/html" unless context.response.headers.has_key?("Content-Type")
|
||||||
|
context.response.status_code = status_code
|
||||||
|
context.response.print Kemal.config.error_handlers[status_code].call(context, exception)
|
||||||
|
context
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FilteredCompressHandler < Kemal::Handler
|
||||||
|
exclude ["/videoplayback", "/videoplayback/*", "/vi/*", "/ggpht/*", "/api/v1/auth/notifications"]
|
||||||
|
exclude ["/api/v1/auth/notifications", "/data_control"], "POST"
|
||||||
|
|
||||||
|
def call(env)
|
||||||
|
return call_next env if exclude_match? env
|
||||||
|
|
||||||
|
{% if flag?(:without_zlib) %}
|
||||||
|
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
|
||||||
|
|
||||||
|
call_next env
|
||||||
|
{% end %}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AuthHandler < Kemal::Handler
|
||||||
|
{% for method in %w(GET POST PUT HEAD DELETE PATCH OPTIONS) %}
|
||||||
|
only ["/api/v1/auth/*"], {{method}}
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
def call(env)
|
||||||
|
return call_next env unless only_match? env
|
||||||
|
|
||||||
|
begin
|
||||||
|
if token = env.request.headers["Authorization"]?
|
||||||
|
token = JSON.parse(URI.unescape(token.lchop("Bearer ")))
|
||||||
|
session = URI.unescape(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)
|
||||||
|
user = PG_DB.query_one("SELECT * FROM users WHERE email = $1", email, as: User)
|
||||||
|
end
|
||||||
|
elsif sid = env.request.cookies["SID"]?.try &.value
|
||||||
|
if sid.starts_with? "v1:"
|
||||||
|
raise "Cannot use token as SID"
|
||||||
|
end
|
||||||
|
|
||||||
|
if email = PG_DB.query_one?("SELECT email FROM session_ids WHERE id = $1", sid, as: String)
|
||||||
|
user = PG_DB.query_one("SELECT * FROM users WHERE email = $1", email, as: User)
|
||||||
|
end
|
||||||
|
|
||||||
|
scopes = [":*"]
|
||||||
|
session = sid
|
||||||
|
end
|
||||||
|
|
||||||
|
if !user
|
||||||
|
raise "Request must be authenticated"
|
||||||
|
end
|
||||||
|
|
||||||
|
env.set "scopes", scopes
|
||||||
|
env.set "user", user
|
||||||
|
env.set "session", session
|
||||||
|
|
||||||
|
call_next env
|
||||||
|
rescue ex
|
||||||
|
env.response.content_type = "application/json"
|
||||||
|
|
||||||
|
error_message = {"error" => ex.message}.to_json
|
||||||
|
env.response.status_code = 403
|
||||||
|
env.response.puts error_message
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class APIHandler < Kemal::Handler
|
||||||
|
{% for method in %w(GET POST PUT HEAD DELETE PATCH OPTIONS) %}
|
||||||
|
only ["/api/v1/*"], {{method}}
|
||||||
|
{% end %}
|
||||||
|
exclude ["/api/v1/auth/notifications"], "GET"
|
||||||
|
exclude ["/api/v1/auth/notifications"], "POST"
|
||||||
|
|
||||||
|
def call(env)
|
||||||
|
return call_next env unless only_match? env
|
||||||
|
|
||||||
|
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
||||||
|
|
||||||
|
# Since /api/v1/notifications is an event-stream, we don't want
|
||||||
|
# to wrap the response
|
||||||
|
return call_next env if exclude_match? env
|
||||||
|
|
||||||
|
# Here we swap out the socket IO so we can modify the response as needed
|
||||||
|
output = env.response.output
|
||||||
|
env.response.output = IO::Memory.new
|
||||||
|
|
||||||
|
begin
|
||||||
|
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 fields_text = env.params.query["fields"]?
|
||||||
|
begin
|
||||||
|
JSONFilter.filter(response, fields_text)
|
||||||
|
rescue ex
|
||||||
|
env.response.status_code = 400
|
||||||
|
response = {"error" => ex.message}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if env.params.query["pretty"]? && env.params.query["pretty"] == "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.flush
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DenyFrame < Kemal::Handler
|
||||||
|
exclude ["/embed/*"]
|
||||||
|
|
||||||
|
def call(env)
|
||||||
|
return call_next env if exclude_match? env
|
||||||
|
|
||||||
|
env.response.headers["X-Frame-Options"] = "sameorigin"
|
||||||
|
call_next env
|
||||||
|
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 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
|
||||||
|
end
|
||||||
|
else
|
||||||
|
close unless response.keep_alive?
|
||||||
|
end
|
||||||
|
|
||||||
|
response
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -1,72 +1,142 @@
|
|||||||
class Config
|
require "./macros"
|
||||||
YAML.mapping({
|
|
||||||
crawl_threads: Int32, # Number of threads to use for finding new videos from YouTube (used to populate "top" page)
|
struct Nonce
|
||||||
channel_threads: Int32, # Number of threads to use for crawling videos from channels (for updating subscriptions)
|
db_mapping({
|
||||||
feed_threads: Int32, # Number of threads to use for updating feeds
|
nonce: String,
|
||||||
video_threads: Int32, # Number of threads to use for updating videos in cache (mostly non-functional)
|
expire: Time,
|
||||||
db: NamedTuple( # Database configuration
|
|
||||||
user: String,
|
|
||||||
password: String,
|
|
||||||
host: String,
|
|
||||||
port: Int32,
|
|
||||||
dbname: String,
|
|
||||||
),
|
|
||||||
dl_api_key: String?, # DetectLanguage API Key (used to filter non-English results from "top" page), mostly non-functional
|
|
||||||
https_only: Bool?, # Used to tell Invidious it is behind a proxy, so links to resources should be https://
|
|
||||||
hmac_key: String?, # HMAC signing key for CSRF tokens
|
|
||||||
full_refresh: Bool, # Used for crawling channels: threads should check all videos uploaded by a channel
|
|
||||||
domain: String, # Domain to be used for links to resources on the site where an absolute URL is required
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class FilteredCompressHandler < Kemal::Handler
|
struct SessionId
|
||||||
exclude ["/videoplayback", "/videoplayback/*", "/vi/*", "/api/*", "/ggpht/*"]
|
db_mapping({
|
||||||
|
id: String,
|
||||||
|
email: String,
|
||||||
|
issued: String,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
def call(env)
|
struct Annotation
|
||||||
return call_next env if exclude_match? env
|
db_mapping({
|
||||||
|
id: String,
|
||||||
|
annotations: String,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
{% if flag?(:without_zlib) %}
|
struct ConfigPreferences
|
||||||
call_next env
|
module StringToArray
|
||||||
{% else %}
|
def self.to_yaml(value : Array(String), yaml : YAML::Nodes::Builder)
|
||||||
request_headers = env.request.headers
|
yaml.sequence do
|
||||||
|
value.each do |element|
|
||||||
|
yaml.scalar element
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if request_headers.includes_word?("Accept-Encoding", "gzip")
|
def self.from_yaml(ctx : YAML::ParseContext, node : YAML::Nodes::Node) : Array(String)
|
||||||
env.response.headers["Content-Encoding"] = "gzip"
|
begin
|
||||||
env.response.output = Gzip::Writer.new(env.response.output, sync_close: true)
|
unless node.is_a?(YAML::Nodes::Sequence)
|
||||||
elsif request_headers.includes_word?("Accept-Encoding", "deflate")
|
node.raise "Expected sequence, not #{node.class}"
|
||||||
env.response.headers["Content-Encoding"] = "deflate"
|
end
|
||||||
env.response.output = Flate::Writer.new(env.response.output, sync_close: true)
|
|
||||||
|
result = [] of String
|
||||||
|
node.nodes.each do |item|
|
||||||
|
unless item.is_a?(YAML::Nodes::Scalar)
|
||||||
|
node.raise "Expected scalar, not #{item.class}"
|
||||||
|
end
|
||||||
|
|
||||||
|
result << item.value
|
||||||
|
end
|
||||||
|
rescue ex
|
||||||
|
if node.is_a?(YAML::Nodes::Scalar)
|
||||||
|
result = [node.value, ""]
|
||||||
|
else
|
||||||
|
result = ["", ""]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
call_next env
|
result
|
||||||
{% end %}
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
yaml_mapping({
|
||||||
|
annotations: {type: Bool, default: false},
|
||||||
|
annotations_subscribed: {type: Bool, default: false},
|
||||||
|
autoplay: {type: Bool, default: false},
|
||||||
|
captions: {type: Array(String), default: ["", "", ""], converter: StringToArray},
|
||||||
|
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},
|
||||||
|
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},
|
||||||
|
quality: {type: String, default: "hd720"},
|
||||||
|
redirect_feed: {type: Bool, default: false},
|
||||||
|
related_videos: {type: Bool, default: true},
|
||||||
|
sort: {type: String, default: "published"},
|
||||||
|
speed: {type: Float32, default: 1.0_f32},
|
||||||
|
thin_mode: {type: Bool, default: false},
|
||||||
|
unseen_only: {type: Bool, default: false},
|
||||||
|
video_loop: {type: Bool, default: false},
|
||||||
|
volume: {type: Int32, default: 100},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class APIHandler < Kemal::Handler
|
struct Config
|
||||||
only ["/api/v1/*"]
|
module ConfigPreferencesConverter
|
||||||
|
def self.from_yaml(ctx : YAML::ParseContext, node : YAML::Nodes::Node) : Preferences
|
||||||
|
Preferences.new(*ConfigPreferences.new(ctx, node).to_tuple)
|
||||||
|
end
|
||||||
|
|
||||||
def call(env)
|
def self.to_yaml(value : Preferences, yaml : YAML::Nodes::Builder)
|
||||||
return call_next env unless only_match? env
|
value.to_yaml(yaml)
|
||||||
|
end
|
||||||
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
|
||||||
|
|
||||||
call_next env
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
YAML.mapping({
|
||||||
|
channel_threads: Int32, # Number of threads to use for crawling videos from channels (for updating subscriptions)
|
||||||
|
feed_threads: Int32, # Number of threads to use for updating feeds
|
||||||
|
db: DBConfig, # Database configuration
|
||||||
|
full_refresh: Bool, # Used for crawling channels: threads should check all videos uploaded by a channel
|
||||||
|
https_only: Bool?, # Used to tell Invidious it is behind a proxy, so links to resources should be https://
|
||||||
|
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},
|
||||||
|
registration_enabled: {type: Bool, default: true},
|
||||||
|
statistics_enabled: {type: Bool, default: false},
|
||||||
|
admins: {type: Array(String), default: [] of String},
|
||||||
|
external_port: {type: Int32?, default: nil},
|
||||||
|
default_user_preferences: {type: Preferences,
|
||||||
|
default: Preferences.new(*ConfigPreferences.from_yaml("").to_tuple),
|
||||||
|
converter: ConfigPreferencesConverter,
|
||||||
|
},
|
||||||
|
dmca_content: {type: Array(String), default: [] of String}, # For compliance with DMCA, disables download widget using list of video IDs
|
||||||
|
check_tables: {type: Bool, default: false}, # Check table integrity, automatically try to add any missing columns, create tables, etc.
|
||||||
|
cache_annotations: {type: Bool, default: false}, # Cache annotations requested from IA, will not cache empty annotations or annotations that only contain cards
|
||||||
|
banner: {type: String?, default: nil}, # Optional banner to be displayed along top of page for announcements, etc.
|
||||||
|
hsts: {type: Bool?, default: true}, # Enables 'Strict-Transport-Security'. Ensure that `domain` and all subdomains are served securely
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class DenyFrame < Kemal::Handler
|
struct DBConfig
|
||||||
exclude ["/embed/*"]
|
yaml_mapping({
|
||||||
|
user: String,
|
||||||
def call(env)
|
password: String,
|
||||||
return call_next env if exclude_match? env
|
host: String,
|
||||||
|
port: Int32,
|
||||||
env.response.headers["X-Frame-Options"] = "sameorigin"
|
dbname: String,
|
||||||
call_next env
|
})
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def rank_videos(db, n, filter, url)
|
def rank_videos(db, n)
|
||||||
top = [] of {Float64, String}
|
top = [] of {Float64, String}
|
||||||
|
|
||||||
db.query("SELECT id, wilson_score, published FROM videos WHERE views > 5000 ORDER BY published DESC LIMIT 1000") do |rs|
|
db.query("SELECT id, wilson_score, published FROM videos WHERE views > 5000 ORDER BY published DESC LIMIT 1000") do |rs|
|
||||||
@@ -87,41 +157,7 @@ def rank_videos(db, n, filter, url)
|
|||||||
top.reverse!
|
top.reverse!
|
||||||
top = top.map { |a, b| b }
|
top = top.map { |a, b| b }
|
||||||
|
|
||||||
if filter
|
return top[0..n - 1]
|
||||||
language_list = [] of String
|
|
||||||
top.each do |id|
|
|
||||||
if language_list.size == n
|
|
||||||
break
|
|
||||||
else
|
|
||||||
client = make_client(url)
|
|
||||||
begin
|
|
||||||
video = get_video(id, db)
|
|
||||||
rescue ex
|
|
||||||
next
|
|
||||||
end
|
|
||||||
|
|
||||||
if video.language
|
|
||||||
language = video.language
|
|
||||||
else
|
|
||||||
description = XML.parse(video.description)
|
|
||||||
content = [video.title, description.content].join(" ")
|
|
||||||
content = content[0, 10000]
|
|
||||||
|
|
||||||
results = DetectLanguage.detect(content)
|
|
||||||
language = results[0].language
|
|
||||||
|
|
||||||
db.exec("UPDATE videos SET language = $1 WHERE id = $2", language, id)
|
|
||||||
end
|
|
||||||
|
|
||||||
if language == "en"
|
|
||||||
language_list << id
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return language_list
|
|
||||||
else
|
|
||||||
return top[0..n - 1]
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def login_req(login_form, f_req)
|
def login_req(login_form, f_req)
|
||||||
@@ -160,8 +196,8 @@ def html_to_content(description_html)
|
|||||||
return description_html, description
|
return description_html, description
|
||||||
end
|
end
|
||||||
|
|
||||||
def extract_videos(nodeset, ucid = nil)
|
def extract_videos(nodeset, ucid = nil, author_name = nil)
|
||||||
videos = extract_items(nodeset, ucid)
|
videos = extract_items(nodeset, ucid, author_name)
|
||||||
videos.select! { |item| !item.is_a?(SearchChannel | SearchPlaylist) }
|
videos.select! { |item| !item.is_a?(SearchChannel | SearchPlaylist) }
|
||||||
videos.map { |video| video.as(SearchVideo) }
|
videos.map { |video| video.as(SearchVideo) }
|
||||||
end
|
end
|
||||||
@@ -222,7 +258,7 @@ def extract_items(nodeset, ucid = nil, author_name = nil)
|
|||||||
video_count = video_count.rchop("+")
|
video_count = video_count.rchop("+")
|
||||||
end
|
end
|
||||||
|
|
||||||
video_count = video_count.to_i?
|
video_count = video_count.gsub(/\D/, "").to_i?
|
||||||
end
|
end
|
||||||
video_count ||= 0
|
video_count ||= 0
|
||||||
|
|
||||||
@@ -249,13 +285,22 @@ def extract_items(nodeset, ucid = nil, author_name = nil)
|
|||||||
)
|
)
|
||||||
end
|
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
|
||||||
|
|
||||||
items << SearchPlaylist.new(
|
items << SearchPlaylist.new(
|
||||||
title,
|
title,
|
||||||
plid,
|
plid,
|
||||||
author,
|
author,
|
||||||
author_id,
|
author_id,
|
||||||
video_count,
|
video_count,
|
||||||
videos
|
videos,
|
||||||
|
thumbnail_id
|
||||||
)
|
)
|
||||||
when .includes? "yt-lockup-channel"
|
when .includes? "yt-lockup-channel"
|
||||||
author = title.strip
|
author = title.strip
|
||||||
@@ -265,12 +310,18 @@ def extract_items(nodeset, ucid = nil, author_name = nil)
|
|||||||
|
|
||||||
author_thumbnail = node.xpath_node(%q(.//div/span/img)).try &.["data-thumb"]?
|
author_thumbnail = node.xpath_node(%q(.//div/span/img)).try &.["data-thumb"]?
|
||||||
author_thumbnail ||= node.xpath_node(%q(.//div/span/img)).try &.["src"]
|
author_thumbnail ||= node.xpath_node(%q(.//div/span/img)).try &.["src"]
|
||||||
|
if author_thumbnail
|
||||||
|
author_thumbnail = URI.parse(author_thumbnail)
|
||||||
|
author_thumbnail.scheme = "https"
|
||||||
|
author_thumbnail = author_thumbnail.to_s
|
||||||
|
end
|
||||||
|
|
||||||
author_thumbnail ||= ""
|
author_thumbnail ||= ""
|
||||||
|
|
||||||
subscriber_count = node.xpath_node(%q(.//span[contains(@class, "yt-subscriber-count")])).try &.["title"].delete(",").to_i?
|
subscriber_count = node.xpath_node(%q(.//span[contains(@class, "yt-subscriber-count")])).try &.["title"].gsub(/\D/, "").to_i?
|
||||||
subscriber_count ||= 0
|
subscriber_count ||= 0
|
||||||
|
|
||||||
video_count = node.xpath_node(%q(.//ul[@class="yt-lockup-meta-info"]/li)).try &.content.split(" ")[0].delete(",").to_i?
|
video_count = node.xpath_node(%q(.//ul[@class="yt-lockup-meta-info"]/li)).try &.content.split(" ")[0].gsub(/\D/, "").to_i?
|
||||||
video_count ||= 0
|
video_count ||= 0
|
||||||
|
|
||||||
items << SearchChannel.new(
|
items << SearchChannel.new(
|
||||||
@@ -333,6 +384,11 @@ def extract_items(nodeset, ucid = nil, author_name = nil)
|
|||||||
paid = true
|
paid = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
premiere_timestamp = node.xpath_node(%q(.//ul[@class="yt-lockup-meta-info"]/li/span[@class="localized-date"])).try &.["data-timestamp"]?.try &.to_i64
|
||||||
|
if premiere_timestamp
|
||||||
|
premiere_timestamp = Time.unix(premiere_timestamp)
|
||||||
|
end
|
||||||
|
|
||||||
items << SearchVideo.new(
|
items << SearchVideo.new(
|
||||||
title: title,
|
title: title,
|
||||||
id: id,
|
id: id,
|
||||||
@@ -345,7 +401,8 @@ def extract_items(nodeset, ucid = nil, author_name = nil)
|
|||||||
length_seconds: length_seconds,
|
length_seconds: length_seconds,
|
||||||
live_now: live_now,
|
live_now: live_now,
|
||||||
paid: paid,
|
paid: paid,
|
||||||
premium: premium
|
premium: premium,
|
||||||
|
premiere_timestamp: premiere_timestamp
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -416,13 +473,28 @@ def extract_shelf_items(nodeset, ucid = nil, author_name = nil)
|
|||||||
playlist_title ||= ""
|
playlist_title ||= ""
|
||||||
plid ||= ""
|
plid ||= ""
|
||||||
|
|
||||||
|
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?
|
||||||
|
end
|
||||||
|
video_count ||= 50
|
||||||
|
|
||||||
items << SearchPlaylist.new(
|
items << SearchPlaylist.new(
|
||||||
playlist_title,
|
playlist_title,
|
||||||
plid,
|
plid,
|
||||||
author_name,
|
author_name,
|
||||||
ucid,
|
ucid,
|
||||||
50,
|
video_count,
|
||||||
Array(SearchPlaylistVideo).new
|
Array(SearchPlaylistVideo).new,
|
||||||
|
thumbnail_id
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -436,10 +508,288 @@ def extract_shelf_items(nodeset, ucid = nil, author_name = nil)
|
|||||||
author_name,
|
author_name,
|
||||||
ucid,
|
ucid,
|
||||||
videos.size,
|
videos.size,
|
||||||
videos
|
videos,
|
||||||
|
videos[0].try &.id
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return items
|
return items
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def analyze_table(db, logger, table_name, struct_type = nil)
|
||||||
|
# Create table if it doesn't exist
|
||||||
|
begin
|
||||||
|
db.exec("SELECT * FROM #{table_name} LIMIT 0")
|
||||||
|
rescue ex
|
||||||
|
logger.write("CREATE TABLE #{table_name}\n")
|
||||||
|
|
||||||
|
db.using_connection do |conn|
|
||||||
|
conn.as(PG::Connection).exec_all(File.read("config/sql/#{table_name}.sql"))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if !struct_type
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
struct_array = struct_type.to_type_tuple
|
||||||
|
column_array = get_column_array(db, table_name)
|
||||||
|
column_types = File.read("config/sql/#{table_name}.sql").match(/CREATE TABLE public\.#{table_name}\n\((?<types>[\d\D]*?)\);/)
|
||||||
|
.try &.["types"].split(",").map { |line| line.strip }
|
||||||
|
|
||||||
|
if !column_types
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
struct_array.each_with_index do |name, i|
|
||||||
|
if name != column_array[i]?
|
||||||
|
if !column_array[i]?
|
||||||
|
new_column = column_types.select { |line| line.starts_with? name }[0]
|
||||||
|
logger.write("ALTER TABLE #{table_name} ADD COLUMN #{new_column}\n")
|
||||||
|
db.exec("ALTER TABLE #{table_name} ADD COLUMN #{new_column}")
|
||||||
|
next
|
||||||
|
end
|
||||||
|
|
||||||
|
# Column doesn't exist
|
||||||
|
if !column_array.includes? name
|
||||||
|
new_column = column_types.select { |line| line.starts_with? name }[0]
|
||||||
|
db.exec("ALTER TABLE #{table_name} ADD COLUMN #{new_column}")
|
||||||
|
end
|
||||||
|
|
||||||
|
# Column exists but in the wrong position, rotate
|
||||||
|
if struct_array.includes? column_array[i]
|
||||||
|
until name == column_array[i]
|
||||||
|
new_column = column_types.select { |line| line.starts_with? column_array[i] }[0]?.try &.gsub("#{column_array[i]}", "#{column_array[i]}_new")
|
||||||
|
|
||||||
|
# There's a column we didn't expect
|
||||||
|
if !new_column
|
||||||
|
logger.write("ALTER TABLE #{table_name} DROP COLUMN #{column_array[i]}\n")
|
||||||
|
db.exec("ALTER TABLE #{table_name} DROP COLUMN #{column_array[i]} CASCADE")
|
||||||
|
|
||||||
|
column_array = get_column_array(db, table_name)
|
||||||
|
next
|
||||||
|
end
|
||||||
|
|
||||||
|
logger.write("ALTER TABLE #{table_name} ADD COLUMN #{new_column}\n")
|
||||||
|
db.exec("ALTER TABLE #{table_name} ADD COLUMN #{new_column}")
|
||||||
|
logger.write("UPDATE #{table_name} SET #{column_array[i]}_new=#{column_array[i]}\n")
|
||||||
|
db.exec("UPDATE #{table_name} SET #{column_array[i]}_new=#{column_array[i]}")
|
||||||
|
logger.write("ALTER TABLE #{table_name} DROP COLUMN #{column_array[i]} CASCADE\n")
|
||||||
|
db.exec("ALTER TABLE #{table_name} DROP COLUMN #{column_array[i]} CASCADE")
|
||||||
|
logger.write("ALTER TABLE #{table_name} RENAME COLUMN #{column_array[i]}_new TO #{column_array[i]}\n")
|
||||||
|
db.exec("ALTER TABLE #{table_name} RENAME COLUMN #{column_array[i]}_new TO #{column_array[i]}")
|
||||||
|
|
||||||
|
column_array = get_column_array(db, table_name)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
logger.write("ALTER TABLE #{table_name} DROP COLUMN #{column_array[i]} CASCADE\n")
|
||||||
|
db.exec("ALTER TABLE #{table_name} DROP COLUMN #{column_array[i]} CASCADE")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PG::ResultSet
|
||||||
|
def field(index = @column_index)
|
||||||
|
@fields.not_nil![index]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def get_column_array(db, table_name)
|
||||||
|
column_array = [] of String
|
||||||
|
db.query("SELECT * FROM #{table_name} LIMIT 0") do |rs|
|
||||||
|
rs.column_count.times do |i|
|
||||||
|
column = rs.as(PG::ResultSet).field(i)
|
||||||
|
column_array << column.name
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return column_array
|
||||||
|
end
|
||||||
|
|
||||||
|
def cache_annotation(db, id, annotations)
|
||||||
|
if !CONFIG.cache_annotations
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
body = XML.parse(annotations)
|
||||||
|
nodeset = body.xpath_nodes(%q(/document/annotations/annotation))
|
||||||
|
|
||||||
|
if nodeset == 0
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
has_legacy_annotations = false
|
||||||
|
nodeset.each do |node|
|
||||||
|
if !{"branding", "card", "drawer"}.includes? node["type"]?
|
||||||
|
has_legacy_annotations = true
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if has_legacy_annotations
|
||||||
|
# TODO: Update on conflict?
|
||||||
|
db.exec("INSERT INTO annotations VALUES ($1, $2) ON CONFLICT DO NOTHING", id, annotations)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def proxy_file(response, env)
|
||||||
|
if !response.body_io?
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if response.headers.includes_word?("Content-Encoding", "gzip")
|
||||||
|
Gzip::Writer.open(env.response) do |deflate|
|
||||||
|
copy_in_chunks(response.body_io, deflate)
|
||||||
|
end
|
||||||
|
elsif response.headers.includes_word?("Content-Encoding", "deflate")
|
||||||
|
Flate::Writer.open(env.response) do |deflate|
|
||||||
|
copy_in_chunks(response.body_io, deflate)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
copy_in_chunks(response.body_io, env.response)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# https://stackoverflow.com/a/44802810 <3
|
||||||
|
def copy_in_chunks(input, output, chunk_size = 4096)
|
||||||
|
size = 1
|
||||||
|
while size > 0
|
||||||
|
size = IO.copy(input, output, chunk_size)
|
||||||
|
Fiber.yield
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def create_notification_stream(env, proxies, config, kemal_config, decrypt_function, topics, connection_channel)
|
||||||
|
connection = Channel(PQ::Notification).new(8)
|
||||||
|
connection_channel.send({true, connection})
|
||||||
|
|
||||||
|
locale = LOCALES[env.get("preferences").as(Preferences).locale]?
|
||||||
|
|
||||||
|
since = env.params.query["since"]?.try &.to_i?
|
||||||
|
id = 0
|
||||||
|
|
||||||
|
if topics.includes? "debug"
|
||||||
|
spawn do
|
||||||
|
begin
|
||||||
|
loop do
|
||||||
|
time_span = [0, 0, 0, 0]
|
||||||
|
time_span[rand(4)] = rand(30) + 5
|
||||||
|
published = Time.now - Time::Span.new(time_span[0], time_span[1], time_span[2], time_span[3])
|
||||||
|
video_id = TEST_IDS[rand(TEST_IDS.size)]
|
||||||
|
|
||||||
|
video = get_video(video_id, PG_DB, proxies)
|
||||||
|
video.published = published
|
||||||
|
response = JSON.parse(video.to_json(locale, config, kemal_config, decrypt_function))
|
||||||
|
|
||||||
|
if fields_text = env.params.query["fields"]?
|
||||||
|
begin
|
||||||
|
JSONFilter.filter(response, fields_text)
|
||||||
|
rescue ex
|
||||||
|
env.response.status_code = 400
|
||||||
|
response = {"error" => ex.message}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
env.response.puts "id: #{id}"
|
||||||
|
env.response.puts "data: #{response.to_json}"
|
||||||
|
env.response.puts
|
||||||
|
env.response.flush
|
||||||
|
|
||||||
|
id += 1
|
||||||
|
|
||||||
|
sleep 1.minute
|
||||||
|
end
|
||||||
|
rescue ex
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
spawn do
|
||||||
|
begin
|
||||||
|
if since
|
||||||
|
topics.try &.each do |topic|
|
||||||
|
case topic
|
||||||
|
when .match(/UC[A-Za-z0-9_-]{22}/)
|
||||||
|
PG_DB.query_all("SELECT * FROM channel_videos WHERE ucid = $1 AND published > $2 ORDER BY published DESC LIMIT 15",
|
||||||
|
topic, Time.unix(since.not_nil!), as: ChannelVideo).each do |video|
|
||||||
|
response = JSON.parse(video.to_json(locale, config, Kemal.config))
|
||||||
|
|
||||||
|
if fields_text = env.params.query["fields"]?
|
||||||
|
begin
|
||||||
|
JSONFilter.filter(response, fields_text)
|
||||||
|
rescue ex
|
||||||
|
env.response.status_code = 400
|
||||||
|
response = {"error" => ex.message}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
env.response.puts "id: #{id}"
|
||||||
|
env.response.puts "data: #{response.to_json}"
|
||||||
|
env.response.puts
|
||||||
|
env.response.flush
|
||||||
|
|
||||||
|
id += 1
|
||||||
|
end
|
||||||
|
else
|
||||||
|
# TODO
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
spawn do
|
||||||
|
begin
|
||||||
|
loop do
|
||||||
|
event = connection.receive
|
||||||
|
|
||||||
|
notification = JSON.parse(event.payload)
|
||||||
|
topic = notification["topic"].as_s
|
||||||
|
video_id = notification["videoId"].as_s
|
||||||
|
published = notification["published"].as_i64
|
||||||
|
|
||||||
|
if !topics.try &.includes? topic
|
||||||
|
next
|
||||||
|
end
|
||||||
|
|
||||||
|
video = get_video(video_id, PG_DB, proxies)
|
||||||
|
video.published = Time.unix(published)
|
||||||
|
response = JSON.parse(video.to_json(locale, config, Kemal.config, decrypt_function))
|
||||||
|
|
||||||
|
if fields_text = env.params.query["fields"]?
|
||||||
|
begin
|
||||||
|
JSONFilter.filter(response, fields_text)
|
||||||
|
rescue ex
|
||||||
|
env.response.status_code = 400
|
||||||
|
response = {"error" => ex.message}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
env.response.puts "id: #{id}"
|
||||||
|
env.response.puts "data: #{response.to_json}"
|
||||||
|
env.response.puts
|
||||||
|
env.response.flush
|
||||||
|
|
||||||
|
id += 1
|
||||||
|
end
|
||||||
|
rescue ex
|
||||||
|
ensure
|
||||||
|
connection_channel.send({false, connection})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
begin
|
||||||
|
# Send heartbeat
|
||||||
|
loop do
|
||||||
|
env.response.puts ":keepalive #{Time.now.to_unix}"
|
||||||
|
env.response.puts
|
||||||
|
env.response.flush
|
||||||
|
sleep (20 + rand(11)).seconds
|
||||||
|
end
|
||||||
|
rescue ex
|
||||||
|
ensure
|
||||||
|
connection_channel.send({false, connection})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
@@ -7,8 +7,24 @@ def translate(locale : Hash(String, JSON::Any) | Nil, translation : String, text
|
|||||||
# puts "Could not find translation for #{translation.dump}"
|
# puts "Could not find translation for #{translation.dump}"
|
||||||
# end
|
# end
|
||||||
|
|
||||||
if locale && locale[translation]? && !locale[translation].as_s.empty?
|
if locale && locale[translation]?
|
||||||
translation = locale[translation].as_s
|
case locale[translation]
|
||||||
|
when .as_h?
|
||||||
|
match_length = 0
|
||||||
|
|
||||||
|
locale[translation].as_h.each do |key, value|
|
||||||
|
if md = text.try &.match(/#{key}/)
|
||||||
|
if md[0].size >= match_length
|
||||||
|
translation = value.as_s
|
||||||
|
match_length = md[0].size
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
when .as_s?
|
||||||
|
if !locale[translation].as_s.empty?
|
||||||
|
translation = locale[translation].as_s
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if text
|
if text
|
||||||
@@ -17,3 +33,12 @@ def translate(locale : Hash(String, JSON::Any) | Nil, translation : String, text
|
|||||||
|
|
||||||
return translation
|
return translation
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def translate_bool(locale : Hash(String, JSON::Any) | Nil, translation : Bool)
|
||||||
|
case translation
|
||||||
|
when true
|
||||||
|
return translate(locale, "Yes")
|
||||||
|
when false
|
||||||
|
return translate(locale, "No")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
241
src/invidious/helpers/jobs.cr
Normal file
241
src/invidious/helpers/jobs.cr
Normal file
@@ -0,0 +1,241 @@
|
|||||||
|
def refresh_channels(db, logger, config)
|
||||||
|
max_channel = Channel(Int32).new
|
||||||
|
|
||||||
|
spawn do
|
||||||
|
max_threads = max_channel.receive
|
||||||
|
active_threads = 0
|
||||||
|
active_channel = Channel(Bool).new
|
||||||
|
|
||||||
|
loop do
|
||||||
|
db.query("SELECT id FROM channels ORDER BY updated") do |rs|
|
||||||
|
rs.each do
|
||||||
|
id = rs.read(String)
|
||||||
|
|
||||||
|
if active_threads >= max_threads
|
||||||
|
if active_channel.receive
|
||||||
|
active_threads -= 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
active_threads += 1
|
||||||
|
spawn do
|
||||||
|
begin
|
||||||
|
channel = fetch_channel(id, db, config.full_refresh)
|
||||||
|
|
||||||
|
db.exec("UPDATE channels SET updated = $1, author = $2, deleted = false WHERE id = $3", Time.now, channel.author, id)
|
||||||
|
rescue ex
|
||||||
|
if ex.message == "Deleted or invalid channel"
|
||||||
|
db.exec("UPDATE channels SET updated = $1, deleted = true WHERE id = $2", Time.now, id)
|
||||||
|
end
|
||||||
|
logger.write("#{id} : #{ex.message}\n")
|
||||||
|
end
|
||||||
|
|
||||||
|
active_channel.send(true)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
sleep 1.minute
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
max_channel.send(config.channel_threads)
|
||||||
|
end
|
||||||
|
|
||||||
|
def refresh_feeds(db, logger, config)
|
||||||
|
max_channel = Channel(Int32).new
|
||||||
|
spawn do
|
||||||
|
max_threads = max_channel.receive
|
||||||
|
active_threads = 0
|
||||||
|
active_channel = Channel(Bool).new
|
||||||
|
|
||||||
|
loop do
|
||||||
|
db.query("SELECT email FROM users WHERE feed_needs_update = true OR feed_needs_update IS NULL") do |rs|
|
||||||
|
rs.each do
|
||||||
|
email = rs.read(String)
|
||||||
|
view_name = "subscriptions_#{sha256(email)}"
|
||||||
|
|
||||||
|
if active_threads >= max_threads
|
||||||
|
if active_channel.receive
|
||||||
|
active_threads -= 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
active_threads += 1
|
||||||
|
spawn do
|
||||||
|
begin
|
||||||
|
# Drop outdated views
|
||||||
|
column_array = get_column_array(db, view_name)
|
||||||
|
ChannelVideo.to_type_tuple.each_with_index do |name, i|
|
||||||
|
if name != column_array[i]?
|
||||||
|
logger.write("DROP MATERIALIZED VIEW #{view_name}\n")
|
||||||
|
db.exec("DROP MATERIALIZED VIEW #{view_name}")
|
||||||
|
raise "view does not exist"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if db.query_one("SELECT pg_get_viewdef('#{view_name}')", as: String).includes? "ucid = ANY"
|
||||||
|
logger.write("Materialized view #{view_name} is out-of-date, recreating...\n")
|
||||||
|
db.exec("DROP MATERIALIZED VIEW #{view_name}")
|
||||||
|
end
|
||||||
|
|
||||||
|
db.exec("REFRESH MATERIALIZED VIEW #{view_name}")
|
||||||
|
db.exec("UPDATE users SET feed_needs_update = false WHERE email = $1", email)
|
||||||
|
rescue ex
|
||||||
|
# Rename old views
|
||||||
|
begin
|
||||||
|
legacy_view_name = "subscriptions_#{sha256(email)[0..7]}"
|
||||||
|
|
||||||
|
db.exec("SELECT * FROM #{legacy_view_name} LIMIT 0")
|
||||||
|
logger.write("RENAME MATERIALIZED VIEW #{legacy_view_name}\n")
|
||||||
|
db.exec("ALTER MATERIALIZED VIEW #{legacy_view_name} RENAME TO #{view_name}")
|
||||||
|
rescue ex
|
||||||
|
begin
|
||||||
|
# While iterating through, we may have an email stored from a deleted account
|
||||||
|
if db.query_one?("SELECT true FROM users WHERE email = $1", email, as: Bool)
|
||||||
|
logger.write("CREATE #{view_name}\n")
|
||||||
|
db.exec("CREATE MATERIALIZED VIEW #{view_name} AS \
|
||||||
|
SELECT * FROM channel_videos WHERE
|
||||||
|
ucid IN (SELECT unnest(subscriptions) FROM users WHERE email = E'#{email.gsub("'", "\\'")}')
|
||||||
|
ORDER BY published DESC")
|
||||||
|
db.exec("UPDATE users SET feed_needs_update = false WHERE email = $1", email)
|
||||||
|
end
|
||||||
|
rescue ex
|
||||||
|
logger.write("REFRESH #{email} : #{ex.message}\n")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
active_channel.send(true)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
sleep 5.seconds
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
max_channel.send(config.feed_threads)
|
||||||
|
end
|
||||||
|
|
||||||
|
def subscribe_to_feeds(db, logger, key, config)
|
||||||
|
if config.use_pubsub_feeds
|
||||||
|
case config.use_pubsub_feeds
|
||||||
|
when Bool
|
||||||
|
max_threads = config.use_pubsub_feeds.as(Bool).to_unsafe
|
||||||
|
when Int32
|
||||||
|
max_threads = config.use_pubsub_feeds.as(Int32)
|
||||||
|
end
|
||||||
|
max_channel = Channel(Int32).new
|
||||||
|
|
||||||
|
spawn do
|
||||||
|
max_threads = max_channel.receive
|
||||||
|
active_threads = 0
|
||||||
|
active_channel = Channel(Bool).new
|
||||||
|
|
||||||
|
loop do
|
||||||
|
db.query_all("SELECT id FROM channels WHERE CURRENT_TIMESTAMP - subscribed > interval '4 days' OR subscribed IS NULL") do |rs|
|
||||||
|
rs.each do
|
||||||
|
ucid = rs.read(String)
|
||||||
|
|
||||||
|
if active_threads >= max_threads.as(Int32)
|
||||||
|
if active_channel.receive
|
||||||
|
active_threads -= 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
active_threads += 1
|
||||||
|
|
||||||
|
spawn do
|
||||||
|
begin
|
||||||
|
response = subscribe_pubsub(ucid, key, config)
|
||||||
|
|
||||||
|
if response.status_code >= 400
|
||||||
|
logger.write("#{ucid} : #{response.body}\n")
|
||||||
|
end
|
||||||
|
rescue ex
|
||||||
|
end
|
||||||
|
|
||||||
|
active_channel.send(true)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
sleep 1.minute
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
max_channel.send(max_threads.as(Int32))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def pull_top_videos(config, db)
|
||||||
|
loop do
|
||||||
|
begin
|
||||||
|
top = rank_videos(db, 40)
|
||||||
|
rescue ex
|
||||||
|
next
|
||||||
|
end
|
||||||
|
|
||||||
|
if top.size > 0
|
||||||
|
args = arg_array(top)
|
||||||
|
else
|
||||||
|
next
|
||||||
|
end
|
||||||
|
|
||||||
|
videos = [] of Video
|
||||||
|
|
||||||
|
top.each do |id|
|
||||||
|
begin
|
||||||
|
videos << get_video(id, db)
|
||||||
|
rescue ex
|
||||||
|
next
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
yield videos
|
||||||
|
sleep 1.minute
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def pull_popular_videos(db)
|
||||||
|
loop do
|
||||||
|
subscriptions = db.query_all("SELECT channel FROM \
|
||||||
|
(SELECT UNNEST(subscriptions) AS channel FROM users) AS d \
|
||||||
|
GROUP BY channel ORDER BY COUNT(channel) DESC LIMIT 40", as: String)
|
||||||
|
|
||||||
|
videos = db.query_all("SELECT DISTINCT ON (ucid) * FROM \
|
||||||
|
channel_videos WHERE ucid IN (#{arg_array(subscriptions)}) \
|
||||||
|
ORDER BY ucid, published DESC", subscriptions, as: ChannelVideo).sort_by { |video| video.published }.reverse
|
||||||
|
|
||||||
|
yield videos
|
||||||
|
sleep 1.minute
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def update_decrypt_function
|
||||||
|
loop do
|
||||||
|
begin
|
||||||
|
decrypt_function = fetch_decrypt_function
|
||||||
|
rescue ex
|
||||||
|
next
|
||||||
|
end
|
||||||
|
|
||||||
|
yield decrypt_function
|
||||||
|
sleep 1.minute
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def find_working_proxies(regions)
|
||||||
|
loop do
|
||||||
|
regions.each do |region|
|
||||||
|
proxies = get_proxies(region).first(20)
|
||||||
|
proxies = proxies.map { |proxy| {ip: proxy[:ip], port: proxy[:port]} }
|
||||||
|
# proxies = filter_proxies(proxies)
|
||||||
|
|
||||||
|
yield region, proxies
|
||||||
|
end
|
||||||
|
|
||||||
|
sleep 1.minute
|
||||||
|
end
|
||||||
|
end
|
||||||
248
src/invidious/helpers/json_filter.cr
Normal file
248
src/invidious/helpers/json_filter.cr
Normal file
@@ -0,0 +1,248 @@
|
|||||||
|
module JSONFilter
|
||||||
|
alias BracketIndex = Hash(Int64, Int64)
|
||||||
|
|
||||||
|
alias GroupedFieldsValue = String | Array(GroupedFieldsValue)
|
||||||
|
alias GroupedFieldsList = Array(GroupedFieldsValue)
|
||||||
|
|
||||||
|
class FieldsParser
|
||||||
|
class ParseError < Exception
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns the `Regex` pattern used to match nest groups
|
||||||
|
def self.nest_group_pattern : Regex
|
||||||
|
# uses a '.' character to match json keys as they are allowed
|
||||||
|
# to contain any unicode codepoint
|
||||||
|
/(?:|,)(?<groupname>[^,\n]*?)\(/
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns the `Regex` pattern used to check if there are any empty nest groups
|
||||||
|
def self.unnamed_nest_group_pattern : Regex
|
||||||
|
/^\(|\(\(|\/\(/
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.parse_fields(fields_text : String) : Nil
|
||||||
|
if fields_text.empty?
|
||||||
|
raise FieldsParser::ParseError.new "Fields is empty"
|
||||||
|
end
|
||||||
|
|
||||||
|
opening_bracket_count = fields_text.count('(')
|
||||||
|
closing_bracket_count = fields_text.count(')')
|
||||||
|
|
||||||
|
if opening_bracket_count != closing_bracket_count
|
||||||
|
bracket_type = opening_bracket_count > closing_bracket_count ? "opening" : "closing"
|
||||||
|
raise FieldsParser::ParseError.new "There are too many #{bracket_type} brackets (#{opening_bracket_count}:#{closing_bracket_count})"
|
||||||
|
elsif match_result = unnamed_nest_group_pattern.match(fields_text)
|
||||||
|
raise FieldsParser::ParseError.new "Unnamed nest group at position #{match_result.begin}"
|
||||||
|
end
|
||||||
|
|
||||||
|
# first, handle top-level single nested properties: items/id, playlistItems/snippet, etc
|
||||||
|
parse_single_nests(fields_text) { |nest_list| yield nest_list }
|
||||||
|
|
||||||
|
# next, handle nest groups: items(id, etag, etc)
|
||||||
|
parse_nest_groups(fields_text) { |nest_list| yield nest_list }
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.parse_single_nests(fields_text : String) : Nil
|
||||||
|
single_nests = remove_nest_groups(fields_text)
|
||||||
|
|
||||||
|
if !single_nests.empty?
|
||||||
|
property_nests = single_nests.split(',')
|
||||||
|
|
||||||
|
property_nests.each do |nest|
|
||||||
|
nest_list = nest.split('/')
|
||||||
|
if nest_list.includes? ""
|
||||||
|
raise FieldsParser::ParseError.new "Empty key in nest list: #{nest_list}"
|
||||||
|
end
|
||||||
|
yield nest_list
|
||||||
|
end
|
||||||
|
# else
|
||||||
|
# raise FieldsParser::ParseError.new "Empty key in nest list 22: #{fields_text} | #{single_nests}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.parse_nest_groups(fields_text : String) : Nil
|
||||||
|
nest_stack = [] of NamedTuple(group_name: String, closing_bracket_index: Int64)
|
||||||
|
bracket_pairs = get_bracket_pairs(fields_text, true)
|
||||||
|
|
||||||
|
text_index = 0
|
||||||
|
regex_index = 0
|
||||||
|
|
||||||
|
while regex_result = self.nest_group_pattern.match(fields_text, regex_index)
|
||||||
|
raw_match = regex_result[0]
|
||||||
|
group_name = regex_result["groupname"]
|
||||||
|
|
||||||
|
text_index = regex_result.begin
|
||||||
|
regex_index = regex_result.end
|
||||||
|
|
||||||
|
if text_index.nil? || regex_index.nil?
|
||||||
|
raise FieldsParser::ParseError.new "Received invalid index while parsing nest groups: text_index: #{text_index} | regex_index: #{regex_index}"
|
||||||
|
end
|
||||||
|
|
||||||
|
offset = raw_match.starts_with?(',') ? 1 : 0
|
||||||
|
|
||||||
|
opening_bracket_index = (text_index + group_name.size) + offset
|
||||||
|
closing_bracket_index = bracket_pairs[opening_bracket_index]
|
||||||
|
content_start = opening_bracket_index + 1
|
||||||
|
|
||||||
|
content = fields_text[content_start...closing_bracket_index]
|
||||||
|
|
||||||
|
if content.empty?
|
||||||
|
raise FieldsParser::ParseError.new "Empty nest group at position #{content_start}"
|
||||||
|
else
|
||||||
|
content = remove_nest_groups(content)
|
||||||
|
end
|
||||||
|
|
||||||
|
while nest_stack.size > 0 && closing_bracket_index > nest_stack[nest_stack.size - 1][:closing_bracket_index]
|
||||||
|
if nest_stack.size
|
||||||
|
nest_stack.pop
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
group_name.split('/').each do |group_name|
|
||||||
|
nest_stack.push({
|
||||||
|
group_name: group_name,
|
||||||
|
closing_bracket_index: closing_bracket_index,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
if !content.empty?
|
||||||
|
properties = content.split(',')
|
||||||
|
|
||||||
|
properties.each do |prop|
|
||||||
|
nest_list = nest_stack.map { |nest_prop| nest_prop[:group_name] }
|
||||||
|
|
||||||
|
if !prop.empty?
|
||||||
|
if prop.includes?('/')
|
||||||
|
parse_single_nests(prop) { |list| nest_list += list }
|
||||||
|
else
|
||||||
|
nest_list.push prop
|
||||||
|
end
|
||||||
|
else
|
||||||
|
raise FieldsParser::ParseError.new "Empty key in nest list: #{nest_list << prop}"
|
||||||
|
end
|
||||||
|
|
||||||
|
yield nest_list
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.remove_nest_groups(text : String) : String
|
||||||
|
content_bracket_pairs = get_bracket_pairs(text, false)
|
||||||
|
|
||||||
|
content_bracket_pairs.each_key.to_a.reverse.each do |opening_bracket|
|
||||||
|
closing_bracket = content_bracket_pairs[opening_bracket]
|
||||||
|
last_comma = text.rindex(',', opening_bracket) || 0
|
||||||
|
|
||||||
|
text = text[0...last_comma] + text[closing_bracket + 1...text.size]
|
||||||
|
end
|
||||||
|
|
||||||
|
return text.starts_with?(',') ? text[1...text.size] : text
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.get_bracket_pairs(text : String, recursive = true) : BracketIndex
|
||||||
|
istart = [] of Int64
|
||||||
|
bracket_index = BracketIndex.new
|
||||||
|
|
||||||
|
text.each_char_with_index do |char, index|
|
||||||
|
if char == '('
|
||||||
|
istart.push(index.to_i64)
|
||||||
|
end
|
||||||
|
|
||||||
|
if char == ')'
|
||||||
|
begin
|
||||||
|
opening = istart.pop
|
||||||
|
if recursive || (!recursive && istart.size == 0)
|
||||||
|
bracket_index[opening] = index.to_i64
|
||||||
|
end
|
||||||
|
rescue
|
||||||
|
raise FieldsParser::ParseError.new "No matching opening parenthesis at: #{index}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if istart.size != 0
|
||||||
|
idx = istart.pop
|
||||||
|
raise FieldsParser::ParseError.new "No matching closing parenthesis at: #{idx}"
|
||||||
|
end
|
||||||
|
|
||||||
|
return bracket_index
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FieldsGrouper
|
||||||
|
alias SkeletonValue = Hash(String, SkeletonValue)
|
||||||
|
|
||||||
|
def self.create_json_skeleton(fields_text : String) : SkeletonValue
|
||||||
|
root_hash = {} of String => SkeletonValue
|
||||||
|
|
||||||
|
FieldsParser.parse_fields(fields_text) do |nest_list|
|
||||||
|
current_item = root_hash
|
||||||
|
nest_list.each do |key|
|
||||||
|
if current_item[key]?
|
||||||
|
current_item = current_item[key]
|
||||||
|
else
|
||||||
|
current_item[key] = {} of String => SkeletonValue
|
||||||
|
current_item = current_item[key]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
root_hash
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.create_grouped_fields_list(json_skeleton : SkeletonValue) : GroupedFieldsList
|
||||||
|
grouped_fields_list = GroupedFieldsList.new
|
||||||
|
json_skeleton.each do |key, value|
|
||||||
|
grouped_fields_list.push key
|
||||||
|
|
||||||
|
nested_keys = create_grouped_fields_list(value)
|
||||||
|
grouped_fields_list.push nested_keys unless nested_keys.empty?
|
||||||
|
end
|
||||||
|
return grouped_fields_list
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FilterError < Exception
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.filter(item : JSON::Any, fields_text : String, in_place : Bool = true)
|
||||||
|
skeleton = FieldsGrouper.create_json_skeleton(fields_text)
|
||||||
|
grouped_fields_list = FieldsGrouper.create_grouped_fields_list(skeleton)
|
||||||
|
filter(item, grouped_fields_list, in_place)
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.filter(item : JSON::Any, grouped_fields_list : GroupedFieldsList, in_place : Bool = true) : JSON::Any
|
||||||
|
item = item.clone unless in_place
|
||||||
|
|
||||||
|
if !item.as_h? && !item.as_a?
|
||||||
|
raise FilterError.new "Can't filter '#{item}' by #{grouped_fields_list}"
|
||||||
|
end
|
||||||
|
|
||||||
|
top_level_keys = Array(String).new
|
||||||
|
grouped_fields_list.each do |value|
|
||||||
|
if value.is_a? String
|
||||||
|
top_level_keys.push value
|
||||||
|
elsif value.is_a? Array
|
||||||
|
if !top_level_keys.empty?
|
||||||
|
key_to_filter = top_level_keys.last
|
||||||
|
|
||||||
|
if item.as_h?
|
||||||
|
filter(item[key_to_filter], value, in_place: true)
|
||||||
|
elsif item.as_a?
|
||||||
|
item.as_a.each { |arr_item| filter(arr_item[key_to_filter], value, in_place: true) }
|
||||||
|
end
|
||||||
|
else
|
||||||
|
raise FilterError.new "Tried to filter while top level keys list is empty"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if item.as_h?
|
||||||
|
item.as_h.select! top_level_keys
|
||||||
|
elsif item.as_a?
|
||||||
|
item.as_a.map { |value| filter(value, top_level_keys, in_place: true) }
|
||||||
|
end
|
||||||
|
|
||||||
|
item
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -1,18 +1,49 @@
|
|||||||
macro add_mapping(mapping)
|
macro db_mapping(mapping)
|
||||||
def initialize({{*mapping.keys.map { |id| "@#{id}".id }}})
|
def initialize({{*mapping.keys.map { |id| "@#{id}".id }}})
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_a
|
def to_a
|
||||||
return [{{*mapping.keys.map { |id| "@#{id}".id }}}]
|
return [ {{*mapping.keys.map { |id| "@#{id}".id }}} ]
|
||||||
end
|
end
|
||||||
|
|
||||||
DB.mapping({{mapping}})
|
def self.to_type_tuple
|
||||||
|
return { {{*mapping.keys.map { |id| "#{id}" }}} }
|
||||||
|
end
|
||||||
|
|
||||||
|
DB.mapping( {{mapping}} )
|
||||||
|
end
|
||||||
|
|
||||||
|
macro json_mapping(mapping)
|
||||||
|
def initialize({{*mapping.keys.map { |id| "@#{id}".id }}})
|
||||||
|
end
|
||||||
|
|
||||||
|
def to_a
|
||||||
|
return [ {{*mapping.keys.map { |id| "@#{id}".id }}} ]
|
||||||
|
end
|
||||||
|
|
||||||
|
patched_json_mapping( {{mapping}} )
|
||||||
|
YAML.mapping( {{mapping}} )
|
||||||
|
end
|
||||||
|
|
||||||
|
macro yaml_mapping(mapping)
|
||||||
|
def initialize({{*mapping.keys.map { |id| "@#{id}".id }}})
|
||||||
|
end
|
||||||
|
|
||||||
|
def to_a
|
||||||
|
return [ {{*mapping.keys.map { |id| "@#{id}".id }}} ]
|
||||||
|
end
|
||||||
|
|
||||||
|
def to_tuple
|
||||||
|
return { {{*mapping.keys.map { |id| "@#{id}".id }}} }
|
||||||
|
end
|
||||||
|
|
||||||
|
YAML.mapping({{mapping}})
|
||||||
end
|
end
|
||||||
|
|
||||||
macro templated(filename, template = "template")
|
macro templated(filename, template = "template")
|
||||||
render "src/invidious/views/#{{{filename}}}.ecr", "src/invidious/views/#{{{template}}}.ecr"
|
render "src/invidious/views/#{{{filename}}}.ecr", "src/invidious/views/#{{{template}}}.ecr"
|
||||||
end
|
end
|
||||||
|
|
||||||
macro rendered(filename)
|
macro rendered(filename)
|
||||||
render "src/invidious/views/#{{{filename}}}.ecr"
|
render "src/invidious/views/#{{{filename}}}.ecr"
|
||||||
end
|
end
|
||||||
|
|||||||
166
src/invidious/helpers/patch_mapping.cr
Normal file
166
src/invidious/helpers/patch_mapping.cr
Normal file
@@ -0,0 +1,166 @@
|
|||||||
|
# Overloads https://github.com/crystal-lang/crystal/blob/0.28.0/src/json/from_json.cr#L24
|
||||||
|
def Object.from_json(string_or_io, default) : self
|
||||||
|
parser = JSON::PullParser.new(string_or_io)
|
||||||
|
new parser, default
|
||||||
|
end
|
||||||
|
|
||||||
|
# Adds configurable 'default' to
|
||||||
|
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) %}
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
{% for key, value in _properties_ %}
|
||||||
|
{% _properties_[key][:key_id] = key.id.gsub(/\?$/, "") %}
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
{% for key, value in _properties_ %}
|
||||||
|
@{{value[:key_id]}} : {{value[:type]}}{{ (value[:nilable] ? "?" : "").id }}
|
||||||
|
|
||||||
|
{% if value[:setter] == nil ? true : value[:setter] %}
|
||||||
|
def {{value[:key_id]}}=(_{{value[:key_id]}} : {{value[:type]}}{{ (value[:nilable] ? "?" : "").id }})
|
||||||
|
@{{value[:key_id]}} = _{{value[:key_id]}}
|
||||||
|
end
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
{% if value[:getter] == nil ? true : value[:getter] %}
|
||||||
|
def {{key.id}} : {{value[:type]}}{{ (value[:nilable] ? "?" : "").id }}
|
||||||
|
@{{value[:key_id]}}
|
||||||
|
end
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
{% if value[:presence] %}
|
||||||
|
@{{value[:key_id]}}_present : Bool = false
|
||||||
|
|
||||||
|
def {{value[:key_id]}}_present?
|
||||||
|
@{{value[:key_id]}}_present
|
||||||
|
end
|
||||||
|
{% end %}
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
def initialize(%pull : ::JSON::PullParser, default = nil)
|
||||||
|
{% for key, value in _properties_ %}
|
||||||
|
%var{key.id} = nil
|
||||||
|
%found{key.id} = false
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
%location = %pull.location
|
||||||
|
begin
|
||||||
|
%pull.read_begin_object
|
||||||
|
rescue exc : ::JSON::ParseException
|
||||||
|
raise ::JSON::MappingError.new(exc.message, self.class.to_s, nil, *%location, exc)
|
||||||
|
end
|
||||||
|
while %pull.kind != :end_object
|
||||||
|
%key_location = %pull.location
|
||||||
|
key = %pull.read_object_key
|
||||||
|
case key
|
||||||
|
{% for key, value in _properties_ %}
|
||||||
|
when {{value[:key] || value[:key_id].stringify}}
|
||||||
|
%found{key.id} = true
|
||||||
|
begin
|
||||||
|
%var{key.id} =
|
||||||
|
{% if value[:nilable] || value[:default] != nil %} %pull.read_null_or { {% end %}
|
||||||
|
|
||||||
|
{% if value[:root] %}
|
||||||
|
%pull.on_key!({{value[:root]}}) do
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
{% if value[:converter] %}
|
||||||
|
{{value[:converter]}}.from_json(%pull)
|
||||||
|
{% elsif value[:type].is_a?(Path) || value[:type].is_a?(Generic) %}
|
||||||
|
{{value[:type]}}.new(%pull)
|
||||||
|
{% else %}
|
||||||
|
::Union({{value[:type]}}).new(%pull)
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
{% if value[:root] %}
|
||||||
|
end
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
{% if value[:nilable] || value[:default] != nil %} } {% end %}
|
||||||
|
rescue exc : ::JSON::ParseException
|
||||||
|
raise ::JSON::MappingError.new(exc.message, self.class.to_s, {{value[:key] || value[:key_id].stringify}}, *%key_location, exc)
|
||||||
|
end
|
||||||
|
{% end %}
|
||||||
|
else
|
||||||
|
{% if strict %}
|
||||||
|
raise ::JSON::MappingError.new("Unknown JSON attribute: #{key}", self.class.to_s, nil, *%key_location, nil)
|
||||||
|
{% else %}
|
||||||
|
%pull.skip
|
||||||
|
{% end %}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
%pull.read_next
|
||||||
|
|
||||||
|
{% for key, value in _properties_ %}
|
||||||
|
{% unless value[:nilable] || value[:default] != nil %}
|
||||||
|
if %var{key.id}.nil? && !%found{key.id} && !::Union({{value[:type]}}).nilable?
|
||||||
|
raise ::JSON::MappingError.new("Missing JSON attribute: {{(value[:key] || value[:key_id]).id}}", self.class.to_s, nil, *%location, nil)
|
||||||
|
end
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
{% if value[:nilable] %}
|
||||||
|
{% if value[:default] != nil %}
|
||||||
|
@{{value[:key_id]}} = %found{key.id} ? %var{key.id} : (default.responds_to?(:{{value[:key_id]}}) ? default.{{value[:key_id]}} : {{value[:default]}})
|
||||||
|
{% else %}
|
||||||
|
@{{value[:key_id]}} = %var{key.id}
|
||||||
|
{% end %}
|
||||||
|
{% elsif value[:default] != nil %}
|
||||||
|
@{{value[:key_id]}} = %var{key.id}.nil? ? (default.responds_to?(:{{value[:key_id]}}) ? default.{{value[:key_id]}} : {{value[:default]}}) : %var{key.id}
|
||||||
|
{% else %}
|
||||||
|
@{{value[:key_id]}} = (%var{key.id}).as({{value[:type]}})
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
{% if value[:presence] %}
|
||||||
|
@{{value[:key_id]}}_present = %found{key.id}
|
||||||
|
{% end %}
|
||||||
|
{% end %}
|
||||||
|
end
|
||||||
|
|
||||||
|
def to_json(json : ::JSON::Builder)
|
||||||
|
json.object do
|
||||||
|
{% for key, value in _properties_ %}
|
||||||
|
_{{value[:key_id]}} = @{{value[:key_id]}}
|
||||||
|
|
||||||
|
{% unless value[:emit_null] %}
|
||||||
|
unless _{{value[:key_id]}}.nil?
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
json.field({{value[:key] || value[:key_id].stringify}}) do
|
||||||
|
{% if value[:root] %}
|
||||||
|
{% if value[:emit_null] %}
|
||||||
|
if _{{value[:key_id]}}.nil?
|
||||||
|
nil.to_json(json)
|
||||||
|
else
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
json.object do
|
||||||
|
json.field({{value[:root]}}) do
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
{% if value[:converter] %}
|
||||||
|
if _{{value[:key_id]}}
|
||||||
|
{{ value[:converter] }}.to_json(_{{value[:key_id]}}, json)
|
||||||
|
else
|
||||||
|
nil.to_json(json)
|
||||||
|
end
|
||||||
|
{% else %}
|
||||||
|
_{{value[:key_id]}}.to_json(json)
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
{% if value[:root] %}
|
||||||
|
{% if value[:emit_null] %}
|
||||||
|
end
|
||||||
|
{% end %}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
{% end %}
|
||||||
|
end
|
||||||
|
|
||||||
|
{% unless value[:emit_null] %}
|
||||||
|
end
|
||||||
|
{% end %}
|
||||||
|
{% end %}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
146
src/invidious/helpers/tokens.cr
Normal file
146
src/invidious/helpers/tokens.cr
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
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.now)
|
||||||
|
|
||||||
|
token = {
|
||||||
|
"session" => session,
|
||||||
|
"scopes" => scopes,
|
||||||
|
"expire" => expire,
|
||||||
|
}
|
||||||
|
|
||||||
|
if !expire
|
||||||
|
token.delete("expire")
|
||||||
|
end
|
||||||
|
|
||||||
|
token["signature"] = sign_token(key, token)
|
||||||
|
|
||||||
|
return token.to_json
|
||||||
|
end
|
||||||
|
|
||||||
|
def generate_response(session, scopes, key, db, expire = 6.hours, use_nonce = false)
|
||||||
|
expire = Time.now + expire
|
||||||
|
|
||||||
|
token = {
|
||||||
|
"session" => session,
|
||||||
|
"expire" => expire.to_unix,
|
||||||
|
"scopes" => scopes,
|
||||||
|
}
|
||||||
|
|
||||||
|
if use_nonce
|
||||||
|
nonce = Random::Secure.hex(16)
|
||||||
|
db.exec("INSERT INTO nonces VALUES ($1, $2) ON CONFLICT DO NOTHING", nonce, expire)
|
||||||
|
token["nonce"] = nonce
|
||||||
|
end
|
||||||
|
|
||||||
|
token["signature"] = sign_token(key, token)
|
||||||
|
|
||||||
|
return token.to_json
|
||||||
|
end
|
||||||
|
|
||||||
|
def sign_token(key, hash)
|
||||||
|
string_to_sign = [] of String
|
||||||
|
|
||||||
|
hash.each do |key, value|
|
||||||
|
if key == "signature"
|
||||||
|
next
|
||||||
|
end
|
||||||
|
|
||||||
|
if value.is_a?(JSON::Any)
|
||||||
|
case value
|
||||||
|
when .as_a?
|
||||||
|
value = value.as_a.map { |item| item.as_s }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
case value
|
||||||
|
when Array
|
||||||
|
string_to_sign << "#{key}=#{value.sort.join(",")}"
|
||||||
|
when Tuple
|
||||||
|
string_to_sign << "#{key}=#{value.to_a.sort.join(",")}"
|
||||||
|
else
|
||||||
|
string_to_sign << "#{key}=#{value}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
string_to_sign = string_to_sign.sort.join("\n")
|
||||||
|
return Base64.urlsafe_encode(OpenSSL::HMAC.digest(:sha256, key, string_to_sign)).strip
|
||||||
|
end
|
||||||
|
|
||||||
|
def validate_request(token, session, request, key, db, locale = nil)
|
||||||
|
case token
|
||||||
|
when String
|
||||||
|
token = JSON.parse(URI.unescape(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")
|
||||||
|
end
|
||||||
|
|
||||||
|
if token["session"] != session
|
||||||
|
raise translate(locale, "Erroneous token")
|
||||||
|
end
|
||||||
|
|
||||||
|
if token["nonce"]? && (nonce = db.query_one?("SELECT * FROM nonces WHERE nonce = $1", token["nonce"], as: {String, Time}))
|
||||||
|
if nonce[1] > Time.now
|
||||||
|
db.exec("UPDATE nonces SET expire = $1 WHERE nonce = $2", Time.new(1990, 1, 1), nonce[0])
|
||||||
|
else
|
||||||
|
raise translate(locale, "Erroneous token")
|
||||||
|
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.now.to_unix
|
||||||
|
raise translate(locale, "Token is expired, please try again")
|
||||||
|
end
|
||||||
|
|
||||||
|
return {scopes, expire, token["signature"].as_s}
|
||||||
|
end
|
||||||
|
|
||||||
|
def scope_includes_scope(scope, subset)
|
||||||
|
methods, endpoint = scope.split(":")
|
||||||
|
methods = methods.split(";").map { |method| method.upcase }.reject { |method| method.empty? }.sort
|
||||||
|
endpoint = endpoint.downcase
|
||||||
|
|
||||||
|
subset_methods, subset_endpoint = subset.split(":")
|
||||||
|
subset_methods = subset_methods.split(";").map { |method| method.upcase }.sort
|
||||||
|
subset_endpoint = subset_endpoint.downcase
|
||||||
|
|
||||||
|
if methods.empty?
|
||||||
|
methods = %w(GET POST PUT HEAD DELETE PATCH OPTIONS)
|
||||||
|
end
|
||||||
|
|
||||||
|
if methods & subset_methods != subset_methods
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
if endpoint.ends_with?("*") && !subset_endpoint.starts_with? endpoint.rchop("*")
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
if !endpoint.ends_with?("*") && subset_endpoint != endpoint
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
def scopes_include_scope(scopes, subset)
|
||||||
|
scopes.each do |scope|
|
||||||
|
if scope_includes_scope(scope, subset)
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return false
|
||||||
|
end
|
||||||
@@ -18,13 +18,18 @@ def elapsed_text(elapsed)
|
|||||||
"#{(millis * 1000).round(2)}µs"
|
"#{(millis * 1000).round(2)}µs"
|
||||||
end
|
end
|
||||||
|
|
||||||
def make_client(url, proxies = {} of String => Array({ip: String, port: Int32}), region = nil)
|
def make_client(url : URI, proxies = {} of String => Array({ip: String, port: Int32}), region = nil)
|
||||||
context = OpenSSL::SSL::Context::Client.new
|
context = nil
|
||||||
context.add_options(
|
|
||||||
OpenSSL::SSL::Options::ALL |
|
if url.scheme == "https"
|
||||||
OpenSSL::SSL::Options::NO_SSL_V2 |
|
context = OpenSSL::SSL::Context::Client.new
|
||||||
OpenSSL::SSL::Options::NO_SSL_V3
|
context.add_options(
|
||||||
)
|
OpenSSL::SSL::Options::ALL |
|
||||||
|
OpenSSL::SSL::Options::NO_SSL_V2 |
|
||||||
|
OpenSSL::SSL::Options::NO_SSL_V3
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
client = HTTPClient.new(url, context)
|
client = HTTPClient.new(url, context)
|
||||||
client.read_timeout = 10.seconds
|
client.read_timeout = 10.seconds
|
||||||
client.connect_timeout = 10.seconds
|
client.connect_timeout = 10.seconds
|
||||||
@@ -59,8 +64,8 @@ def recode_length_seconds(time)
|
|||||||
time = time.seconds
|
time = time.seconds
|
||||||
text = "#{time.minutes.to_s.rjust(2, '0')}:#{time.seconds.to_s.rjust(2, '0')}"
|
text = "#{time.minutes.to_s.rjust(2, '0')}:#{time.seconds.to_s.rjust(2, '0')}"
|
||||||
|
|
||||||
if time.hours > 0
|
if time.total_hours.to_i > 0
|
||||||
text = "#{time.hours.to_s.rjust(2, '0')}:#{text}"
|
text = "#{time.total_hours.to_i.to_s.rjust(2, '0')}:#{text}"
|
||||||
end
|
end
|
||||||
|
|
||||||
text = text.lchop('0')
|
text = text.lchop('0')
|
||||||
@@ -162,6 +167,23 @@ def number_with_separator(number)
|
|||||||
number.to_s.reverse.gsub(/(\d{3})(?=\d)/, "\\1,").reverse
|
number.to_s.reverse.gsub(/(\d{3})(?=\d)/, "\\1,").reverse
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def short_text_to_number(short_text)
|
||||||
|
case short_text
|
||||||
|
when .ends_with? "M"
|
||||||
|
number = short_text.rstrip(" mM").to_f
|
||||||
|
number *= 1000000
|
||||||
|
when .ends_with? "K"
|
||||||
|
number = short_text.rstrip(" kK").to_f
|
||||||
|
number *= 1000
|
||||||
|
else
|
||||||
|
number = short_text.rstrip(" ")
|
||||||
|
end
|
||||||
|
|
||||||
|
number = number.to_i
|
||||||
|
|
||||||
|
return number
|
||||||
|
end
|
||||||
|
|
||||||
def number_to_short_text(number)
|
def number_to_short_text(number)
|
||||||
seperated = number_with_separator(number).gsub(",", ".").split("")
|
seperated = number_with_separator(number).gsub(",", ".").split("")
|
||||||
text = seperated.first(2).join
|
text = seperated.first(2).join
|
||||||
@@ -172,7 +194,9 @@ def number_to_short_text(number)
|
|||||||
|
|
||||||
text = text.rchop(".0")
|
text = text.rchop(".0")
|
||||||
|
|
||||||
if number / 1000000 != 0
|
if number / 1_000_000_000 != 0
|
||||||
|
text += "B"
|
||||||
|
elsif number / 1_000_000 != 0
|
||||||
text += "M"
|
text += "M"
|
||||||
elsif number / 1000 != 0
|
elsif number / 1000 != 0
|
||||||
text += "K"
|
text += "K"
|
||||||
@@ -193,17 +217,33 @@ def arg_array(array, start = 1)
|
|||||||
return args
|
return args
|
||||||
end
|
end
|
||||||
|
|
||||||
def make_host_url(ssl, host)
|
def make_host_url(config, kemal_config)
|
||||||
|
ssl = config.https_only || kemal_config.ssl
|
||||||
|
port = config.external_port || kemal_config.port
|
||||||
|
|
||||||
if ssl
|
if ssl
|
||||||
scheme = "https://"
|
scheme = "https://"
|
||||||
else
|
else
|
||||||
scheme = "http://"
|
scheme = "http://"
|
||||||
end
|
end
|
||||||
|
|
||||||
return "#{scheme}#{host}"
|
# Add if non-standard port
|
||||||
|
if port != 80 && port != 443
|
||||||
|
port = ":#{kemal_config.port}"
|
||||||
|
else
|
||||||
|
port = ""
|
||||||
|
end
|
||||||
|
|
||||||
|
if !config.domain
|
||||||
|
return ""
|
||||||
|
end
|
||||||
|
|
||||||
|
host = config.domain.not_nil!.lchop(".")
|
||||||
|
|
||||||
|
return "#{scheme}#{host}#{port}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_referer(env, fallback = "/")
|
def get_referer(env, fallback = "/", unroll = true)
|
||||||
referer = env.params.query["referer"]?
|
referer = env.params.query["referer"]?
|
||||||
referer ||= env.request.headers["referer"]?
|
referer ||= env.request.headers["referer"]?
|
||||||
referer ||= fallback
|
referer ||= fallback
|
||||||
@@ -211,16 +251,18 @@ def get_referer(env, fallback = "/")
|
|||||||
referer = URI.parse(referer)
|
referer = URI.parse(referer)
|
||||||
|
|
||||||
# "Unroll" nested referrers
|
# "Unroll" nested referrers
|
||||||
loop do
|
if unroll
|
||||||
if referer.query
|
loop do
|
||||||
params = HTTP::Params.parse(referer.query.not_nil!)
|
if referer.query
|
||||||
if params["referer"]?
|
params = HTTP::Params.parse(referer.query.not_nil!)
|
||||||
referer = URI.parse(URI.unescape(params["referer"]))
|
if params["referer"]?
|
||||||
|
referer = URI.parse(URI.unescape(params["referer"]))
|
||||||
|
else
|
||||||
|
break
|
||||||
|
end
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
else
|
|
||||||
break
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,223 +0,0 @@
|
|||||||
def crawl_videos(db, logger)
|
|
||||||
ids = Deque(String).new
|
|
||||||
random = Random.new
|
|
||||||
|
|
||||||
search(random.base64(3)).as(Tuple)[1].each do |video|
|
|
||||||
if video.is_a?(SearchVideo)
|
|
||||||
ids << video.id
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
loop do
|
|
||||||
if ids.empty?
|
|
||||||
search(random.base64(3)).as(Tuple)[1].each do |video|
|
|
||||||
if video.is_a?(SearchVideo)
|
|
||||||
ids << video.id
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
begin
|
|
||||||
id = ids[0]
|
|
||||||
video = get_video(id, db)
|
|
||||||
rescue ex
|
|
||||||
logger.write("#{id} : #{ex.message}\n")
|
|
||||||
next
|
|
||||||
ensure
|
|
||||||
ids.delete(id)
|
|
||||||
end
|
|
||||||
|
|
||||||
rvs = [] of Hash(String, String)
|
|
||||||
video.info["rvs"]?.try &.split(",").each do |rv|
|
|
||||||
rvs << HTTP::Params.parse(rv).to_h
|
|
||||||
end
|
|
||||||
|
|
||||||
rvs.each do |rv|
|
|
||||||
if rv.has_key?("id") && !db.query_one?("SELECT EXISTS (SELECT true FROM videos WHERE id = $1)", rv["id"], as: Bool)
|
|
||||||
ids.delete(id)
|
|
||||||
ids << rv["id"]
|
|
||||||
if ids.size == 150
|
|
||||||
ids.shift
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
Fiber.yield
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def refresh_channels(db, logger, max_threads = 1, full_refresh = false)
|
|
||||||
max_channel = Channel(Int32).new
|
|
||||||
|
|
||||||
spawn do
|
|
||||||
max_threads = max_channel.receive
|
|
||||||
active_threads = 0
|
|
||||||
active_channel = Channel(Bool).new
|
|
||||||
|
|
||||||
loop do
|
|
||||||
db.query("SELECT id FROM channels ORDER BY updated") do |rs|
|
|
||||||
rs.each do
|
|
||||||
id = rs.read(String)
|
|
||||||
|
|
||||||
if active_threads >= max_threads
|
|
||||||
if active_channel.receive
|
|
||||||
active_threads -= 1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
active_threads += 1
|
|
||||||
spawn do
|
|
||||||
begin
|
|
||||||
channel = fetch_channel(id, db, full_refresh)
|
|
||||||
|
|
||||||
db.exec("UPDATE channels SET updated = $1, author = $2, deleted = false WHERE id = $3", Time.now, channel.author, id)
|
|
||||||
rescue ex
|
|
||||||
if ex.message == "Deleted or invalid channel"
|
|
||||||
db.exec("UPDATE channels SET deleted = true WHERE id = $1", id)
|
|
||||||
end
|
|
||||||
logger.write("#{id} : #{ex.message}\n")
|
|
||||||
end
|
|
||||||
|
|
||||||
active_channel.send(true)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
max_channel.send(max_threads)
|
|
||||||
end
|
|
||||||
|
|
||||||
def refresh_videos(db, logger)
|
|
||||||
loop do
|
|
||||||
db.query("SELECT id FROM videos ORDER BY updated") do |rs|
|
|
||||||
rs.each do
|
|
||||||
begin
|
|
||||||
id = rs.read(String)
|
|
||||||
video = get_video(id, db)
|
|
||||||
rescue ex
|
|
||||||
logger.write("#{id} : #{ex.message}\n")
|
|
||||||
next
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
Fiber.yield
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def refresh_feeds(db, logger, max_threads = 1)
|
|
||||||
max_channel = Channel(Int32).new
|
|
||||||
|
|
||||||
spawn do
|
|
||||||
max_threads = max_channel.receive
|
|
||||||
active_threads = 0
|
|
||||||
active_channel = Channel(Bool).new
|
|
||||||
|
|
||||||
loop do
|
|
||||||
db.query("SELECT email FROM users") do |rs|
|
|
||||||
rs.each do
|
|
||||||
email = rs.read(String)
|
|
||||||
view_name = "subscriptions_#{sha256(email)[0..7]}"
|
|
||||||
|
|
||||||
if active_threads >= max_threads
|
|
||||||
if active_channel.receive
|
|
||||||
active_threads -= 1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
active_threads += 1
|
|
||||||
spawn do
|
|
||||||
begin
|
|
||||||
db.exec("REFRESH MATERIALIZED VIEW #{view_name}")
|
|
||||||
rescue ex
|
|
||||||
logger.write("REFRESH #{email} : #{ex.message}\n")
|
|
||||||
end
|
|
||||||
|
|
||||||
active_channel.send(true)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
max_channel.send(max_threads)
|
|
||||||
end
|
|
||||||
|
|
||||||
def pull_top_videos(config, db)
|
|
||||||
if config.dl_api_key
|
|
||||||
DetectLanguage.configure do |dl_config|
|
|
||||||
dl_config.api_key = config.dl_api_key.not_nil!
|
|
||||||
end
|
|
||||||
filter = true
|
|
||||||
end
|
|
||||||
|
|
||||||
filter ||= false
|
|
||||||
|
|
||||||
loop do
|
|
||||||
begin
|
|
||||||
top = rank_videos(db, 40, filter, YT_URL)
|
|
||||||
rescue ex
|
|
||||||
next
|
|
||||||
end
|
|
||||||
|
|
||||||
if top.size > 0
|
|
||||||
args = arg_array(top)
|
|
||||||
else
|
|
||||||
next
|
|
||||||
end
|
|
||||||
|
|
||||||
videos = [] of Video
|
|
||||||
|
|
||||||
top.each do |id|
|
|
||||||
begin
|
|
||||||
videos << get_video(id, db)
|
|
||||||
rescue ex
|
|
||||||
next
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
yield videos
|
|
||||||
Fiber.yield
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def pull_popular_videos(db)
|
|
||||||
loop do
|
|
||||||
subscriptions = PG_DB.query_all("SELECT channel FROM \
|
|
||||||
(SELECT UNNEST(subscriptions) AS channel FROM users) AS d \
|
|
||||||
GROUP BY channel ORDER BY COUNT(channel) DESC LIMIT 40", as: String)
|
|
||||||
|
|
||||||
videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM \
|
|
||||||
channel_videos WHERE ucid IN (#{arg_array(subscriptions)}) \
|
|
||||||
ORDER BY ucid, published DESC", subscriptions, as: ChannelVideo).sort_by { |video| video.published }.reverse
|
|
||||||
|
|
||||||
yield videos
|
|
||||||
Fiber.yield
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def update_decrypt_function
|
|
||||||
loop do
|
|
||||||
begin
|
|
||||||
decrypt_function = fetch_decrypt_function
|
|
||||||
rescue ex
|
|
||||||
next
|
|
||||||
end
|
|
||||||
|
|
||||||
yield decrypt_function
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def find_working_proxies(regions)
|
|
||||||
loop do
|
|
||||||
regions.each do |region|
|
|
||||||
proxies = get_proxies(region).first(20)
|
|
||||||
proxies = proxies.map { |proxy| {ip: proxy[:ip], port: proxy[:port]} }
|
|
||||||
# proxies = filter_proxies(proxies)
|
|
||||||
|
|
||||||
yield region, proxies
|
|
||||||
Fiber.yield
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
class MixVideo
|
struct MixVideo
|
||||||
add_mapping({
|
db_mapping({
|
||||||
title: String,
|
title: String,
|
||||||
id: String,
|
id: String,
|
||||||
author: String,
|
author: String,
|
||||||
@@ -10,8 +10,8 @@ class MixVideo
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class Mix
|
struct Mix
|
||||||
add_mapping({
|
db_mapping({
|
||||||
title: String,
|
title: String,
|
||||||
id: String,
|
id: String,
|
||||||
videos: Array(MixVideo),
|
videos: Array(MixVideo),
|
||||||
@@ -99,10 +99,13 @@ def template_mix(mix)
|
|||||||
html += <<-END_HTML
|
html += <<-END_HTML
|
||||||
<li class="pure-menu-item">
|
<li class="pure-menu-item">
|
||||||
<a href="/watch?v=#{video["videoId"]}&list=#{mix["mixId"]}">
|
<a href="/watch?v=#{video["videoId"]}&list=#{mix["mixId"]}">
|
||||||
<img style="width:100%;" src="/vi/#{video["videoId"]}/mqdefault.jpg">
|
<div class="thumbnail">
|
||||||
|
<img class="thumbnail" src="/vi/#{video["videoId"]}/mqdefault.jpg">
|
||||||
|
<p class="length">#{recode_length_seconds(video["lengthSeconds"].as_i)}</p>
|
||||||
|
</div>
|
||||||
<p style="width:100%">#{video["title"]}</p>
|
<p style="width:100%">#{video["title"]}</p>
|
||||||
<p>
|
<p>
|
||||||
<b style="width: 100%">#{video["author"]}</b>
|
<b style="width:100%">#{video["author"]}</b>
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
class PlaylistVideo
|
struct PlaylistVideo
|
||||||
add_mapping({
|
db_mapping({
|
||||||
title: String,
|
title: String,
|
||||||
id: String,
|
id: String,
|
||||||
author: String,
|
author: String,
|
||||||
@@ -8,11 +8,12 @@ class PlaylistVideo
|
|||||||
published: Time,
|
published: Time,
|
||||||
playlists: Array(String),
|
playlists: Array(String),
|
||||||
index: Int32,
|
index: Int32,
|
||||||
|
live_now: Bool,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class Playlist
|
struct Playlist
|
||||||
add_mapping({
|
db_mapping({
|
||||||
title: String,
|
title: String,
|
||||||
id: String,
|
id: String,
|
||||||
author: String,
|
author: String,
|
||||||
@@ -48,7 +49,7 @@ def fetch_playlist_videos(plid, page, video_count, continuation = nil, locale =
|
|||||||
response = client.get(url)
|
response = client.get(url)
|
||||||
response = JSON.parse(response.body)
|
response = JSON.parse(response.body)
|
||||||
if !response["content_html"]? || response["content_html"].as_s.empty?
|
if !response["content_html"]? || response["content_html"].as_s.empty?
|
||||||
raise translate(locale, "Playlist is empty")
|
raise translate(locale, "Empty playlist")
|
||||||
end
|
end
|
||||||
|
|
||||||
document = XML.parse_html(response["content_html"].as_s)
|
document = XML.parse_html(response["content_html"].as_s)
|
||||||
@@ -101,8 +102,10 @@ def extract_playlist(plid, nodeset, index)
|
|||||||
anchor = video.xpath_node(%q(.//td[@class="pl-video-time"]/div/div[1]))
|
anchor = video.xpath_node(%q(.//td[@class="pl-video-time"]/div/div[1]))
|
||||||
if anchor && !anchor.content.empty?
|
if anchor && !anchor.content.empty?
|
||||||
length_seconds = decode_length_seconds(anchor.content)
|
length_seconds = decode_length_seconds(anchor.content)
|
||||||
|
live_now = false
|
||||||
else
|
else
|
||||||
length_seconds = 0
|
length_seconds = 0
|
||||||
|
live_now = true
|
||||||
end
|
end
|
||||||
|
|
||||||
videos << PlaylistVideo.new(
|
videos << PlaylistVideo.new(
|
||||||
@@ -114,6 +117,7 @@ def extract_playlist(plid, nodeset, index)
|
|||||||
published: Time.now,
|
published: Time.now,
|
||||||
playlists: [plid],
|
playlists: [plid],
|
||||||
index: index + offset,
|
index: index + offset,
|
||||||
|
live_now: live_now
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -170,7 +174,7 @@ def fetch_playlist(plid, locale)
|
|||||||
|
|
||||||
response = client.get("/playlist?list=#{plid}&hl=en&disable_polymer=1")
|
response = client.get("/playlist?list=#{plid}&hl=en&disable_polymer=1")
|
||||||
if response.status_code != 200
|
if response.status_code != 200
|
||||||
raise translate(locale, "Invalid playlist.")
|
raise translate(locale, "Not a playlist.")
|
||||||
end
|
end
|
||||||
|
|
||||||
body = response.body.gsub(/<button[^>]+><span[^>]+>\s*less\s*<img[^>]+>\n<\/span><\/button>/, "")
|
body = response.body.gsub(/<button[^>]+><span[^>]+>\s*less\s*<img[^>]+>\n<\/span><\/button>/, "")
|
||||||
@@ -186,23 +190,27 @@ def fetch_playlist(plid, locale)
|
|||||||
description_html ||= document.xpath_node(%q(//span[@class="pl-header-description-text"]))
|
description_html ||= document.xpath_node(%q(//span[@class="pl-header-description-text"]))
|
||||||
description_html, description = html_to_content(description_html)
|
description_html, description = html_to_content(description_html)
|
||||||
|
|
||||||
anchor = document.xpath_node(%q(//ul[@class="pl-header-details"])).not_nil!
|
# YouTube allows anonymous playlists, so most of this can be empty or optional
|
||||||
author = anchor.xpath_node(%q(.//li[1]/a)).not_nil!.content
|
anchor = document.xpath_node(%q(//ul[@class="pl-header-details"]))
|
||||||
|
author = anchor.try &.xpath_node(%q(.//li[1]/a)).try &.content
|
||||||
|
author ||= ""
|
||||||
author_thumbnail = document.xpath_node(%q(//img[@class="channel-header-profile-image"])).try &.["src"]
|
author_thumbnail = document.xpath_node(%q(//img[@class="channel-header-profile-image"])).try &.["src"]
|
||||||
author_thumbnail ||= ""
|
author_thumbnail ||= ""
|
||||||
ucid = anchor.xpath_node(%q(.//li[1]/a)).not_nil!["href"].split("/")[-1]
|
ucid = anchor.try &.xpath_node(%q(.//li[1]/a)).try &.["href"].split("/")[-1]
|
||||||
|
ucid ||= ""
|
||||||
|
|
||||||
video_count = anchor.xpath_node(%q(.//li[2])).not_nil!.content.delete("videos, ").to_i
|
video_count = anchor.try &.xpath_node(%q(.//li[2])).try &.content.gsub(/\D/, "").to_i?
|
||||||
views = anchor.xpath_node(%q(.//li[3])).not_nil!.content.delete("No views, ")
|
video_count ||= 0
|
||||||
if views.empty?
|
views = anchor.try &.xpath_node(%q(.//li[3])).try &.content.delete("No views, ").to_i64?
|
||||||
views = 0_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
|
else
|
||||||
views = views.to_i64
|
updated = Time.now
|
||||||
end
|
end
|
||||||
|
|
||||||
updated = anchor.xpath_node(%q(.//li[4])).not_nil!.content.lchop("Last updated on ").lchop("Updated ")
|
|
||||||
updated = decode_date(updated)
|
|
||||||
|
|
||||||
playlist = Playlist.new(
|
playlist = Playlist.new(
|
||||||
title: title,
|
title: title,
|
||||||
id: plid,
|
id: plid,
|
||||||
@@ -234,10 +242,13 @@ def template_playlist(playlist)
|
|||||||
html += <<-END_HTML
|
html += <<-END_HTML
|
||||||
<li class="pure-menu-item">
|
<li class="pure-menu-item">
|
||||||
<a href="/watch?v=#{video["videoId"]}&list=#{playlist["playlistId"]}">
|
<a href="/watch?v=#{video["videoId"]}&list=#{playlist["playlistId"]}">
|
||||||
<img style="width:100%;" src="/vi/#{video["videoId"]}/mqdefault.jpg">
|
<div class="thumbnail">
|
||||||
|
<img class="thumbnail" src="/vi/#{video["videoId"]}/mqdefault.jpg">
|
||||||
|
<p class="length">#{recode_length_seconds(video["lengthSeconds"].as_i)}</p>
|
||||||
|
</div>
|
||||||
<p style="width:100%">#{video["title"]}</p>
|
<p style="width:100%">#{video["title"]}</p>
|
||||||
<p>
|
<p>
|
||||||
<b style="width: 100%">#{video["author"]}</b>
|
<b style="width:100%">#{video["author"]}</b>
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -1,41 +1,43 @@
|
|||||||
class SearchVideo
|
struct SearchVideo
|
||||||
add_mapping({
|
db_mapping({
|
||||||
title: String,
|
title: String,
|
||||||
id: String,
|
id: String,
|
||||||
author: String,
|
author: String,
|
||||||
ucid: String,
|
ucid: String,
|
||||||
published: Time,
|
published: Time,
|
||||||
views: Int64,
|
views: Int64,
|
||||||
description: String,
|
description: String,
|
||||||
description_html: String,
|
description_html: String,
|
||||||
length_seconds: Int32,
|
length_seconds: Int32,
|
||||||
live_now: Bool,
|
live_now: Bool,
|
||||||
paid: Bool,
|
paid: Bool,
|
||||||
premium: Bool,
|
premium: Bool,
|
||||||
|
premiere_timestamp: Time?,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class SearchPlaylistVideo
|
struct SearchPlaylistVideo
|
||||||
add_mapping({
|
db_mapping({
|
||||||
title: String,
|
title: String,
|
||||||
id: String,
|
id: String,
|
||||||
length_seconds: Int32,
|
length_seconds: Int32,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class SearchPlaylist
|
struct SearchPlaylist
|
||||||
add_mapping({
|
db_mapping({
|
||||||
title: String,
|
title: String,
|
||||||
id: String,
|
id: String,
|
||||||
author: String,
|
author: String,
|
||||||
ucid: String,
|
ucid: String,
|
||||||
video_count: Int32,
|
video_count: Int32,
|
||||||
videos: Array(SearchPlaylistVideo),
|
videos: Array(SearchPlaylistVideo),
|
||||||
|
thumbnail_id: String?,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class SearchChannel
|
struct SearchChannel
|
||||||
add_mapping({
|
db_mapping({
|
||||||
author: String,
|
author: String,
|
||||||
ucid: String,
|
ucid: String,
|
||||||
author_thumbnail: String,
|
author_thumbnail: String,
|
||||||
@@ -51,12 +53,18 @@ alias SearchItem = SearchVideo | SearchChannel | SearchPlaylist
|
|||||||
def channel_search(query, page, channel)
|
def channel_search(query, page, channel)
|
||||||
client = make_client(YT_URL)
|
client = make_client(YT_URL)
|
||||||
|
|
||||||
response = client.get("/user/#{channel}?disable_polymer=1&hl=en&gl=US")
|
response = client.get("/channel/#{channel}?disable_polymer=1&hl=en&gl=US")
|
||||||
document = XML.parse_html(response.body)
|
document = XML.parse_html(response.body)
|
||||||
canonical = document.xpath_node(%q(//link[@rel="canonical"]))
|
canonical = document.xpath_node(%q(//link[@rel="canonical"]))
|
||||||
|
|
||||||
if !canonical
|
if !canonical
|
||||||
response = client.get("/channel/#{channel}?disable_polymer=1&hl=en&gl=US")
|
response = 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")
|
||||||
document = XML.parse_html(response.body)
|
document = XML.parse_html(response.body)
|
||||||
canonical = document.xpath_node(%q(//link[@rel="canonical"]))
|
canonical = document.xpath_node(%q(//link[@rel="canonical"]))
|
||||||
end
|
end
|
||||||
@@ -188,7 +196,7 @@ def produce_search_params(sort : String = "relevance", date : String = "", conte
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if body.size > 0
|
if !body.empty?
|
||||||
token = head + "\x12" + body.size.unsafe_chr + body
|
token = head + "\x12" + body.size.unsafe_chr + body
|
||||||
else
|
else
|
||||||
token = head
|
token = head
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ def fetch_trending(trending_type, proxies, region, locale)
|
|||||||
region = region.upcase
|
region = region.upcase
|
||||||
|
|
||||||
trending = ""
|
trending = ""
|
||||||
|
plid = nil
|
||||||
|
|
||||||
if trending_type && trending_type != "Default"
|
if trending_type && trending_type != "Default"
|
||||||
trending_type = trending_type.downcase.capitalize
|
trending_type = trending_type.downcase.capitalize
|
||||||
|
|
||||||
@@ -23,9 +25,11 @@ def fetch_trending(trending_type, proxies, region, locale)
|
|||||||
url = tabs.select { |tab| tab["channelListSubMenuAvatarRenderer"]["title"]["simpleText"] == trending_type }[0]?
|
url = tabs.select { |tab| tab["channelListSubMenuAvatarRenderer"]["title"]["simpleText"] == trending_type }[0]?
|
||||||
|
|
||||||
if url
|
if url
|
||||||
|
url["channelListSubMenuAvatarRenderer"]["navigationEndpoint"]["commandMetadata"]["webCommandMetadata"]["url"]
|
||||||
url = url["channelListSubMenuAvatarRenderer"]["navigationEndpoint"]["commandMetadata"]["webCommandMetadata"]["url"].as_s
|
url = url["channelListSubMenuAvatarRenderer"]["navigationEndpoint"]["commandMetadata"]["webCommandMetadata"]["url"].as_s
|
||||||
url += "&disable_polymer=1&gl=#{region}&hl=en"
|
url += "&disable_polymer=1&gl=#{region}&hl=en"
|
||||||
trending = client.get(url).body
|
trending = client.get(url).body
|
||||||
|
plid = extract_plid(url)
|
||||||
else
|
else
|
||||||
trending = client.get("/feed/trending?gl=#{region}&hl=en&disable_polymer=1").body
|
trending = client.get("/feed/trending?gl=#{region}&hl=en&disable_polymer=1").body
|
||||||
end
|
end
|
||||||
@@ -37,5 +41,37 @@ def fetch_trending(trending_type, proxies, region, locale)
|
|||||||
nodeset = trending.xpath_nodes(%q(//ul/li[@class="expanded-shelf-content-item-wrapper"]))
|
nodeset = trending.xpath_nodes(%q(//ul/li[@class="expanded-shelf-content-item-wrapper"]))
|
||||||
trending = extract_videos(nodeset)
|
trending = extract_videos(nodeset)
|
||||||
|
|
||||||
return trending
|
return {trending, plid}
|
||||||
|
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)
|
||||||
|
|
||||||
|
return plid
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,55 +1,33 @@
|
|||||||
require "crypto/bcrypt/password"
|
require "crypto/bcrypt/password"
|
||||||
|
|
||||||
class User
|
struct User
|
||||||
module PreferencesConverter
|
module PreferencesConverter
|
||||||
def self.from_rs(rs)
|
def self.from_rs(rs)
|
||||||
begin
|
begin
|
||||||
Preferences.from_json(rs.read(String))
|
Preferences.from_json(rs.read(String))
|
||||||
rescue ex
|
rescue ex
|
||||||
DEFAULT_USER_PREFERENCES
|
Preferences.from_json("{}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
add_mapping({
|
db_mapping({
|
||||||
updated: Time,
|
updated: Time,
|
||||||
notifications: Array(String),
|
notifications: Array(String),
|
||||||
subscriptions: Array(String),
|
subscriptions: Array(String),
|
||||||
email: String,
|
email: String,
|
||||||
preferences: {
|
preferences: {
|
||||||
type: Preferences,
|
type: Preferences,
|
||||||
default: DEFAULT_USER_PREFERENCES,
|
|
||||||
converter: PreferencesConverter,
|
converter: PreferencesConverter,
|
||||||
},
|
},
|
||||||
password: String?,
|
password: String?,
|
||||||
token: String,
|
token: String,
|
||||||
watched: Array(String),
|
watched: Array(String),
|
||||||
|
feed_needs_update: Bool?,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
DEFAULT_USER_PREFERENCES = Preferences.from_json({
|
struct Preferences
|
||||||
"video_loop" => false,
|
|
||||||
"autoplay" => false,
|
|
||||||
"continue" => false,
|
|
||||||
"listen" => false,
|
|
||||||
"speed" => 1.0,
|
|
||||||
"quality" => "hd720",
|
|
||||||
"volume" => 100,
|
|
||||||
"comments" => ["youtube", ""],
|
|
||||||
"captions" => ["", "", ""],
|
|
||||||
"related_videos" => true,
|
|
||||||
"redirect_feed" => false,
|
|
||||||
"locale" => "en-US",
|
|
||||||
"dark_mode" => false,
|
|
||||||
"thin_mode" => false,
|
|
||||||
"max_results" => 40,
|
|
||||||
"sort" => "published",
|
|
||||||
"latest_only" => false,
|
|
||||||
"unseen_only" => false,
|
|
||||||
"notifications_only" => false,
|
|
||||||
}.to_json)
|
|
||||||
|
|
||||||
class Preferences
|
|
||||||
module StringToArray
|
module StringToArray
|
||||||
def self.to_json(value : Array(String), json : JSON::Builder)
|
def self.to_json(value : Array(String), json : JSON::Builder)
|
||||||
json.array do
|
json.array do
|
||||||
@@ -63,64 +41,91 @@ class Preferences
|
|||||||
begin
|
begin
|
||||||
result = [] of String
|
result = [] of String
|
||||||
value.read_array do
|
value.read_array do
|
||||||
result << value.read_string
|
result << HTML.escape(value.read_string)
|
||||||
end
|
end
|
||||||
rescue ex
|
rescue ex
|
||||||
result = [value.read_string, ""]
|
result = [HTML.escape(value.read_string), ""]
|
||||||
|
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)
|
||||||
|
end
|
||||||
|
rescue ex
|
||||||
|
if node.is_a?(YAML::Nodes::Scalar)
|
||||||
|
result = [HTML.escape(node.value), ""]
|
||||||
|
else
|
||||||
|
result = ["", ""]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
JSON.mapping({
|
module EscapeString
|
||||||
video_loop: Bool,
|
def self.to_json(value : String, json : JSON::Builder)
|
||||||
autoplay: Bool,
|
json.string value
|
||||||
continue: {
|
end
|
||||||
type: Bool,
|
|
||||||
default: DEFAULT_USER_PREFERENCES.continue,
|
def self.from_json(value : JSON::PullParser) : String
|
||||||
},
|
HTML.escape(value.read_string)
|
||||||
listen: {
|
end
|
||||||
type: Bool,
|
|
||||||
default: DEFAULT_USER_PREFERENCES.listen,
|
def self.to_yaml(value : String, yaml : YAML::Nodes::Builder)
|
||||||
},
|
yaml.scalar value
|
||||||
speed: Float32,
|
end
|
||||||
quality: String,
|
|
||||||
volume: Int32,
|
def self.from_yaml(ctx : YAML::ParseContext, node : YAML::Nodes::Node) : String
|
||||||
comments: {
|
HTML.escape(node.value)
|
||||||
type: Array(String),
|
end
|
||||||
default: DEFAULT_USER_PREFERENCES.comments,
|
end
|
||||||
converter: StringToArray,
|
|
||||||
},
|
json_mapping({
|
||||||
captions: {
|
annotations: {type: Bool, default: CONFIG.default_user_preferences.annotations},
|
||||||
type: Array(String),
|
annotations_subscribed: {type: Bool, default: CONFIG.default_user_preferences.annotations_subscribed},
|
||||||
default: DEFAULT_USER_PREFERENCES.captions,
|
autoplay: {type: Bool, default: CONFIG.default_user_preferences.autoplay},
|
||||||
},
|
captions: {type: Array(String), default: CONFIG.default_user_preferences.captions, converter: StringToArray},
|
||||||
redirect_feed: {
|
comments: {type: Array(String), default: CONFIG.default_user_preferences.comments, converter: StringToArray},
|
||||||
type: Bool,
|
continue: {type: Bool, default: CONFIG.default_user_preferences.continue},
|
||||||
default: DEFAULT_USER_PREFERENCES.redirect_feed,
|
continue_autoplay: {type: Bool, default: CONFIG.default_user_preferences.continue_autoplay},
|
||||||
},
|
dark_mode: {type: Bool, default: CONFIG.default_user_preferences.dark_mode},
|
||||||
related_videos: {
|
latest_only: {type: Bool, default: CONFIG.default_user_preferences.latest_only},
|
||||||
type: Bool,
|
listen: {type: Bool, default: CONFIG.default_user_preferences.listen},
|
||||||
default: DEFAULT_USER_PREFERENCES.related_videos,
|
local: {type: Bool, default: CONFIG.default_user_preferences.local},
|
||||||
},
|
locale: {type: String, default: CONFIG.default_user_preferences.locale, converter: EscapeString},
|
||||||
dark_mode: Bool,
|
max_results: {type: Int32, default: CONFIG.default_user_preferences.max_results},
|
||||||
thin_mode: {
|
notifications_only: {type: Bool, default: CONFIG.default_user_preferences.notifications_only},
|
||||||
type: Bool,
|
quality: {type: String, default: CONFIG.default_user_preferences.quality, converter: EscapeString},
|
||||||
default: DEFAULT_USER_PREFERENCES.thin_mode,
|
redirect_feed: {type: Bool, default: CONFIG.default_user_preferences.redirect_feed},
|
||||||
},
|
related_videos: {type: Bool, default: CONFIG.default_user_preferences.related_videos},
|
||||||
max_results: Int32,
|
sort: {type: String, default: CONFIG.default_user_preferences.sort, converter: EscapeString},
|
||||||
sort: String,
|
speed: {type: Float32, default: CONFIG.default_user_preferences.speed},
|
||||||
latest_only: Bool,
|
thin_mode: {type: Bool, default: CONFIG.default_user_preferences.thin_mode},
|
||||||
unseen_only: Bool,
|
unseen_only: {type: Bool, default: CONFIG.default_user_preferences.unseen_only},
|
||||||
notifications_only: {
|
video_loop: {type: Bool, default: CONFIG.default_user_preferences.video_loop},
|
||||||
type: Bool,
|
volume: {type: Int32, default: CONFIG.default_user_preferences.volume},
|
||||||
default: DEFAULT_USER_PREFERENCES.notifications_only,
|
|
||||||
},
|
|
||||||
locale: {
|
|
||||||
type: String,
|
|
||||||
default: DEFAULT_USER_PREFERENCES.locale,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -142,11 +147,11 @@ def get_user(sid, headers, db, refresh = true)
|
|||||||
ON CONFLICT (id) DO NOTHING", sid, user.email, Time.now)
|
ON CONFLICT (id) DO NOTHING", sid, user.email, Time.now)
|
||||||
|
|
||||||
begin
|
begin
|
||||||
view_name = "subscriptions_#{sha256(user.email)[0..7]}"
|
view_name = "subscriptions_#{sha256(user.email)}"
|
||||||
PG_DB.exec("CREATE MATERIALIZED VIEW #{view_name} AS \
|
db.exec("CREATE MATERIALIZED VIEW #{view_name} AS \
|
||||||
SELECT * FROM channel_videos WHERE \
|
SELECT * FROM channel_videos WHERE
|
||||||
ucid = ANY ((SELECT subscriptions FROM users WHERE email = E'#{user.email.gsub("'", "\\'")}')::text[]) \
|
ucid IN (SELECT unnest(subscriptions) FROM users WHERE email = E'#{user.email.gsub("'", "\\'")}')
|
||||||
ORDER BY published DESC;")
|
ORDER BY published DESC")
|
||||||
rescue ex
|
rescue ex
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -164,11 +169,11 @@ def get_user(sid, headers, db, refresh = true)
|
|||||||
ON CONFLICT (id) DO NOTHING", sid, user.email, Time.now)
|
ON CONFLICT (id) DO NOTHING", sid, user.email, Time.now)
|
||||||
|
|
||||||
begin
|
begin
|
||||||
view_name = "subscriptions_#{sha256(user.email)[0..7]}"
|
view_name = "subscriptions_#{sha256(user.email)}"
|
||||||
PG_DB.exec("CREATE MATERIALIZED VIEW #{view_name} AS \
|
db.exec("CREATE MATERIALIZED VIEW #{view_name} AS \
|
||||||
SELECT * FROM channel_videos WHERE \
|
SELECT * FROM channel_videos WHERE
|
||||||
ucid = ANY ((SELECT subscriptions FROM users WHERE email = E'#{user.email.gsub("'", "\\'")}')::text[]) \
|
ucid IN (SELECT unnest(subscriptions) FROM users WHERE email = E'#{user.email.gsub("'", "\\'")}')
|
||||||
ORDER BY published DESC;")
|
ORDER BY published DESC")
|
||||||
rescue ex
|
rescue ex
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -201,7 +206,7 @@ def fetch_user(sid, headers, db)
|
|||||||
|
|
||||||
token = Base64.urlsafe_encode(Random::Secure.random_bytes(32))
|
token = Base64.urlsafe_encode(Random::Secure.random_bytes(32))
|
||||||
|
|
||||||
user = User.new(Time.now, [] of String, channels, email, DEFAULT_USER_PREFERENCES, nil, token, [] of String)
|
user = User.new(Time.now, [] of String, channels, email, CONFIG.default_user_preferences, nil, token, [] of String, true)
|
||||||
return user, sid
|
return user, sid
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -209,70 +214,11 @@ def create_user(sid, email, password)
|
|||||||
password = Crypto::Bcrypt::Password.create(password, cost: 10)
|
password = Crypto::Bcrypt::Password.create(password, cost: 10)
|
||||||
token = Base64.urlsafe_encode(Random::Secure.random_bytes(32))
|
token = Base64.urlsafe_encode(Random::Secure.random_bytes(32))
|
||||||
|
|
||||||
user = User.new(Time.now, [] of String, [] of String, email, DEFAULT_USER_PREFERENCES, password.to_s, token, [] of String)
|
user = User.new(Time.now, [] of String, [] of String, email, CONFIG.default_user_preferences, password.to_s, token, [] of String, true)
|
||||||
|
|
||||||
return user, sid
|
return user, sid
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_response(user_id, operation, key, db, expire = 6.hours)
|
|
||||||
expire = Time.now + expire
|
|
||||||
nonce = Random::Secure.hex(16)
|
|
||||||
db.exec("INSERT INTO nonces VALUES ($1, $2) ON CONFLICT DO NOTHING", nonce, expire)
|
|
||||||
|
|
||||||
challenge = "#{expire.to_unix}-#{nonce}-#{user_id}-#{operation}"
|
|
||||||
token = OpenSSL::HMAC.digest(:sha256, key, challenge)
|
|
||||||
|
|
||||||
challenge = Base64.urlsafe_encode(challenge)
|
|
||||||
token = Base64.urlsafe_encode(token)
|
|
||||||
|
|
||||||
return challenge, token
|
|
||||||
end
|
|
||||||
|
|
||||||
def validate_response(challenge, token, user_id, operation, key, db, locale)
|
|
||||||
if !challenge
|
|
||||||
raise translate(locale, "Hidden field \"challenge\" is a required field")
|
|
||||||
end
|
|
||||||
|
|
||||||
if !token
|
|
||||||
raise translate(locale, "Hidden field \"token\" is a required field")
|
|
||||||
end
|
|
||||||
|
|
||||||
challenge = Base64.decode_string(challenge)
|
|
||||||
if challenge.split("-").size == 4
|
|
||||||
expire, nonce, challenge_user_id, challenge_operation = challenge.split("-")
|
|
||||||
|
|
||||||
expire = expire.to_i?
|
|
||||||
expire ||= 0
|
|
||||||
else
|
|
||||||
raise translate(locale, "Invalid challenge")
|
|
||||||
end
|
|
||||||
|
|
||||||
challenge = OpenSSL::HMAC.digest(:sha256, HMAC_KEY, challenge)
|
|
||||||
challenge = Base64.urlsafe_encode(challenge)
|
|
||||||
|
|
||||||
if db.query_one?("SELECT EXISTS (SELECT true FROM nonces WHERE nonce = $1)", nonce, as: Bool)
|
|
||||||
db.exec("DELETE FROM nonces * WHERE nonce = $1", nonce)
|
|
||||||
else
|
|
||||||
raise translate(locale, "Invalid token")
|
|
||||||
end
|
|
||||||
|
|
||||||
if challenge != token
|
|
||||||
raise translate(locale, "Invalid token")
|
|
||||||
end
|
|
||||||
|
|
||||||
if challenge_operation != operation
|
|
||||||
raise translate(locale, "Invalid token")
|
|
||||||
end
|
|
||||||
|
|
||||||
if challenge_user_id != user_id
|
|
||||||
raise translate(locale, "Invalid user")
|
|
||||||
end
|
|
||||||
|
|
||||||
if expire < Time.now.to_unix
|
|
||||||
raise translate(locale, "Token is expired, please try again")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def generate_captcha(key, db)
|
def generate_captcha(key, db)
|
||||||
second = Random::Secure.rand(12)
|
second = Random::Secure.rand(12)
|
||||||
second_angle = second * 30
|
second_angle = second * 30
|
||||||
@@ -291,7 +237,7 @@ def generate_captcha(key, db)
|
|||||||
clock_svg = <<-END_SVG
|
clock_svg = <<-END_SVG
|
||||||
<svg viewBox="0 0 100 100" width="200px">
|
<svg viewBox="0 0 100 100" width="200px">
|
||||||
<circle cx="50" cy="50" r="45" fill="#eee" stroke="black" stroke-width="2"></circle>
|
<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>
|
<text x="69" y="20.091" text-anchor="middle" fill="black" font-family="Arial" font-size="10px"> 1</text>
|
||||||
<text x="82.909" y="34" text-anchor="middle" fill="black" font-family="Arial" font-size="10px"> 2</text>
|
<text x="82.909" y="34" text-anchor="middle" fill="black" font-family="Arial" font-size="10px"> 2</text>
|
||||||
<text x="88" y="53" text-anchor="middle" fill="black" font-family="Arial" font-size="10px"> 3</text>
|
<text x="88" y="53" text-anchor="middle" fill="black" font-family="Arial" font-size="10px"> 3</text>
|
||||||
@@ -323,7 +269,55 @@ def generate_captcha(key, db)
|
|||||||
answer = "#{hour}:#{minute.to_s.rjust(2, '0')}:#{second.to_s.rjust(2, '0')}"
|
answer = "#{hour}:#{minute.to_s.rjust(2, '0')}:#{second.to_s.rjust(2, '0')}"
|
||||||
answer = OpenSSL::HMAC.hexdigest(:sha256, key, answer)
|
answer = OpenSSL::HMAC.hexdigest(:sha256, key, answer)
|
||||||
|
|
||||||
challenge, token = create_response(answer, "sign_in", key, db)
|
return {
|
||||||
|
question: image,
|
||||||
return {image: image, challenge: challenge, token: token}
|
tokens: {generate_response(answer, {":login"}, key, db, use_nonce: true)},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
def generate_text_captcha(key, db)
|
||||||
|
response = make_client(TEXTCAPTCHA_URL).get("/omarroth@protonmail.com.json").body
|
||||||
|
response = JSON.parse(response)
|
||||||
|
|
||||||
|
tokens = response["a"].as_a.map do |answer|
|
||||||
|
generate_response(answer.as_s, {":login"}, key, db, use_nonce: true)
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
question: response["q"].as_s,
|
||||||
|
tokens: tokens,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
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)
|
||||||
|
|
||||||
|
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 = {
|
||||||
|
"session_token" => session_token,
|
||||||
|
}
|
||||||
|
post_url = "/subscription_ajax?#{action}=1&c=#{channel_id}"
|
||||||
|
|
||||||
|
client.post(post_url, headers, form: post_req)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
78
src/invidious/views/authorize_token.ecr
Normal file
78
src/invidious/views/authorize_token.ecr
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
<% content_for "header" do %>
|
||||||
|
<title><%= translate(locale, "Token") %> - Invidious</title>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% if env.get? "access_token" %>
|
||||||
|
<div class="pure-g h-box">
|
||||||
|
<div class="pure-u-1-3">
|
||||||
|
<h3>
|
||||||
|
<%= translate(locale, "Token") %>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<div class="pure-u-1-3" style="text-align:center">
|
||||||
|
<h3>
|
||||||
|
<a href="/token_manager"><%= translate(locale, "Token manager") %></a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<div class="pure-u-1-3" style="text-align:right">
|
||||||
|
<h3>
|
||||||
|
<a href="/preferences"><%= translate(locale, "Preferences") %></a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="h-box">
|
||||||
|
<h4 style="padding-left:0.5em">
|
||||||
|
<code><%= env.get "access_token" %></code>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<div class="h-box">
|
||||||
|
<form class="pure-form pure-form-aligned" action="/authorize_token" method="post">
|
||||||
|
<% if callback_url %>
|
||||||
|
<legend><%= translate(locale, "Authorize token for `x`?", "#{callback_url.scheme}://#{callback_url.host}") %></legend>
|
||||||
|
<% else %>
|
||||||
|
<legend><%= translate(locale, "Authorize token?") %></legend>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<div class="pure-g">
|
||||||
|
<div class="pure-u-1">
|
||||||
|
<ul>
|
||||||
|
<% scopes.each do |scope| %>
|
||||||
|
<li><%= HTML.escape(scope) %></li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pure-g">
|
||||||
|
<div class="pure-u-1-2">
|
||||||
|
<button type="submit" name="submit" value="clear_watch_history" class="pure-button pure-button-primary">
|
||||||
|
<%= translate(locale, "Yes") %>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="pure-u-1-2">
|
||||||
|
<% if callback_url %>
|
||||||
|
<a class="pure-button" href="<%= callback_url %>">
|
||||||
|
<% else %>
|
||||||
|
<a class="pure-button" href="/">
|
||||||
|
<% end %>
|
||||||
|
<%= translate(locale, "No") %>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% scopes.each_with_index do |scope, i| %>
|
||||||
|
<input type="hidden" name="scopes[<%= i %>]" value="<%= scope %>">
|
||||||
|
<% end %>
|
||||||
|
<% if callback_url %>
|
||||||
|
<input type="hidden" name="callbackUrl" value="<%= callback_url %>">
|
||||||
|
<% end %>
|
||||||
|
<% if expire %>
|
||||||
|
<input type="hidden" name="expire" value="<%= expire %>">
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<input type="hidden" name="csrf_token" value="<%= URI.escape(csrf_token) %>">
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
32
src/invidious/views/change_password.ecr
Normal file
32
src/invidious/views/change_password.ecr
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
<% content_for "header" do %>
|
||||||
|
<title><%= translate(locale, "Change password") %> - Invidious</title>
|
||||||
|
<% 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="/change_password?referer=<%= URI.escape(referer) %>" method="post">
|
||||||
|
<legend><%= translate(locale, "Change password") %></legend>
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<label for="password"><%= translate(locale, "Password") %> :</label>
|
||||||
|
<input required class="pure-input-1" name="password" type="password" placeholder="<%= translate(locale, "Password") %>">
|
||||||
|
|
||||||
|
<label for="new_password[0]"><%= translate(locale, "New password") %> :</label>
|
||||||
|
<input required class="pure-input-1" name="new_password[0]" type="password" placeholder="<%= translate(locale, "New password") %>">
|
||||||
|
|
||||||
|
<label for="new_password[1]"><%= translate(locale, "New password") %> :</label>
|
||||||
|
<input required class="pure-input-1" name="new_password[1]" type="password" placeholder="<%= translate(locale, "New password") %>">
|
||||||
|
|
||||||
|
<button type="submit" name="action" value="change_password" class="pure-button pure-button-primary">
|
||||||
|
<%= translate(locale, "Change password") %>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<input type="hidden" name="csrf_token" value="<%= URI.escape(csrf_token) %>">
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pure-u-1 pure-u-lg-1-5"></div>
|
||||||
|
</div>
|
||||||
@@ -1,12 +1,13 @@
|
|||||||
<% content_for "header" do %>
|
<% content_for "header" do %>
|
||||||
<title><%= author %> - Invidious</title>
|
<title><%= author %> - Invidious</title>
|
||||||
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed/channel/<%= ucid %>" />
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="pure-g h-box">
|
<div class="pure-g h-box">
|
||||||
<div class="pure-u-2-3">
|
<div class="pure-u-2-3">
|
||||||
<h3><%= author %></h3>
|
<h3><%= author %></h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="pure-u-1-3" style="text-align:right;">
|
<div class="pure-u-1-3" style="text-align:right">
|
||||||
<h3>
|
<h3>
|
||||||
<a href="/feed/channel/<%= ucid %>"><i class="icon ion-logo-rss"></i></a>
|
<a href="/feed/channel/<%= ucid %>"><i class="icon ion-logo-rss"></i></a>
|
||||||
</h3>
|
</h3>
|
||||||
@@ -14,29 +15,40 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
<% sub_count_text = number_to_short_text(sub_count) %>
|
<% sub_count_text = number_to_short_text(sub_count) %>
|
||||||
<%= rendered "components/subscribe_widget" %>
|
<%= rendered "components/subscribe_widget" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pure-g h-box">
|
<div class="pure-g h-box">
|
||||||
<div class="pure-u-1-3">
|
<div class="pure-u-1-3">
|
||||||
<a href="https://www.youtube.com/channel/<%= ucid %>"><%= translate(locale, "View channel on YouTube") %></a>
|
<a href="https://www.youtube.com/channel/<%= ucid %>"><%= translate(locale, "View channel on YouTube") %></a>
|
||||||
</div>
|
<% if !auto_generated %>
|
||||||
<div class="pure-u-1-3">
|
|
||||||
</div>
|
|
||||||
<div class="pure-u-1-3">
|
|
||||||
<div class="pure-g" style="text-align:right;">
|
|
||||||
<% {"newest", "oldest", "popular"}.each do |sort| %>
|
|
||||||
<div class="pure-u-1 pure-md-1-3">
|
<div class="pure-u-1 pure-md-1-3">
|
||||||
<% if sort_by == sort %>
|
<b><%= translate(locale, "Videos") %></b>
|
||||||
<b><%= translate(locale, sort) %></b>
|
|
||||||
<% else %>
|
|
||||||
<a href="/channel/<%= ucid %>?page=<%= page %>&sort_by=<%= sort %>">
|
|
||||||
<%= translate(locale, sort) %>
|
|
||||||
</a>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<div class="pure-u-1 pure-md-1-3">
|
||||||
|
<% if auto_generated %>
|
||||||
|
<b><%= translate(locale, "Playlists") %></b>
|
||||||
|
<% else %>
|
||||||
|
<a href="/channel/<%= ucid %>/playlists"><%= translate(locale, "Playlists") %></a>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pure-u-1-3"></div>
|
||||||
|
<div class="pure-u-1-3">
|
||||||
|
<div class="pure-g" style="text-align:right">
|
||||||
|
<% sort_options.each do |sort| %>
|
||||||
|
<div class="pure-u-1 pure-md-1-3">
|
||||||
|
<% if sort_by == sort %>
|
||||||
|
<b><%= translate(locale, sort) %></b>
|
||||||
|
<% else %>
|
||||||
|
<a href="/channel/<%= ucid %>?page=<%= page %>&sort_by=<%= sort %>">
|
||||||
|
<%= translate(locale, sort) %>
|
||||||
|
</a>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,32 +58,27 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pure-g">
|
<div class="pure-g">
|
||||||
<% items.each_slice(4) do |slice| %>
|
<% items.each_slice(4) do |slice| %>
|
||||||
<% slice.each do |item| %>
|
<% slice.each do |item| %>
|
||||||
<%= rendered "components/item" %>
|
<%= rendered "components/item" %>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pure-g h-box">
|
|
||||||
<div class="pure-u-1 pure-u-md-1-5">
|
|
||||||
<% if page >= 2 %>
|
|
||||||
<a href="/channel/<%= ucid %>?page=<%= page - 1 %><% if sort_by != "newest" %>&sort_by=<%= sort_by %><% end %>">
|
|
||||||
<%= translate(locale, "Previous page") %>
|
|
||||||
</a>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<div class="pure-u-1 pure-u-md-3-5"></div>
|
|
||||||
<div style="text-align:right;" class="pure-u-1 pure-u-md-1-5">
|
|
||||||
<% if count == 60 %>
|
|
||||||
<a href="/channel/<%= ucid %>?page=<%= page + 1 %><% if sort_by != "newest" %>&sort_by=<%= sort_by %><% end %>">
|
|
||||||
<%= translate(locale, "Next page") %>
|
|
||||||
</a>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<div class="pure-g h-box">
|
||||||
<% sub_count_text = number_to_short_text(sub_count) %>
|
<div class="pure-u-1 pure-u-lg-1-5">
|
||||||
<%= rendered "components/subscribe_widget_script" %>
|
<% if page >= 2 %>
|
||||||
</script>
|
<a href="/channel/<%= ucid %>?page=<%= page - 1 %><% if sort_by != "newest" %>&sort_by=<%= sort_by %><% end %>">
|
||||||
|
<%= 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 == 60 %>
|
||||||
|
<a href="/channel/<%= ucid %>?page=<%= page + 1 %><% if sort_by != "newest" %>&sort_by=<%= sort_by %><% end %>">
|
||||||
|
<%= translate(locale, "Next page") %>
|
||||||
|
</a>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -13,13 +13,12 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="pure-u-1-2">
|
<div class="pure-u-1-2">
|
||||||
<a class="pure-button" href="<%= referer %>">
|
<a class="pure-button" href="<%= URI.escape(referer) %>">
|
||||||
<%= translate(locale, "No") %>
|
<%= translate(locale, "No") %>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="hidden" name="token" value="<%= token %>">
|
<input type="hidden" name="csrf_token" value="<%= URI.escape(csrf_token) %>">
|
||||||
<input type="hidden" name="challenge" value="<%= challenge %>">
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
<div class="h-box pure-g">
|
<div class="h-box pure-g">
|
||||||
<div class="pure-u-1-4"></div>
|
<div class="pure-u-1 pure-u-md-1-4"></div>
|
||||||
<div class="pure-u-1 pure-u-md-1-2">
|
<div class="pure-u-1 pure-u-md-1-2">
|
||||||
<div class="pure-g">
|
<div class="pure-g">
|
||||||
<% feeds = ["Popular", "Top", "Trending"] %>
|
<% feed_menu = config.feed_menu.dup %>
|
||||||
<% if env.get? "user" %>
|
<% if !env.get?("user") %>
|
||||||
<% feeds << "Subscriptions" %>
|
<% feed_menu.reject! {|feed| feed == "Subscriptions"} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% feeds.each do |feed| %>
|
<% feed_menu.each do |feed| %>
|
||||||
<div class="pure-u-1-<%= feeds.size %>">
|
<div class="pure-u-1-2 pure-u-md-1-<%= feed_menu.size %>">
|
||||||
<a href="/feed/<%= feed.downcase %>" style="text-align:center;" class="pure-menu-heading">
|
<a href="/feed/<%= feed.downcase %>" class="pure-menu-heading" style="text-align:center">
|
||||||
<%= translate(locale, feed) %>
|
<%= translate(locale, feed) %>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pure-u-1-4"></div>
|
<div class="pure-u-1 pure-u-md-1-4"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,109 +1,138 @@
|
|||||||
<div class="pure-u-1 pure-u-md-1-4">
|
<div class="pure-u-1 pure-u-md-1-4">
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
<% case item when %>
|
<% case item when %>
|
||||||
<% when SearchChannel %>
|
<% when SearchChannel %>
|
||||||
<a style="width:100%;" href="/channel/<%= item.ucid %>">
|
<a style="width:100%" href="/channel/<%= item.ucid %>">
|
||||||
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
|
<% if !env.get("preferences").as(Preferences).thin_mode %>
|
||||||
|
<center>
|
||||||
|
<img style="width:56.25%" src="/ggpht<%= URI.parse(item.author_thumbnail).full_path %>"/>
|
||||||
|
</center>
|
||||||
|
<% end %>
|
||||||
|
<p><%= item.author %></p>
|
||||||
|
</a>
|
||||||
|
<p><%= translate(locale, "`x` subscribers", number_with_separator(item.subscriber_count)) %></p>
|
||||||
|
<p><%= translate(locale, "`x` videos", number_with_separator(item.video_count)) %></p>
|
||||||
|
<h5><%= item.description_html %></h5>
|
||||||
|
<% when SearchPlaylist %>
|
||||||
|
<% if item.id.starts_with? "RD" %>
|
||||||
|
<% url = "/mix?list=#{item.id}&continuation=#{item.thumbnail_id}" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<center>
|
<% url = "/playlist?list=#{item.id}" %>
|
||||||
<img style="width:56.25%;" src="/ggpht<%= URI.parse(item.author_thumbnail).full_path %>"/>
|
|
||||||
</center>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<p><%= item.author %></p>
|
|
||||||
</a>
|
<a style="width:100%" href="<%= url %>">
|
||||||
<p><%= translate(locale, "`x` subscribers", number_with_separator(item.subscriber_count)) %></p>
|
<% if !env.get("preferences").as(Preferences).thin_mode %>
|
||||||
<p><%= translate(locale, "`x` videos", number_with_separator(item.video_count)) %></p>
|
<div class="thumbnail">
|
||||||
<h5><%= item.description_html %></h5>
|
<img class="thumbnail" src="/vi/<%= item.thumbnail_id %>/mqdefault.jpg"/>
|
||||||
<% when SearchPlaylist %>
|
<p class="length"><%= number_with_separator(item.video_count) %> videos</p>
|
||||||
<% if item.id.starts_with? "RD" %>
|
</div>
|
||||||
<% url = "/mix?list=#{item.id}&continuation=#{item.videos[0]?.try &.id}" %>
|
<% end %>
|
||||||
<% else %>
|
<p><%= item.title %></p>
|
||||||
<% url = "/playlist?list=#{item.id}" %>
|
</a>
|
||||||
<% end %>
|
<p>
|
||||||
<a style="width:100%;" href="<%= url %>">
|
<b>
|
||||||
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
|
<a style="width:100%" href="/channel/<%= item.ucid %>"><%= item.author %></a>
|
||||||
<% else %>
|
</b>
|
||||||
<div class="thumbnail">
|
</p>
|
||||||
<img class="thumbnail" src="/vi/<%= item.videos[0]?.try &.id %>/mqdefault.jpg"/>
|
<% when MixVideo %>
|
||||||
<p class="length"><%= number_with_separator(item.video_count) %> videos</p>
|
<a style="width:100%" href="/watch?v=<%= item.id %>&list=<%= item.mixes[0] %>">
|
||||||
</div>
|
<% if !env.get("preferences").as(Preferences).thin_mode %>
|
||||||
<% end %>
|
<div class="thumbnail">
|
||||||
<p><%= item.title %></p>
|
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
|
||||||
</a>
|
<% if item.length_seconds != 0 %>
|
||||||
<p>
|
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p>
|
||||||
<b><a style="width:100%;" href="/channel/<%= item.ucid %>"><%= item.author %></a></b>
|
<% end %>
|
||||||
</p>
|
</div>
|
||||||
<% when MixVideo %>
|
<% end %>
|
||||||
<a style="width:100%;" href="/watch?v=<%= item.id %>&list=<%= item.mixes[0] %>">
|
<p><%= item.title %></p>
|
||||||
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
|
</a>
|
||||||
<% else %>
|
<p>
|
||||||
<div class="thumbnail">
|
<b>
|
||||||
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
|
<a style="width:100%" href="/channel/<%= item.ucid %>"><%= item.author %></a>
|
||||||
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p>
|
</b>
|
||||||
</div>
|
</p>
|
||||||
<% end %>
|
<% when PlaylistVideo %>
|
||||||
<p><%= item.title %></p>
|
<a style="width:100%" href="/watch?v=<%= item.id %>&list=<%= item.playlists[0] %>">
|
||||||
</a>
|
<% if !env.get("preferences").as(Preferences).thin_mode %>
|
||||||
<p>
|
<div class="thumbnail">
|
||||||
<b><a style="width:100%;" href="/channel/<%= item.ucid %>"><%= item.author %></a></b>
|
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
|
||||||
</p>
|
<% if item.responds_to?(:live_now) && item.live_now %>
|
||||||
<% when PlaylistVideo %>
|
<p class="length"><i class="icon ion-ios-play-circle"></i> <%= translate(locale, "LIVE") %></p>
|
||||||
<a style="width:100%;" href="/watch?v=<%= item.id %>&list=<%= item.playlists[0] %>">
|
<% elsif item.length_seconds != 0 %>
|
||||||
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
|
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p>
|
||||||
<% else %>
|
<% end %>
|
||||||
<div class="thumbnail">
|
</div>
|
||||||
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
|
<% end %>
|
||||||
<% if item.responds_to?(:live_now) && item.live_now %>
|
<p><%= item.title %></p>
|
||||||
<p class="length"><i class="icon ion-ios-play-circle"></i> <%= translate(locale, "LIVE") %></p>
|
</a>
|
||||||
|
<p>
|
||||||
|
<b>
|
||||||
|
<a style="width:100%" href="/channel/<%= item.ucid %>"><%= item.author %></a>
|
||||||
|
</b>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h5 class="pure-g">
|
||||||
|
<% if item.responds_to?(:premiere_timestamp) && item.premiere_timestamp && item.premiere_timestamp.not_nil! > Time.now %>
|
||||||
|
<div class="pure-u-2-3"><%= translate(locale, "Premieres in `x`", recode_date((item.premiere_timestamp.as(Time) - Time.now).ago, locale)) %></div>
|
||||||
|
<% elsif Time.now - item.published > 1.minute %>
|
||||||
|
<div class="pure-u-2-3"><%= translate(locale, "Shared `x` ago", recode_date(item.published, locale)) %></div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p>
|
<div class="pure-u-2-3"></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
|
||||||
<% end %>
|
<div class="pure-u-1-3" style="text-align:right">
|
||||||
<p><%= item.title %></p>
|
<%= item.responds_to?(:views) && item.views ? translate(locale, "`x` views", number_to_short_text(item.views || 0)) : "" %>
|
||||||
</a>
|
</div>
|
||||||
<p>
|
</h5>
|
||||||
<b><a style="width:100%;" href="/channel/<%= item.ucid %>"><%= item.author %></a></b>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<% if Time.now - item.published > 1.minute %>
|
|
||||||
<h5><%= translate(locale, "Shared `x` ago", recode_date(item.published, locale)) %></h5>
|
|
||||||
<% end %>
|
|
||||||
<% else %>
|
|
||||||
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
|
|
||||||
<% else %>
|
<% else %>
|
||||||
<a style="width:100%;" href="/watch?v=<%= item.id %>">
|
<% if !env.get("preferences").as(Preferences).thin_mode %>
|
||||||
<div class="thumbnail">
|
<a style="width:100%" href="/watch?v=<%= item.id %>">
|
||||||
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
|
<div class="thumbnail">
|
||||||
<% if env.get? "show_watched" %>
|
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
|
||||||
<p class="watched">
|
<% if env.get? "show_watched" %>
|
||||||
<a onclick="mark_watched(this)"
|
<form onsubmit="return false" action="/watch_ajax?action_mark_watched=1&id=<%= item.id %>&referer=<%= env.get("current_page") %>" method="post">
|
||||||
data-id="<%= item.id %>"
|
<input type="hidden" name="csrf_token" value="<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>">
|
||||||
onmouseenter='this["href"]="javascript:void(0)"'
|
<p class="watched">
|
||||||
href="/mark_watched?id=<%= item.id %>">
|
<a onclick="mark_watched(this)" data-id="<%= item.id %>" href="javascript:void(0)">
|
||||||
<i onmouseenter='this.setAttribute("class", "icon ion-ios-eye-off")'
|
<button type="submit" style="all:unset">
|
||||||
onmouseleave='this.setAttribute("class", "icon ion-ios-eye")'
|
<i onmouseenter='this.setAttribute("class", "icon ion-ios-eye-off")'
|
||||||
class="icon ion-ios-eye">
|
onmouseleave='this.setAttribute("class", "icon ion-ios-eye")'
|
||||||
</i>
|
class="icon ion-ios-eye">
|
||||||
</a>
|
</i>
|
||||||
</p>
|
</button>
|
||||||
<% end %>
|
</a>
|
||||||
<% if item.responds_to?(:live_now) && item.live_now %>
|
</p>
|
||||||
<p class="length"><i class="icon ion-ios-play-circle"></i> <%= translate(locale, "LIVE") %></p>
|
</form>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% if item.responds_to?(:live_now) && item.live_now %>
|
||||||
|
<p class="length"><i class="icon ion-ios-play-circle"></i> <%= translate(locale, "LIVE") %></p>
|
||||||
|
<% elsif item.length_seconds != 0 %>
|
||||||
|
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<% end %>
|
||||||
|
<p><a href="/watch?v=<%= item.id %>"><%= item.title %></a></p>
|
||||||
|
<p>
|
||||||
|
<b>
|
||||||
|
<a style="width:100%" href="/channel/<%= item.ucid %>"><%= item.author %></a>
|
||||||
|
</b>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h5 class="pure-g">
|
||||||
|
<% if item.responds_to?(:premiere_timestamp) && item.premiere_timestamp && item.premiere_timestamp.not_nil! > Time.now %>
|
||||||
|
<div class="pure-u-2-3"><%= translate(locale, "Premieres in `x`", recode_date((item.premiere_timestamp.as(Time) - Time.now).ago, locale)) %></div>
|
||||||
|
<% elsif Time.now - item.published > 1.minute %>
|
||||||
|
<div class="pure-u-2-3"><%= translate(locale, "Shared `x` ago", recode_date(item.published, locale)) %></div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p>
|
<div class="pure-u-2-3"></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
|
||||||
</a>
|
<div class="pure-u-1-3" style="text-align:right">
|
||||||
|
<%= item.responds_to?(:views) && item.views ? translate(locale, "`x` views", number_to_short_text(item.views || 0)) : "" %>
|
||||||
|
</div>
|
||||||
|
</h5>
|
||||||
<% end %>
|
<% end %>
|
||||||
<p><a href="/watch?v=<%= item.id %>"><%= item.title %></a></p>
|
|
||||||
<p>
|
|
||||||
<b><a style="width:100%;" href="/channel/<%= item.ucid %>"><%= item.author %></a></b>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<% if Time.now - item.published > 1.minute %>
|
|
||||||
<h5><%= translate(locale, "Shared `x` ago", recode_date(item.published, locale)) %></h5>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,191 +1,50 @@
|
|||||||
<video style="width:100%" playsinline poster="<%= thumbnail %>" title="<%= HTML.escape(video.title) %>"
|
<video style="outline:none;width:100%;background-color:#000" playsinline poster="<%= thumbnail %>" title="<%= HTML.escape(video.title) %>"
|
||||||
id="player" class="video-js"
|
id="player" class="video-js"
|
||||||
onmouseenter='this["data-title"]=this["title"];this["title"]=""'
|
onmouseenter='this["data-title"]=this["title"];this["title"]=""'
|
||||||
onmouseleave='this["title"]=this["data-title"];this["data-title"]=""'
|
onmouseleave='this["title"]=this["data-title"];this["data-title"]=""'
|
||||||
oncontextmenu='this["title"]=this["data-title"]'
|
oncontextmenu='this["title"]=this["data-title"]'
|
||||||
<% if params[:autoplay] %>autoplay<% end %>
|
<% if params.autoplay %>autoplay<% end %>
|
||||||
<% if params[:video_loop] %>loop<% end %>
|
<% if params.video_loop %>loop<% end %>
|
||||||
<% if params[:controls] %>controls<% end %>>
|
<% if params.controls %>controls<% end %>>
|
||||||
<% if hlsvp %>
|
<% if hlsvp %>
|
||||||
<source src="<%= hlsvp %>" type="application/x-mpegURL" label="livestream">
|
<source src="<%= hlsvp %>?local=true" type="application/x-mpegURL" label="livestream">
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if params[:listen] %>
|
<% if params.listen %>
|
||||||
<% audio_streams.each_with_index do |fmt, i| %>
|
<% audio_streams.each_with_index do |fmt, i| %>
|
||||||
<source src="/latest_version?id=<%= video.id %>&itag=<%= fmt["itag"] %>" type='<%= fmt["type"] %>' label="<%= fmt["bitrate"] %>k" selected="<%= i == 0 ? true : false %>">
|
<source src="/latest_version?id=<%= video.id %>&itag=<%= fmt["itag"] %><% if params.local %>&local=true<% end %>" type='<%= fmt["type"] %>' label="<%= fmt["bitrate"] %>k" selected="<%= i == 0 ? true : false %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if params[:quality] == "dash" %>
|
<% if params.quality == "dash" %>
|
||||||
<source src="/api/manifest/dash/id/<%= video.id %>?local=true" type='application/dash+xml' label="dash">
|
<source src="/api/manifest/dash/id/<%= video.id %>?local=true" type='application/dash+xml' label="dash">
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% fmt_stream.each_with_index do |fmt, i| %>
|
<% fmt_stream.each_with_index do |fmt, i| %>
|
||||||
<% if params[:quality] %>
|
<% if params.quality %>
|
||||||
<source src="/latest_version?id=<%= video.id %>&itag=<%= fmt["itag"] %>" type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= params[:quality] == fmt["label"].split(" - ")[0] %>">
|
<source src="/latest_version?id=<%= video.id %>&itag=<%= fmt["itag"] %><% if params.local %>&local=true<% end %>" type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= params.quality == fmt["label"].split(" - ")[0] %>">
|
||||||
<% else %>
|
<% else %>
|
||||||
<source src="/latest_version?id=<%= video.id %>&itag=<%= fmt["itag"] %>" type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= i == 0 ? true : false %>">
|
<source src="/latest_version?id=<%= video.id %>&itag=<%= fmt["itag"] %><% if params.local %>&local=true<% end %>" type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= i == 0 ? true : false %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% preferred_captions.each_with_index do |caption, i| %>
|
<% preferred_captions.each_with_index do |caption, i| %>
|
||||||
<track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption.name.simpleText %>&hl=<%= env.get("locale").as(String) %>"
|
<track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption.name.simpleText %>&hl=<%= env.get("preferences").as(Preferences).locale %>"
|
||||||
label="<%= caption.name.simpleText %>" <% if i == 0 %>default<% end %>>
|
label="<%= caption.name.simpleText %>" <% if i == 0 %>default<% end %>>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% captions.each do |caption| %>
|
<% captions.each do |caption| %>
|
||||||
<track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption.name.simpleText %>&hl=<%= env.get("locale").as(String) %>"
|
<track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption.name.simpleText %>&hl=<%= env.get("preferences").as(Preferences).locale %>"
|
||||||
label="<%= caption.name.simpleText %>">
|
label="<%= caption.name.simpleText %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</video>
|
</video>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var options = {
|
var player_data = {
|
||||||
<% if aspect_ratio %>
|
aspect_ratio: '<%= aspect_ratio %>',
|
||||||
aspectRatio: "<%= aspect_ratio %>",
|
title: "<%= video.title.dump_unquoted %>",
|
||||||
<% end %>
|
description: "<%= HTML.escape(description) %>",
|
||||||
preload: "auto",
|
thumbnail: "<%= thumbnail %>"
|
||||||
playbackRates: [0.5, 1, 1.5, 2],
|
|
||||||
controlBar: {
|
|
||||||
children: [
|
|
||||||
"playToggle",
|
|
||||||
"volumePanel",
|
|
||||||
"currentTimeDisplay",
|
|
||||||
"timeDivider",
|
|
||||||
"durationDisplay",
|
|
||||||
"progressControl",
|
|
||||||
"remainingTimeDisplay",
|
|
||||||
"captionsButton",
|
|
||||||
"qualitySelector",
|
|
||||||
"playbackRateMenuButton",
|
|
||||||
"fullscreenToggle"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var shareOptions = {
|
|
||||||
socials: ["fb", "tw", "reddit", "mail"],
|
|
||||||
|
|
||||||
url: "<%= host_url %>/<%= video.id %>?<%= host_params %>",
|
|
||||||
title: "<%= video.title.dump_unquoted %>",
|
|
||||||
description: "<%= description %>",
|
|
||||||
image: "<%= thumbnail %>",
|
|
||||||
embedCode: "<iframe id='ivplayer' type='text/html' width='640' height='360' \
|
|
||||||
src='<%= host_url %>/embed/<%= video.id %>?<%= host_params %>' frameborder='0'></iframe>"
|
|
||||||
};
|
|
||||||
|
|
||||||
var player = videojs("player", options, function() {
|
|
||||||
this.hotkeys({
|
|
||||||
volumeStep: 0.1,
|
|
||||||
seekStep: 5,
|
|
||||||
enableModifiersForNumbers: false,
|
|
||||||
customKeys: {
|
|
||||||
play: {
|
|
||||||
key: function(e) {
|
|
||||||
// Toggle play with K Key
|
|
||||||
return e.which === 75;
|
|
||||||
},
|
|
||||||
handler: function(player, options, e) {
|
|
||||||
if (player.paused()) {
|
|
||||||
player.play();
|
|
||||||
} else {
|
|
||||||
player.pause();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
backward: {
|
|
||||||
key: function(e) {
|
|
||||||
// Go backward 5 seconds
|
|
||||||
return e.which === 74;
|
|
||||||
},
|
|
||||||
handler: function(player, options, e) {
|
|
||||||
player.currentTime(player.currentTime() - 5);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
forward: {
|
|
||||||
key: function(e) {
|
|
||||||
// Go forward 5 seconds
|
|
||||||
return e.which === 76;
|
|
||||||
},
|
|
||||||
handler: function(player, options, e) {
|
|
||||||
player.currentTime(player.currentTime() + 5);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
player.on('error', function(event) {
|
|
||||||
if (player.error().code === 2 || player.error().code === 4) {
|
|
||||||
setInterval(setTimeout(function (event) {
|
|
||||||
console.log("An error occured in the player, reloading...");
|
|
||||||
|
|
||||||
var currentTime = player.currentTime();
|
|
||||||
var playbackRate = player.playbackRate();
|
|
||||||
var paused = player.paused();
|
|
||||||
|
|
||||||
player.load();
|
|
||||||
if (currentTime > 0.5) {
|
|
||||||
currentTime -= 0.5;
|
|
||||||
}
|
|
||||||
player.currentTime(currentTime);
|
|
||||||
player.playbackRate(playbackRate);
|
|
||||||
|
|
||||||
if (!paused) {
|
|
||||||
player.play();
|
|
||||||
}
|
|
||||||
}, 5000), 5000);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
player.share(shareOptions);
|
|
||||||
|
|
||||||
<% if params[:video_start] > 0 || params[:video_end] > 0 %>
|
|
||||||
player.markers({
|
|
||||||
onMarkerReached: function(marker) {
|
|
||||||
if (marker.text === "End") {
|
|
||||||
if (player.loop()) {
|
|
||||||
player.markers.prev("Start");
|
|
||||||
} else {
|
|
||||||
player.pause();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
markers: [
|
|
||||||
{ time: <%= params[:video_start] %>, text: "Start" },
|
|
||||||
<% if params[:video_end] < 0 %>
|
|
||||||
{ time: <%= video.info["length_seconds"].to_f - 0.5 %>, text: "End" }
|
|
||||||
<% else %>
|
|
||||||
{ time: <%= params[:video_end] %>, text: "End" }
|
|
||||||
<% end %>
|
|
||||||
]
|
|
||||||
});
|
|
||||||
|
|
||||||
player.currentTime(<%= params[:video_start] %>);
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
player.volume(<%= params[:volume].to_f / 100 %>);
|
|
||||||
player.playbackRate(<%= params[:speed] %>);
|
|
||||||
|
|
||||||
<% if params[:autoplay] %>
|
|
||||||
var bpb = player.getChild('bigPlayButton');
|
|
||||||
|
|
||||||
if (bpb) {
|
|
||||||
bpb.hide();
|
|
||||||
|
|
||||||
player.ready(function() {
|
|
||||||
new Promise(function(resolve, reject) {
|
|
||||||
setTimeout(() => resolve(1), 1);
|
|
||||||
}).then(function(result) {
|
|
||||||
var promise = player.play();
|
|
||||||
|
|
||||||
if (promise !== undefined) {
|
|
||||||
promise.then(_ => {
|
|
||||||
}).catch(error => {
|
|
||||||
bpb.show();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
<% end %>
|
|
||||||
</script>
|
</script>
|
||||||
|
<script src="/js/player.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
|
|||||||
@@ -1,15 +1,22 @@
|
|||||||
<link rel="stylesheet" href="/css/video-js.min.css">
|
<link rel="stylesheet" href="/css/video-js.min.css?v=<%= ASSET_COMMIT %>">
|
||||||
<link rel="stylesheet" href="/css/quality-selector.css">
|
<link rel="stylesheet" href="/css/videojs-http-source-selector.css?v=<%= ASSET_COMMIT %>">
|
||||||
<link rel="stylesheet" href="/css/videojs.markers.min.css">
|
<link rel="stylesheet" href="/css/videojs.markers.min.css?v=<%= ASSET_COMMIT %>">
|
||||||
<link rel="stylesheet" href="/css/videojs-share.css">
|
<link rel="stylesheet" href="/css/videojs-share.css?v=<%= ASSET_COMMIT %>">
|
||||||
<script src="/js/video.min.js"></script>
|
<link rel="stylesheet" href="/css/videojs-vtt-thumbnails.css?v=<%= ASSET_COMMIT %>">
|
||||||
<script src="/js/videojs.hotkeys.min.js"></script>
|
<script src="/js/video.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
<script src="/js/silvermine-videojs-quality-selector.min.js"></script>
|
<script src="/js/videojs-contrib-quality-levels.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
<script src="/js/videojs-markers.min.js"></script>
|
<script src="/js/videojs-http-source-selector.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
<script src="/js/videojs-share.min.js"></script>
|
<script src="/js/videojs.hotkeys.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
<script src="/js/videojs-http-streaming.min.js"></script>
|
<script src="/js/videojs-markers.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
<% if params[:quality] == "dash" %>
|
<script src="/js/videojs-share.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
<script src="/js/dash.mediaplayer.min.js"></script>
|
<script src="/js/videojs-vtt-thumbnails.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
<script src="/js/videojs-dash.min.js"></script>
|
|
||||||
<script src="/js/videojs-contrib-quality-levels.min.js"></script>
|
<% if params.annotations %>
|
||||||
<% end %>
|
<link rel="stylesheet" href="/css/videojs-youtube-annotations.min.css?v=<%= ASSET_COMMIT %>">
|
||||||
|
<script src="/js/videojs-youtube-annotations.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% if params.listen || params.quality != "dash" %>
|
||||||
|
<link rel="stylesheet" href="/css/quality-selector.css?v=<%= ASSET_COMMIT %>">
|
||||||
|
<script src="/js/silvermine-videojs-quality-selector.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
|
<% end %>
|
||||||
|
|||||||
@@ -1,24 +1,40 @@
|
|||||||
<% if user %>
|
<% if user %>
|
||||||
<% if subscriptions.includes? ucid %>
|
<% if subscriptions.includes? ucid %>
|
||||||
<p>
|
<p>
|
||||||
<a id="subscribe" onclick="unsubscribe()" class="pure-button pure-button-primary"
|
<form action="/subscription_ajax?action_remove_subscriptions=1&c=<%= ucid %>&referer=<%= env.get("current_page") %>" method="post">
|
||||||
href="/subscription_ajax?action_remove_subscriptions=1&c=<%= ucid %>&referer=<%= env.get("current_page") %>">
|
<input type="hidden" name="csrf_token" value="<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>">
|
||||||
<b><%= translate(locale, "Unsubscribe") %> | <%= sub_count_text %></b>
|
<button data-type="unsubscribe" id="subscribe" class="pure-button pure-button-primary">
|
||||||
</a>
|
<b><input style="all:unset" type="submit" value="<%= translate(locale, "Unsubscribe") %> | <%= sub_count_text %>"></b>
|
||||||
</p>
|
</button>
|
||||||
|
</form>
|
||||||
|
</p>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
<p>
|
||||||
|
<form action="/subscription_ajax?action_create_subscription_to_channel=1&c=<%= ucid %>&referer=<%= env.get("current_page") %>" method="post">
|
||||||
|
<input type="hidden" name="csrf_token" value="<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>">
|
||||||
|
<button data-type="subscribe" id="subscribe" class="pure-button pure-button-primary">
|
||||||
|
<b><input style="all:unset" type="submit" value="<%= translate(locale, "Subscribe") %> | <%= sub_count_text %>"></b>
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</p>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var subscribe_data = {
|
||||||
|
ucid: '<%= ucid %>',
|
||||||
|
author: '<%= HTML.escape(author) %>',
|
||||||
|
sub_count_text: '<%= HTML.escape(sub_count_text) %>',
|
||||||
|
csrf_token: '<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>',
|
||||||
|
subscribe_text: '<%= HTML.escape(translate(locale, "Subscribe")) %>',
|
||||||
|
unsubscribe_text: '<%= HTML.escape(translate(locale, "Unsubscribe")) %>'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script src="/js/subscribe_widget.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
|
<% else %>
|
||||||
<p>
|
<p>
|
||||||
<a id="subscribe" onclick="subscribe()" class="pure-button pure-button-primary"
|
<a id="subscribe" class="pure-button pure-button-primary"
|
||||||
href="/subscription_ajax?action_create_subscription_to_channel=1&c=<%= ucid %>&referer=<%= env.get("current_page") %>">
|
href="/login?referer=<%= env.get("current_page") %>">
|
||||||
<b><%= translate(locale, "Subscribe") %> | <%= sub_count_text %></b>
|
<b><%= translate(locale, "Subscribe") %> | <%= sub_count_text %></b>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
|
||||||
<% else %>
|
|
||||||
<p>
|
|
||||||
<a id="subscribe" class="pure-button pure-button-primary"
|
|
||||||
href="/login?referer=<%= env.get("current_page") %>">
|
|
||||||
<b><%= translate(locale, "Login to subscribe to `x`", author) %></b>
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,74 +0,0 @@
|
|||||||
subscribe_button = document.getElementById("subscribe");
|
|
||||||
if (subscribe_button.getAttribute('onclick')) {
|
|
||||||
subscribe_button["href"] = "javascript:void(0)";
|
|
||||||
}
|
|
||||||
|
|
||||||
function subscribe(timeouts = 0) {
|
|
||||||
subscribe_button = document.getElementById("subscribe");
|
|
||||||
|
|
||||||
if (timeouts > 10) {
|
|
||||||
console.log("Failed to subscribe.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var url = "/subscription_ajax?action_create_subscription_to_channel=1&c=<%= ucid %>&referer=<%= env.get("current_page") %>";
|
|
||||||
var xhr = new XMLHttpRequest();
|
|
||||||
xhr.responseType = "json";
|
|
||||||
xhr.timeout = 20000;
|
|
||||||
xhr.open("GET", url, true);
|
|
||||||
xhr.send();
|
|
||||||
|
|
||||||
var fallback = subscribe_button.innerHTML;
|
|
||||||
subscribe_button.onclick = unsubscribe;
|
|
||||||
subscribe_button.innerHTML = '<b><%= translate(locale, "Unsubscribe").gsub("'", "\\'") %> | <%= sub_count_text %></b>'
|
|
||||||
|
|
||||||
xhr.onreadystatechange = function() {
|
|
||||||
if (xhr.readyState == 4) {
|
|
||||||
if (xhr.status != 200) {
|
|
||||||
subscribe_button.onclick = subscribe;
|
|
||||||
subscribe_button.innerHTML = fallback;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
xhr.ontimeout = function() {
|
|
||||||
console.log("Subscribing timed out.");
|
|
||||||
|
|
||||||
subscribe(timeouts + 1);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function unsubscribe(timeouts = 0) {
|
|
||||||
subscribe_button = document.getElementById("subscribe");
|
|
||||||
|
|
||||||
if (timeouts > 10) {
|
|
||||||
console.log("Failed to subscribe");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var url = "/subscription_ajax?action_remove_subscriptions=1&c=<%= ucid %>&referer=<%= env.get("current_page") %>";
|
|
||||||
var xhr = new XMLHttpRequest();
|
|
||||||
xhr.responseType = "json";
|
|
||||||
xhr.timeout = 20000;
|
|
||||||
xhr.open("GET", url, true);
|
|
||||||
xhr.send();
|
|
||||||
|
|
||||||
var fallback = subscribe_button.innerHTML;
|
|
||||||
subscribe_button.onclick = subscribe;
|
|
||||||
subscribe_button.innerHTML = '<b><%= translate(locale, "Subscribe").gsub("'", "\\'") %> | <%= sub_count_text %></b>'
|
|
||||||
|
|
||||||
xhr.onreadystatechange = function() {
|
|
||||||
if (xhr.readyState == 4) {
|
|
||||||
if (xhr.status != 200) {
|
|
||||||
subscribe_button.onclick = unsubscribe;
|
|
||||||
subscribe_button.innerHTML = fallback;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
xhr.ontimeout = function() {
|
|
||||||
console.log("Unsubscribing timed out.");
|
|
||||||
|
|
||||||
unsubscribe(timeouts + 1);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
<form class="pure-form pure-form-aligned" enctype="multipart/form-data" action="/data_control?referer=<%= referer %>" method="post">
|
<form class="pure-form pure-form-aligned" enctype="multipart/form-data" action="/data_control?referer=<%= URI.escape(referer) %>" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><%= translate(locale, "Import") %></legend>
|
<legend><%= translate(locale, "Import") %></legend>
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<input type="file" id="import_youtube" name="import_youtube">
|
<input type="file" id="import_youtube" name="import_youtube">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pure-control-group">
|
<div class="pure-control-group">
|
||||||
<label for="import_freetube"><%= translate(locale, "Import FreeTube subscriptions (.db)") %></label>
|
<label for="import_freetube"><%= translate(locale, "Import FreeTube subscriptions (.db)") %></label>
|
||||||
<input type="file" id="import_freetube" name="import_freetube">
|
<input type="file" id="import_freetube" name="import_freetube">
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
<label for="import_newpipe"><%= translate(locale, "Import NewPipe data (.zip)") %></label>
|
<label for="import_newpipe"><%= translate(locale, "Import NewPipe data (.zip)") %></label>
|
||||||
<input type="file" id="import_newpipe" name="import_newpipe">
|
<input type="file" id="import_newpipe" name="import_newpipe">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pure-controls">
|
<div class="pure-controls">
|
||||||
<button type="submit" class="pure-button pure-button-primary"><%= translate(locale, "Import") %></button>
|
<button type="submit" class="pure-button pure-button-primary"><%= translate(locale, "Import") %></button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,13 +13,12 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="pure-u-1-2">
|
<div class="pure-u-1-2">
|
||||||
<a class="pure-button" href="<%= referer %>">
|
<a class="pure-button" href="<%= URI.escape(referer) %>">
|
||||||
<%= translate(locale, "No") %>
|
<%= translate(locale, "No") %>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="hidden" name="token" value="<%= token %>">
|
<input type="hidden" name="csrf_token" value="<%= URI.escape(csrf_token) %>">
|
||||||
<input type="hidden" name="challenge" value="<%= challenge %>">
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,29 +1,40 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="<%= env.get("preferences").as(Preferences).locale %>">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="thumbnail" content="<%= thumbnail %>">
|
<meta name="thumbnail" content="<%= thumbnail %>">
|
||||||
<%= rendered "components/player_sources" %>
|
<%= rendered "components/player_sources" %>
|
||||||
<link rel="stylesheet" href="/css/default.css">
|
<link rel="stylesheet" href="/css/default.css?v=<%= ASSET_COMMIT %>">
|
||||||
<title><%= HTML.escape(video.title) %> - Invidious</title>
|
<title><%= HTML.escape(video.title) %> - Invidious</title>
|
||||||
<style>
|
<style>
|
||||||
video, #my_video, .video-js, .vjs-default-skin
|
#player {
|
||||||
{
|
position: fixed;
|
||||||
position: fixed;
|
right: 0;
|
||||||
right: 0;
|
bottom: 0;
|
||||||
bottom: 0;
|
min-width: 100%;
|
||||||
min-width: 100%;
|
min-height: 100%;
|
||||||
min-height: 100%;
|
width: auto;
|
||||||
width: auto;
|
height: auto;
|
||||||
height: auto;
|
z-index: -100;
|
||||||
z-index: -100;
|
}
|
||||||
}
|
</style>
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<%= rendered "components/player" %>
|
<script>
|
||||||
|
var video_data = {
|
||||||
|
id: '<%= video.id %>',
|
||||||
|
plid: '<%= plid %>',
|
||||||
|
length_seconds: '<%= video.info["length_seconds"].to_f %>',
|
||||||
|
video_series: <%= video_series.to_json %>,
|
||||||
|
params: <%= params.to_json %>,
|
||||||
|
preferences: <%= preferences.to_json %>
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<%= rendered "components/player" %>
|
||||||
|
<script src="/js/embed.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
<%= error_message %>
|
<%= error_message %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,83 +3,71 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="pure-g h-box">
|
<div class="pure-g h-box">
|
||||||
<div class="pure-u-2-3">
|
<div class="pure-u-1-3">
|
||||||
<h3><%= translate(locale, "`x` videos", %(<span id="count">#{user.watched.size}</span>)) %></h3>
|
<h3><%= translate(locale, "`x` videos", %(<span id="count">#{user.watched.size}</span>)) %></h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="pure-u-1-3" style="text-align:right;">
|
<div class="pure-u-1-3" style="text-align:center">
|
||||||
|
<h3>
|
||||||
|
<a href="/feed/subscriptions"><%= translate(locale, "`x` subscriptions", %(<span id="count">#{user.subscriptions.size}</span>)) %></a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<div class="pure-u-1-3" style="text-align:right">
|
||||||
<h3>
|
<h3>
|
||||||
<a href="/clear_watch_history"><%= translate(locale, "Clear watch history") %></a>
|
<a href="/clear_watch_history"><%= translate(locale, "Clear watch history") %></a>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var watched_data = {
|
||||||
|
csrf_token: '<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>',
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script src="/js/watched_widget.js"></script>
|
||||||
|
|
||||||
<div class="pure-g">
|
<div class="pure-g">
|
||||||
<% watched.each_slice(4) do |slice| %>
|
<% watched.each_slice(4) do |slice| %>
|
||||||
<% slice.each do |item| %>
|
<% slice.each do |item| %>
|
||||||
<div class="pure-u-1 pure-u-md-1-4">
|
<div class="pure-u-1 pure-u-md-1-4">
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
<a style="width:100%;" href="/watch?v=<%= item %>">
|
<a style="width:100%" href="/watch?v=<%= item %>">
|
||||||
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
|
<% if !env.get("preferences").as(Preferences).thin_mode %>
|
||||||
<% else %>
|
<div class="thumbnail">
|
||||||
<div class="thumbnail">
|
<img class="thumbnail" src="/vi/<%= item %>/mqdefault.jpg"/>
|
||||||
<img class="thumbnail" src="/vi/<%= item %>/mqdefault.jpg"/>
|
<form onsubmit="return false" action="/watch_ajax?action_mark_unwatched=1&id=<%= item %>&referer=<%= env.get("current_page") %>" method="post">
|
||||||
<p class="watched">
|
<input type="hidden" name="csrf_token" value="<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>">
|
||||||
<a onclick="mark_unwatched(this)"
|
<p class="watched">
|
||||||
data-id="<%= item %>"
|
<a onclick="mark_unwatched(this)" data-id="<%= item %>" href="javascript:void(0)">
|
||||||
onmouseenter='this["href"]="javascript:void(0)"'
|
<button type="submit" style="all:unset">
|
||||||
href="/mark_unwatched?id=<%= item %>">
|
<i class="icon ion-md-trash"></i>
|
||||||
<i class="icon ion-md-trash"></i>
|
</button>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</form>
|
||||||
<p></p>
|
</div>
|
||||||
<% end %>
|
<p></p>
|
||||||
</a>
|
<% end %>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
|
||||||
function mark_unwatched(target) {
|
|
||||||
var tile = target.parentNode.parentNode.parentNode.parentNode;
|
|
||||||
tile.style.display = "none";
|
|
||||||
var count = document.getElementById("count")
|
|
||||||
count.innerText = count.innerText - 1;
|
|
||||||
|
|
||||||
var url = "/mark_unwatched?redirect=false&id=" + target.getAttribute("data-id");
|
|
||||||
var xhr = new XMLHttpRequest();
|
|
||||||
xhr.responseType = "json";
|
|
||||||
xhr.timeout = 20000;
|
|
||||||
xhr.open("GET", url, true);
|
|
||||||
xhr.send();
|
|
||||||
|
|
||||||
xhr.onreadystatechange = function() {
|
|
||||||
if (xhr.readyState == 4) {
|
|
||||||
if (xhr.status != 200) {
|
|
||||||
count.innerText = count.innerText - 1 + 2;
|
|
||||||
tile.style.display = "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div class="pure-g h-box">
|
<div class="pure-g h-box">
|
||||||
<div class="pure-u-1 pure-u-md-1-5">
|
<div class="pure-u-1 pure-u-lg-1-5">
|
||||||
<% if page >= 2 %>
|
<% if page >= 2 %>
|
||||||
<a href="/feed/history?page=<%= page - 1 %>">
|
<a href="/feed/history?page=<%= page - 1 %>">
|
||||||
<%= translate(locale, "Previous page") %>
|
<%= translate(locale, "Previous page") %>
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="pure-u-1 pure-u-md-3-5"></div>
|
<div class="pure-u-1 pure-u-lg-3-5"></div>
|
||||||
<div style="text-align:right;" class="pure-u-1 pure-u-md-1-5">
|
<div class="pure-u-1 pure-u-lg-1-5" style="text-align:right">
|
||||||
<% if watched.size >= limit %>
|
<% if watched.size >= limit %>
|
||||||
<a href="/feed/history?page=<%= page + 1 %>">
|
<a href="/feed/history?page=<%= page + 1 %>">
|
||||||
<%= translate(locale, "Next page") %>
|
<%= translate(locale, "Next page") %>
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user