Compare commits
343 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 | ||
|
|
f16273772e |
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.
|
||||||
|
|
||||||
|
|||||||
42
README.md
42
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
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -143,14 +144,15 @@ $ 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 update && shards install
|
$ shards update && shards install
|
||||||
@@ -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 {
|
||||||
@@ -153,6 +162,15 @@ img.thumbnail {
|
|||||||
-webkit-appearance: none;
|
-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 {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
@@ -177,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;
|
||||||
@@ -194,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) {
|
||||||
@@ -203,7 +236,7 @@ img.thumbnail {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Footer
|
* Footer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -237,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);
|
||||||
@@ -259,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);
|
||||||
@@ -304,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:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
psql invidious -c "ALTER TABLE channels ADD COLUMN subscribed bool;"
|
psql invidious kemal -c "ALTER TABLE channels ADD COLUMN subscribed bool;"
|
||||||
psql invidious -c "UPDATE channels SET subscribed = false;"
|
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'"
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
psql invidious -c "ALTER TABLE channels DROP COLUMN subscribed"
|
|
||||||
psql invidious -c "ALTER TABLE channels ADD COLUMN subscribed timestamptz"
|
|
||||||
psql invidious -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
610
locales/ar.json
610
locales/ar.json
@@ -1,294 +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: ": "فقط إظهر اخر فيديو من القناة: ",
|
||||||
"Administrator preferences": "",
|
"Only show latest unwatched video from channel: ": "فقط اظهر اخر فيديو لم يتم رؤيتة من القناة: ",
|
||||||
"Default homepage: ": "",
|
"Only show unwatched: ": "فقط اظهر الذى لم يتم رؤيتة: ",
|
||||||
"Feed menu: ": "",
|
"Only show notifications (if there are any): ": "إظهار الإشعارات فقط (إذا كان هناك أي): ",
|
||||||
"Top enabled? ": "",
|
"Enable web notifications": "",
|
||||||
"CAPTCHA enabled? ": "",
|
"`x` uploaded a video": "",
|
||||||
"Login enabled? ": "",
|
"`x` is live": "",
|
||||||
"Registration enabled? ": "",
|
"Data preferences": "إعدادات التفضيلات",
|
||||||
"Report statistics? ": "",
|
"Clear watch history": "حذف سجل المشاهدة",
|
||||||
"Save preferences": "حفظ التفضيلات",
|
"Import/export data": "إضافة\\إستخراج البيانات",
|
||||||
"Subscription manager": "مدير الإشتراكات",
|
"Change password": "غير الرقم السرى",
|
||||||
"`x` subscriptions": "`x` مشتركين",
|
"Manage subscriptions": "إدارة المشتركين",
|
||||||
"Import/Export": "إضافة\\إستخراج",
|
"Manage tokens": "إدارة الرموز",
|
||||||
"unsubscribe": "إلغاء الإشتراك",
|
"Watch history": "سجل المشاهدة",
|
||||||
"Subscriptions": "الإشتراكات",
|
"Delete account": "حذف الحساب",
|
||||||
"`x` unseen notifications": "`x` إشعارات لم تشاهدها بعد ",
|
"Administrator preferences": "إعدادات المدير",
|
||||||
"search": "بحث",
|
"Default homepage: ": "الصفحة الرئيسية الافتراضية ",
|
||||||
"Sign out": "تسجيل الخروج",
|
"Feed menu: ": "قائمة التغذية",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "تم الإنشاء تحت AGPLv3 بواسطة عمر روث.",
|
"Top enabled? ": "تفعيل 'الأفضل' ؟ ",
|
||||||
"Source available here.": "الأكواد متوفرة هنا.",
|
"CAPTCHA enabled? ": "تفعيل الكابتشا ؟",
|
||||||
"Liberapay: ": "ليبرباى: ",
|
"Login enabled? ": "تفعيل تسجيل الدخول ؟",
|
||||||
"Patreon: ": "باتريون: ",
|
"Registration enabled? ": "تفعيل التسجيل ؟",
|
||||||
"BTC: ": "بيتكوين: ",
|
"Report statistics? ": "إبلاغ الإحصائيات",
|
||||||
"BCH: ": "بيتكوين كاش: ",
|
"Save preferences": "حفظ التفضيلات",
|
||||||
"View JavaScript license information.": "مشاهدة معلومات حول تراخيص الجافاسكريبت.",
|
"Subscription manager": "مدير الإشتراكات",
|
||||||
"Trending": "الشائع",
|
"Token manager": "إداره الرمز",
|
||||||
"Watch video on Youtube": "مشاهدة الفيديو على اليوتيوب",
|
"Token": "الرمز",
|
||||||
"Genre: ": "النوع: ",
|
"`x` subscriptions": "`x` مشتركين",
|
||||||
"License: ": "التراخيص: ",
|
"`x` tokens": "`x` رموز",
|
||||||
"Family friendly? ": "محتوى عائلى? ",
|
"Import/export": "إضافة\\إستخراج",
|
||||||
"Wilson score: ": "درجة ويلسون: ",
|
"unsubscribe": "إلغاء الإشتراك",
|
||||||
"Engagement: ": "نسبة المشاركة (عدد المشاهدات\\عدد الإعجابات): ",
|
"revoke": "مسح",
|
||||||
"Whitelisted regions: ": "الدول المسموح فيها هذا الفيديو: ",
|
"Subscriptions": "الإشتراكات",
|
||||||
"Blacklisted regions: ": "الدول الحظور فيها هذا الفيديو: ",
|
"`x` unseen notifications": "`x` إشعارات لم تشاهدها بعد ",
|
||||||
"Shared `x`": "شارك منذ `x`",
|
"search": "بحث",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "اهلا! يبدو ان الجافاسكريبت معطلة. اضغط هنا لعرض التعليقات, ضع فى إعتبارك انها ستأخذ وقت اطول للعرض.",
|
"Log out": "تسجيل الخروج",
|
||||||
"View YouTube comments": "عرض تعليقات اليوتيوب",
|
"Released under the AGPLv3 by Omar Roth.": "تم الإنشاء تحت AGPLv3 بواسطة عمر روث.",
|
||||||
"View more comments on Reddit": "عرض المزيد من التعليقات على\\من موقع Reddit",
|
"Source available here.": "الأكواد متوفرة هنا.",
|
||||||
"View `x` comments": "عرض `x` تعليقات",
|
"View JavaScript license information.": "مشاهدة معلومات حول تراخيص الجافاسكريبت.",
|
||||||
"View Reddit comments": "عرض تعليقات ريدإت Reddit",
|
"View privacy policy.": "عرض سياسة الخصوصية",
|
||||||
"Hide replies": "إخفاء الردود",
|
"Trending": "الشائع",
|
||||||
"Show replies": "عرض الردود",
|
"Unlisted": "غير مصنف",
|
||||||
"Incorrect password": "الرقم السرى غير صحيح",
|
"Watch on YouTube": "مشاهدة الفيديو على اليوتيوب",
|
||||||
"Quota exceeded, try again in a few hours": "تم تجاوز عدد المرات المسموح بها, حاول مرة اخرى بعد عدة ساعات",
|
"Hide annotations": "إخفاء الملاحظات فى الفيديو",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "غير قادر على تسجيل الدخول, تأكد من تشغيل المصادقة الثنائية 2FA.",
|
"Show annotations": "عرض الملاحظات فى الفيديو",
|
||||||
"Invalid TFA code": "كود مصادقة ثنائية 2FA غير صحيح",
|
"Genre: ": "النوع: ",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on your account.": "لم يتم تسجيل الدخول. هذا ربما بسبب ان المصادقة الثنائية 2FA معطلة فى حسابك.",
|
"License: ": "التراخيص: ",
|
||||||
"Invalid answer": "إجابة خاطئة",
|
"Family friendly? ": "محتوى عائلى? ",
|
||||||
"Invalid CAPTCHA": "الكابتشا CAPTCHA غير صاحلة",
|
"Wilson score: ": "درجة ويلسون: ",
|
||||||
"CAPTCHA is a required field": "مكان الكابتشا CAPTCHA مطلوب",
|
"Engagement: ": "نسبة المشاركة (عدد المشاهدات\\عدد الإعجابات): ",
|
||||||
"User ID is a required field": "مكان إسم المستخدم مطلوب",
|
"Whitelisted regions: ": "الدول المسموح فيها هذا الفيديو: ",
|
||||||
"Password is a required field": "مكان الرقم السرى مطلوب",
|
"Blacklisted regions: ": "الدول الحظور فيها هذا الفيديو: ",
|
||||||
"Invalid username or password": "إسم المستخدم او الرقم السرى غير صحيح",
|
"Shared `x`": "شارك منذ `x`",
|
||||||
"Please sign in using 'Sign in with Google'": "الرجاء تسجيل الدخول 'تسجيل الدخول بواسطة جوجل'",
|
"`x` views": "`x` مشاهدون",
|
||||||
"Password cannot be empty": "الرقم السرى لايمكن ان يكون فارغ",
|
"Premieres in `x`": "يعرض فى `x`",
|
||||||
"Password cannot be longer than 55 characters": "الرقم السرى لا يتعدى 55 حرف",
|
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "اهلا! يبدو ان الجافاسكريبت معطلة. اضغط هنا لعرض التعليقات, ضع فى إعتبارك انها ستأخذ وقت اطول للعرض.",
|
||||||
"Please sign in": "الرجاء تسجيل الدخول",
|
"View YouTube comments": "عرض تعليقات اليوتيوب",
|
||||||
"Invidious Private Feed for `x`": "صفحة Invidious للمشتركين الخاصة\\مخفية لـ `x`",
|
"View more comments on Reddit": "عرض المزيد من التعليقات على\\من موقع Reddit",
|
||||||
"channel:`x`": "قناة:`x`",
|
"View `x` comments": "عرض `x` تعليقات",
|
||||||
"Deleted or invalid channel": "قناة ممسوحة او غير صالحة",
|
"View Reddit comments": "عرض تعليقات ريدإت Reddit",
|
||||||
"This channel does not exist.": "القناة غير موجودة.",
|
"Hide replies": "إخفاء الردود",
|
||||||
"Could not get channel info.": "لم يستطع الحصول على معلومات القناة.",
|
"Show replies": "عرض الردود",
|
||||||
"Could not fetch comments": "لم يتمكن من إحضار التعليقات",
|
"Incorrect password": "الرقم السرى غير صحيح",
|
||||||
"View `x` replies": "عرض `x` ردود",
|
"Quota exceeded, try again in a few hours": "تم تجاوز عدد المرات المسموح بها, حاول مرة اخرى بعد عدة ساعات",
|
||||||
"`x` ago": "`x` منذ",
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "غير قادر على تسجيل الدخول, تأكد من تشغيل المصادقة الثنائية 2FA.",
|
||||||
"Load more": "عرض المزيد",
|
"Invalid TFA code": "كود مصادقة ثنائية 2FA غير صحيح",
|
||||||
"`x` points": "`x` نقاط",
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "لم يتم تسجيل الدخول. هذا ربما بسبب ان المصادقة الثنائية 2FA معطلة فى حسابك.",
|
||||||
"Could not create mix.": "لم يستطع عمل خلط.",
|
"Wrong answer": "إجابة خاطئة",
|
||||||
"Playlist is empty": "قائمة التشغيل فارغة",
|
"Erroneous CAPTCHA": "الكابتشا CAPTCHA غير صاحلة",
|
||||||
"Invalid playlist.": "قائمة التشغيل غير صالحة.",
|
"CAPTCHA is a required field": "مكان الكابتشا CAPTCHA مطلوب",
|
||||||
"Playlist does not exist.": "قائمة التشغيل غير موجودة.",
|
"User ID is a required field": "مكان إسم المستخدم مطلوب",
|
||||||
"Could not pull trending pages.": "لم يستطع عرض الصفحات الراجئة.",
|
"Password is a required field": "مكان الرقم السرى مطلوب",
|
||||||
"Hidden field \"challenge\" is a required field": "مكان مخفى \"تحدى\" مكان مطلوب",
|
"Wrong username or password": "إسم المستخدم او الرقم السرى غير صحيح",
|
||||||
"Hidden field \"token\" is a required field": "مكان مخفى \"رمز\" مكان مطلوب",
|
"Please sign in using 'Log in with Google'": "الرجاء تسجيل الدخول 'تسجيل الدخول بواسطة جوجل'",
|
||||||
"Invalid challenge": "تحدى غير صالح",
|
"Password cannot be empty": "الرقم السرى لايمكن ان يكون فارغ",
|
||||||
"Invalid token": "روز غير صالح",
|
"Password cannot be longer than 55 characters": "الرقم السرى لا يتعدى 55 حرف",
|
||||||
"Invalid user": "مستخدم غير صالح",
|
"Please log in": "الرجاء تسجيل الدخول",
|
||||||
"Token is expired, please try again": "الرمز منتهى الصلاحية , الرجاء المحاولة مرة اخرى",
|
"Invidious Private Feed for `x`": "صفحة Invidious للمشتركين الخاصة\\مخفية لـ `x`",
|
||||||
"English": "إنجليزى",
|
"channel:`x`": "قناة:`x`",
|
||||||
"English (auto-generated)": "إنجليزى (تم إنشائة تلقائى)",
|
"Deleted or invalid channel": "قناة ممسوحة او غير صالحة",
|
||||||
"Afrikaans": "الأفريكانية",
|
"This channel does not exist.": "القناة غير موجودة.",
|
||||||
"Albanian": "الألبانية",
|
"Could not get channel info.": "لم يستطع الحصول على معلومات القناة.",
|
||||||
"Amharic": "الأمهرية",
|
"Could not fetch comments": "لم يتمكن من إحضار التعليقات",
|
||||||
"Arabic": "العربية",
|
"View `x` replies": "عرض `x` ردود",
|
||||||
"Armenian": "الأرميني",
|
"`x` ago": "`x` منذ",
|
||||||
"Azerbaijani": "أذربيجان",
|
"Load more": "عرض المزيد",
|
||||||
"Bangla": "البنغالية",
|
"`x` points": "`x` نقاط",
|
||||||
"Basque": "الباسكي",
|
"Could not create mix.": "لم يستطع عمل خلط.",
|
||||||
"Belarusian": "البيلاروسية",
|
"Empty playlist": "قائمة التشغيل فارغة",
|
||||||
"Bosnian": "البوسنية",
|
"Not a playlist.": "قائمة التشغيل غير صالحة.",
|
||||||
"Bulgarian": "البلغارية",
|
"Playlist does not exist.": "قائمة التشغيل غير موجودة.",
|
||||||
"Burmese": "البورمية",
|
"Could not pull trending pages.": "لم يستطع عرض الصفحات الراجئة.",
|
||||||
"Catalan": "الكاتالونية",
|
"Hidden field \"challenge\" is a required field": "مكان مخفى \"تحدى\" مكان مطلوب",
|
||||||
"Cebuano": "السيبيونو",
|
"Hidden field \"token\" is a required field": "مكان مخفى \"رمز\" مكان مطلوب",
|
||||||
"Chinese (Simplified)": "الصينية (المبسطة)",
|
"Erroneous challenge": "تحدى غير صالح",
|
||||||
"Chinese (Traditional)": "الصينية (التقليدية)",
|
"Erroneous token": "روز غير صالح",
|
||||||
"Corsican": "الكورسيكية",
|
"No such user": "مستخدم غير صالح",
|
||||||
"Croatian": "الكرواتية",
|
"Token is expired, please try again": "الرمز منتهى الصلاحية , الرجاء المحاولة مرة اخرى",
|
||||||
"Czech": "تشيكي",
|
"English": "إنجليزى",
|
||||||
"Danish": "دانماركي",
|
"English (auto-generated)": "إنجليزى (تم إنشائة تلقائى)",
|
||||||
"Dutch": "هولندي",
|
"Afrikaans": "الأفريكانية",
|
||||||
"Esperanto": "الاسبرانتو",
|
"Albanian": "الألبانية",
|
||||||
"Estonian": "الإستونية",
|
"Amharic": "الأمهرية",
|
||||||
"Filipino": "الفلبينية",
|
"Arabic": "العربية",
|
||||||
"Finnish": "الفنلندية",
|
"Armenian": "الأرميني",
|
||||||
"French": "الفرنسية",
|
"Azerbaijani": "أذربيجان",
|
||||||
"Galician": "الجاليكية",
|
"Bangla": "البنغالية",
|
||||||
"Georgian": "الجورجية",
|
"Basque": "الباسكي",
|
||||||
"German": "ألمانية",
|
"Belarusian": "البيلاروسية",
|
||||||
"Greek": "الإغريقي",
|
"Bosnian": "البوسنية",
|
||||||
"Gujarati": "الغوجاراتية",
|
"Bulgarian": "البلغارية",
|
||||||
"Haitian Creole": "الكاثوليكية الهايتية",
|
"Burmese": "البورمية",
|
||||||
"Hausa": "الهوسا",
|
"Catalan": "الكاتالونية",
|
||||||
"Hawaiian": "هاواي",
|
"Cebuano": "السيبيونو",
|
||||||
"Hebrew": "العبرية",
|
"Chinese (Simplified)": "الصينية (المبسطة)",
|
||||||
"Hindi": "الهندية",
|
"Chinese (Traditional)": "الصينية (التقليدية)",
|
||||||
"Hmong": "همونغ",
|
"Corsican": "الكورسيكية",
|
||||||
"Hungarian": "الهنغارية",
|
"Croatian": "الكرواتية",
|
||||||
"Icelandic": "أيسلندي",
|
"Czech": "تشيكي",
|
||||||
"Igbo": "الإيبو",
|
"Danish": "دانماركي",
|
||||||
"Indonesian": "الأندونيسية",
|
"Dutch": "هولندي",
|
||||||
"Irish": "الأيرلندية",
|
"Esperanto": "الاسبرانتو",
|
||||||
"Italian": "الإيطالي",
|
"Estonian": "الإستونية",
|
||||||
"Japanese": "اليابانية",
|
"Filipino": "الفلبينية",
|
||||||
"Javanese": "جاوي",
|
"Finnish": "الفنلندية",
|
||||||
"Kannada": "الكانادا",
|
"French": "الفرنسية",
|
||||||
"Kazakh": "الكازاخية",
|
"Galician": "الجاليكية",
|
||||||
"Khmer": "الخمير",
|
"Georgian": "الجورجية",
|
||||||
"Korean": "الكورية",
|
"German": "ألمانية",
|
||||||
"Kurdish": "كردي",
|
"Greek": "الإغريقي",
|
||||||
"Kyrgyz": "قيرغيزستان",
|
"Gujarati": "الغوجاراتية",
|
||||||
"Lao": "لاو",
|
"Haitian Creole": "الكاثوليكية الهايتية",
|
||||||
"Latin": "لاتينية",
|
"Hausa": "الهوسا",
|
||||||
"Latvian": "اللاتفية",
|
"Hawaiian": "هاواي",
|
||||||
"Lithuanian": "اللتوانية",
|
"Hebrew": "العبرية",
|
||||||
"Luxembourgish": "اللوكسمبرجية",
|
"Hindi": "الهندية",
|
||||||
"Macedonian": "المقدونية",
|
"Hmong": "همونغ",
|
||||||
"Malagasy": "مدجشقر\\مدغشقر",
|
"Hungarian": "الهنغارية",
|
||||||
"Malay": "الملايو",
|
"Icelandic": "أيسلندي",
|
||||||
"Malayalam": "المالايالامية",
|
"Igbo": "الإيبو",
|
||||||
"Maltese": "المالطية",
|
"Indonesian": "الأندونيسية",
|
||||||
"Maori": "الماوري",
|
"Irish": "الأيرلندية",
|
||||||
"Marathi": "المهاراتية",
|
"Italian": "الإيطالي",
|
||||||
"Mongolian": "المنغولية",
|
"Japanese": "اليابانية",
|
||||||
"Nepali": "النيبالية",
|
"Javanese": "جاوي",
|
||||||
"Norwegian": "النرويجية",
|
"Kannada": "الكانادا",
|
||||||
"Nyanja": "نيانجا",
|
"Kazakh": "الكازاخية",
|
||||||
"Pashto": "الباشتو",
|
"Khmer": "الخمير",
|
||||||
"Persian": "الفارسية",
|
"Korean": "الكورية",
|
||||||
"Polish": "البولندي",
|
"Kurdish": "كردي",
|
||||||
"Portuguese": "البرتغالية",
|
"Kyrgyz": "قيرغيزستان",
|
||||||
"Punjabi": "البنجابية",
|
"Lao": "لاو",
|
||||||
"Romanian": "روماني",
|
"Latin": "لاتينية",
|
||||||
"Russian": "الروسية",
|
"Latvian": "اللاتفية",
|
||||||
"Samoan": "ساموا",
|
"Lithuanian": "اللتوانية",
|
||||||
"Scottish Gaelic": "الغيلية الاسكتلندية",
|
"Luxembourgish": "اللوكسمبرجية",
|
||||||
"Serbian": "صربي",
|
"Macedonian": "المقدونية",
|
||||||
"Shona": "شونا",
|
"Malagasy": "مدجشقر\\مدغشقر",
|
||||||
"Sindhi": "السندية",
|
"Malay": "الملايو",
|
||||||
"Sinhala": "السنهالية",
|
"Malayalam": "المالايالامية",
|
||||||
"Slovak": "السلوفاكية",
|
"Maltese": "المالطية",
|
||||||
"Slovenian": "سلوفيني",
|
"Maori": "الماوري",
|
||||||
"Somali": "الصومالية",
|
"Marathi": "المهاراتية",
|
||||||
"Southern Sotho": "جنوب سوثو",
|
"Mongolian": "المنغولية",
|
||||||
"Spanish": "الأسبانية",
|
"Nepali": "النيبالية",
|
||||||
"Spanish (Latin America)": "الأسبانية (أمريكا اللاتينية)",
|
"Norwegian Bokmål": "النرويجية",
|
||||||
"Sundanese": "السودانية",
|
"Nyanja": "نيانجا",
|
||||||
"Swahili": "السواحلية",
|
"Pashto": "الباشتو",
|
||||||
"Swedish": "السويدية",
|
"Persian": "الفارسية",
|
||||||
"Tajik": "الطاجيكية",
|
"Polish": "البولندي",
|
||||||
"Tamil": "التاميل",
|
"Portuguese": "البرتغالية",
|
||||||
"Telugu": "التيلجو",
|
"Punjabi": "البنجابية",
|
||||||
"Thai": "التايلاندية",
|
"Romanian": "روماني",
|
||||||
"Turkish": "التركية",
|
"Russian": "الروسية",
|
||||||
"Ukrainian": "الأوكراني",
|
"Samoan": "ساموا",
|
||||||
"Urdu": "الأردية",
|
"Scottish Gaelic": "الغيلية الاسكتلندية",
|
||||||
"Uzbek": "الأوزبكي",
|
"Serbian": "صربي",
|
||||||
"Vietnamese": "الفيتنامية",
|
"Shona": "شونا",
|
||||||
"Welsh": "الولزية",
|
"Sindhi": "السندية",
|
||||||
"Western Frisian": "الفريزية الغربية",
|
"Sinhala": "السنهالية",
|
||||||
"Xhosa": "زوسا",
|
"Slovak": "السلوفاكية",
|
||||||
"Yiddish": "اليديشية",
|
"Slovenian": "سلوفيني",
|
||||||
"Yoruba": "اليوروبا",
|
"Somali": "الصومالية",
|
||||||
"Zulu": "الزولو",
|
"Southern Sotho": "جنوب سوثو",
|
||||||
"`x` years": "`x` سنوات",
|
"Spanish": "الأسبانية",
|
||||||
"`x` months": "`x` شهور",
|
"Spanish (Latin America)": "الأسبانية (أمريكا اللاتينية)",
|
||||||
"`x` weeks": "`x` اسابيع",
|
"Sundanese": "السودانية",
|
||||||
"`x` days": "`x` ايام",
|
"Swahili": "السواحلية",
|
||||||
"`x` hours": "`x` ساعات",
|
"Swedish": "السويدية",
|
||||||
"`x` minutes": "`x` دقائق",
|
"Tajik": "الطاجيكية",
|
||||||
"`x` seconds": "`x` ثوانى",
|
"Tamil": "التاميل",
|
||||||
"Fallback comments: ": "التعليقات المصاحبة",
|
"Telugu": "التيلجو",
|
||||||
"Popular": "لاكثر شعبية",
|
"Thai": "التايلاندية",
|
||||||
"Top": "الأفضل",
|
"Turkish": "التركية",
|
||||||
"About": "حول",
|
"Ukrainian": "الأوكراني",
|
||||||
"Rating: ": "التقييم",
|
"Urdu": "الأردية",
|
||||||
"Language: ": "اللغة",
|
"Uzbek": "الأوزبكي",
|
||||||
"Default": "الكل",
|
"Vietnamese": "الفيتنامية",
|
||||||
"Music": "الاغانى",
|
"Welsh": "الولزية",
|
||||||
"Gaming": "الألعاب",
|
"Western Frisian": "الفريزية الغربية",
|
||||||
"News": "الأخبار",
|
"Xhosa": "زوسا",
|
||||||
"Movies": "الأفلام",
|
"Yiddish": "اليديشية",
|
||||||
"Download as: ": "تحميل كـ",
|
"Yoruba": "اليوروبا",
|
||||||
"Download": "تحميل",
|
"Zulu": "الزولو",
|
||||||
"%A %B %-d, %Y": "",
|
"`x` years": "`x` سنوات",
|
||||||
"(edited)": "",
|
"`x` months": "`x` شهور",
|
||||||
"Youtube permalink of the comment": "",
|
"`x` weeks": "`x` اسابيع",
|
||||||
"`x` marked it with a ❤": "",
|
"`x` days": "`x` ايام",
|
||||||
"Audio mode": "",
|
"`x` hours": "`x` ساعات",
|
||||||
"Video mode": ""
|
"`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: ": "الإصدار الحالى"
|
||||||
|
}
|
||||||
608
locales/de.json
608
locales/de.json
@@ -1,294 +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: ",
|
||||||
"Administrator preferences": "",
|
"Only show latest unwatched video from channel: ": "Nur neueste ungesehene Videos des Kanals anzeigen: ",
|
||||||
"Default homepage: ": "",
|
"Only show unwatched: ": "Nur ungesehene anzeigen: ",
|
||||||
"Feed menu: ": "",
|
"Only show notifications (if there are any): ": "Nur Benachrichtigungen anzeigen (wenn es welche gibt): ",
|
||||||
"Top enabled? ": "",
|
"Enable web notifications": "",
|
||||||
"CAPTCHA enabled? ": "",
|
"`x` uploaded a video": "",
|
||||||
"Login enabled? ": "",
|
"`x` is live": "",
|
||||||
"Registration enabled? ": "",
|
"Data preferences": "Dateneinstellungen",
|
||||||
"Report statistics? ": "",
|
"Clear watch history": "Verlauf löschen",
|
||||||
"Save preferences": "Einstellungen speichern",
|
"Import/export data": "Daten im- exportieren",
|
||||||
"Subscription manager": "Abonnementverwaltung",
|
"Change password": "Passwort ändern",
|
||||||
"`x` subscriptions": "`x` Abonnements",
|
"Manage subscriptions": "Abonnements verwalten",
|
||||||
"Import/Export": "Importieren/Exportieren",
|
"Manage tokens": "Token verwalten",
|
||||||
"unsubscribe": "abbestellen",
|
"Watch history": "Verlauf",
|
||||||
"Subscriptions": "Abonnements",
|
"Delete account": "Account löschen",
|
||||||
"`x` unseen notifications": "`x` ungesehene Benachrichtigungen",
|
"Administrator preferences": "Administratoreinstellungen",
|
||||||
"search": "Suchen",
|
"Default homepage: ": "Standard-Homepage: ",
|
||||||
"Sign out": "Abmelden",
|
"Feed menu: ": "Feed-Menü: ",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Veröffentlicht unter AGPLv3 von Omar Roth.",
|
"Top enabled? ": "Top aktiviert? ",
|
||||||
"Source available here.": "Quellcode verfügbar hier.",
|
"CAPTCHA enabled? ": "CAPTCHA aktiviert? ",
|
||||||
"Liberapay: ": "Liberapay: ",
|
"Login enabled? ": "Login aktiviert? ",
|
||||||
"Patreon: ": "Patreon: ",
|
"Registration enabled? ": "Registrierung aktiviert? ",
|
||||||
"BTC: ": "BTC: ",
|
"Report statistics? ": "Statistiken berichten? ",
|
||||||
"BCH: ": "BCH: ",
|
"Save preferences": "Einstellungen speichern",
|
||||||
"View JavaScript license information.": "Javascript Lizenzinformationen anzeigen.",
|
"Subscription manager": "Abonnementverwaltung",
|
||||||
"Trending": "Trending",
|
"Token manager": "Token-Manager",
|
||||||
"Watch video on Youtube": "Video auf YouTube ansehen",
|
"Token": "Token",
|
||||||
"Genre: ": "Genre: ",
|
"`x` subscriptions": "`x` Abonnements",
|
||||||
"License: ": "Lizenz: ",
|
"`x` tokens": "`x` Tokens",
|
||||||
"Family friendly? ": "Familienfreundlich? ",
|
"Import/export": "Importieren/Exportieren",
|
||||||
"Wilson score: ": "Wilson-Score: ",
|
"unsubscribe": "abbestellen",
|
||||||
"Engagement: ": "Engagement: ",
|
"revoke": "widerrufen",
|
||||||
"Whitelisted regions: ": "Erlaubte Regionen: ",
|
"Subscriptions": "Abonnements",
|
||||||
"Blacklisted regions: ": "Unerlaubte Regionen: ",
|
"`x` unseen notifications": "`x` ungesehene Benachrichtigungen",
|
||||||
"Shared `x`": "Geteilt `x`",
|
"search": "Suchen",
|
||||||
"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.",
|
"Log out": "Abmelden",
|
||||||
"View YouTube comments": "YouTube Kommentare anzeigen",
|
"Released under the AGPLv3 by Omar Roth.": "Veröffentlicht unter AGPLv3 von Omar Roth.",
|
||||||
"View more comments on Reddit": "Mehr Kommentare auf Reddit anzeigen",
|
"Source available here.": "Quellcode verfügbar hier.",
|
||||||
"View `x` comments": "`x` Kommentare anzeigen",
|
"View JavaScript license information.": "Javascript Lizenzinformationen anzeigen.",
|
||||||
"View Reddit comments": "Reddit Kommentare anzeigen",
|
"View privacy policy.": "Datenschutzerklärung einsehen.",
|
||||||
"Hide replies": "Antworten verstecken",
|
"Trending": "Trending",
|
||||||
"Show replies": "Antworten anzeigen",
|
"Unlisted": "Nicht aufgeführt",
|
||||||
"Incorrect password": "Falsches Passwort",
|
"Watch on YouTube": "Video auf YouTube ansehen",
|
||||||
"Quota exceeded, try again in a few hours": "Kontingent überschritten, versuche es in ein paar Stunden erneut",
|
"Hide annotations": "Anmerkungen ausblenden",
|
||||||
"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.",
|
"Show annotations": "Anmerkungen anzeigen",
|
||||||
"Invalid TFA code": "Ungültiger TFA Code",
|
"Genre: ": "Genre: ",
|
||||||
"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.",
|
"License: ": "Lizenz: ",
|
||||||
"Invalid answer": "Ungültige Antwort",
|
"Family friendly? ": "Familienfreundlich? ",
|
||||||
"Invalid CAPTCHA": "Ungültiges CAPTCHA",
|
"Wilson score: ": "Wilson-Score: ",
|
||||||
"CAPTCHA is a required field": "CAPTCHA ist eine erforderliche Eingabe",
|
"Engagement: ": "Engagement: ",
|
||||||
"User ID is a required field": "Benutzer ID ist eine erforderliche Eingabe",
|
"Whitelisted regions: ": "Erlaubte Regionen: ",
|
||||||
"Password is a required field": "Passwort ist eine erforderliche Eingabe",
|
"Blacklisted regions: ": "Unerlaubte Regionen: ",
|
||||||
"Invalid username or password": "Ungültiger Benutzername oder Passwort",
|
"Shared `x`": "Geteilt `x`",
|
||||||
"Please sign in using 'Sign in with Google'": "Bitte melden sie sich mit 'Mit Google anmelden' an",
|
"`x` views": "`x` Ansichten",
|
||||||
"Password cannot be empty": "Passwort darf nicht leer sein",
|
"Premieres in `x`": "Premieren in `x`",
|
||||||
"Password cannot be longer than 55 characters": "Passwort darf nicht länger als 55 Zeichen sein",
|
"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.",
|
||||||
"Please sign in": "Bitte anmelden",
|
"View YouTube comments": "YouTube Kommentare anzeigen",
|
||||||
"Invidious Private Feed for `x`": "Invidious Persönlicher Feed für `x`",
|
"View more comments on Reddit": "Mehr Kommentare auf Reddit anzeigen",
|
||||||
"channel:`x`": "Kanal:`x`",
|
"View `x` comments": "`x` Kommentare anzeigen",
|
||||||
"Deleted or invalid channel": "Gelöschter oder ungültiger Kanal",
|
"View Reddit comments": "Reddit Kommentare anzeigen",
|
||||||
"This channel does not exist.": "Dieser Kanal existiert nicht.",
|
"Hide replies": "Antworten verstecken",
|
||||||
"Could not get channel info.": "Kanalinformationen konnten nicht geladen werden.",
|
"Show replies": "Antworten anzeigen",
|
||||||
"Could not fetch comments": "Kommentare konnten nicht geladen werden",
|
"Incorrect password": "Falsches Passwort",
|
||||||
"View `x` replies": "Zeige `x` Antworten",
|
"Quota exceeded, try again in a few hours": "Kontingent überschritten, versuche es in ein paar Stunden erneut",
|
||||||
"`x` ago": "vor `x`",
|
"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.",
|
||||||
"Load more": "Mehr laden",
|
"Invalid TFA code": "Ungültiger TFA Code",
|
||||||
"`x` points": "`x` Punkte",
|
"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.",
|
||||||
"Could not create mix.": "Mix konnte nicht erstellt werden.",
|
"Wrong answer": "Ungültige Antwort",
|
||||||
"Playlist is empty": "Playlist ist leer",
|
"Erroneous CAPTCHA": "Ungültiges CAPTCHA",
|
||||||
"Invalid playlist.": "Ungültige Playlist.",
|
"CAPTCHA is a required field": "CAPTCHA ist eine erforderliche Eingabe",
|
||||||
"Playlist does not exist.": "Playlist existiert nicht.",
|
"User ID is a required field": "Benutzer ID ist eine erforderliche Eingabe",
|
||||||
"Could not pull trending pages.": "Trending Seiten konnten nicht geladen werden.",
|
"Password is a required field": "Passwort ist eine erforderliche Eingabe",
|
||||||
"Hidden field \"challenge\" is a required field": "Verstecktes Feld \"challenge\" ist eine erforderliche Eingabe",
|
"Wrong username or password": "Ungültiger Benutzername oder Passwort",
|
||||||
"Hidden field \"token\" is a required field": "Verstecktes Feld \"token\" ist eine erforderliche Eingabe",
|
"Please sign in using 'Log in with Google'": "Bitte melden sie sich mit 'Mit Google anmelden' an",
|
||||||
"Invalid challenge": "Ungültiger Test",
|
"Password cannot be empty": "Passwort darf nicht leer sein",
|
||||||
"Invalid token": "Ungöltige Marke",
|
"Password cannot be longer than 55 characters": "Passwort darf nicht länger als 55 Zeichen sein",
|
||||||
"Invalid user": "Ungültiger Benutzer",
|
"Please log in": "Bitte anmelden",
|
||||||
"Token is expired, please try again": "Marke ist abgelaufen, bitte erneut versuchen",
|
"Invidious Private Feed for `x`": "Invidious Persönlicher Feed für `x`",
|
||||||
"English": "Englisch",
|
"channel:`x`": "Kanal:`x`",
|
||||||
"English (auto-generated)": "Englisch (automatisch erzeugt)",
|
"Deleted or invalid channel": "Gelöschter oder ungültiger Kanal",
|
||||||
"Afrikaans": "Afrikaans",
|
"This channel does not exist.": "Dieser Kanal existiert nicht.",
|
||||||
"Albanian": "Albanisch",
|
"Could not get channel info.": "Kanalinformationen konnten nicht geladen werden.",
|
||||||
"Amharic": "Amharisch",
|
"Could not fetch comments": "Kommentare konnten nicht geladen werden",
|
||||||
"Arabic": "Arabisch",
|
"View `x` replies": "Zeige `x` Antworten",
|
||||||
"Armenian": "Armenisch",
|
"`x` ago": "vor `x`",
|
||||||
"Azerbaijani": "Aserbaidschanisch",
|
"Load more": "Mehr laden",
|
||||||
"Bangla": "Bengalisch",
|
"`x` points": "`x` Punkte",
|
||||||
"Basque": "Baskisch",
|
"Could not create mix.": "Mix konnte nicht erstellt werden.",
|
||||||
"Belarusian": "Weißrussisch",
|
"Empty playlist": "Playlist ist leer",
|
||||||
"Bosnian": "Bosnisch",
|
"Not a playlist.": "Ungültige Playlist.",
|
||||||
"Bulgarian": "Bulgarisch",
|
"Playlist does not exist.": "Playlist existiert nicht.",
|
||||||
"Burmese": "Burmesisch",
|
"Could not pull trending pages.": "Trending Seiten konnten nicht geladen werden.",
|
||||||
"Catalan": "Katalanisch",
|
"Hidden field \"challenge\" is a required field": "Verstecktes Feld \"challenge\" ist eine erforderliche Eingabe",
|
||||||
"Cebuano": "Cebuano",
|
"Hidden field \"token\" is a required field": "Verstecktes Feld \"token\" ist eine erforderliche Eingabe",
|
||||||
"Chinese (Simplified)": "Chinesisch (vereinfacht)",
|
"Erroneous challenge": "Ungültiger Test",
|
||||||
"Chinese (Traditional)": "Chinesisch (traditionell)",
|
"Erroneous token": "Ungöltige Marke",
|
||||||
"Corsican": "Korsisch",
|
"No such user": "Ungültiger Benutzer",
|
||||||
"Croatian": "Kroatisch",
|
"Token is expired, please try again": "Marke ist abgelaufen, bitte erneut versuchen",
|
||||||
"Czech": "Tschechisch",
|
"English": "Englisch",
|
||||||
"Danish": "Dänisch",
|
"English (auto-generated)": "Englisch (automatisch erzeugt)",
|
||||||
"Dutch": "Niederländisch",
|
"Afrikaans": "Afrikaans",
|
||||||
"Esperanto": "Esperanto",
|
"Albanian": "Albanisch",
|
||||||
"Estonian": "Estnisch",
|
"Amharic": "Amharisch",
|
||||||
"Filipino": "Philippinisch",
|
"Arabic": "Arabisch",
|
||||||
"Finnish": "Finnisch",
|
"Armenian": "Armenisch",
|
||||||
"French": "Französisch",
|
"Azerbaijani": "Aserbaidschanisch",
|
||||||
"Galician": "Galizisch",
|
"Bangla": "Bengalisch",
|
||||||
"Georgian": "Georgisch",
|
"Basque": "Baskisch",
|
||||||
"German": "Deutsch",
|
"Belarusian": "Weißrussisch",
|
||||||
"Greek": "Griechisch",
|
"Bosnian": "Bosnisch",
|
||||||
"Gujarati": "Gujarati",
|
"Bulgarian": "Bulgarisch",
|
||||||
"Haitian Creole": "Haitianisches Kreolisch",
|
"Burmese": "Burmesisch",
|
||||||
"Hausa": "Hausa",
|
"Catalan": "Katalanisch",
|
||||||
"Hawaiian": "Hawaiianisch",
|
"Cebuano": "Cebuano",
|
||||||
"Hebrew": "Hebräisch",
|
"Chinese (Simplified)": "Chinesisch (vereinfacht)",
|
||||||
"Hindi": "Hindi",
|
"Chinese (Traditional)": "Chinesisch (traditionell)",
|
||||||
"Hmong": "Hmong",
|
"Corsican": "Korsisch",
|
||||||
"Hungarian": "Ungarisch",
|
"Croatian": "Kroatisch",
|
||||||
"Icelandic": "Isländisch",
|
"Czech": "Tschechisch",
|
||||||
"Igbo": "Igbo",
|
"Danish": "Dänisch",
|
||||||
"Indonesian": "Indonesisch",
|
"Dutch": "Niederländisch",
|
||||||
"Irish": "Irisch",
|
"Esperanto": "Esperanto",
|
||||||
"Italian": "Italienisch",
|
"Estonian": "Estnisch",
|
||||||
"Japanese": "Japanisch",
|
"Filipino": "Philippinisch",
|
||||||
"Javanese": "Javanisch",
|
"Finnish": "Finnisch",
|
||||||
"Kannada": "Kannada",
|
"French": "Französisch",
|
||||||
"Kazakh": "Kasachisch",
|
"Galician": "Galizisch",
|
||||||
"Khmer": "Khmer",
|
"Georgian": "Georgisch",
|
||||||
"Korean": "Koreanisch",
|
"German": "Deutsch",
|
||||||
"Kurdish": "Kurdisch",
|
"Greek": "Griechisch",
|
||||||
"Kyrgyz": "Kirgisisch",
|
"Gujarati": "Gujarati",
|
||||||
"Lao": "Laotisch",
|
"Haitian Creole": "Haitianisches Kreolisch",
|
||||||
"Latin": "Lateinisch",
|
"Hausa": "Hausa",
|
||||||
"Latvian": "Lettisch",
|
"Hawaiian": "Hawaiianisch",
|
||||||
"Lithuanian": "Litauisch",
|
"Hebrew": "Hebräisch",
|
||||||
"Luxembourgish": "Luxemburgisch",
|
"Hindi": "Hindi",
|
||||||
"Macedonian": "Mazedonisch",
|
"Hmong": "Hmong",
|
||||||
"Malagasy": "Madagassisch",
|
"Hungarian": "Ungarisch",
|
||||||
"Malay": "Malaiisch",
|
"Icelandic": "Isländisch",
|
||||||
"Malayalam": "Malayalam",
|
"Igbo": "Igbo",
|
||||||
"Maltese": "Maltesisch",
|
"Indonesian": "Indonesisch",
|
||||||
"Maori": "Maori",
|
"Irish": "Irisch",
|
||||||
"Marathi": "Marathi",
|
"Italian": "Italienisch",
|
||||||
"Mongolian": "Mongolisch",
|
"Japanese": "Japanisch",
|
||||||
"Nepali": "Nepalesisch",
|
"Javanese": "Javanisch",
|
||||||
"Norwegian": "Norwegisch",
|
"Kannada": "Kannada",
|
||||||
"Nyanja": "Nyanja",
|
"Kazakh": "Kasachisch",
|
||||||
"Pashto": "Paschtunisch",
|
"Khmer": "Khmer",
|
||||||
"Persian": "Persisch",
|
"Korean": "Koreanisch",
|
||||||
"Polish": "Polnisch",
|
"Kurdish": "Kurdisch",
|
||||||
"Portuguese": "Portugiesisch",
|
"Kyrgyz": "Kirgisisch",
|
||||||
"Punjabi": "Pandschabi",
|
"Lao": "Laotisch",
|
||||||
"Romanian": "Rumänisch",
|
"Latin": "Lateinisch",
|
||||||
"Russian": "Russisch",
|
"Latvian": "Lettisch",
|
||||||
"Samoan": "Samoanisch",
|
"Lithuanian": "Litauisch",
|
||||||
"Scottish Gaelic": "Schottisches Gälisch",
|
"Luxembourgish": "Luxemburgisch",
|
||||||
"Serbian": "Serbisch",
|
"Macedonian": "Mazedonisch",
|
||||||
"Shona": "Schona",
|
"Malagasy": "Madagassisch",
|
||||||
"Sindhi": "Sindhi",
|
"Malay": "Malaiisch",
|
||||||
"Sinhala": "Singhalesisch",
|
"Malayalam": "Malayalam",
|
||||||
"Slovak": "Slowakisch",
|
"Maltese": "Maltesisch",
|
||||||
"Slovenian": "Slowenisch",
|
"Maori": "Maori",
|
||||||
"Somali": "Somali",
|
"Marathi": "Marathi",
|
||||||
"Southern Sotho": "Südliches Sotho",
|
"Mongolian": "Mongolisch",
|
||||||
"Spanish": "Spanisch",
|
"Nepali": "Nepalesisch",
|
||||||
"Spanish (Latin America)": "Spanisch (Lateinamerika)",
|
"Norwegian Bokmål": "Norwegisch",
|
||||||
"Sundanese": "Sundanesisch",
|
"Nyanja": "Nyanja",
|
||||||
"Swahili": "Suaheli",
|
"Pashto": "Paschtunisch",
|
||||||
"Swedish": "Schwedisch",
|
"Persian": "Persisch",
|
||||||
"Tajik": "Tadschikisch",
|
"Polish": "Polnisch",
|
||||||
"Tamil": "Tamilisch",
|
"Portuguese": "Portugiesisch",
|
||||||
"Telugu": "Telugu",
|
"Punjabi": "Pandschabi",
|
||||||
"Thai": "Thailändisch",
|
"Romanian": "Rumänisch",
|
||||||
"Turkish": "Türkisch",
|
"Russian": "Russisch",
|
||||||
"Ukrainian": "Ukrainisch",
|
"Samoan": "Samoanisch",
|
||||||
"Urdu": "Urdu",
|
"Scottish Gaelic": "Schottisches Gälisch",
|
||||||
"Uzbek": "Usbekisch",
|
"Serbian": "Serbisch",
|
||||||
"Vietnamese": "Vietnamesisch",
|
"Shona": "Schona",
|
||||||
"Welsh": "Walisisch",
|
"Sindhi": "Sindhi",
|
||||||
"Western Frisian": "Westfriesisch",
|
"Sinhala": "Singhalesisch",
|
||||||
"Xhosa": "Xhosa",
|
"Slovak": "Slowakisch",
|
||||||
"Yiddish": "Jiddisch",
|
"Slovenian": "Slowenisch",
|
||||||
"Yoruba": "Joruba",
|
"Somali": "Somali",
|
||||||
"Zulu": "Zulu",
|
"Southern Sotho": "Südliches Sotho",
|
||||||
"`x` years": "`x` Jahre",
|
"Spanish": "Spanisch",
|
||||||
"`x` months": "`x` Monate",
|
"Spanish (Latin America)": "Spanisch (Lateinamerika)",
|
||||||
"`x` weeks": "`x` Wochen",
|
"Sundanese": "Sundanesisch",
|
||||||
"`x` days": "`x` Tage",
|
"Swahili": "Suaheli",
|
||||||
"`x` hours": "`x` Stunden",
|
"Swedish": "Schwedisch",
|
||||||
"`x` minutes": "`x` Minuten",
|
"Tajik": "Tadschikisch",
|
||||||
"`x` seconds": "`x` Sekunden",
|
"Tamil": "Tamilisch",
|
||||||
"Fallback comments: ": "Alternative Kommentare: ",
|
"Telugu": "Telugu",
|
||||||
"Popular": "Populär",
|
"Thai": "Thailändisch",
|
||||||
"Top": "Top",
|
"Turkish": "Türkisch",
|
||||||
"About": "Über",
|
"Ukrainian": "Ukrainisch",
|
||||||
"Rating: ": "Bewertung: ",
|
"Urdu": "Urdu",
|
||||||
"Language: ": "Sprache: ",
|
"Uzbek": "Usbekisch",
|
||||||
"Default": "",
|
"Vietnamese": "Vietnamesisch",
|
||||||
"Music": "",
|
"Welsh": "Walisisch",
|
||||||
"Gaming": "",
|
"Western Frisian": "Westfriesisch",
|
||||||
"News": "",
|
"Xhosa": "Xhosa",
|
||||||
"Movies": "",
|
"Yiddish": "Jiddisch",
|
||||||
"Download": "",
|
"Yoruba": "Joruba",
|
||||||
"Download as: ": "",
|
"Zulu": "Zulu",
|
||||||
"%A %B %-d, %Y": "",
|
"`x` years": "`x` Jahre",
|
||||||
"(edited)": "",
|
"`x` months": "`x` Monate",
|
||||||
"Youtube permalink of the comment": "",
|
"`x` weeks": "`x` Wochen",
|
||||||
"`x` marked it with a ❤": "",
|
"`x` days": "`x` Tage",
|
||||||
"Audio mode": "",
|
"`x` hours": "`x` Stunden",
|
||||||
"Video mode": ""
|
"`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,288 +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: ",
|
||||||
"Administrator preferences": "Administrator preferences",
|
"Sort videos by: ": "Sort videos by: ",
|
||||||
"Default homepage: ": "Default homepage: ",
|
"published": "published",
|
||||||
"Feed menu: ": "Feed menu: ",
|
"published - reverse": "published - reverse",
|
||||||
"Top enabled? ": "Top enabled? ",
|
"alphabetically": "alphabetically",
|
||||||
"CAPTCHA enabled? ": "CAPTCHA enabled? ",
|
"alphabetically - reverse": "alphabetically - reverse",
|
||||||
"Login enabled? ": "Login enabled? ",
|
"channel name": "channel name",
|
||||||
"Registration enabled? ": "Registration enabled? ",
|
"channel name - reverse": "channel name - reverse",
|
||||||
"Report statistics? ": "Report statistics? ",
|
"Only show latest video from channel: ": "Only show latest video from channel: ",
|
||||||
"Save preferences": "Save preferences",
|
"Only show latest unwatched video from channel: ": "Only show latest unwatched video from channel: ",
|
||||||
"Subscription manager": "Subscription manager",
|
"Only show unwatched: ": "Only show unwatched: ",
|
||||||
"`x` subscriptions": "`x` subscriptions",
|
"Only show notifications (if there are any): ": "Only show notifications (if there are any): ",
|
||||||
"Import/Export": "Import/Export",
|
"Enable web notifications": "Enable web notifications",
|
||||||
"unsubscribe": "unsubscribe",
|
"`x` uploaded a video": "`x` uploaded a video",
|
||||||
"Subscriptions": "Subscriptions",
|
"`x` is live": "`x` is live",
|
||||||
"`x` unseen notifications": "`x` unseen notifications",
|
"Data preferences": "Data preferences",
|
||||||
"search": "search",
|
"Clear watch history": "Clear watch history",
|
||||||
"Sign out": "Sign out",
|
"Import/export data": "Import/export data",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Released under the AGPLv3 by Omar Roth.",
|
"Change password": "Change password",
|
||||||
"Source available here.": "Source available here.",
|
"Manage subscriptions": "Manage subscriptions",
|
||||||
"View JavaScript license information.": "View JavaScript license information.",
|
"Manage tokens": "Manage tokens",
|
||||||
"Trending": "Trending",
|
"Watch history": "Watch history",
|
||||||
"Watch video on Youtube": "Watch video on Youtube",
|
"Delete account": "Delete account",
|
||||||
"Genre: ": "Genre: ",
|
"Administrator preferences": "Administrator preferences",
|
||||||
"License: ": "License: ",
|
"Default homepage: ": "Default homepage: ",
|
||||||
"Family friendly? ": "Family friendly? ",
|
"Feed menu: ": "Feed menu: ",
|
||||||
"Wilson score: ": "Wilson score: ",
|
"Top enabled? ": "Top enabled? ",
|
||||||
"Engagement: ": "Engagement: ",
|
"CAPTCHA enabled? ": "CAPTCHA enabled? ",
|
||||||
"Whitelisted regions: ": "Whitelisted regions: ",
|
"Login enabled? ": "Login enabled? ",
|
||||||
"Blacklisted regions: ": "Blacklisted regions: ",
|
"Registration enabled? ": "Registration enabled? ",
|
||||||
"Shared `x`": "Shared `x`",
|
"Report statistics? ": "Report statistics? ",
|
||||||
"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.",
|
"Save preferences": "Save preferences",
|
||||||
"View YouTube comments": "View YouTube comments",
|
"Subscription manager": "Subscription manager",
|
||||||
"View more comments on Reddit": "View more comments on Reddit",
|
"Token manager": "Token manager",
|
||||||
"View `x` comments": "View `x` comments",
|
"Token": "Token",
|
||||||
"View Reddit comments": "View Reddit comments",
|
"`x` subscriptions": {
|
||||||
"Hide replies": "Hide replies",
|
"(\\D|^)1(\\D|$)": "`x` subscription",
|
||||||
"Show replies": "Show replies",
|
"": "`x` subscriptions"
|
||||||
"Incorrect password": "Incorrect password",
|
},
|
||||||
"Quota exceeded, try again in a few hours": "Quota exceeded, try again in a few hours",
|
"`x` tokens": {
|
||||||
"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.",
|
"(\\D|^)1(\\D|$)": "`x` token",
|
||||||
"Invalid TFA code": "Invalid TFA code",
|
"": "`x` tokens"
|
||||||
"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.",
|
},
|
||||||
"Invalid answer": "Invalid answer",
|
"Import/export": "Import/export",
|
||||||
"Invalid CAPTCHA": "Invalid CAPTCHA",
|
"unsubscribe": "unsubscribe",
|
||||||
"CAPTCHA is a required field": "CAPTCHA is a required field",
|
"revoke": "revoke",
|
||||||
"User ID is a required field": "User ID is a required field",
|
"Subscriptions": "Subscriptions",
|
||||||
"Password is a required field": "Password is a required field",
|
"`x` unseen notifications": {
|
||||||
"Invalid username or password": "Invalid username or password",
|
"(\\D|^)1(\\D|$)": "`x` unseen notification",
|
||||||
"Please sign in using 'Sign in with Google'": "Please sign in using 'Sign in with Google'",
|
"": "`x` unseen notifications"
|
||||||
"Password cannot be empty": "Password cannot be empty",
|
},
|
||||||
"Password cannot be longer than 55 characters": "Password cannot be longer than 55 characters",
|
"search": "search",
|
||||||
"Please sign in": "Please sign in",
|
"Log out": "Log out",
|
||||||
"Invidious Private Feed for `x`": "Invidious Private Feed for `x`",
|
"Released under the AGPLv3 by Omar Roth.": "Released under the AGPLv3 by Omar Roth.",
|
||||||
"channel:`x`": "channel:`x`",
|
"Source available here.": "Source available here.",
|
||||||
"Deleted or invalid channel": "Deleted or invalid channel",
|
"View JavaScript license information.": "View JavaScript license information.",
|
||||||
"This channel does not exist.": "This channel does not exist.",
|
"View privacy policy.": "View privacy policy.",
|
||||||
"Could not get channel info.": "Could not get channel info.",
|
"Trending": "Trending",
|
||||||
"Could not fetch comments": "Could not fetch comments",
|
"Unlisted": "Unlisted",
|
||||||
"View `x` replies": "View `x` replies",
|
"Watch on YouTube": "Watch on YouTube",
|
||||||
"`x` ago": "`x` ago",
|
"Hide annotations": "Hide annotations",
|
||||||
"Load more": "Load more",
|
"Show annotations": "Show annotations",
|
||||||
"`x` points": "`x` points",
|
"Genre: ": "Genre: ",
|
||||||
"Could not create mix.": "Could not create mix.",
|
"License: ": "License: ",
|
||||||
"Playlist is empty": "Playlist is empty",
|
"Family friendly? ": "Family friendly? ",
|
||||||
"Invalid playlist.": "Invalid playlist.",
|
"Wilson score: ": "Wilson score: ",
|
||||||
"Playlist does not exist.": "Playlist does not exist.",
|
"Engagement: ": "Engagement: ",
|
||||||
"Could not pull trending pages.": "Could not pull trending pages.",
|
"Whitelisted regions: ": "Whitelisted regions: ",
|
||||||
"Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field",
|
"Blacklisted regions: ": "Blacklisted regions: ",
|
||||||
"Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field",
|
"Shared `x`": "Shared `x`",
|
||||||
"Invalid challenge": "Invalid challenge",
|
"`x` views": {
|
||||||
"Invalid token": "Invalid token",
|
"(\\D|^)1(\\D|$)": "`x` views",
|
||||||
"Invalid user": "Invalid user",
|
"": "`x` views"
|
||||||
"Token is expired, please try again": "Token is expired, please try again",
|
},
|
||||||
"English": "English",
|
"Premieres in `x`": "Premieres in `x`",
|
||||||
"English (auto-generated)": "English (auto-generated)",
|
"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.",
|
||||||
"Afrikaans": "Afrikaans",
|
"View YouTube comments": "View YouTube comments",
|
||||||
"Albanian": "Albanian",
|
"View more comments on Reddit": "View more comments on Reddit",
|
||||||
"Amharic": "Amharic",
|
"View `x` comments": "View `x` comments",
|
||||||
"Arabic": "Arabic",
|
"View Reddit comments": "View Reddit comments",
|
||||||
"Armenian": "Armenian",
|
"Hide replies": "Hide replies",
|
||||||
"Azerbaijani": "Azerbaijani",
|
"Show replies": "Show replies",
|
||||||
"Bangla": "Bangla",
|
"Incorrect password": "Incorrect password",
|
||||||
"Basque": "Basque",
|
"Quota exceeded, try again in a few hours": "Quota exceeded, try again in a few hours",
|
||||||
"Belarusian": "Belarusian",
|
"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.",
|
||||||
"Bosnian": "Bosnian",
|
"Invalid TFA code": "Invalid TFA code",
|
||||||
"Bulgarian": "Bulgarian",
|
"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.",
|
||||||
"Burmese": "Burmese",
|
"Wrong answer": "Wrong answer",
|
||||||
"Catalan": "Catalan",
|
"Erroneous CAPTCHA": "Erroneous CAPTCHA",
|
||||||
"Cebuano": "Cebuano",
|
"CAPTCHA is a required field": "CAPTCHA is a required field",
|
||||||
"Chinese (Simplified)": "Chinese (Simplified)",
|
"User ID is a required field": "User ID is a required field",
|
||||||
"Chinese (Traditional)": "Chinese (Traditional)",
|
"Password is a required field": "Password is a required field",
|
||||||
"Corsican": "Corsican",
|
"Wrong username or password": "Wrong username or password",
|
||||||
"Croatian": "Croatian",
|
"Please sign in using 'Log in with Google'": "Please sign in using 'Log in with Google'",
|
||||||
"Czech": "Czech",
|
"Password cannot be empty": "Password cannot be empty",
|
||||||
"Danish": "Danish",
|
"Password cannot be longer than 55 characters": "Password cannot be longer than 55 characters",
|
||||||
"Dutch": "Dutch",
|
"Please log in": "Please log in",
|
||||||
"Esperanto": "Esperanto",
|
"Invidious Private Feed for `x`": "Invidious Private Feed for `x`",
|
||||||
"Estonian": "Estonian",
|
"channel:`x`": "channel:`x`",
|
||||||
"Filipino": "Filipino",
|
"Deleted or invalid channel": "Deleted or invalid channel",
|
||||||
"Finnish": "Finnish",
|
"This channel does not exist.": "This channel does not exist.",
|
||||||
"French": "French",
|
"Could not get channel info.": "Could not get channel info.",
|
||||||
"Galician": "Galician",
|
"Could not fetch comments": "Could not fetch comments",
|
||||||
"Georgian": "Georgian",
|
"View `x` replies": {
|
||||||
"German": "German",
|
"(\\D|^)1(\\D|$)": "View `x` reply",
|
||||||
"Greek": "Greek",
|
"": "View `x` replies"
|
||||||
"Gujarati": "Gujarati",
|
},
|
||||||
"Haitian Creole": "Haitian Creole",
|
"`x` ago": "`x` ago",
|
||||||
"Hausa": "Hausa",
|
"Load more": "Load more",
|
||||||
"Hawaiian": "Hawaiian",
|
"`x` points": {
|
||||||
"Hebrew": "Hebrew",
|
"(\\D|^)1(\\D|$)": "`x` point",
|
||||||
"Hindi": "Hindi",
|
"": "`x` points"
|
||||||
"Hmong": "Hmong",
|
},
|
||||||
"Hungarian": "Hungarian",
|
"Could not create mix.": "Could not create mix.",
|
||||||
"Icelandic": "Icelandic",
|
"Empty playlist": "Empty playlist",
|
||||||
"Igbo": "Igbo",
|
"Not a playlist.": "Not a playlist.",
|
||||||
"Indonesian": "Indonesian",
|
"Playlist does not exist.": "Playlist does not exist.",
|
||||||
"Irish": "Irish",
|
"Could not pull trending pages.": "Could not pull trending pages.",
|
||||||
"Italian": "Italian",
|
"Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field",
|
||||||
"Japanese": "Japanese",
|
"Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field",
|
||||||
"Javanese": "Javanese",
|
"Erroneous challenge": "Erroneous challenge",
|
||||||
"Kannada": "Kannada",
|
"Erroneous token": "Erroneous token",
|
||||||
"Kazakh": "Kazakh",
|
"No such user": "No such user",
|
||||||
"Khmer": "Khmer",
|
"Token is expired, please try again": "Token is expired, please try again",
|
||||||
"Korean": "Korean",
|
"English": "English",
|
||||||
"Kurdish": "Kurdish",
|
"English (auto-generated)": "English (auto-generated)",
|
||||||
"Kyrgyz": "Kyrgyz",
|
"Afrikaans": "Afrikaans",
|
||||||
"Lao": "Lao",
|
"Albanian": "Albanian",
|
||||||
"Latin": "Latin",
|
"Amharic": "Amharic",
|
||||||
"Latvian": "Latvian",
|
"Arabic": "Arabic",
|
||||||
"Lithuanian": "Lithuanian",
|
"Armenian": "Armenian",
|
||||||
"Luxembourgish": "Luxembourgish",
|
"Azerbaijani": "Azerbaijani",
|
||||||
"Macedonian": "Macedonian",
|
"Bangla": "Bangla",
|
||||||
"Malagasy": "Malagasy",
|
"Basque": "Basque",
|
||||||
"Malay": "Malay",
|
"Belarusian": "Belarusian",
|
||||||
"Malayalam": "Malayalam",
|
"Bosnian": "Bosnian",
|
||||||
"Maltese": "Maltese",
|
"Bulgarian": "Bulgarian",
|
||||||
"Maori": "Maori",
|
"Burmese": "Burmese",
|
||||||
"Marathi": "Marathi",
|
"Catalan": "Catalan",
|
||||||
"Mongolian": "Mongolian",
|
"Cebuano": "Cebuano",
|
||||||
"Nepali": "Nepali",
|
"Chinese (Simplified)": "Chinese (Simplified)",
|
||||||
"Norwegian": "Norwegian",
|
"Chinese (Traditional)": "Chinese (Traditional)",
|
||||||
"Nyanja": "Nyanja",
|
"Corsican": "Corsican",
|
||||||
"Pashto": "Pashto",
|
"Croatian": "Croatian",
|
||||||
"Persian": "Persian",
|
"Czech": "Czech",
|
||||||
"Polish": "Polish",
|
"Danish": "Danish",
|
||||||
"Portuguese": "Portuguese",
|
"Dutch": "Dutch",
|
||||||
"Punjabi": "Punjabi",
|
"Esperanto": "Esperanto",
|
||||||
"Romanian": "Romanian",
|
"Estonian": "Estonian",
|
||||||
"Russian": "Russian",
|
"Filipino": "Filipino",
|
||||||
"Samoan": "Samoan",
|
"Finnish": "Finnish",
|
||||||
"Scottish Gaelic": "Scottish Gaelic",
|
"French": "French",
|
||||||
"Serbian": "Serbian",
|
"Galician": "Galician",
|
||||||
"Shona": "Shona",
|
"Georgian": "Georgian",
|
||||||
"Sindhi": "Sindhi",
|
"German": "German",
|
||||||
"Sinhala": "Sinhala",
|
"Greek": "Greek",
|
||||||
"Slovak": "Slovak",
|
"Gujarati": "Gujarati",
|
||||||
"Slovenian": "Slovenian",
|
"Haitian Creole": "Haitian Creole",
|
||||||
"Somali": "Somali",
|
"Hausa": "Hausa",
|
||||||
"Southern Sotho": "Southern Sotho",
|
"Hawaiian": "Hawaiian",
|
||||||
"Spanish": "Spanish",
|
"Hebrew": "Hebrew",
|
||||||
"Spanish (Latin America)": "Spanish (Latin America)",
|
"Hindi": "Hindi",
|
||||||
"Sundanese": "Sundanese",
|
"Hmong": "Hmong",
|
||||||
"Swahili": "Swahili",
|
"Hungarian": "Hungarian",
|
||||||
"Swedish": "Swedish",
|
"Icelandic": "Icelandic",
|
||||||
"Tajik": "Tajik",
|
"Igbo": "Igbo",
|
||||||
"Tamil": "Tamil",
|
"Indonesian": "Indonesian",
|
||||||
"Telugu": "Telugu",
|
"Irish": "Irish",
|
||||||
"Thai": "Thai",
|
"Italian": "Italian",
|
||||||
"Turkish": "Turkish",
|
"Japanese": "Japanese",
|
||||||
"Ukrainian": "Ukrainian",
|
"Javanese": "Javanese",
|
||||||
"Urdu": "Urdu",
|
"Kannada": "Kannada",
|
||||||
"Uzbek": "Uzbek",
|
"Kazakh": "Kazakh",
|
||||||
"Vietnamese": "Vietnamese",
|
"Khmer": "Khmer",
|
||||||
"Welsh": "Welsh",
|
"Korean": "Korean",
|
||||||
"Western Frisian": "Western Frisian",
|
"Kurdish": "Kurdish",
|
||||||
"Xhosa": "Xhosa",
|
"Kyrgyz": "Kyrgyz",
|
||||||
"Yiddish": "Yiddish",
|
"Lao": "Lao",
|
||||||
"Yoruba": "Yoruba",
|
"Latin": "Latin",
|
||||||
"Zulu": "Zulu",
|
"Latvian": "Latvian",
|
||||||
"`x` years": "`x` years",
|
"Lithuanian": "Lithuanian",
|
||||||
"`x` months": "`x` months",
|
"Luxembourgish": "Luxembourgish",
|
||||||
"`x` weeks": "`x` weeks",
|
"Macedonian": "Macedonian",
|
||||||
"`x` days": "`x` days",
|
"Malagasy": "Malagasy",
|
||||||
"`x` hours": "`x` hours",
|
"Malay": "Malay",
|
||||||
"`x` minutes": "`x` minutes",
|
"Malayalam": "Malayalam",
|
||||||
"`x` seconds": "`x` seconds",
|
"Maltese": "Maltese",
|
||||||
"Fallback comments: ": "Fallback comments: ",
|
"Maori": "Maori",
|
||||||
"Popular": "Popular",
|
"Marathi": "Marathi",
|
||||||
"Top": "Top",
|
"Mongolian": "Mongolian",
|
||||||
"About": "About",
|
"Nepali": "Nepali",
|
||||||
"Rating: ": "Rating: ",
|
"Norwegian Bokmål": "Norwegian Bokmål",
|
||||||
"Language: ": "Language: ",
|
"Nyanja": "Nyanja",
|
||||||
"Default": "Default",
|
"Pashto": "Pashto",
|
||||||
"Music": "Music",
|
"Persian": "Persian",
|
||||||
"Gaming": "Gaming",
|
"Polish": "Polish",
|
||||||
"News": "News",
|
"Portuguese": "Portuguese",
|
||||||
"Movies": "Movies",
|
"Punjabi": "Punjabi",
|
||||||
"Download": "Download",
|
"Romanian": "Romanian",
|
||||||
"Download as: ": "Download as: ",
|
"Russian": "Russian",
|
||||||
"%A %B %-d, %Y": "%A %B %-d, %Y",
|
"Samoan": "Samoan",
|
||||||
"(edited)": "(edited)",
|
"Scottish Gaelic": "Scottish Gaelic",
|
||||||
"Youtube permalink of the comment": "Youtube permalink of the comment",
|
"Serbian": "Serbian",
|
||||||
"`x` marked it with a ❤": "`x` marked it with a ❤",
|
"Shona": "Shona",
|
||||||
"Audio mode": "Audio mode",
|
"Sindhi": "Sindhi",
|
||||||
"Video mode": "Video mode"
|
"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: "
|
||||||
|
}
|
||||||
602
locales/eu.json
602
locales/eu.json
@@ -1,288 +1,316 @@
|
|||||||
{
|
{
|
||||||
"`x` subscribers": "`x` harpidedun",
|
"`x` subscribers": "`x` harpidedun",
|
||||||
"`x` videos": "`x` bideo",
|
"`x` videos": "`x` bideo",
|
||||||
"LIVE": "ZUZENEAN",
|
"LIVE": "ZUZENEAN",
|
||||||
"Shared `x` ago": "Duela `x` partekatua",
|
"Shared `x` ago": "Duela `x` partekatua",
|
||||||
"Unsubscribe": "Harpidetza kendu",
|
"Unsubscribe": "Harpidetza kendu",
|
||||||
"Subscribe": "Harpidetu",
|
"Subscribe": "Harpidetu",
|
||||||
"Login to subscribe to `x`": "Saioa hasi `x`(e)ra harpidetzeko",
|
"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)": "Harpidetzak OPML bezala esportatu (NewPipe eta FreeTuberako)",
|
"Import YouTube subscriptions": "YouTubeko harpidetzak inportatu",
|
||||||
"Export data as JSON": "Datuak JSON bezala esportatu",
|
"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": "YouTuberako interfaze alternatibo bat",
|
"Export subscriptions as OPML": "Esportatu harpidetzak OPML bezala",
|
||||||
"JavaScript license information": "JavaScript lizentzia informazioa",
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Harpidetzak OPML bezala esportatu (NewPipe eta FreeTuberako)",
|
||||||
"source": "iturburua",
|
"Export data as JSON": "Datuak JSON bezala esportatu",
|
||||||
"Login": "Saioa hasi",
|
"Delete account?": "Kontua ezabatu?",
|
||||||
"Login/Register": "Saioa hasi/Izena eman",
|
"History": "Historia",
|
||||||
"Login to Google": "Googlekin hasi saioa",
|
"An alternative front-end to YouTube": "YouTuberako interfaze alternatibo bat",
|
||||||
"User ID:": "Erabiltzaile IDa:",
|
"JavaScript license information": "JavaScript lizentzia informazioa",
|
||||||
"Password:": "Pasahitza:",
|
"source": "iturburua",
|
||||||
"Time (h:mm:ss):": "Denbora (o:mm:ss):",
|
"Log in": "Saioa hasi",
|
||||||
"Text CAPTCHA": "Testu CAPTCHA",
|
"Log in/register": "Saioa hasi/Izena eman",
|
||||||
"Image CAPTCHA": "Irudi 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": "",
|
||||||
"Administrator preferences": "",
|
"channel name - reverse": "",
|
||||||
"Default homepage: ": "",
|
"Only show latest video from channel: ": "",
|
||||||
"Feed menu: ": "",
|
"Only show latest unwatched video from channel: ": "",
|
||||||
"Top enabled? ": "",
|
"Only show unwatched: ": "",
|
||||||
"CAPTCHA enabled? ": "",
|
"Only show notifications (if there are any): ": "",
|
||||||
"Login enabled? ": "",
|
"Enable web notifications": "",
|
||||||
"Registration enabled? ": "",
|
"`x` uploaded a video": "",
|
||||||
"Report statistics? ": "",
|
"`x` is live": "",
|
||||||
"Save preferences": "",
|
"Data preferences": "",
|
||||||
"Subscription manager": "",
|
"Clear watch history": "",
|
||||||
"`x` subscriptions": "",
|
"Import/export data": "",
|
||||||
"Import/Export": "",
|
"Change password": "",
|
||||||
"unsubscribe": "",
|
"Manage subscriptions": "",
|
||||||
"Subscriptions": "",
|
"Manage tokens": "",
|
||||||
"`x` unseen notifications": "",
|
"Watch history": "",
|
||||||
"search": "",
|
"Delete account": "",
|
||||||
"Sign out": "",
|
"Administrator preferences": "",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "",
|
"Default homepage: ": "",
|
||||||
"Source available here.": "",
|
"Feed menu: ": "",
|
||||||
"View JavaScript license information.": "",
|
"Top enabled? ": "",
|
||||||
"Trending": "",
|
"CAPTCHA enabled? ": "",
|
||||||
"Watch video on Youtube": "",
|
"Login enabled? ": "",
|
||||||
"Genre: ": "",
|
"Registration enabled? ": "",
|
||||||
"License: ": "",
|
"Report statistics? ": "",
|
||||||
"Family friendly? ": "",
|
"Save preferences": "",
|
||||||
"Wilson score: ": "",
|
"Subscription manager": "",
|
||||||
"Engagement: ": "",
|
"Token manager": "",
|
||||||
"Whitelisted regions: ": "",
|
"Token": "",
|
||||||
"Blacklisted regions: ": "",
|
"`x` subscriptions": "",
|
||||||
"Shared `x`": "",
|
"`x` tokens": "",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "",
|
"Import/export": "",
|
||||||
"View YouTube comments": "",
|
"unsubscribe": "",
|
||||||
"View more comments on Reddit": "",
|
"revoke": "",
|
||||||
"View `x` comments": "",
|
"Subscriptions": "",
|
||||||
"View Reddit comments": "",
|
"`x` unseen notifications": "",
|
||||||
"Hide replies": "",
|
"search": "",
|
||||||
"Show replies": "",
|
"Log out": "",
|
||||||
"Incorrect password": "",
|
"Released under the AGPLv3 by Omar Roth.": "",
|
||||||
"Quota exceeded, try again in a few hours": "",
|
"Source available here.": "",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "",
|
"View JavaScript license information.": "",
|
||||||
"Invalid TFA code": "",
|
"View privacy policy.": "",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on your account.": "",
|
"Trending": "",
|
||||||
"Invalid answer": "",
|
"Unlisted": "",
|
||||||
"Invalid CAPTCHA": "",
|
"Watch on YouTube": "",
|
||||||
"CAPTCHA is a required field": "",
|
"Hide annotations": "",
|
||||||
"User ID is a required field": "",
|
"Show annotations": "",
|
||||||
"Password is a required field": "",
|
"Genre: ": "",
|
||||||
"Invalid username or password": "",
|
"License: ": "",
|
||||||
"Please sign in using 'Sign in with Google'": "",
|
"Family friendly? ": "",
|
||||||
"Password cannot be empty": "",
|
"Wilson score: ": "",
|
||||||
"Password cannot be longer than 55 characters": "",
|
"Engagement: ": "",
|
||||||
"Please sign in": "",
|
"Whitelisted regions: ": "",
|
||||||
"Invidious Private Feed for `x`": "",
|
"Blacklisted regions: ": "",
|
||||||
"channel:`x`": "",
|
"Shared `x`": "",
|
||||||
"Deleted or invalid channel": "",
|
"`x` views": "",
|
||||||
"This channel does not exist.": "",
|
"Premieres in `x`": "",
|
||||||
"Could not get channel info.": "",
|
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "",
|
||||||
"Could not fetch comments": "",
|
"View YouTube comments": "",
|
||||||
"View `x` replies": "",
|
"View more comments on Reddit": "",
|
||||||
"`x` ago": "",
|
"View `x` comments": "",
|
||||||
"Load more": "",
|
"View Reddit comments": "",
|
||||||
"`x` points": "",
|
"Hide replies": "",
|
||||||
"Could not create mix.": "",
|
"Show replies": "",
|
||||||
"Playlist is empty": "",
|
"Incorrect password": "",
|
||||||
"Invalid playlist.": "",
|
"Quota exceeded, try again in a few hours": "",
|
||||||
"Playlist does not exist.": "",
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "",
|
||||||
"Could not pull trending pages.": "",
|
"Invalid TFA code": "",
|
||||||
"Hidden field \"challenge\" is a required field": "",
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "",
|
||||||
"Hidden field \"token\" is a required field": "",
|
"Wrong answer": "",
|
||||||
"Invalid challenge": "",
|
"Erroneous CAPTCHA": "",
|
||||||
"Invalid token": "",
|
"CAPTCHA is a required field": "",
|
||||||
"Invalid user": "",
|
"User ID is a required field": "",
|
||||||
"Token is expired, please try again": "",
|
"Password is a required field": "",
|
||||||
"English": "",
|
"Wrong username or password": "",
|
||||||
"English (auto-generated)": "",
|
"Please sign in using 'Log in with Google'": "",
|
||||||
"Afrikaans": "",
|
"Password cannot be empty": "",
|
||||||
"Albanian": "",
|
"Password cannot be longer than 55 characters": "",
|
||||||
"Amharic": "",
|
"Please log in": "",
|
||||||
"Arabic": "",
|
"Invidious Private Feed for `x`": "",
|
||||||
"Armenian": "",
|
"channel:`x`": "",
|
||||||
"Azerbaijani": "",
|
"Deleted or invalid channel": "",
|
||||||
"Bangla": "",
|
"This channel does not exist.": "",
|
||||||
"Basque": "",
|
"Could not get channel info.": "",
|
||||||
"Belarusian": "",
|
"Could not fetch comments": "",
|
||||||
"Bosnian": "",
|
"View `x` replies": "",
|
||||||
"Bulgarian": "",
|
"`x` ago": "",
|
||||||
"Burmese": "",
|
"Load more": "",
|
||||||
"Catalan": "",
|
"`x` points": "",
|
||||||
"Cebuano": "",
|
"Could not create mix.": "",
|
||||||
"Chinese (Simplified)": "",
|
"Empty playlist": "",
|
||||||
"Chinese (Traditional)": "",
|
"Not a playlist.": "",
|
||||||
"Corsican": "",
|
"Playlist does not exist.": "",
|
||||||
"Croatian": "",
|
"Could not pull trending pages.": "",
|
||||||
"Czech": "",
|
"Hidden field \"challenge\" is a required field": "",
|
||||||
"Danish": "",
|
"Hidden field \"token\" is a required field": "",
|
||||||
"Dutch": "",
|
"Erroneous challenge": "",
|
||||||
"Esperanto": "",
|
"Erroneous token": "",
|
||||||
"Estonian": "",
|
"No such user": "",
|
||||||
"Filipino": "",
|
"Token is expired, please try again": "",
|
||||||
"Finnish": "",
|
"English": "",
|
||||||
"French": "",
|
"English (auto-generated)": "",
|
||||||
"Galician": "",
|
"Afrikaans": "",
|
||||||
"Georgian": "",
|
"Albanian": "",
|
||||||
"German": "",
|
"Amharic": "",
|
||||||
"Greek": "",
|
"Arabic": "",
|
||||||
"Gujarati": "",
|
"Armenian": "",
|
||||||
"Haitian Creole": "",
|
"Azerbaijani": "",
|
||||||
"Hausa": "",
|
"Bangla": "",
|
||||||
"Hawaiian": "",
|
"Basque": "",
|
||||||
"Hebrew": "",
|
"Belarusian": "",
|
||||||
"Hindi": "",
|
"Bosnian": "",
|
||||||
"Hmong": "",
|
"Bulgarian": "",
|
||||||
"Hungarian": "",
|
"Burmese": "",
|
||||||
"Icelandic": "",
|
"Catalan": "",
|
||||||
"Igbo": "",
|
"Cebuano": "",
|
||||||
"Indonesian": "",
|
"Chinese (Simplified)": "",
|
||||||
"Irish": "",
|
"Chinese (Traditional)": "",
|
||||||
"Italian": "",
|
"Corsican": "",
|
||||||
"Japanese": "",
|
"Croatian": "",
|
||||||
"Javanese": "",
|
"Czech": "",
|
||||||
"Kannada": "",
|
"Danish": "",
|
||||||
"Kazakh": "",
|
"Dutch": "",
|
||||||
"Khmer": "",
|
"Esperanto": "",
|
||||||
"Korean": "",
|
"Estonian": "",
|
||||||
"Kurdish": "",
|
"Filipino": "",
|
||||||
"Kyrgyz": "",
|
"Finnish": "",
|
||||||
"Lao": "",
|
"French": "",
|
||||||
"Latin": "",
|
"Galician": "",
|
||||||
"Latvian": "",
|
"Georgian": "",
|
||||||
"Lithuanian": "",
|
"German": "",
|
||||||
"Luxembourgish": "",
|
"Greek": "",
|
||||||
"Macedonian": "",
|
"Gujarati": "",
|
||||||
"Malagasy": "",
|
"Haitian Creole": "",
|
||||||
"Malay": "",
|
"Hausa": "",
|
||||||
"Malayalam": "",
|
"Hawaiian": "",
|
||||||
"Maltese": "",
|
"Hebrew": "",
|
||||||
"Maori": "",
|
"Hindi": "",
|
||||||
"Marathi": "",
|
"Hmong": "",
|
||||||
"Mongolian": "",
|
"Hungarian": "",
|
||||||
"Nepali": "",
|
"Icelandic": "",
|
||||||
"Norwegian": "",
|
"Igbo": "",
|
||||||
"Nyanja": "",
|
"Indonesian": "",
|
||||||
"Pashto": "",
|
"Irish": "",
|
||||||
"Persian": "",
|
"Italian": "",
|
||||||
"Polish": "",
|
"Japanese": "",
|
||||||
"Portuguese": "",
|
"Javanese": "",
|
||||||
"Punjabi": "",
|
"Kannada": "",
|
||||||
"Romanian": "",
|
"Kazakh": "",
|
||||||
"Russian": "",
|
"Khmer": "",
|
||||||
"Samoan": "",
|
"Korean": "",
|
||||||
"Scottish Gaelic": "",
|
"Kurdish": "",
|
||||||
"Serbian": "",
|
"Kyrgyz": "",
|
||||||
"Shona": "",
|
"Lao": "",
|
||||||
"Sindhi": "",
|
"Latin": "",
|
||||||
"Sinhala": "",
|
"Latvian": "",
|
||||||
"Slovak": "",
|
"Lithuanian": "",
|
||||||
"Slovenian": "",
|
"Luxembourgish": "",
|
||||||
"Somali": "",
|
"Macedonian": "",
|
||||||
"Southern Sotho": "",
|
"Malagasy": "",
|
||||||
"Spanish": "",
|
"Malay": "",
|
||||||
"Spanish (Latin America)": "",
|
"Malayalam": "",
|
||||||
"Sundanese": "",
|
"Maltese": "",
|
||||||
"Swahili": "",
|
"Maori": "",
|
||||||
"Swedish": "",
|
"Marathi": "",
|
||||||
"Tajik": "",
|
"Mongolian": "",
|
||||||
"Tamil": "",
|
"Nepali": "",
|
||||||
"Telugu": "",
|
"Norwegian Bokmål": "",
|
||||||
"Thai": "",
|
"Nyanja": "",
|
||||||
"Turkish": "",
|
"Pashto": "",
|
||||||
"Ukrainian": "",
|
"Persian": "",
|
||||||
"Urdu": "",
|
"Polish": "",
|
||||||
"Uzbek": "",
|
"Portuguese": "",
|
||||||
"Vietnamese": "",
|
"Punjabi": "",
|
||||||
"Welsh": "",
|
"Romanian": "",
|
||||||
"Western Frisian": "",
|
"Russian": "",
|
||||||
"Xhosa": "",
|
"Samoan": "",
|
||||||
"Yiddish": "",
|
"Scottish Gaelic": "",
|
||||||
"Yoruba": "",
|
"Serbian": "",
|
||||||
"Zulu": "",
|
"Shona": "",
|
||||||
"`x` years": "",
|
"Sindhi": "",
|
||||||
"`x` months": "",
|
"Sinhala": "",
|
||||||
"`x` weeks": "",
|
"Slovak": "",
|
||||||
"`x` days": "",
|
"Slovenian": "",
|
||||||
"`x` hours": "",
|
"Somali": "",
|
||||||
"`x` minutes": "",
|
"Southern Sotho": "",
|
||||||
"`x` seconds": "",
|
"Spanish": "",
|
||||||
"Fallback comments: ": "",
|
"Spanish (Latin America)": "",
|
||||||
"Popular": "",
|
"Sundanese": "",
|
||||||
"Top": "",
|
"Swahili": "",
|
||||||
"About": "",
|
"Swedish": "",
|
||||||
"Rating: ": "",
|
"Tajik": "",
|
||||||
"Language: ": "",
|
"Tamil": "",
|
||||||
"Default": "",
|
"Telugu": "",
|
||||||
"Music": "",
|
"Thai": "",
|
||||||
"Gaming": "",
|
"Turkish": "",
|
||||||
"News": "",
|
"Ukrainian": "",
|
||||||
"Movies": "",
|
"Urdu": "",
|
||||||
"Download": "",
|
"Uzbek": "",
|
||||||
"Download as: ": "",
|
"Vietnamese": "",
|
||||||
"%A %B %-d, %Y": "",
|
"Welsh": "",
|
||||||
"(edited)": "",
|
"Western Frisian": "",
|
||||||
"Youtube permalink of the comment": "",
|
"Xhosa": "",
|
||||||
"`x` marked it with a ❤": "",
|
"Yiddish": "",
|
||||||
"Audio mode": "",
|
"Yoruba": "",
|
||||||
"Video mode": ""
|
"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": ""
|
||||||
|
}
|
||||||
603
locales/fr.json
603
locales/fr.json
@@ -1,287 +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é",
|
||||||
"Administrator preferences": "",
|
"channel name": "nom de la chaîne",
|
||||||
"Default homepage: ": "",
|
"channel name - reverse": "nom de la chaîne - inversé",
|
||||||
"Feed menu: ": "",
|
"Only show latest video from channel: ": "Afficher uniquement la dernière vidéo de la chaîne : ",
|
||||||
"Top enabled? ": "",
|
"Only show latest unwatched video from channel: ": "Afficher uniquement la dernière vidéo de la chaîne non regardée : ",
|
||||||
"CAPTCHA enabled? ": "",
|
"Only show unwatched: ": "Afficher uniquement les vidéos non regardées : ",
|
||||||
"Login enabled? ": "",
|
"Only show notifications (if there are any): ": "Afficher uniquement les notifications (s'il y en a) : ",
|
||||||
"Registration enabled? ": "",
|
"Enable web notifications": "",
|
||||||
"Report statistics? ": "",
|
"`x` uploaded a video": "",
|
||||||
"Save preferences": "Enregistrer les préférences",
|
"`x` is live": "",
|
||||||
"Subscription manager": "Gestionnaire d'abonnement",
|
"Data preferences": "Préférences liées aux données",
|
||||||
"`x` subscriptions": "`x` abonnements",
|
"Clear watch history": "Supprimer l'historique des vidéos regardées",
|
||||||
"Import/Export": "Importer/Exporter",
|
"Import/export data": "Importer/exporter les données",
|
||||||
"unsubscribe": "se désabonner",
|
"Change password": "Modifier le mot de passe",
|
||||||
"Subscriptions": "Abonnements",
|
"Manage subscriptions": "Gérer les abonnements",
|
||||||
"`x` unseen notifications": "`x` notifications non vues",
|
"Manage tokens": "Gérer les tokens",
|
||||||
"search": "Rechercher",
|
"Watch history": "Historique de visionnage",
|
||||||
"Sign out": "Déconnexion",
|
"Delete account": "Supprimer votre compte",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Publié sous licence AGPLv3 par Omar Roth.",
|
"Administrator preferences": "Préferences d'Administrateur",
|
||||||
"Source available here.": "Code Source.",
|
"Default homepage: ": "Page d'accueil par défaut : ",
|
||||||
"View JavaScript license information.": "Voir les informations des licences JavaScript.",
|
"Feed menu: ": "Menu des Flux : ",
|
||||||
"Trending": "Tendances",
|
"Top enabled? ": "Top activé ? ",
|
||||||
"Watch video on Youtube": "Voir la vidéo sur Youtube",
|
"CAPTCHA enabled? ": "CAPTCHA activé ? ",
|
||||||
"Genre: ": "Genre : ",
|
"Login enabled? ": "Connexion activé ? ",
|
||||||
"License: ": "Licence : ",
|
"Registration enabled? ": "Inscription activée ? ",
|
||||||
"Family friendly? ": "Tout Public ? ",
|
"Report statistics? ": "Télémétrie activé ? ",
|
||||||
"Wilson score: ": "Score de Wilson : ",
|
"Save preferences": "Enregistrer les préférences",
|
||||||
"Engagement: ": "Poucentage de spectateur aillant aimé Liker ou Disliker la vidéo : ",
|
"Subscription manager": "Gestionnaire d'abonnement",
|
||||||
"Whitelisted regions: ": "Régions en liste blanche : ",
|
"Token manager": "Gestionnaire de tokens",
|
||||||
"Blacklisted regions: ": "Régions sur liste noire : ",
|
"Token": "Token",
|
||||||
"Shared `x`": "Partagée `x`",
|
"`x` subscriptions": "`x` abonnements",
|
||||||
"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.",
|
"`x` tokens": "`x` tokens",
|
||||||
"View YouTube comments": "Voir les commentaires YouTube",
|
"Import/export": "Importer/Exporter",
|
||||||
"View more comments on Reddit": "Voir plus de commentaires sur Reddit",
|
"unsubscribe": "se désabonner",
|
||||||
"View `x` comments": "Voir `x` commentaires",
|
"revoke": "annuler",
|
||||||
"View Reddit comments": "Voir les commentaires Reddit",
|
"Subscriptions": "Abonnements",
|
||||||
"Hide replies": "Masquer les réponses",
|
"`x` unseen notifications": "`x` notifications non vues",
|
||||||
"Show replies": "Afficher les réponses",
|
"search": "Rechercher",
|
||||||
"Incorrect password": "Mot de passe incorrect",
|
"Log out": "Déconnexion",
|
||||||
"Quota exceeded, try again in a few hours": "Nombre de tentative de connexion dépassé, réessayez dans quelques heures",
|
"Released under the AGPLv3 by Omar Roth.": "Publié sous licence AGPLv3 par Omar Roth.",
|
||||||
"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.",
|
"Source available here.": "Code Source.",
|
||||||
"Invalid TFA code": "Code d'authentification à deux facteurs invalide",
|
"View JavaScript license information.": "Voir les informations des licences JavaScript.",
|
||||||
"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.",
|
"View privacy policy.": "Voir la politique de confidentialité.",
|
||||||
"Invalid answer": "Réponse non valide",
|
"Trending": "Tendances",
|
||||||
"Invalid CAPTCHA": "CAPTCHA invalide",
|
"Unlisted": "Non répertoriée",
|
||||||
"CAPTCHA is a required field": "Veuillez rentrez un CAPTCHA",
|
"Watch on YouTube": "Voir la vidéo sur Youtube",
|
||||||
"User ID is a required field": "Veuillez rentrez un Identifiant Utilisateur",
|
"Hide annotations": "Masquer les annotations",
|
||||||
"Password is a required field": "Veuillez rentrez un Mot de passe",
|
"Show annotations": "Afficher les annotations",
|
||||||
"Invalid username or password": "Nom d'utilisateur ou mot de passe invalide",
|
"Genre: ": "Genre : ",
|
||||||
"Please sign in using 'Sign in with Google'": "Veuillez vous connecter en utilisant \"S'identifier avec Google\"",
|
"License: ": "Licence : ",
|
||||||
"Password cannot be empty": "Le mot de passe ne peut pas être vide",
|
"Family friendly? ": "Tout Public ? ",
|
||||||
"Password cannot be longer than 55 characters": "Le mot de passe ne doit pas comporter plus de 55 caractères",
|
"Wilson score: ": "Score de Wilson : ",
|
||||||
"Please sign in": "Veuillez vous connecter",
|
"Engagement: ": "Poucentage de spectateur aillant aimé Like ou Dislike la vidéo : ",
|
||||||
"Invidious Private Feed for `x`": "Flux RSS privé pour `x`",
|
"Whitelisted regions: ": "Régions en liste blanche : ",
|
||||||
"channel:`x`": "chaîne:`x`",
|
"Blacklisted regions: ": "Régions sur liste noire : ",
|
||||||
"Deleted or invalid channel": "Chaîne supprimée ou invalide",
|
"Shared `x`": "Ajoutée le `x`",
|
||||||
"This channel does not exist.": "Cette chaine n'existe pas.",
|
"`x` views": "`x` vues",
|
||||||
"Could not get channel info.": "Impossible de charger les informations de cette chaîne.",
|
"Premieres in `x`": "Première dans `x`",
|
||||||
"Could not fetch comments": "Impossible de charger les commentaires",
|
"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.",
|
||||||
"View `x` replies": "Voir `x` réponses",
|
"View YouTube comments": "Voir les commentaires YouTube",
|
||||||
"`x` ago": "il y a `x`",
|
"View more comments on Reddit": "Voir plus de commentaires sur Reddit",
|
||||||
"Load more": "Charger plus",
|
"View `x` comments": "Voir `x` commentaires",
|
||||||
"`x` points": "`x` points",
|
"View Reddit comments": "Voir les commentaires Reddit",
|
||||||
"Could not create mix.": "Impossible de charger cette liste de lecture.",
|
"Hide replies": "Masquer les réponses",
|
||||||
"Playlist is empty": "La liste de lecture est vide",
|
"Show replies": "Afficher les réponses",
|
||||||
"Invalid playlist.": "Liste de lecture invalide.",
|
"Incorrect password": "Mot de passe incorrect",
|
||||||
"Playlist does not exist.": "La liste de lecture n'existe pas.",
|
"Quota exceeded, try again in a few hours": "Nombre de tentative de connexion dépassé, réessayez dans quelques heures",
|
||||||
"Could not pull trending pages.": "Impossible de charger les pages de tendances.",
|
"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.",
|
||||||
"Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field",
|
"Invalid TFA code": "Code d'authentification à deux facteurs invalide",
|
||||||
"Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field",
|
"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.",
|
||||||
"Invalid challenge": "Invalid challenge",
|
"Wrong answer": "Réponse invalide",
|
||||||
"Invalid token": "Invalid token",
|
"Erroneous CAPTCHA": "CAPTCHA invalide",
|
||||||
"Invalid user": "Invalid user",
|
"CAPTCHA is a required field": "Veuillez entrer un CAPTCHA",
|
||||||
"Token is expired, please try again": "Token is expired, please try again",
|
"User ID is a required field": "Veuillez entrer un Identifiant Utilisateur",
|
||||||
"English": "Anglais",
|
"Password is a required field": "Veuillez entrer un Mot de passe",
|
||||||
"English (auto-generated)": "Anglais (générés automatiquement)",
|
"Wrong username or password": "Nom d'utilisateur ou mot de passe invalide",
|
||||||
"Afrikaans": "Afrikaans",
|
"Please sign in using 'Log in with Google'": "Veuillez vous connecter en utilisant \"Se connecter avec Google\"",
|
||||||
"Albanian": "Albanais",
|
"Password cannot be empty": "Le mot de passe ne peut pas être vide",
|
||||||
"Amharic": "Amharique",
|
"Password cannot be longer than 55 characters": "Le mot de passe ne doit pas comporter plus de 55 caractères",
|
||||||
"Arabic": "Arabe",
|
"Please log in": "Veuillez vous connecter",
|
||||||
"Armenian": "Arménien",
|
"Invidious Private Feed for `x`": "Flux RSS privé pour `x`",
|
||||||
"Azerbaijani": "Azerbaïdjanais",
|
"channel:`x`": "chaîne:`x`",
|
||||||
"Bangla": "Bangla",
|
"Deleted or invalid channel": "Chaîne supprimée ou invalide",
|
||||||
"Basque": "Basque",
|
"This channel does not exist.": "Cette chaine n'existe pas.",
|
||||||
"Belarusian": "Belarusian",
|
"Could not get channel info.": "Impossible de charger les informations de cette chaîne.",
|
||||||
"Bosnian": "Bosnian",
|
"Could not fetch comments": "Impossible de charger les commentaires",
|
||||||
"Bulgarian": "Bulgarian",
|
"View `x` replies": "Voir `x` réponses",
|
||||||
"Burmese": "Birman",
|
"`x` ago": "il y a `x`",
|
||||||
"Catalan": "Catalan",
|
"Load more": "Charger plus",
|
||||||
"Cebuano": "Cebuano",
|
"`x` points": "`x` points",
|
||||||
"Chinese (Simplified)": "Chinois (Simplifié)",
|
"Could not create mix.": "Impossible de charger cette liste de lecture.",
|
||||||
"Chinese (Traditional)": "Chinois (Traditionnel)",
|
"Empty playlist": "La liste de lecture est vide",
|
||||||
"Corsican": "Corse",
|
"Not a playlist.": "Liste de lecture invalide.",
|
||||||
"Croatian": "Croate",
|
"Playlist does not exist.": "La liste de lecture n'existe pas.",
|
||||||
"Czech": "Tchèque",
|
"Could not pull trending pages.": "Impossible de charger les pages de tendances.",
|
||||||
"Danish": "Danois",
|
"Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field",
|
||||||
"Dutch": "Hollandais",
|
"Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field",
|
||||||
"Esperanto": "Espéranto",
|
"Erroneous challenge": "Erroneous challenge",
|
||||||
"Estonian": "Estonien",
|
"Erroneous token": "Erroneous token",
|
||||||
"Filipino": "Philippin",
|
"No such user": "No such user",
|
||||||
"Finnish": "Finlandais",
|
"Token is expired, please try again": "Token is expired, please try again",
|
||||||
"French": "Français",
|
"English": "Anglais",
|
||||||
"Galician": "Galicien",
|
"English (auto-generated)": "Anglais (générés automatiquement)",
|
||||||
"Georgian": "Géorgien",
|
"Afrikaans": "Afrikaans",
|
||||||
"German": "Allemand",
|
"Albanian": "Albanais",
|
||||||
"Greek": "Grec",
|
"Amharic": "Amharique",
|
||||||
"Gujarati": "Gujarati",
|
"Arabic": "Arabe",
|
||||||
"Haitian Creole": "Créole Haïtien",
|
"Armenian": "Arménien",
|
||||||
"Hausa": "Haoussa",
|
"Azerbaijani": "Azerbaïdjanais",
|
||||||
"Hawaiian": "Hawaïen",
|
"Bangla": "Bangla",
|
||||||
"Hebrew": "Hébraïque",
|
"Basque": "Basque",
|
||||||
"Hindi": "Hindi",
|
"Belarusian": "Belarusian",
|
||||||
"Hmong": "Hmong",
|
"Bosnian": "Bosnian",
|
||||||
"Hungarian": "Hongrois",
|
"Bulgarian": "Bulgarian",
|
||||||
"Icelandic": "Islandais",
|
"Burmese": "Birman",
|
||||||
"Igbo": "Igbo",
|
"Catalan": "Catalan",
|
||||||
"Indonesian": "Indonésien",
|
"Cebuano": "Cebuano",
|
||||||
"Irish": "Irlandais",
|
"Chinese (Simplified)": "Chinois (Simplifié)",
|
||||||
"Italian": "Italien",
|
"Chinese (Traditional)": "Chinois (Traditionnel)",
|
||||||
"Japanese": "Japonais",
|
"Corsican": "Corse",
|
||||||
"Javanese": "Javanais",
|
"Croatian": "Croate",
|
||||||
"Kannada": "Kannada",
|
"Czech": "Tchèque",
|
||||||
"Kazakh": "Kazakh",
|
"Danish": "Danois",
|
||||||
"Khmer": "Khmer",
|
"Dutch": "Hollandais",
|
||||||
"Korean": "Coréen",
|
"Esperanto": "Espéranto",
|
||||||
"Kurdish": "Kurde",
|
"Estonian": "Estonien",
|
||||||
"Kyrgyz": "Kirghize",
|
"Filipino": "Philippin",
|
||||||
"Lao": "Lao",
|
"Finnish": "Finlandais",
|
||||||
"Latin": "Latin",
|
"French": "Français",
|
||||||
"Latvian": "Letton",
|
"Galician": "Galicien",
|
||||||
"Lithuanian": "Lituanien",
|
"Georgian": "Géorgien",
|
||||||
"Luxembourgish": "Luxembourgeois",
|
"German": "Allemand",
|
||||||
"Macedonian": "Macédonien",
|
"Greek": "Grec",
|
||||||
"Malagasy": "Malgache",
|
"Gujarati": "Gujarati",
|
||||||
"Malay": "Malais",
|
"Haitian Creole": "Créole Haïtien",
|
||||||
"Malayalam": "Malayalam",
|
"Hausa": "Haoussa",
|
||||||
"Maltese": "Maltais",
|
"Hawaiian": "Hawaïen",
|
||||||
"Maori": "Maori",
|
"Hebrew": "Hébraïque",
|
||||||
"Marathi": "Marathi",
|
"Hindi": "Hindi",
|
||||||
"Mongolian": "Mongol",
|
"Hmong": "Hmong",
|
||||||
"Nepali": "Népalais",
|
"Hungarian": "Hongrois",
|
||||||
"Norwegian": "Norvégien",
|
"Icelandic": "Islandais",
|
||||||
"Nyanja": "Nyanja",
|
"Igbo": "Igbo",
|
||||||
"Pashto": "Pachtou",
|
"Indonesian": "Indonésien",
|
||||||
"Persian": "Persan",
|
"Irish": "Irlandais",
|
||||||
"Polish": "Polonais",
|
"Italian": "Italien",
|
||||||
"Portuguese": "Portugais",
|
"Japanese": "Japonais",
|
||||||
"Punjabi": "Punjabi",
|
"Javanese": "Javanais",
|
||||||
"Romanian": "Roumain",
|
"Kannada": "Kannada",
|
||||||
"Russian": "Russe",
|
"Kazakh": "Kazakh",
|
||||||
"Samoan": "Samoan",
|
"Khmer": "Khmer",
|
||||||
"Scottish Gaelic": "Eaélique Ècossais",
|
"Korean": "Coréen",
|
||||||
"Serbian": "Serbe",
|
"Kurdish": "Kurde",
|
||||||
"Shona": "Shona",
|
"Kyrgyz": "Kirghize",
|
||||||
"Sindhi": "Sindhi",
|
"Lao": "Lao",
|
||||||
"Sinhala": "Cinghalais",
|
"Latin": "Latin",
|
||||||
"Slovak": "Slovaque",
|
"Latvian": "Letton",
|
||||||
"Slovenian": "Slovène",
|
"Lithuanian": "Lituanien",
|
||||||
"Somali": "Somalien",
|
"Luxembourgish": "Luxembourgeois",
|
||||||
"Southern Sotho": "Sotho du Sud",
|
"Macedonian": "Macédonien",
|
||||||
"Spanish": "Espagnol",
|
"Malagasy": "Malgache",
|
||||||
"Spanish (Latin America)": "Espagnol (Amérique latine)",
|
"Malay": "Malais",
|
||||||
"Sundanese": "Sundanais",
|
"Malayalam": "Malayalam",
|
||||||
"Swahili": "Swahili",
|
"Maltese": "Maltais",
|
||||||
"Swedish": "Suédois",
|
"Maori": "Maori",
|
||||||
"Tajik": "Tajik",
|
"Marathi": "Marathi",
|
||||||
"Tamil": "Tamil",
|
"Mongolian": "Mongol",
|
||||||
"Telugu": "Telugu",
|
"Nepali": "Népalais",
|
||||||
"Thai": "Thaï",
|
"Norwegian Bokmål": "Norvégien",
|
||||||
"Turkish": "Turc",
|
"Nyanja": "Nyanja",
|
||||||
"Ukrainian": "Ukrainien",
|
"Pashto": "Pachtou",
|
||||||
"Urdu": "Ourdou",
|
"Persian": "Persan",
|
||||||
"Uzbek": "Ouzbek",
|
"Polish": "Polonais",
|
||||||
"Vietnamese": "Vietnamien",
|
"Portuguese": "Portugais",
|
||||||
"Welsh": "Gallois",
|
"Punjabi": "Punjabi",
|
||||||
"Western Frisian": "Frison occidental",
|
"Romanian": "Roumain",
|
||||||
"Xhosa": "Xhosa",
|
"Russian": "Russe",
|
||||||
"Yiddish": "Yiddish",
|
"Samoan": "Samoan",
|
||||||
"Yoruba": "Yoruba",
|
"Scottish Gaelic": "Eaélique Ècossais",
|
||||||
"Zulu": "Zoulou",
|
"Serbian": "Serbe",
|
||||||
"`x` years": "`x` ans",
|
"Shona": "Shona",
|
||||||
"`x` months": "`x` mois",
|
"Sindhi": "Sindhi",
|
||||||
"`x` weeks": "`x` semaines",
|
"Sinhala": "Cinghalais",
|
||||||
"`x` days": "`x` jours",
|
"Slovak": "Slovaque",
|
||||||
"`x` hours": "`x` heures",
|
"Slovenian": "Slovène",
|
||||||
"`x` minutes": "`x` minutes",
|
"Somali": "Somalien",
|
||||||
"`x` seconds": "`x` secondes",
|
"Southern Sotho": "Sotho du Sud",
|
||||||
"Fallback comments: ": "Commentaires secondaires : ",
|
"Spanish": "Espagnol",
|
||||||
"Popular": "Populaire",
|
"Spanish (Latin America)": "Espagnol (Amérique latine)",
|
||||||
"Top": "Top",
|
"Sundanese": "Sundanais",
|
||||||
"About": "A Propos",
|
"Swahili": "Swahili",
|
||||||
"Rating: ": "Évaluation : ",
|
"Swedish": "Suédois",
|
||||||
"Language: ": "Langue : ",
|
"Tajik": "Tajik",
|
||||||
"Default": "Défaut",
|
"Tamil": "Tamil",
|
||||||
"Music": "Musique",
|
"Telugu": "Telugu",
|
||||||
"Gaming": "Jeux Vidéo",
|
"Thai": "Thaï",
|
||||||
"News": "Actualités",
|
"Turkish": "Turc",
|
||||||
"Movies": "Films",
|
"Ukrainian": "Ukrainien",
|
||||||
"Download": "Télécharger",
|
"Urdu": "Ourdou",
|
||||||
"Download as: ": "Télécharger en : ",
|
"Uzbek": "Ouzbek",
|
||||||
"%A %B %-d, %Y": "%A %-d %B %Y",
|
"Vietnamese": "Vietnamien",
|
||||||
"(edited)": "(modifié)",
|
"Welsh": "Gallois",
|
||||||
"Youtube permalink of the comment": "Lien YouTube permanent vers le commentaire",
|
"Western Frisian": "Frison occidental",
|
||||||
"`x` marked it with a ❤": "`x` l'a marqué d'un ❤",
|
"Xhosa": "Xhosa",
|
||||||
"Audio mode": "Mode Audio",
|
"Yiddish": "Yiddish",
|
||||||
"Video mode": "Mode Vidéo"
|
"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 : "
|
||||||
|
}
|
||||||
603
locales/it.json
603
locales/it.json
@@ -1,287 +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",
|
||||||
"Administrator preferences": "",
|
"channel name": "nome del canale",
|
||||||
"Default homepage: ": "",
|
"channel name - reverse": "nome del canale - decrescente",
|
||||||
"Feed menu: ": "",
|
"Only show latest video from channel: ": "Mostra solo il video più recente del canale: ",
|
||||||
"Top enabled? ": "",
|
"Only show latest unwatched video from channel: ": "Mostra solo il video più recente non guardato del canale: ",
|
||||||
"CAPTCHA enabled? ": "",
|
"Only show unwatched: ": "Mostra solo i video non guardati: ",
|
||||||
"Login enabled? ": "",
|
"Only show notifications (if there are any): ": "Mostra solo le notifiche (se presenti): ",
|
||||||
"Registration enabled? ": "",
|
"Enable web notifications": "",
|
||||||
"Report statistics? ": "",
|
"`x` uploaded a video": "",
|
||||||
"Save preferences": "Salva le preferenze",
|
"`x` is live": "",
|
||||||
"Subscription manager": "Gestisci le iscrizioni",
|
"Data preferences": "Preferenze dati",
|
||||||
"`x` subscriptions": "`x` iscrizioni",
|
"Clear watch history": "Cancella la cronologia dei video guardati",
|
||||||
"Import/Export": "Importa/esporta",
|
"Import/export data": "Importazione/esportazione dati",
|
||||||
"unsubscribe": "disiscriviti",
|
"Change password": "",
|
||||||
"Subscriptions": "Iscrizioni",
|
"Manage subscriptions": "Gestisci le iscrizioni",
|
||||||
"`x` unseen notifications": "`x` notifiche non visualizzate",
|
"Manage tokens": "",
|
||||||
"search": "Cerca",
|
"Watch history": "Cronologia dei video",
|
||||||
"Sign out": "Esci",
|
"Delete account": "Elimina l'account",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Pubblicato con licenza AGPLv3 da Omar Roth.",
|
"Administrator preferences": "",
|
||||||
"Source available here.": "Codice sorgente.",
|
"Default homepage: ": "",
|
||||||
"View JavaScript license information.": "Guarda le informazioni di licenza del codice JavaScript.",
|
"Feed menu: ": "",
|
||||||
"Trending": "Tendenze",
|
"Top enabled? ": "",
|
||||||
"Watch video on Youtube": "Guarda il video su YouTube",
|
"CAPTCHA enabled? ": "",
|
||||||
"Genre: ": "Genere: ",
|
"Login enabled? ": "",
|
||||||
"License: ": "Licenza: ",
|
"Registration enabled? ": "",
|
||||||
"Family friendly? ": "Per tutti? ",
|
"Report statistics? ": "",
|
||||||
"Wilson score: ": "Punteggio di Wilson: ",
|
"Save preferences": "Salva le preferenze",
|
||||||
"Engagement: ": "Tasso di coinvolgimento: ",
|
"Subscription manager": "Gestisci le iscrizioni",
|
||||||
"Whitelisted regions: ": "Regioni nella lista bianca: ",
|
"Token manager": "",
|
||||||
"Blacklisted regions: ": "Regioni nella lista nera: ",
|
"Token": "",
|
||||||
"Shared `x`": "Condiviso `x`",
|
"`x` subscriptions": "`x` iscrizioni",
|
||||||
"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.",
|
"`x` tokens": "",
|
||||||
"View YouTube comments": "Visualizza i commenti da YouTube",
|
"Import/export": "Importa/esporta",
|
||||||
"View more comments on Reddit": "Visualizza più commenti su Reddit",
|
"unsubscribe": "disiscriviti",
|
||||||
"View `x` comments": "Visualizza `x` commenti",
|
"revoke": "",
|
||||||
"View Reddit comments": "Visualizza i commenti da Reddit",
|
"Subscriptions": "Iscrizioni",
|
||||||
"Hide replies": "Nascondi le risposte",
|
"`x` unseen notifications": "`x` notifiche non visualizzate",
|
||||||
"Show replies": "Mostra le risposte",
|
"search": "Cerca",
|
||||||
"Incorrect password": "Password sbagliata",
|
"Log out": "Esci",
|
||||||
"Quota exceeded, try again in a few hours": "Limite superato, prova di nuovo fra qualche ora",
|
"Released under the AGPLv3 by Omar Roth.": "Pubblicato con licenza AGPLv3 da Omar Roth.",
|
||||||
"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.",
|
"Source available here.": "Codice sorgente.",
|
||||||
"Invalid TFA code": "Codice di autenticazione a due fattori non valido",
|
"View JavaScript license information.": "Guarda le informazioni di licenza del codice JavaScript.",
|
||||||
"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.",
|
"View privacy policy.": "",
|
||||||
"Invalid answer": "Risposta errata",
|
"Trending": "Tendenze",
|
||||||
"Invalid CAPTCHA": "CAPTCHA errato",
|
"Unlisted": "",
|
||||||
"CAPTCHA is a required field": "Il CAPTCHA è un campo obbligatorio",
|
"Watch on YouTube": "Guarda il video su YouTube",
|
||||||
"User ID is a required field": "L'ID utente è obbligatorio",
|
"Hide annotations": "",
|
||||||
"Password is a required field": "La password è un campo obbligatorio",
|
"Show annotations": "",
|
||||||
"Invalid username or password": "Nome utente o password errati",
|
"Genre: ": "Genere: ",
|
||||||
"Please sign in using 'Sign in with Google'": "Per favore accedi con \"Entra con Google\"",
|
"License: ": "Licenza: ",
|
||||||
"Password cannot be empty": "La password non può essere vuota",
|
"Family friendly? ": "Per tutti? ",
|
||||||
"Password cannot be longer than 55 characters": "La password non può contenere più di 55 caratteri",
|
"Wilson score: ": "Punteggio di Wilson: ",
|
||||||
"Please sign in": "Per favore, entra",
|
"Engagement: ": "Tasso di coinvolgimento: ",
|
||||||
"Invidious Private Feed for `x`": "Feed privato Invidious per `x`",
|
"Whitelisted regions: ": "Regioni nella lista bianca: ",
|
||||||
"channel:`x`": "canale:`x`",
|
"Blacklisted regions: ": "Regioni nella lista nera: ",
|
||||||
"Deleted or invalid channel": "Canale cancellato o invalido",
|
"Shared `x`": "Condiviso `x`",
|
||||||
"This channel does not exist.": "Canale inesistente.",
|
"`x` views": "",
|
||||||
"Could not get channel info.": "Impossibile ottenere le informazioni del canale.",
|
"Premieres in `x`": "",
|
||||||
"Could not fetch comments": "Impossibile recuperare i commenti",
|
"Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Ciao! Sembra che tu abbia disattivato JavaScript. Clicca qui per visualizzare i commenti. Considera che potrebbe volerci più tempo.",
|
||||||
"View `x` replies": "Visualizza `x` risposte",
|
"View YouTube comments": "Visualizza i commenti da YouTube",
|
||||||
"`x` ago": "`x` fa",
|
"View more comments on Reddit": "Visualizza più commenti su Reddit",
|
||||||
"Load more": "Carica altro",
|
"View `x` comments": "Visualizza `x` commenti",
|
||||||
"`x` points": "`x` punti",
|
"View Reddit comments": "Visualizza i commenti da Reddit",
|
||||||
"Could not create mix.": "Impossibile creare il mix.",
|
"Hide replies": "Nascondi le risposte",
|
||||||
"Playlist is empty": "Playlist vuota",
|
"Show replies": "Mostra le risposte",
|
||||||
"Invalid playlist.": "Playlist invalida.",
|
"Incorrect password": "Password sbagliata",
|
||||||
"Playlist does not exist.": "Playlist inesistente.",
|
"Quota exceeded, try again in a few hours": "Limite superato, prova di nuovo fra qualche ora",
|
||||||
"Could not pull trending pages.": "Impossibile recuperare le tendenze.",
|
"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.",
|
||||||
"Hidden field \"challenge\" is a required field": "Il campo nascosto \"challenge\" è obbligatorio",
|
"Invalid TFA code": "Codice di autenticazione a due fattori non valido",
|
||||||
"Hidden field \"token\" is a required field": "Il campo nascosto \"token\" è obbligatorio",
|
"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.",
|
||||||
"Invalid challenge": "Campo \"challenge\" invalido",
|
"Wrong answer": "Risposta errata",
|
||||||
"Invalid token": "Campo \"token\" invalido",
|
"Erroneous CAPTCHA": "CAPTCHA errato",
|
||||||
"Invalid user": "Utente invalido",
|
"CAPTCHA is a required field": "Il CAPTCHA è un campo obbligatorio",
|
||||||
"Token is expired, please try again": "Token scaduto, riprova",
|
"User ID is a required field": "L'ID utente è obbligatorio",
|
||||||
"English": "Inglese",
|
"Password is a required field": "La password è un campo obbligatorio",
|
||||||
"English (auto-generated)": "Inglese (generati automaticamente)",
|
"Wrong username or password": "Nome utente o password errati",
|
||||||
"Afrikaans": "Afrikaans",
|
"Please sign in using 'Log in with Google'": "Per favore accedi con \"Entra con Google\"",
|
||||||
"Albanian": "Albanese",
|
"Password cannot be empty": "La password non può essere vuota",
|
||||||
"Amharic": "Amarico",
|
"Password cannot be longer than 55 characters": "La password non può contenere più di 55 caratteri",
|
||||||
"Arabic": "Arabo",
|
"Please log in": "Per favore, entra",
|
||||||
"Armenian": "Armeno",
|
"Invidious Private Feed for `x`": "Feed privato Invidious per `x`",
|
||||||
"Azerbaijani": "Azero",
|
"channel:`x`": "canale:`x`",
|
||||||
"Bangla": "Bengalese",
|
"Deleted or invalid channel": "Canale cancellato o invalido",
|
||||||
"Basque": "Basco",
|
"This channel does not exist.": "Canale inesistente.",
|
||||||
"Belarusian": "Biellorusso",
|
"Could not get channel info.": "Impossibile ottenere le informazioni del canale.",
|
||||||
"Bosnian": "Bosniaco",
|
"Could not fetch comments": "Impossibile recuperare i commenti",
|
||||||
"Bulgarian": "Bulgaro",
|
"View `x` replies": "Visualizza `x` risposte",
|
||||||
"Burmese": "Birmano",
|
"`x` ago": "`x` fa",
|
||||||
"Catalan": "Catalano",
|
"Load more": "Carica altro",
|
||||||
"Cebuano": "Sugbuanon",
|
"`x` points": "`x` punti",
|
||||||
"Chinese (Simplified)": "Cinese semplifiato",
|
"Could not create mix.": "Impossibile creare il mix.",
|
||||||
"Chinese (Traditional)": "Cinese tradizionale",
|
"Empty playlist": "Playlist vuota",
|
||||||
"Corsican": "Corso",
|
"Not a playlist.": "Playlist invalida.",
|
||||||
"Croatian": "Croato",
|
"Playlist does not exist.": "Playlist inesistente.",
|
||||||
"Czech": "Ceco",
|
"Could not pull trending pages.": "Impossibile recuperare le tendenze.",
|
||||||
"Danish": "Danese",
|
"Hidden field \"challenge\" is a required field": "Il campo nascosto \"challenge\" è obbligatorio",
|
||||||
"Dutch": "Olandese",
|
"Hidden field \"token\" is a required field": "Il campo nascosto \"token\" è obbligatorio",
|
||||||
"Esperanto": "Esperanto",
|
"Erroneous challenge": "Campo \"challenge\" invalido",
|
||||||
"Estonian": "Estone",
|
"Erroneous token": "Campo \"token\" invalido",
|
||||||
"Filipino": "Filippino",
|
"No such user": "Utente invalido",
|
||||||
"Finnish": "Finlandese",
|
"Token is expired, please try again": "Token scaduto, riprova",
|
||||||
"French": "Francese",
|
"English": "Inglese",
|
||||||
"Galician": "Galiziano",
|
"English (auto-generated)": "Inglese (generati automaticamente)",
|
||||||
"Georgian": "Georgiano",
|
"Afrikaans": "Afrikaans",
|
||||||
"German": "Tedesco",
|
"Albanian": "Albanese",
|
||||||
"Greek": "Greco",
|
"Amharic": "Amarico",
|
||||||
"Gujarati": "Gujarati",
|
"Arabic": "Arabo",
|
||||||
"Haitian Creole": "Creolo haitiano",
|
"Armenian": "Armeno",
|
||||||
"Hausa": "Lingua hausa",
|
"Azerbaijani": "Azero",
|
||||||
"Hawaiian": "Hawaiano",
|
"Bangla": "Bengalese",
|
||||||
"Hebrew": "Ebreo",
|
"Basque": "Basco",
|
||||||
"Hindi": "Hindi",
|
"Belarusian": "Biellorusso",
|
||||||
"Hmong": "Hmong",
|
"Bosnian": "Bosniaco",
|
||||||
"Hungarian": "Ungarese",
|
"Bulgarian": "Bulgaro",
|
||||||
"Icelandic": "Islandese",
|
"Burmese": "Birmano",
|
||||||
"Igbo": "Igbo",
|
"Catalan": "Catalano",
|
||||||
"Indonesian": "Indonesiano",
|
"Cebuano": "Sugbuanon",
|
||||||
"Irish": "Irlandese",
|
"Chinese (Simplified)": "Cinese semplifiato",
|
||||||
"Italian": "Italiano",
|
"Chinese (Traditional)": "Cinese tradizionale",
|
||||||
"Japanese": "Giapponese",
|
"Corsican": "Corso",
|
||||||
"Javanese": "Giavanese",
|
"Croatian": "Croato",
|
||||||
"Kannada": "Kannada",
|
"Czech": "Ceco",
|
||||||
"Kazakh": "Kazaco",
|
"Danish": "Danese",
|
||||||
"Khmer": "Khmer",
|
"Dutch": "Olandese",
|
||||||
"Korean": "Coreano",
|
"Esperanto": "Esperanto",
|
||||||
"Kurdish": "Curdo",
|
"Estonian": "Estone",
|
||||||
"Kyrgyz": "Kirghize",
|
"Filipino": "Filippino",
|
||||||
"Lao": "Lao",
|
"Finnish": "Finlandese",
|
||||||
"Latin": "Latino",
|
"French": "Francese",
|
||||||
"Latvian": "Lettone",
|
"Galician": "Galiziano",
|
||||||
"Lithuanian": "Lituano",
|
"Georgian": "Georgiano",
|
||||||
"Luxembourgish": "Lussemburghese",
|
"German": "Tedesco",
|
||||||
"Macedonian": "Macedone",
|
"Greek": "Greco",
|
||||||
"Malagasy": "Malgascio",
|
"Gujarati": "Gujarati",
|
||||||
"Malay": "Malese",
|
"Haitian Creole": "Creolo haitiano",
|
||||||
"Malayalam": "Lingua malayalam",
|
"Hausa": "Lingua hausa",
|
||||||
"Maltese": "Maltese",
|
"Hawaiian": "Hawaiano",
|
||||||
"Maori": "Maori",
|
"Hebrew": "Ebreo",
|
||||||
"Marathi": "Marathi",
|
"Hindi": "Hindi",
|
||||||
"Mongolian": "Mongolo",
|
"Hmong": "Hmong",
|
||||||
"Nepali": "Nepalese",
|
"Hungarian": "Ungarese",
|
||||||
"Norwegian": "Norvegese",
|
"Icelandic": "Islandese",
|
||||||
"Nyanja": "Nyanja",
|
"Igbo": "Igbo",
|
||||||
"Pashto": "Lingua pashtu",
|
"Indonesian": "Indonesiano",
|
||||||
"Persian": "Persiano",
|
"Irish": "Irlandese",
|
||||||
"Polish": "Polacco",
|
"Italian": "Italiano",
|
||||||
"Portuguese": "Portoghese",
|
"Japanese": "Giapponese",
|
||||||
"Punjabi": "Punjabi",
|
"Javanese": "Giavanese",
|
||||||
"Romanian": "Rumeno",
|
"Kannada": "Kannada",
|
||||||
"Russian": "Russo",
|
"Kazakh": "Kazaco",
|
||||||
"Samoan": "Samoan",
|
"Khmer": "Khmer",
|
||||||
"Scottish Gaelic": "Gaelico scozzese",
|
"Korean": "Coreano",
|
||||||
"Serbian": "Serbo",
|
"Kurdish": "Curdo",
|
||||||
"Shona": "Shona",
|
"Kyrgyz": "Kirghize",
|
||||||
"Sindhi": "Sindhi",
|
"Lao": "Lao",
|
||||||
"Sinhala": "Cingalese",
|
"Latin": "Latino",
|
||||||
"Slovak": "Slovacco",
|
"Latvian": "Lettone",
|
||||||
"Slovenian": "Sloveno",
|
"Lithuanian": "Lituano",
|
||||||
"Somali": "Somalo",
|
"Luxembourgish": "Lussemburghese",
|
||||||
"Southern Sotho": "Sotho del Sud",
|
"Macedonian": "Macedone",
|
||||||
"Spanish": "Spagnolo",
|
"Malagasy": "Malgascio",
|
||||||
"Spanish (Latin America)": "Spagnolo (America latina)",
|
"Malay": "Malese",
|
||||||
"Sundanese": "Sudanese",
|
"Malayalam": "Lingua malayalam",
|
||||||
"Swahili": "Swahili",
|
"Maltese": "Maltese",
|
||||||
"Swedish": "Svedese",
|
"Maori": "Maori",
|
||||||
"Tajik": "Tajik",
|
"Marathi": "Marathi",
|
||||||
"Tamil": "Tamil",
|
"Mongolian": "Mongolo",
|
||||||
"Telugu": "Telugu",
|
"Nepali": "Nepalese",
|
||||||
"Thai": "Thaï",
|
"Norwegian Bokmål": "Norvegese",
|
||||||
"Turkish": "Turco",
|
"Nyanja": "Nyanja",
|
||||||
"Ukrainian": "Ucraino",
|
"Pashto": "Lingua pashtu",
|
||||||
"Urdu": "Urdu",
|
"Persian": "Persiano",
|
||||||
"Uzbek": "Uzbeco",
|
"Polish": "Polacco",
|
||||||
"Vietnamese": "Vietnamese",
|
"Portuguese": "Portoghese",
|
||||||
"Welsh": "Gallese",
|
"Punjabi": "Punjabi",
|
||||||
"Western Frisian": "Frisone occidentale",
|
"Romanian": "Rumeno",
|
||||||
"Xhosa": "Xhosa",
|
"Russian": "Russo",
|
||||||
"Yiddish": "Yiddish",
|
"Samoan": "Samoan",
|
||||||
"Yoruba": "Yoruba",
|
"Scottish Gaelic": "Gaelico scozzese",
|
||||||
"Zulu": "Zulu",
|
"Serbian": "Serbo",
|
||||||
"`x` years": "`x` anni",
|
"Shona": "Shona",
|
||||||
"`x` months": "`x` mesi",
|
"Sindhi": "Sindhi",
|
||||||
"`x` weeks": "`x` settimane",
|
"Sinhala": "Cingalese",
|
||||||
"`x` days": "`x` giorni",
|
"Slovak": "Slovacco",
|
||||||
"`x` hours": "`x` ore",
|
"Slovenian": "Sloveno",
|
||||||
"`x` minutes": "`x` minuti",
|
"Somali": "Somalo",
|
||||||
"`x` seconds": "`x` secondi",
|
"Southern Sotho": "Sotho del Sud",
|
||||||
"Fallback comments: ": "Commenti alternativi: ",
|
"Spanish": "Spagnolo",
|
||||||
"Popular": "Popolare",
|
"Spanish (Latin America)": "Spagnolo (America latina)",
|
||||||
"Top": "Top",
|
"Sundanese": "Sudanese",
|
||||||
"About": "A proposito",
|
"Swahili": "Swahili",
|
||||||
"Rating: ": "Punteggio: ",
|
"Swedish": "Svedese",
|
||||||
"Language: ": "Lingua: ",
|
"Tajik": "Tajik",
|
||||||
"Default": "Predefinito",
|
"Tamil": "Tamil",
|
||||||
"Music": "Musica",
|
"Telugu": "Telugu",
|
||||||
"Gaming": "Videogiochi",
|
"Thai": "Thaï",
|
||||||
"News": "Notizie",
|
"Turkish": "Turco",
|
||||||
"Movies": "Film",
|
"Ukrainian": "Ucraino",
|
||||||
"Download": "Scarica",
|
"Urdu": "Urdu",
|
||||||
"Download as: ": "Scarica come: ",
|
"Uzbek": "Uzbeco",
|
||||||
"%A %B %-d, %Y": "%A %-d %B %Y",
|
"Vietnamese": "Vietnamese",
|
||||||
"(edited)": "(modificato)",
|
"Welsh": "Gallese",
|
||||||
"Youtube permalink of the comment": "Link permanente al commento di YouTube",
|
"Western Frisian": "Frisone occidentale",
|
||||||
"`x` marked it with a ❤": "`x` l'ha contrassegnato con un ❤",
|
"Xhosa": "Xhosa",
|
||||||
"Audio mode": "Modalità audio",
|
"Yiddish": "Yiddish",
|
||||||
"Video mode": "Modalità video"
|
"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: ": ""
|
||||||
|
}
|
||||||
@@ -1,288 +1,318 @@
|
|||||||
{
|
{
|
||||||
"`x` subscribers": "`x` abonnenter",
|
"`x` subscribers": "`x` abonnenter",
|
||||||
"`x` videos": "`x` videoer",
|
"`x` videos": "`x` videoer",
|
||||||
"LIVE": "SANNTIDSVISNING",
|
"LIVE": "SANNTIDSVISNING",
|
||||||
"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",
|
||||||
"Clear watch history?": "Tøm visningshistorikk?",
|
"Previous page": "Forrige side",
|
||||||
"Yes": "Ja",
|
"Clear watch history?": "Tøm visningshistorikk?",
|
||||||
"No": "Nei",
|
"New password": "Nytt passord",
|
||||||
"Import and Export Data": "Importer- og eksporter data",
|
"New passwords must match": "Nye passordfelter må stemme overens",
|
||||||
"Import": "Importer",
|
"Cannot change password for Google accounts": "Kan ikke endre passord for Google-kontoer",
|
||||||
"Import Invidious data": "Importer Invidious-data",
|
"Authorize token?": "Identitetsbekreft symbol?",
|
||||||
"Import YouTube subscriptions": "Importer YouTube-abonnenter",
|
"Authorize token for `x`?": "Identitetsbekreft symbol for `x`?",
|
||||||
"Import FreeTube subscriptions (.db)": "Importer FreeTube-abonnenter (.db)",
|
"Yes": "Ja",
|
||||||
"Import NewPipe subscriptions (.json)": "Importer NewPipe-abonnenter (.json)",
|
"No": "Nei",
|
||||||
"Import NewPipe data (.zip)": "Importer NewPipe-data (.zip)",
|
"Import and Export Data": "Importer- og eksporter data",
|
||||||
"Export": "Eksporter",
|
"Import": "Importer",
|
||||||
"Export subscriptions as OPML": "Eksporter abonnenter som OPML",
|
"Import Invidious data": "Importer Invidious-data",
|
||||||
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksporter abonnenter som OPML (for NewPipe og FreeTube)",
|
"Import YouTube subscriptions": "Importer YouTube-abonnenter",
|
||||||
"Export data as JSON": "Eksporter data som JSON",
|
"Import FreeTube subscriptions (.db)": "Importer FreeTube-abonnenter (.db)",
|
||||||
"Delete account?": "Slett konto?",
|
"Import NewPipe subscriptions (.json)": "Importer NewPipe-abonnenter (.json)",
|
||||||
"History": "Historikk",
|
"Import NewPipe data (.zip)": "Importer NewPipe-data (.zip)",
|
||||||
"Previous page": "Forrige side",
|
"Export": "Eksporter",
|
||||||
"An alternative front-end to YouTube": "En alternativ grenseflate for YouTube",
|
"Export subscriptions as OPML": "Eksporter abonnenter som OPML",
|
||||||
"JavaScript license information": "JavaScript-lisensinformasjon",
|
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksporter abonnenter som OPML (for NewPipe og FreeTube)",
|
||||||
"source": "kilde",
|
"Export data as JSON": "Eksporter data som JSON",
|
||||||
"Login": "Logg inn",
|
"Delete account?": "Slett konto?",
|
||||||
"Login/Register": "Logg inn/registrer",
|
"History": "Historikk",
|
||||||
"Login to Google": "Logg inn med Google",
|
"An alternative front-end to YouTube": "En alternativ grenseflate for YouTube",
|
||||||
"User ID:": "Bruker-ID:",
|
"JavaScript license information": "JavaScript-lisensinformasjon",
|
||||||
"Password:": "Passord:",
|
"source": "kilde",
|
||||||
"Time (h:mm:ss):": "Tid (h:mm:ss):",
|
"Log in": "Logg inn",
|
||||||
"Text CAPTCHA": "Tekst-CAPTCHA",
|
"Log in/register": "Logg inn/registrer",
|
||||||
"Image CAPTCHA": "Bilde-CAPTCHA",
|
"Log in with Google": "Logg inn med Google",
|
||||||
"Sign In": "Innlogging",
|
"User ID": "Bruker-ID",
|
||||||
"Register": "Registrer",
|
"Password": "Passord",
|
||||||
"Email:": "E-post:",
|
"Time (h:mm:ss):": "Tid (h:mm:ss):",
|
||||||
"Google verification code:": "Google-bekreftelseskode:",
|
"Text CAPTCHA": "Tekst-CAPTCHA",
|
||||||
"Preferences": "Innstillinger",
|
"Image CAPTCHA": "Bilde-CAPTCHA",
|
||||||
"Player preferences": "Avspillerinnstillinger",
|
"Sign In": "Innlogging",
|
||||||
"Always loop: ": "Alltid gjenta: ",
|
"Register": "Registrer",
|
||||||
"Autoplay: ": "Autoavspilling: ",
|
"E-mail": "E-post",
|
||||||
"Autoplay next video: ": "Autospill neste video: ",
|
"Google verification code": "Google-bekreftelseskode",
|
||||||
"Listen by default: ": "Lytt som forvalg: ",
|
"Preferences": "Innstillinger",
|
||||||
"Default speed: ": "Forvalgt hastighet: ",
|
"Player preferences": "Avspillerinnstillinger",
|
||||||
"Preferred video quality: ": "Foretrukket videokvalitet: ",
|
"Always loop: ": "Alltid gjenta: ",
|
||||||
"Player volume: ": "Avspillerlydstyrke: ",
|
"Autoplay: ": "Autoavspilling: ",
|
||||||
"Default comments: ": "Forvalgte kommentarer: ",
|
"Play next by default: ": "Spill neste som forvalg: ",
|
||||||
"Default captions: ": "Forvalgte undertitler: ",
|
"Autoplay next video: ": "Autospill neste video: ",
|
||||||
"Fallback captions: ": "Tilbakefallsundertitler: ",
|
"Listen by default: ": "Lytt som forvalg: ",
|
||||||
"Show related videos? ": "Vis relaterte videoer? ",
|
"Proxy videos? ": "Mellomtjen videoer? ",
|
||||||
"Visual preferences": "Visuelle innstillinger",
|
"Default speed: ": "Forvalgt hastighet: ",
|
||||||
"Dark mode: ": "Mørk drakt: ",
|
"Preferred video quality: ": "Foretrukket videokvalitet: ",
|
||||||
"Thin mode: ": "Tynt modus: ",
|
"Player volume: ": "Avspillerlydstyrke: ",
|
||||||
"Subscription preferences": "Abonnementsinnstillinger",
|
"Default comments: ": "Forvalgte kommentarer: ",
|
||||||
"Redirect homepage to feed: ": "Videresend hjemmeside til flyt: ",
|
"youtube": "YouTube",
|
||||||
"Number of videos shown in feed: ": "Antall videoer å vise i flyt: ",
|
"reddit": "Reddit",
|
||||||
"Sort videos by: ": "Sorter videoer etter: ",
|
"Default captions: ": "Forvalgte undertitler: ",
|
||||||
"published": "publisert",
|
"Fallback captions: ": "Tilbakefallsundertitler: ",
|
||||||
"published - reverse": "publisert - motsatt",
|
"Show related videos? ": "Vis relaterte videoer? ",
|
||||||
"alphabetically": "alfabetisk",
|
"Show annotations by default? ": "Vis merknader som forvalg? ",
|
||||||
"alphabetically - reverse": "alfabetisk - motsatt",
|
"Visual preferences": "Visuelle innstillinger",
|
||||||
"channel name": "kanalnavn",
|
"Dark mode: ": "Mørk drakt: ",
|
||||||
"channel name - reverse": "kanalnavn - motsatt",
|
"Thin mode: ": "Tynt modus: ",
|
||||||
"Only show latest video from channel: ": "Kun vis siste video fra kanal: ",
|
"Subscription preferences": "Abonnementsinnstillinger",
|
||||||
"Only show latest unwatched video from channel: ": "Kun vis siste usette video fra kanal: ",
|
"Show annotations by default for subscribed channels? ": "Vis merknader som forvalg for kanaler det abonneres på? ",
|
||||||
"Only show unwatched: ": "Kun vis usette: ",
|
"Redirect homepage to feed: ": "Videresend hjemmeside til flyt: ",
|
||||||
"Only show notifications (if there are any): ": "Kun vis merknader (hvis det er noen): ",
|
"Number of videos shown in feed: ": "Antall videoer å vise i flyt: ",
|
||||||
"Data preferences": "Datainnstillinger",
|
"Sort videos by: ": "Sorter videoer etter: ",
|
||||||
"Clear watch history": "Tøm visningshistorikk",
|
"published": "publisert",
|
||||||
"Import/Export data": "Importer/eksporter data",
|
"published - reverse": "publisert - motsatt",
|
||||||
"Manage subscriptions": "Behandle abonnementer",
|
"alphabetically": "alfabetisk",
|
||||||
"Watch history": "Visningshistorikk",
|
"alphabetically - reverse": "alfabetisk - motsatt",
|
||||||
"Delete account": "Slett konto",
|
"channel name": "kanalnavn",
|
||||||
"Administrator preferences": "Administratorinnstillinger",
|
"channel name - reverse": "kanalnavn - motsatt",
|
||||||
"Default homepage: ": "Forvalgt hjemmeside: ",
|
"Only show latest video from channel: ": "Kun vis siste video fra kanal: ",
|
||||||
"Feed menu: ": "Flyt-meny: ",
|
"Only show latest unwatched video from channel: ": "Kun vis siste usette video fra kanal: ",
|
||||||
"Top enabled? ": "",
|
"Only show unwatched: ": "Kun vis usette: ",
|
||||||
"CAPTCHA enabled? ": "CAPTCHA påskrudd? ",
|
"Only show notifications (if there are any): ": "Kun vis merknader (hvis det er noen): ",
|
||||||
"Login enabled? ": "Innlogging påskrudd? ",
|
"Enable web notifications": "Skru på nettmerknader",
|
||||||
"Registration enabled? ": "Registrering påskrudd? ",
|
"`x` uploaded a video": "`x` lastet opp en video",
|
||||||
"Report statistics? ": "",
|
"`x` is live": "`x` er pålogget",
|
||||||
"Save preferences": "Lagre innstillinger",
|
"Data preferences": "Datainnstillinger",
|
||||||
"Subscription manager": "Abonnementsbehandler",
|
"Clear watch history": "Tøm visningshistorikk",
|
||||||
"`x` subscriptions": "`x` abonnementer",
|
"Import/export data": "Importer/eksporter data",
|
||||||
"Import/Export": "Importer/eksporter",
|
"Change password": "Endre passord",
|
||||||
"unsubscribe": "opphev abonnement",
|
"Manage subscriptions": "Behandle abonnementer",
|
||||||
"Subscriptions": "Abonnement",
|
"Manage tokens": "Behandle symboler",
|
||||||
"`x` unseen notifications": "`x` usette merknader",
|
"Watch history": "Visningshistorikk",
|
||||||
"search": "søk",
|
"Delete account": "Slett konto",
|
||||||
"Sign out": "Logg ut",
|
"Administrator preferences": "Administratorinnstillinger",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Utgitt med AGPLv3+lisens av Omar Roth.",
|
"Default homepage: ": "Forvalgt hjemmeside: ",
|
||||||
"Source available here.": "Kildekode tilgjengelig her.",
|
"Feed menu: ": "Flyt-meny: ",
|
||||||
"View JavaScript license information.": "Vis JavaScript-lisensinfo.",
|
"Top enabled? ": "Topp påskrudd? ",
|
||||||
"Trending": "Trendsettende",
|
"CAPTCHA enabled? ": "CAPTCHA påskrudd? ",
|
||||||
"Watch video on Youtube": "Vis video på YouTube",
|
"Login enabled? ": "Innlogging påskrudd? ",
|
||||||
"Genre: ": "Sjanger: ",
|
"Registration enabled? ": "Registrering påskrudd? ",
|
||||||
"License: ": "Lisens: ",
|
"Report statistics? ": "Innrapporter statistikk? ",
|
||||||
"Family friendly? ": "Familievennlig? ",
|
"Save preferences": "Lagre innstillinger",
|
||||||
"Wilson score: ": "Wilson-poengsum: ",
|
"Subscription manager": "Abonnementsbehandler",
|
||||||
"Engagement: ": "Engasjement: ",
|
"Token manager": "Symbolbehandler",
|
||||||
"Whitelisted regions: ": "Hvitlistede regioner: ",
|
"Token": "Symbol",
|
||||||
"Blacklisted regions: ": "Svartelistede regioner: ",
|
"`x` subscriptions": "`x` abonnementer",
|
||||||
"Shared `x`": "Delt `x`",
|
"`x` tokens": "`x` symboler",
|
||||||
"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.",
|
"Import/export": "Importer/eksporter",
|
||||||
"View YouTube comments": "Vis YouTube-kommentarer",
|
"unsubscribe": "opphev abonnement",
|
||||||
"View more comments on Reddit": "Vis flere kommenterer på Reddit",
|
"revoke": "tilbakekall",
|
||||||
"View `x` comments": "Vis `x` kommentarer",
|
"Subscriptions": "Abonnement",
|
||||||
"View Reddit comments": "Vis Reddit-kommentarer",
|
"`x` unseen notifications": "`x` usette merknader",
|
||||||
"Hide replies": "Skjul svar",
|
"search": "søk",
|
||||||
"Show replies": "Vis svar",
|
"Log out": "Logg ut",
|
||||||
"Incorrect password": "Feil passord",
|
"Released under the AGPLv3 by Omar Roth.": "Utgitt med AGPLv3+lisens av Omar Roth.",
|
||||||
"Quota exceeded, try again in a few hours": "Kvote overskredet, prøv igjen om et par timer",
|
"Source available here.": "Kildekode tilgjengelig her.",
|
||||||
"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å.",
|
"View JavaScript license information.": "Vis JavaScript-lisensinfo.",
|
||||||
"Invalid TFA code": "Ugyldig tofaktorkode",
|
"View privacy policy.": "Vis personvernspraksis.",
|
||||||
"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.",
|
"Trending": "Trendsettende",
|
||||||
"Invalid answer": "Ugyldig svar",
|
"Unlisted": "Ulistet",
|
||||||
"Invalid CAPTCHA": "Ugyldig CAPTCHA",
|
"Watch on YouTube": "Vis video på YouTube",
|
||||||
"CAPTCHA is a required field": "CAPTCHA er et påkrevd felt",
|
"Hide annotations": "Skjul merknader",
|
||||||
"User ID is a required field": "Bruker-ID er et påkrevd felt",
|
"Show annotations": "Vis merknader",
|
||||||
"Password is a required field": "Passord er et påkrevd felt",
|
"Genre: ": "Sjanger: ",
|
||||||
"Invalid username or password": "Ugyldig brukernavn eller passord",
|
"License: ": "Lisens: ",
|
||||||
"Please sign in using 'Sign in with Google'": "Logg inn ved bruk av \"Google-innlogging\"",
|
"Family friendly? ": "Familievennlig? ",
|
||||||
"Password cannot be empty": "Passordet kan ikke være tomt",
|
"Wilson score: ": "Wilson-poengsum: ",
|
||||||
"Password cannot be longer than 55 characters": "Passordet kan ikke være lengre enn 55 tegn",
|
"Engagement: ": "Engasjement: ",
|
||||||
"Please sign in": "Logg inn",
|
"Whitelisted regions: ": "Hvitlistede regioner: ",
|
||||||
"Invidious Private Feed for `x`": "Ugyldig privat flyt for `x`",
|
"Blacklisted regions: ": "Svartelistede regioner: ",
|
||||||
"channel:`x`": "kanal `x`",
|
"Shared `x`": "Delt `x`",
|
||||||
"Deleted or invalid channel": "Slettet eller ugyldig kanal",
|
"`x` views": "`x` visninger",
|
||||||
"This channel does not exist.": "Denne kanalen finnes ikke.",
|
"Premieres in `x`": "Premiere om `x`",
|
||||||
"Could not get channel info.": "Kunne ikke innhente kanalinfo.",
|
"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.",
|
||||||
"Could not fetch comments": "Kunne ikke hente kommentarer",
|
"View YouTube comments": "Vis YouTube-kommentarer",
|
||||||
"View `x` replies": "Vis `x` svar",
|
"View more comments on Reddit": "Vis flere kommenterer på Reddit",
|
||||||
"`x` ago": "`x` siden",
|
"View `x` comments": "Vis `x` kommentarer",
|
||||||
"Load more": "Last inn flere",
|
"View Reddit comments": "Vis Reddit-kommentarer",
|
||||||
"`x` points": "`x` poeng",
|
"Hide replies": "Skjul svar",
|
||||||
"Could not create mix.": "Kunne ikke opprette miks.",
|
"Show replies": "Vis svar",
|
||||||
"Playlist is empty": "Spillelisten er tom",
|
"Incorrect password": "Feil passord",
|
||||||
"Invalid playlist.": "Ugyldig spilleliste.",
|
"Quota exceeded, try again in a few hours": "Kvote overskredet, prøv igjen om et par timer",
|
||||||
"Playlist does not exist.": "Spillelisten finnes ikke.",
|
"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å.",
|
||||||
"Could not pull trending pages.": "Kunne ikke hente trendsettende sider.",
|
"Invalid TFA code": "Ugyldig tofaktorkode",
|
||||||
"Hidden field \"challenge\" is a required field": "Skjult felt \"utfordring\" er et påkrevd felt",
|
"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.",
|
||||||
"Hidden field \"token\" is a required field": "Skjult felt \"symbol\" er et påkrevd felt",
|
"Wrong answer": "Ugyldig svar",
|
||||||
"Invalid challenge": "Ugyldig utfordring",
|
"Erroneous CAPTCHA": "Ugyldig CAPTCHA",
|
||||||
"Invalid token": "Ugyldig symbol",
|
"CAPTCHA is a required field": "CAPTCHA er et påkrevd felt",
|
||||||
"Invalid user": "Ugyldig bruker",
|
"User ID is a required field": "Bruker-ID er et påkrevd felt",
|
||||||
"Token is expired, please try again": "Symbol utløpt, prøv igjen",
|
"Password is a required field": "Passord er et påkrevd felt",
|
||||||
"English": "Engelsk",
|
"Wrong username or password": "Ugyldig brukernavn eller passord",
|
||||||
"English (auto-generated)": "Engelsk (auto-generert)",
|
"Please sign in using 'Log in with Google'": "Logg inn ved bruk av \"Google-innlogging\"",
|
||||||
"Afrikaans": "",
|
"Password cannot be empty": "Passordet kan ikke være tomt",
|
||||||
"Albanian": "Albansk",
|
"Password cannot be longer than 55 characters": "Passordet kan ikke være lengre enn 55 tegn",
|
||||||
"Amharic": "",
|
"Please log in": "Logg inn",
|
||||||
"Arabic": "Arabisk",
|
"Invidious Private Feed for `x`": "Ugyldig privat flyt for `x`",
|
||||||
"Armenian": "Armensk",
|
"channel:`x`": "kanal `x`",
|
||||||
"Azerbaijani": "",
|
"Deleted or invalid channel": "Slettet eller ugyldig kanal",
|
||||||
"Bangla": "",
|
"This channel does not exist.": "Denne kanalen finnes ikke.",
|
||||||
"Basque": "",
|
"Could not get channel info.": "Kunne ikke innhente kanalinfo.",
|
||||||
"Belarusian": "Hviterussisk",
|
"Could not fetch comments": "Kunne ikke hente kommentarer",
|
||||||
"Bosnian": "Bosnisk",
|
"View `x` replies": "Vis `x` svar",
|
||||||
"Bulgarian": "Bulgarsk",
|
"`x` ago": "`x` siden",
|
||||||
"Burmese": "Burmesisk",
|
"Load more": "Last inn flere",
|
||||||
"Catalan": "Katalansk",
|
"`x` points": "`x` poeng",
|
||||||
"Cebuano": "",
|
"Could not create mix.": "Kunne ikke opprette miks.",
|
||||||
"Chinese (Simplified)": "",
|
"Empty playlist": "Spillelisten er tom",
|
||||||
"Chinese (Traditional)": "",
|
"Not a playlist.": "Ugyldig spilleliste.",
|
||||||
"Corsican": "",
|
"Playlist does not exist.": "Spillelisten finnes ikke.",
|
||||||
"Croatian": "",
|
"Could not pull trending pages.": "Kunne ikke hente trendsettende sider.",
|
||||||
"Czech": "Tsjekkisk",
|
"Hidden field \"challenge\" is a required field": "Skjult felt \"utfordring\" er et påkrevd felt",
|
||||||
"Danish": "Dansk",
|
"Hidden field \"token\" is a required field": "Skjult felt \"symbol\" er et påkrevd felt",
|
||||||
"Dutch": "",
|
"Erroneous challenge": "Ugyldig utfordring",
|
||||||
"Esperanto": "Esperanto",
|
"Erroneous token": "Ugyldig symbol",
|
||||||
"Estonian": "",
|
"No such user": "Ugyldig bruker",
|
||||||
"Filipino": "",
|
"Token is expired, please try again": "Symbol utløpt, prøv igjen",
|
||||||
"Finnish": "Finsk",
|
"English": "Engelsk",
|
||||||
"French": "Fransk",
|
"English (auto-generated)": "Engelsk (auto-generert)",
|
||||||
"Galician": "",
|
"Afrikaans": "",
|
||||||
"Georgian": "",
|
"Albanian": "Albansk",
|
||||||
"German": "",
|
"Amharic": "",
|
||||||
"Greek": "",
|
"Arabic": "Arabisk",
|
||||||
"Gujarati": "",
|
"Armenian": "Armensk",
|
||||||
"Haitian Creole": "",
|
"Azerbaijani": "",
|
||||||
"Hausa": "",
|
"Bangla": "",
|
||||||
"Hawaiian": "",
|
"Basque": "",
|
||||||
"Hebrew": "",
|
"Belarusian": "Hviterussisk",
|
||||||
"Hindi": "",
|
"Bosnian": "Bosnisk",
|
||||||
"Hmong": "",
|
"Bulgarian": "Bulgarsk",
|
||||||
"Hungarian": "Ungarsk",
|
"Burmese": "Burmesisk",
|
||||||
"Icelandic": "Islandsk",
|
"Catalan": "Katalansk",
|
||||||
"Igbo": "",
|
"Cebuano": "",
|
||||||
"Indonesian": "Indonesisk",
|
"Chinese (Simplified)": "",
|
||||||
"Irish": "Irsk",
|
"Chinese (Traditional)": "",
|
||||||
"Italian": "Italiensk",
|
"Corsican": "",
|
||||||
"Japanese": "Japansk",
|
"Croatian": "",
|
||||||
"Javanese": "",
|
"Czech": "Tsjekkisk",
|
||||||
"Kannada": "",
|
"Danish": "Dansk",
|
||||||
"Kazakh": "",
|
"Dutch": "",
|
||||||
"Khmer": "",
|
"Esperanto": "Esperanto",
|
||||||
"Korean": "",
|
"Estonian": "",
|
||||||
"Kurdish": "",
|
"Filipino": "",
|
||||||
"Kyrgyz": "",
|
"Finnish": "Finsk",
|
||||||
"Lao": "",
|
"French": "Fransk",
|
||||||
"Latin": "",
|
"Galician": "",
|
||||||
"Latvian": "",
|
"Georgian": "",
|
||||||
"Lithuanian": "",
|
"German": "",
|
||||||
"Luxembourgish": "",
|
"Greek": "",
|
||||||
"Macedonian": "",
|
"Gujarati": "",
|
||||||
"Malagasy": "",
|
"Haitian Creole": "",
|
||||||
"Malay": "",
|
"Hausa": "",
|
||||||
"Malayalam": "",
|
"Hawaiian": "",
|
||||||
"Maltese": "",
|
"Hebrew": "",
|
||||||
"Maori": "",
|
"Hindi": "",
|
||||||
"Marathi": "",
|
"Hmong": "",
|
||||||
"Mongolian": "",
|
"Hungarian": "Ungarsk",
|
||||||
"Nepali": "",
|
"Icelandic": "Islandsk",
|
||||||
"Norwegian": "Norsk bokmål",
|
"Igbo": "",
|
||||||
"Nyanja": "",
|
"Indonesian": "Indonesisk",
|
||||||
"Pashto": "",
|
"Irish": "Irsk",
|
||||||
"Persian": "",
|
"Italian": "Italiensk",
|
||||||
"Polish": "",
|
"Japanese": "Japansk",
|
||||||
"Portuguese": "",
|
"Javanese": "",
|
||||||
"Punjabi": "",
|
"Kannada": "",
|
||||||
"Romanian": "",
|
"Kazakh": "",
|
||||||
"Russian": "Russisk",
|
"Khmer": "",
|
||||||
"Samoan": "",
|
"Korean": "",
|
||||||
"Scottish Gaelic": "",
|
"Kurdish": "",
|
||||||
"Serbian": "Serbisk",
|
"Kyrgyz": "",
|
||||||
"Shona": "",
|
"Lao": "",
|
||||||
"Sindhi": "",
|
"Latin": "",
|
||||||
"Sinhala": "",
|
"Latvian": "",
|
||||||
"Slovak": "Slovakisk",
|
"Lithuanian": "",
|
||||||
"Slovenian": "Slovensk",
|
"Luxembourgish": "",
|
||||||
"Somali": "Somali",
|
"Macedonian": "",
|
||||||
"Southern Sotho": "",
|
"Malagasy": "",
|
||||||
"Spanish": "Spansk",
|
"Malay": "",
|
||||||
"Spanish (Latin America)": "",
|
"Malayalam": "",
|
||||||
"Sundanese": "",
|
"Maltese": "",
|
||||||
"Swahili": "",
|
"Maori": "",
|
||||||
"Swedish": "Svensk",
|
"Marathi": "",
|
||||||
"Tajik": "",
|
"Mongolian": "",
|
||||||
"Tamil": "",
|
"Nepali": "",
|
||||||
"Telugu": "",
|
"Norwegian Bokmål": "Norsk bokmål",
|
||||||
"Thai": "",
|
"Nyanja": "",
|
||||||
"Turkish": "Tyrkisk",
|
"Pashto": "",
|
||||||
"Ukrainian": "Ukrainsk",
|
"Persian": "",
|
||||||
"Urdu": "",
|
"Polish": "",
|
||||||
"Uzbek": "",
|
"Portuguese": "",
|
||||||
"Vietnamese": "Vietnamesisk",
|
"Punjabi": "",
|
||||||
"Welsh": "",
|
"Romanian": "",
|
||||||
"Western Frisian": "",
|
"Russian": "Russisk",
|
||||||
"Xhosa": "",
|
"Samoan": "",
|
||||||
"Yiddish": "",
|
"Scottish Gaelic": "",
|
||||||
"Yoruba": "",
|
"Serbian": "Serbisk",
|
||||||
"Zulu": "",
|
"Shona": "",
|
||||||
"`x` years": "`x` år",
|
"Sindhi": "",
|
||||||
"`x` months": "`x` måneder",
|
"Sinhala": "",
|
||||||
"`x` weeks": "`x` uker",
|
"Slovak": "Slovakisk",
|
||||||
"`x` days": "`x` dager",
|
"Slovenian": "Slovensk",
|
||||||
"`x` hours": "`x` timer",
|
"Somali": "Somali",
|
||||||
"`x` minutes": "`x` minutter",
|
"Southern Sotho": "",
|
||||||
"`x` seconds": "`x` sekunder",
|
"Spanish": "Spansk",
|
||||||
"Fallback comments: ": "Tilbakefallskommentarer: ",
|
"Spanish (Latin America)": "",
|
||||||
"Popular": "Pupulært",
|
"Sundanese": "",
|
||||||
"Top": "Topp",
|
"Swahili": "",
|
||||||
"About": "Om",
|
"Swedish": "Svensk",
|
||||||
"Rating: ": "Vurdering: ",
|
"Tajik": "",
|
||||||
"Language: ": "Språk: ",
|
"Tamil": "",
|
||||||
"Default": "Forvalg",
|
"Telugu": "",
|
||||||
"Music": "Musikk",
|
"Thai": "",
|
||||||
"Gaming": "Spill",
|
"Turkish": "Tyrkisk",
|
||||||
"News": "Nyheter",
|
"Ukrainian": "Ukrainsk",
|
||||||
"Movies": "Filmer",
|
"Urdu": "",
|
||||||
"Download": "Last ned",
|
"Uzbek": "",
|
||||||
"Download as: ": "Last ned som: ",
|
"Vietnamese": "Vietnamesisk",
|
||||||
"%A %B %-d, %Y": "",
|
"Welsh": "",
|
||||||
"(edited)": "(redigert)",
|
"Western Frisian": "",
|
||||||
"Youtube permalink of the comment": "Permanent YouTube-lenke til innholdet",
|
"Xhosa": "",
|
||||||
"`x` marked it with a ❤": "`x` levnet et ❤",
|
"Yiddish": "",
|
||||||
"Audio mode": "Lydmodus",
|
"Yoruba": "",
|
||||||
"Video mode": "Video-modus"
|
"Zulu": "",
|
||||||
|
"`x` years": "`x` år",
|
||||||
|
"`x` months": "`x` måneder",
|
||||||
|
"`x` weeks": "`x` uker",
|
||||||
|
"`x` days": "`x` dager",
|
||||||
|
"`x` hours": "`x` timer",
|
||||||
|
"`x` minutes": "`x` minutter",
|
||||||
|
"`x` seconds": "`x` sekunder",
|
||||||
|
"Fallback comments: ": "Tilbakefallskommentarer: ",
|
||||||
|
"Popular": "Pupulært",
|
||||||
|
"Top": "Topp",
|
||||||
|
"About": "Om",
|
||||||
|
"Rating: ": "Vurdering: ",
|
||||||
|
"Language: ": "Språk: ",
|
||||||
|
"View as playlist": "Vis som spilleliste",
|
||||||
|
"Default": "Forvalg",
|
||||||
|
"Music": "Musikk",
|
||||||
|
"Gaming": "Spill",
|
||||||
|
"News": "Nyheter",
|
||||||
|
"Movies": "Filmer",
|
||||||
|
"Download": "Last ned",
|
||||||
|
"Download as: ": "Last ned som: ",
|
||||||
|
"%A %B %-d, %Y": "",
|
||||||
|
"(edited)": "(redigert)",
|
||||||
|
"YouTube comment permalink": "Permanent YouTube-lenke til innholdet",
|
||||||
|
"`x` marked it with a ❤": "`x` levnet et ❤",
|
||||||
|
"Audio mode": "Lydmodus",
|
||||||
|
"Video mode": "Video-modus",
|
||||||
|
"Videos": "Videoer",
|
||||||
|
"Playlists": "Spillelister",
|
||||||
|
"Current version: ": "Nåværende versjon: "
|
||||||
}
|
}
|
||||||
|
|||||||
604
locales/nl.json
604
locales/nl.json
@@ -1,288 +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",
|
||||||
"Administrator preferences": "",
|
"channel name - reverse": "kanaalnaam - omgekeerd",
|
||||||
"Default homepage: ": "",
|
"Only show latest video from channel: ": "Alleen nieuwste video van kanaal tonen: ",
|
||||||
"Feed menu: ": "",
|
"Only show latest unwatched video from channel: ": "Alleen nieuwste niet-bekeken video van kanaal tonen: ",
|
||||||
"Top enabled? ": "",
|
"Only show unwatched: ": "Alleen niet-bekeken videos tonen: ",
|
||||||
"CAPTCHA enabled? ": "",
|
"Only show notifications (if there are any): ": "Alleen meldingen tonen (als die er zijn): ",
|
||||||
"Login enabled? ": "",
|
"Enable web notifications": "",
|
||||||
"Registration enabled? ": "",
|
"`x` uploaded a video": "",
|
||||||
"Report statistics? ": "",
|
"`x` is live": "",
|
||||||
"Save preferences": "Opslaan voorkeuren",
|
"Data preferences": "Gegevensinstellingen",
|
||||||
"Subscription manager": "Abonnees beheerder",
|
"Clear watch history": "Kijkgeschiedenis wissen",
|
||||||
"`x` subscriptions": "`x` abonnees",
|
"Import/export data": "Gegevens im-/exporteren",
|
||||||
"Import/Export": "Importeer/Exporteer",
|
"Change password": "Wachtwoord wijzigen",
|
||||||
"unsubscribe": "abonnement opzeggen",
|
"Manage subscriptions": "Abonnementen beheren",
|
||||||
"Subscriptions": "Abonnees",
|
"Manage tokens": "Toegangssleutels beheren",
|
||||||
"`x` unseen notifications": "`x` onbekeken notificaties",
|
"Watch history": "Kijkgeschiedenis",
|
||||||
"search": "zoeken",
|
"Delete account": "Account verwijderen",
|
||||||
"Sign out": "Afmelden",
|
"Administrator preferences": "Beheerdersinstellingen",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Uitgegeven onder AGPLv3 door Omar Roth.",
|
"Default homepage: ": "Standaard startpagina: ",
|
||||||
"Source available here.": "Bron beschikbaar hier.",
|
"Feed menu: ": "Feedmenu:",
|
||||||
"View JavaScript license information.": "Bekijk JavaScript licentie informatie.",
|
"Top enabled? ": "Bovenkant inschakelen? ",
|
||||||
"Trending": "Trending",
|
"CAPTCHA enabled? ": "CAPTCHA gebruiken? ",
|
||||||
"Watch video on Youtube": "Bekijk video op Youtube",
|
"Login enabled? ": "Inloggen toestaan? ",
|
||||||
"Genre: ": "Genre: ",
|
"Registration enabled? ": "Registratie toestaan? ",
|
||||||
"License: ": "Licentie: ",
|
"Report statistics? ": "Statistieken bijhouden? ",
|
||||||
"Family friendly? ": "Gezinsvriendelijk? ",
|
"Save preferences": "Instellingen opslaan",
|
||||||
"Wilson score: ": "Wilson score: ",
|
"Subscription manager": "Abonnementen beheren",
|
||||||
"Engagement: ": "Betrokkenheid: ",
|
"Token manager": "Toegangssleutels beheren",
|
||||||
"Whitelisted regions: ": "Toegestane regio's: ",
|
"Token": "Toegangssleutel",
|
||||||
"Blacklisted regions: ": "Geblokkeerde regio's: ",
|
"`x` subscriptions": "`x` abonnementen",
|
||||||
"Shared `x`": "`x` gedeeld",
|
"`x` tokens": "`x` toegangssleutels",
|
||||||
"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.",
|
"Import/export": "Importeren/Exporteren",
|
||||||
"View YouTube comments": "Bekijk YouTube reacties",
|
"unsubscribe": "Deabonneren",
|
||||||
"View more comments on Reddit": "Bekijk meer reacties op Reddit",
|
"revoke": "Intrekken",
|
||||||
"View `x` comments": "`x` reacties zien",
|
"Subscriptions": "Abonnementen",
|
||||||
"View Reddit comments": "Bekijk Reddit reacties",
|
"`x` unseen notifications": "`x` ongelezen meldingen",
|
||||||
"Hide replies": "Verberg antwoorden",
|
"search": "zoeken",
|
||||||
"Show replies": "Laat antwoorden zien",
|
"Log out": "Uitloggen",
|
||||||
"Incorrect password": "Onjuist wachtwoord",
|
"Released under the AGPLv3 by Omar Roth.": "Uitgegeven onder de AGPLv3-licentie door Omar Roth.",
|
||||||
"Quota exceeded, try again in a few hours": "Quota overschreden, probeer het over een paar uur opnieuw",
|
"Source available here.": "De broncode is hier beschikbaar.",
|
||||||
"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.",
|
"View JavaScript license information.": "JavaScript-licentieinformatie tonen.",
|
||||||
"Invalid TFA code": "Onjuiste TFA code",
|
"View privacy policy.": "Privacybeleid tonen",
|
||||||
"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.",
|
"Trending": "Uitgelicht",
|
||||||
"Invalid answer": "Onjuist antwoord",
|
"Unlisted": "Verborgen",
|
||||||
"Invalid CAPTCHA": "Onjuiste CAPTCHA",
|
"Watch on YouTube": "Bekijk video op YouTube",
|
||||||
"CAPTCHA is a required field": "CAPTCHA is een vereist veld",
|
"Hide annotations": "Annotaties verbergen",
|
||||||
"User ID is a required field": "Gebruiker ID is een vereist veld",
|
"Show annotations": "Annotaties tonen",
|
||||||
"Password is a required field": "Wachtwoord is een vereist veld",
|
"Genre: ": "Genre: ",
|
||||||
"Invalid username or password": "Ongeldige gebruikersnaam of wachtwoord",
|
"License: ": "Licentie: ",
|
||||||
"Please sign in using 'Sign in with Google'": "Meld u aan met 'Aanmelden met Google'",
|
"Family friendly? ": "Gezinsvriendelijk? ",
|
||||||
"Password cannot be empty": "Wachtwoord mag niet leeg zijn",
|
"Wilson score: ": "Wilson-score: ",
|
||||||
"Password cannot be longer than 55 characters": "Wachtwoord mag niet langer dan 55 tekens zijn",
|
"Engagement: ": "Betrokkenheid: ",
|
||||||
"Please sign in": "Meld u aan",
|
"Whitelisted regions: ": "Toegestane regio's: ",
|
||||||
"Invidious Private Feed for `x`": "Invidious Privé Feed voor `x`",
|
"Blacklisted regions: ": "Geblokkeerde regio's: ",
|
||||||
"channel:`x`": "kanaal:`x`",
|
"Shared `x`": "`x` gedeeld",
|
||||||
"Deleted or invalid channel": "Verwijderd of ongeldig kanaal",
|
"`x` views": "`x` weergaven",
|
||||||
"This channel does not exist.": "Dit kanaal bestaat niet.",
|
"Premieres in `x`": "Verschijnt over `x`",
|
||||||
"Could not get channel info.": "Kan kanaal informatie niet verkrijgen.",
|
"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.",
|
||||||
"Could not fetch comments": "Kan reacties niet verkrijgen",
|
"View YouTube comments": "YouTube-reacties tonen",
|
||||||
"View `x` replies": "`x` antwoorden zien",
|
"View more comments on Reddit": "Meer reacties bekijken op Reddit",
|
||||||
"`x` ago": "`x` geleden",
|
"View `x` comments": "`x` reacties tonen",
|
||||||
"Load more": "Meer laden",
|
"View Reddit comments": "Reddit-reacties tonen",
|
||||||
"`x` points": "`x` punten",
|
"Hide replies": "Antwoorden verbergen",
|
||||||
"Could not create mix.": "Kon mix niet maken.",
|
"Show replies": "Antwoorden tonen",
|
||||||
"Playlist is empty": "Afspeellijst is leeg",
|
"Incorrect password": "Wachtwoord is onjuist",
|
||||||
"Invalid playlist.": "Ongeldige afspeellijst.",
|
"Quota exceeded, try again in a few hours": "Quota overschreden; probeer het over een paar uur opnieuw",
|
||||||
"Playlist does not exist.": "Afspeellijst bestaat niet.",
|
"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.",
|
||||||
"Could not pull trending pages.": "Kon trending paginas niet verkrijgen.",
|
"Invalid TFA code": "Onjuiste TFA-code",
|
||||||
"Hidden field \"challenge\" is a required field": "Verborgen veld \"uitdaging\" is een vereist veld",
|
"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.",
|
||||||
"Hidden field \"token\" is a required field": "Verborgen veld \"token\" is een vereist veld",
|
"Wrong answer": "Onjuist antwoord",
|
||||||
"Invalid challenge": "Ongeldige uitdaging",
|
"Erroneous CAPTCHA": "Onjuiste CAPTCHA",
|
||||||
"Invalid token": "Ongeldige token",
|
"CAPTCHA is a required field": "CAPTCHA is vereist",
|
||||||
"Invalid user": "Ongeldige gebruiker",
|
"User ID is a required field": "Gebruikers-id is vereist",
|
||||||
"Token is expired, please try again": "Token is verlopen, probeer het opnieuw",
|
"Password is a required field": "Wachtwoord is vereist",
|
||||||
"English": "",
|
"Wrong username or password": "Onjuiste gebruikersnaam of wachtwoord",
|
||||||
"English (auto-generated)": "",
|
"Please sign in using 'Log in with Google'": "Log in via 'Inloggen met Google'",
|
||||||
"Afrikaans": "",
|
"Password cannot be empty": "Het wachtwoordveld mag niet leeg zijn",
|
||||||
"Albanian": "",
|
"Password cannot be longer than 55 characters": "Het wachtwoord mag niet langer dan 55 tekens zijn",
|
||||||
"Amharic": "",
|
"Please log in": "Log in",
|
||||||
"Arabic": "",
|
"Invidious Private Feed for `x`": "Invidious-privéfeed van `x`",
|
||||||
"Armenian": "",
|
"channel:`x`": "kanaal:`x`",
|
||||||
"Azerbaijani": "",
|
"Deleted or invalid channel": "Verwijderd of niet-bestaand kanaal",
|
||||||
"Bangla": "",
|
"This channel does not exist.": "Dit kanaal bestaat niet.",
|
||||||
"Basque": "",
|
"Could not get channel info.": "Kan geen kanaalinformatie ophalen.",
|
||||||
"Belarusian": "",
|
"Could not fetch comments": "Kan reacties niet ophalen",
|
||||||
"Bosnian": "",
|
"View `x` replies": "`x` antwoorden tonen",
|
||||||
"Bulgarian": "",
|
"`x` ago": "`x` geleden",
|
||||||
"Burmese": "",
|
"Load more": "Meer laden",
|
||||||
"Catalan": "",
|
"`x` points": "`x` punten",
|
||||||
"Cebuano": "",
|
"Could not create mix.": "Kan geen mix maken.",
|
||||||
"Chinese (Simplified)": "",
|
"Empty playlist": "Lege afspeellijst",
|
||||||
"Chinese (Traditional)": "",
|
"Not a playlist.": "Ongeldige afspeellijst.",
|
||||||
"Corsican": "",
|
"Playlist does not exist.": "Afspeellijst bestaat niet.",
|
||||||
"Croatian": "",
|
"Could not pull trending pages.": "Kan uitgelichte pagina's niet ophalen.",
|
||||||
"Czech": "",
|
"Hidden field \"challenge\" is a required field": "Verborgen veld \"uitdaging\" is vereist",
|
||||||
"Danish": "",
|
"Hidden field \"token\" is a required field": "Verborgen veld \"toegangssleutel\" is vereist",
|
||||||
"Dutch": "",
|
"Erroneous challenge": "Ongeldige uitdaging",
|
||||||
"Esperanto": "",
|
"Erroneous token": "Ongeldige toegangssleutel",
|
||||||
"Estonian": "",
|
"No such user": "Gebruiker bestaat niet",
|
||||||
"Filipino": "",
|
"Token is expired, please try again": "Toegangssleutel verlopen; probeer het opnieuw",
|
||||||
"Finnish": "",
|
"English": "Engels",
|
||||||
"French": "",
|
"English (auto-generated)": "Engels (automatisch gegenereerd)",
|
||||||
"Galician": "",
|
"Afrikaans": "Afrikaans",
|
||||||
"Georgian": "",
|
"Albanian": "Albanees",
|
||||||
"German": "",
|
"Amharic": "Amhaars",
|
||||||
"Greek": "",
|
"Arabic": "Arabisch",
|
||||||
"Gujarati": "",
|
"Armenian": "Armeens",
|
||||||
"Haitian Creole": "",
|
"Azerbaijani": "Azerbeidzjaans",
|
||||||
"Hausa": "",
|
"Bangla": "Bangla",
|
||||||
"Hawaiian": "",
|
"Basque": "Baskisch",
|
||||||
"Hebrew": "",
|
"Belarusian": "Wit-Rrussisch",
|
||||||
"Hindi": "",
|
"Bosnian": "Bosnisch",
|
||||||
"Hmong": "",
|
"Bulgarian": "Bulgaars",
|
||||||
"Hungarian": "",
|
"Burmese": "Birmaans",
|
||||||
"Icelandic": "",
|
"Catalan": "Catalaans",
|
||||||
"Igbo": "",
|
"Cebuano": "Cebuano",
|
||||||
"Indonesian": "",
|
"Chinese (Simplified)": "Chinees (Veereenvoudigd)",
|
||||||
"Irish": "",
|
"Chinese (Traditional)": "Chinees (Traditioneel)",
|
||||||
"Italian": "",
|
"Corsican": "Corsicaans",
|
||||||
"Japanese": "",
|
"Croatian": "Kroatisch",
|
||||||
"Javanese": "",
|
"Czech": "Tsjechisch",
|
||||||
"Kannada": "",
|
"Danish": "Deens",
|
||||||
"Kazakh": "",
|
"Dutch": "Nederlands",
|
||||||
"Khmer": "",
|
"Esperanto": "Esperanto",
|
||||||
"Korean": "",
|
"Estonian": "Ests",
|
||||||
"Kurdish": "",
|
"Filipino": "Filipijns",
|
||||||
"Kyrgyz": "",
|
"Finnish": "Fins",
|
||||||
"Lao": "",
|
"French": "Frans",
|
||||||
"Latin": "",
|
"Galician": "Galicisch",
|
||||||
"Latvian": "",
|
"Georgian": "Georgisch",
|
||||||
"Lithuanian": "",
|
"German": "Duits",
|
||||||
"Luxembourgish": "",
|
"Greek": "Grieks",
|
||||||
"Macedonian": "",
|
"Gujarati": "Gujarati",
|
||||||
"Malagasy": "",
|
"Haitian Creole": "Creools",
|
||||||
"Malay": "",
|
"Hausa": "Hausa",
|
||||||
"Malayalam": "",
|
"Hawaiian": "Hawaïaans",
|
||||||
"Maltese": "",
|
"Hebrew": "Heebreeuws",
|
||||||
"Maori": "",
|
"Hindi": "Hindi",
|
||||||
"Marathi": "",
|
"Hmong": "Hmong",
|
||||||
"Mongolian": "",
|
"Hungarian": "Hongaars",
|
||||||
"Nepali": "",
|
"Icelandic": "IJslands",
|
||||||
"Norwegian": "",
|
"Igbo": "Igbo",
|
||||||
"Nyanja": "",
|
"Indonesian": "Indonesisch",
|
||||||
"Pashto": "",
|
"Irish": "Iers",
|
||||||
"Persian": "",
|
"Italian": "Italiaans",
|
||||||
"Polish": "",
|
"Japanese": "Japans",
|
||||||
"Portuguese": "",
|
"Javanese": "Javaans",
|
||||||
"Punjabi": "",
|
"Kannada": "Kannada",
|
||||||
"Romanian": "",
|
"Kazakh": "Kazachs",
|
||||||
"Russian": "",
|
"Khmer": "Khmer",
|
||||||
"Samoan": "",
|
"Korean": "Koreaans",
|
||||||
"Scottish Gaelic": "",
|
"Kurdish": "Koerdisch",
|
||||||
"Serbian": "",
|
"Kyrgyz": "Kirgizisch",
|
||||||
"Shona": "",
|
"Lao": "Laotiaans",
|
||||||
"Sindhi": "",
|
"Latin": "Latijns",
|
||||||
"Sinhala": "",
|
"Latvian": "Lets",
|
||||||
"Slovak": "",
|
"Lithuanian": "Litouws",
|
||||||
"Slovenian": "",
|
"Luxembourgish": "Luxemburgs",
|
||||||
"Somali": "",
|
"Macedonian": "Macedonisch",
|
||||||
"Southern Sotho": "",
|
"Malagasy": "Malagassisch",
|
||||||
"Spanish": "",
|
"Malay": "Maleisisch",
|
||||||
"Spanish (Latin America)": "",
|
"Malayalam": "Malayalam",
|
||||||
"Sundanese": "",
|
"Maltese": "Maltees",
|
||||||
"Swahili": "",
|
"Maori": "Maorisch",
|
||||||
"Swedish": "",
|
"Marathi": "Marathi",
|
||||||
"Tajik": "",
|
"Mongolian": "Mongools",
|
||||||
"Tamil": "",
|
"Nepali": "Nepalees",
|
||||||
"Telugu": "",
|
"Norwegian Bokmål": "Noors (Bokmål)",
|
||||||
"Thai": "",
|
"Nyanja": "Nyanja",
|
||||||
"Turkish": "",
|
"Pashto": "Pashto",
|
||||||
"Ukrainian": "",
|
"Persian": "Perzisch",
|
||||||
"Urdu": "",
|
"Polish": "Pools",
|
||||||
"Uzbek": "",
|
"Portuguese": "Portugees",
|
||||||
"Vietnamese": "",
|
"Punjabi": "Punjabi",
|
||||||
"Welsh": "",
|
"Romanian": "Roemeens",
|
||||||
"Western Frisian": "",
|
"Russian": "Russisch",
|
||||||
"Xhosa": "",
|
"Samoan": "Samoaans",
|
||||||
"Yiddish": "",
|
"Scottish Gaelic": "Schots-Gaelisch",
|
||||||
"Yoruba": "",
|
"Serbian": "Servisch",
|
||||||
"Zulu": "",
|
"Shona": "Shona",
|
||||||
"`x` years": "`x` jaar",
|
"Sindhi": "Sindhi",
|
||||||
"`x` months": "`x` maanden",
|
"Sinhala": "Sinhala",
|
||||||
"`x` weeks": "`x` weken",
|
"Slovak": "Slowaaks",
|
||||||
"`x` days": "`x` dagen",
|
"Slovenian": "Sloveens",
|
||||||
"`x` hours": "`x` uur",
|
"Somali": "Somalisch",
|
||||||
"`x` minutes": "`x` minuten",
|
"Southern Sotho": "Zuid-Sotho",
|
||||||
"`x` seconds": "`x` seconden",
|
"Spanish": "Spaans",
|
||||||
"Fallback comments: ": "",
|
"Spanish (Latin America)": "Spaans (Latijns-Amerika)",
|
||||||
"Popular": "",
|
"Sundanese": "Soedanees",
|
||||||
"Top": "",
|
"Swahili": "Swahili",
|
||||||
"About": "",
|
"Swedish": "Zweeds",
|
||||||
"Rating: ": "",
|
"Tajik": "Tajik",
|
||||||
"Language: ": "",
|
"Tamil": "Tamil",
|
||||||
"Default": "",
|
"Telugu": "Telugu",
|
||||||
"Music": "",
|
"Thai": "Thaïs",
|
||||||
"Gaming": "",
|
"Turkish": "Turks",
|
||||||
"News": "",
|
"Ukrainian": "Oekraïens",
|
||||||
"Movies": "",
|
"Urdu": "Urdu",
|
||||||
"Download": "",
|
"Uzbek": "Oezbeeks",
|
||||||
"Download as: ": "",
|
"Vietnamese": "Vietnamees",
|
||||||
"%A %B %-d, %Y": "",
|
"Welsh": "Welsh",
|
||||||
"(edited)": "",
|
"Western Frisian": "Fries",
|
||||||
"Youtube permalink of the comment": "",
|
"Xhosa": "Xhosa",
|
||||||
"`x` marked it with a ❤": "",
|
"Yiddish": "Joods",
|
||||||
"Audio mode": "",
|
"Yoruba": "Yoruba",
|
||||||
"Video mode": ""
|
"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: "
|
||||||
|
}
|
||||||
604
locales/pl.json
604
locales/pl.json
@@ -1,288 +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": "Alternatywny front-end dla 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",
|
||||||
"Administrator preferences": "",
|
"channel name - reverse": "po nazwie kanału od tyłu",
|
||||||
"Default homepage: ": "",
|
"Only show latest video from channel: ": "Pokazuj tylko najnowszy film z kanału: ",
|
||||||
"Feed menu: ": "",
|
"Only show latest unwatched video from channel: ": "Pokazuj tylko najnowszy nie obejrzany film z kanału: ",
|
||||||
"Top enabled? ": "",
|
"Only show unwatched: ": "Pokazuj tylko nie obejrzane: ",
|
||||||
"CAPTCHA enabled? ": "",
|
"Only show notifications (if there are any): ": "Pokazuj tylko powiadomienia (jeśli są): ",
|
||||||
"Login enabled? ": "",
|
"Enable web notifications": "",
|
||||||
"Registration enabled? ": "",
|
"`x` uploaded a video": "",
|
||||||
"Report statistics? ": "",
|
"`x` is live": "",
|
||||||
"Save preferences": "Zapisz preferencje",
|
"Data preferences": "Preferencje danych",
|
||||||
"Subscription manager": "Manager subskrybcji",
|
"Clear watch history": "Wyczyść historię",
|
||||||
"`x` subscriptions": "`x` subskrybcji",
|
"Import/export data": "Import/Eksport danych",
|
||||||
"Import/Export": "Import/Eksport",
|
"Change password": "",
|
||||||
"unsubscribe": "odsubskrybuj",
|
"Manage subscriptions": "Organizuj subskrybcje",
|
||||||
"Subscriptions": "Subskrybcje",
|
"Manage tokens": "",
|
||||||
"`x` unseen notifications": "`x` niewidzianych powiadomień",
|
"Watch history": "Historia",
|
||||||
"search": "szukaj",
|
"Delete account": "Usuń konto",
|
||||||
"Sign out": "Wyloguj",
|
"Administrator preferences": "Preferencje administratora",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Wydano na licencji AGPLv3 przez Omar Roth.",
|
"Default homepage: ": "Domyślna strona główna: ",
|
||||||
"Source available here.": "Kod źródłowy dostępny tutaj.",
|
"Feed menu: ": "",
|
||||||
"View JavaScript license information.": "Wyświetl informację o licencji JavaScript.",
|
"Top enabled? ": "",
|
||||||
"Trending": "Na czasie",
|
"CAPTCHA enabled? ": "CAPTCHA aktywna? ",
|
||||||
"Watch video on Youtube": "Zobacz film na YouTube",
|
"Login enabled? ": "Logowanie włączone? ",
|
||||||
"Genre: ": "Gatunek: ",
|
"Registration enabled? ": "Rejestracja włączona? ",
|
||||||
"License: ": "Licencja: ",
|
"Report statistics? ": "Raportować statystyki? ",
|
||||||
"Family friendly? ": "Przyjazny rodzinie? ",
|
"Save preferences": "Zapisz preferencje",
|
||||||
"Wilson score: ": "Punktacja Wilsona: ",
|
"Subscription manager": "Manager subskrybcji",
|
||||||
"Engagement: ": "Zaangażowanie: ",
|
"Token manager": "",
|
||||||
"Whitelisted regions: ": "Dostępny na obszarach: ",
|
"Token": "",
|
||||||
"Blacklisted regions: ": "Niedostępny na obszarach: ",
|
"`x` subscriptions": "`x` subskrybcji",
|
||||||
"Shared `x`": "Udostępniono `x`",
|
"`x` tokens": "",
|
||||||
"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.",
|
"Import/export": "Import/Eksport",
|
||||||
"View YouTube comments": "Wyświetl komentarze z YouTube",
|
"unsubscribe": "odsubskrybuj",
|
||||||
"View more comments on Reddit": "Wyświetl więcej komentarzy na Reddicie",
|
"revoke": "",
|
||||||
"View `x` comments": "Wyświetl `x` komentarzy",
|
"Subscriptions": "Subskrybcje",
|
||||||
"View Reddit comments": "Wyświetl komentarze z Redditta",
|
"`x` unseen notifications": "`x` nowych powiadomień",
|
||||||
"Hide replies": "Ukryj odpowiedzi",
|
"search": "szukaj",
|
||||||
"Show replies": "Pokaż odpowiedzi",
|
"Log out": "Wyloguj",
|
||||||
"Incorrect password": "Niepoprawne hasło",
|
"Released under the AGPLv3 by Omar Roth.": "Wydano na licencji AGPLv3 przez Omar Roth.",
|
||||||
"Quota exceeded, try again in a few hours": "Przekroczony limit zapytań, spróbuj ponownie za kilka godzin",
|
"Source available here.": "Kod źródłowy dostępny tutaj.",
|
||||||
"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.",
|
"View JavaScript license information.": "Wyświetl informację o licencji JavaScript.",
|
||||||
"Invalid TFA code": "Niepoprawny kod TFA",
|
"View privacy policy.": "Polityka prywatności.",
|
||||||
"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.",
|
"Trending": "Na czasie",
|
||||||
"Invalid answer": "Niepoprawna odpowiedź",
|
"Unlisted": "",
|
||||||
"Invalid CAPTCHA": "CAPTCHA wykonane błędnie",
|
"Watch on YouTube": "Zobacz film na YouTube",
|
||||||
"CAPTCHA is a required field": "CAPTCHA jest polem wymaganym",
|
"Hide annotations": "",
|
||||||
"User ID is a required field": "ID użytkownika jest polem wymaganym",
|
"Show annotations": "",
|
||||||
"Password is a required field": "Hasło jest polem wymaganym",
|
"Genre: ": "Gatunek: ",
|
||||||
"Invalid username or password": "Niepoprawny login lub hasło",
|
"License: ": "Licencja: ",
|
||||||
"Please sign in using 'Sign in with Google'": "Zaloguj się używając \"Zaloguj się przez Google\"",
|
"Family friendly? ": "Przyjazny rodzinie? ",
|
||||||
"Password cannot be empty": "Hasło nie może być puste",
|
"Wilson score: ": "Punktacja Wilsona: ",
|
||||||
"Password cannot be longer than 55 characters": "Hasło nie może być dłuższe niż 55 znaków",
|
"Engagement: ": "Zaangażowanie: ",
|
||||||
"Please sign in": "Proszę się zalogować",
|
"Whitelisted regions: ": "Dostępny na obszarach: ",
|
||||||
"Invidious Private Feed for `x`": "",
|
"Blacklisted regions: ": "Niedostępny na obszarach: ",
|
||||||
"channel:`x`": "kanał:`x",
|
"Shared `x`": "Udostępniono `x`",
|
||||||
"Deleted or invalid channel": "Usunięty lub niepoprawny kanał",
|
"`x` views": "`x` wyświetleń",
|
||||||
"This channel does not exist.": "Ten kanał nie istnieje.",
|
"Premieres in `x`": "Publikacja za `x`",
|
||||||
"Could not get channel info.": "Nie udało się uzyskać informacji o kanale.",
|
"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.",
|
||||||
"Could not fetch comments": "Nie udało się pobrać komentarzy",
|
"View YouTube comments": "Wyświetl komentarze z YouTube",
|
||||||
"View `x` replies": "Wyświetl `x` odpowiedzi",
|
"View more comments on Reddit": "Wyświetl więcej komentarzy na Reddicie",
|
||||||
"`x` ago": "`x` temu",
|
"View `x` comments": "Wyświetl `x` komentarzy",
|
||||||
"Load more": "Wczytaj więcej",
|
"View Reddit comments": "Wyświetl komentarze z Redditta",
|
||||||
"`x` points": "`x` punktów",
|
"Hide replies": "Ukryj odpowiedzi",
|
||||||
"Could not create mix.": "Nie udało się utworzyć miksu.",
|
"Show replies": "Pokaż odpowiedzi",
|
||||||
"Playlist is empty": "Lista odtwarzania jest pusta",
|
"Incorrect password": "Niepoprawne hasło",
|
||||||
"Invalid playlist.": "Niepoprawna lista.",
|
"Quota exceeded, try again in a few hours": "Przekroczony limit zapytań, spróbuj ponownie za kilka godzin",
|
||||||
"Playlist does not exist.": "Lista odtwarzania nie istnieje.",
|
"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.",
|
||||||
"Could not pull trending pages.": "Nie udało się pobrać strony na czasie.",
|
"Invalid TFA code": "Niepoprawny kod TFA",
|
||||||
"Hidden field \"challenge\" is a required field": "Ukryte pole \"wyzwanie\" jest polem wymaganym",
|
"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.",
|
||||||
"Hidden field \"token\" is a required field": "Ukryte pole \"token\" jest polem wymaganym",
|
"Wrong answer": "Niepoprawna odpowiedź",
|
||||||
"Invalid challenge": "Niepoprawne wyzwanie",
|
"Erroneous CAPTCHA": "CAPTCHA wykonane błędnie",
|
||||||
"Invalid token": "Niepoprawny token",
|
"CAPTCHA is a required field": "CAPTCHA jest polem wymaganym",
|
||||||
"Invalid user": "Niepoprawny użytkownik",
|
"User ID is a required field": "ID użytkownika jest polem wymaganym",
|
||||||
"Token is expired, please try again": "Token wygasł, spróbuj ponownie",
|
"Password is a required field": "Hasło jest polem wymaganym",
|
||||||
"English": "angielski",
|
"Wrong username or password": "Niepoprawny login lub hasło",
|
||||||
"English (auto-generated)": "angielski (automatycznie generowane)",
|
"Please sign in using 'Log in with Google'": "Zaloguj się używając \"Zaloguj się przez Google\"",
|
||||||
"Afrikaans": "",
|
"Password cannot be empty": "Hasło nie może być puste",
|
||||||
"Albanian": "albański",
|
"Password cannot be longer than 55 characters": "Hasło nie może być dłuższe niż 55 znaków",
|
||||||
"Amharic": "",
|
"Please log in": "Proszę się zalogować",
|
||||||
"Arabic": "arabski",
|
"Invidious Private Feed for `x`": "",
|
||||||
"Armenian": "",
|
"channel:`x`": "kanał:`x",
|
||||||
"Azerbaijani": "",
|
"Deleted or invalid channel": "Usunięty lub niepoprawny kanał",
|
||||||
"Bangla": "",
|
"This channel does not exist.": "Ten kanał nie istnieje.",
|
||||||
"Basque": "",
|
"Could not get channel info.": "Nie udało się uzyskać informacji o kanale.",
|
||||||
"Belarusian": "białoruski",
|
"Could not fetch comments": "Nie udało się pobrać komentarzy",
|
||||||
"Bosnian": "bośniacki",
|
"View `x` replies": "Wyświetl `x` odpowiedzi",
|
||||||
"Bulgarian": "bułgarski",
|
"`x` ago": "`x` temu",
|
||||||
"Burmese": "birmański",
|
"Load more": "Wczytaj więcej",
|
||||||
"Catalan": "kataloński",
|
"`x` points": "`x` punktów",
|
||||||
"Cebuano": "",
|
"Could not create mix.": "Nie udało się utworzyć miksu.",
|
||||||
"Chinese (Simplified)": "chiński (uproszczony)",
|
"Empty playlist": "Lista odtwarzania jest pusta",
|
||||||
"Chinese (Traditional)": "chiński (tradycyjny)",
|
"Not a playlist.": "Niepoprawna lista.",
|
||||||
"Corsican": "korsykański",
|
"Playlist does not exist.": "Lista odtwarzania nie istnieje.",
|
||||||
"Croatian": "chorwacki",
|
"Could not pull trending pages.": "Nie udało się pobrać strony na czasie.",
|
||||||
"Czech": "czeski",
|
"Hidden field \"challenge\" is a required field": "Ukryte pole \"wyzwanie\" jest polem wymaganym",
|
||||||
"Danish": "duński",
|
"Hidden field \"token\" is a required field": "Ukryte pole \"token\" jest polem wymaganym",
|
||||||
"Dutch": "holenderski",
|
"Erroneous challenge": "Niepoprawne wyzwanie",
|
||||||
"Esperanto": "esperanto",
|
"Erroneous token": "Niepoprawny token",
|
||||||
"Estonian": "estoński",
|
"No such user": "Niepoprawny użytkownik",
|
||||||
"Filipino": "filipiński",
|
"Token is expired, please try again": "Token wygasł, spróbuj ponownie",
|
||||||
"Finnish": "fiński",
|
"English": "angielski",
|
||||||
"French": "francuski",
|
"English (auto-generated)": "angielski (automatycznie generowane)",
|
||||||
"Galician": "galicyjski",
|
"Afrikaans": "afrykanerski",
|
||||||
"Georgian": "gruziński",
|
"Albanian": "albański",
|
||||||
"German": "niemiecki",
|
"Amharic": "amharski",
|
||||||
"Greek": "grecki",
|
"Arabic": "arabski",
|
||||||
"Gujarati": "",
|
"Armenian": "armeński",
|
||||||
"Haitian Creole": "",
|
"Azerbaijani": "azerski",
|
||||||
"Hausa": "",
|
"Bangla": "bengalski",
|
||||||
"Hawaiian": "hawajski",
|
"Basque": "baskijski",
|
||||||
"Hebrew": "hebrajski",
|
"Belarusian": "białoruski",
|
||||||
"Hindi": "hindi",
|
"Bosnian": "bośniacki",
|
||||||
"Hmong": "",
|
"Bulgarian": "bułgarski",
|
||||||
"Hungarian": "węgierski",
|
"Burmese": "birmański",
|
||||||
"Icelandic": "islandzki",
|
"Catalan": "kataloński",
|
||||||
"Igbo": "",
|
"Cebuano": "cebuański",
|
||||||
"Indonesian": "indonezyjski",
|
"Chinese (Simplified)": "chiński (uproszczony)",
|
||||||
"Irish": "irlandzki",
|
"Chinese (Traditional)": "chiński (tradycyjny)",
|
||||||
"Italian": "włoski",
|
"Corsican": "korsykański",
|
||||||
"Japanese": "japoński",
|
"Croatian": "chorwacki",
|
||||||
"Javanese": "jawajski",
|
"Czech": "czeski",
|
||||||
"Kannada": "",
|
"Danish": "duński",
|
||||||
"Kazakh": "kazachski",
|
"Dutch": "holenderski",
|
||||||
"Khmer": "",
|
"Esperanto": "esperanto",
|
||||||
"Korean": "koreański",
|
"Estonian": "estoński",
|
||||||
"Kurdish": "kurdyjski",
|
"Filipino": "filipiński",
|
||||||
"Kyrgyz": "kirgiski",
|
"Finnish": "fiński",
|
||||||
"Lao": "",
|
"French": "francuski",
|
||||||
"Latin": "łaciński",
|
"Galician": "galicyjski",
|
||||||
"Latvian": "łotewski",
|
"Georgian": "gruziński",
|
||||||
"Lithuanian": "litewski",
|
"German": "niemiecki",
|
||||||
"Luxembourgish": "luksemburski",
|
"Greek": "grecki",
|
||||||
"Macedonian": "macedoński",
|
"Gujarati": "gudźarati",
|
||||||
"Malagasy": "malgaski",
|
"Haitian Creole": "kreolski haitański",
|
||||||
"Malay": "malajski",
|
"Hausa": "hausa",
|
||||||
"Malayalam": "",
|
"Hawaiian": "hawajski",
|
||||||
"Maltese": "maltański",
|
"Hebrew": "hebrajski",
|
||||||
"Maori": "",
|
"Hindi": "hindi",
|
||||||
"Marathi": "",
|
"Hmong": "hmong",
|
||||||
"Mongolian": "mongolski",
|
"Hungarian": "węgierski",
|
||||||
"Nepali": "nepalski",
|
"Icelandic": "islandzki",
|
||||||
"Norwegian": "norweski",
|
"Igbo": "ibo",
|
||||||
"Nyanja": "",
|
"Indonesian": "indonezyjski",
|
||||||
"Pashto": "",
|
"Irish": "irlandzki",
|
||||||
"Persian": "perski",
|
"Italian": "włoski",
|
||||||
"Polish": "polski",
|
"Japanese": "japoński",
|
||||||
"Portuguese": "portugalski",
|
"Javanese": "jawajski",
|
||||||
"Punjabi": "",
|
"Kannada": "kannada",
|
||||||
"Romanian": "rumuński",
|
"Kazakh": "kazachski",
|
||||||
"Russian": "rosyjski",
|
"Khmer": "khmerski",
|
||||||
"Samoan": "",
|
"Korean": "koreański",
|
||||||
"Scottish Gaelic": "",
|
"Kurdish": "kurdyjski",
|
||||||
"Serbian": "serbski",
|
"Kyrgyz": "kirgiski",
|
||||||
"Shona": "",
|
"Lao": "laotański",
|
||||||
"Sindhi": "",
|
"Latin": "łaciński",
|
||||||
"Sinhala": "",
|
"Latvian": "łotewski",
|
||||||
"Slovak": "słowacki",
|
"Lithuanian": "litewski",
|
||||||
"Slovenian": "słoweński",
|
"Luxembourgish": "luksemburski",
|
||||||
"Somali": "somalijski",
|
"Macedonian": "macedoński",
|
||||||
"Southern Sotho": "",
|
"Malagasy": "malgaski",
|
||||||
"Spanish": "hiszpański",
|
"Malay": "malajski",
|
||||||
"Spanish (Latin America)": "hiszpański (ameryka łacińska)",
|
"Malayalam": "malajalam",
|
||||||
"Sundanese": "",
|
"Maltese": "maltański",
|
||||||
"Swahili": "",
|
"Maori": "maoryski",
|
||||||
"Swedish": "szwedzki",
|
"Marathi": "marathi",
|
||||||
"Tajik": "",
|
"Mongolian": "mongolski",
|
||||||
"Tamil": "",
|
"Nepali": "nepalski",
|
||||||
"Telugu": "",
|
"Norwegian Bokmål": "norweski",
|
||||||
"Thai": "tajski",
|
"Nyanja": "njandża",
|
||||||
"Turkish": "turecki",
|
"Pashto": "paszto",
|
||||||
"Ukrainian": "ukraiński",
|
"Persian": "perski",
|
||||||
"Urdu": "",
|
"Polish": "polski",
|
||||||
"Uzbek": "uzbecki",
|
"Portuguese": "portugalski",
|
||||||
"Vietnamese": "wietnamski",
|
"Punjabi": "pendżabski",
|
||||||
"Welsh": "walijski",
|
"Romanian": "rumuński",
|
||||||
"Western Frisian": "",
|
"Russian": "rosyjski",
|
||||||
"Xhosa": "",
|
"Samoan": "samoański",
|
||||||
"Yiddish": "",
|
"Scottish Gaelic": "gaelicki szkocki",
|
||||||
"Yoruba": "",
|
"Serbian": "serbski",
|
||||||
"Zulu": "",
|
"Shona": "shona",
|
||||||
"`x` years": "`x` lat",
|
"Sindhi": "sindhi",
|
||||||
"`x` months": "`x` miesięcy",
|
"Sinhala": "syngaleski",
|
||||||
"`x` weeks": "`x` tygodni",
|
"Slovak": "słowacki",
|
||||||
"`x` days": "`x` dni",
|
"Slovenian": "słoweński",
|
||||||
"`x` hours": "`x` godzin",
|
"Somali": "somalijski",
|
||||||
"`x` minutes": "`x` minut",
|
"Southern Sotho": "sotho południowy",
|
||||||
"`x` seconds": "`x` sekund",
|
"Spanish": "hiszpański",
|
||||||
"Fallback comments: ": "Zastępcze komentarze: ",
|
"Spanish (Latin America)": "hiszpański (ameryka łacińska)",
|
||||||
"Popular": "Popularne",
|
"Sundanese": "sundajski",
|
||||||
"Top": "Na czasie",
|
"Swahili": "suahili",
|
||||||
"About": "Informacje",
|
"Swedish": "szwedzki",
|
||||||
"Rating: ": "Ocena: ",
|
"Tajik": "tadżycki",
|
||||||
"Language: ": "Język: ",
|
"Tamil": "tamilski",
|
||||||
"Default": "",
|
"Telugu": "telugu",
|
||||||
"Music": "Muzyka",
|
"Thai": "tajski",
|
||||||
"Gaming": "Gry",
|
"Turkish": "turecki",
|
||||||
"News": "Wiadomości",
|
"Ukrainian": "ukraiński",
|
||||||
"Movies": "Filmy",
|
"Urdu": "urdu",
|
||||||
"Download": "Pobierz",
|
"Uzbek": "uzbecki",
|
||||||
"Download as: ": "Pobierz jako: ",
|
"Vietnamese": "wietnamski",
|
||||||
"%A %B %-d, %Y": "",
|
"Welsh": "walijski",
|
||||||
"(edited)": "(edytowany)",
|
"Western Frisian": "zachodniofryzyjski",
|
||||||
"Youtube permalink of the comment": "Odnośnik bezpośredni do komentarza na YouTube",
|
"Xhosa": "xhosa",
|
||||||
"`x` marked it with a ❤": "",
|
"Yiddish": "jidysz",
|
||||||
"Audio mode": "Tryb audio",
|
"Yoruba": "joruba",
|
||||||
"Video mode": "Tryb wideo"
|
"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: "
|
||||||
|
}
|
||||||
610
locales/ru.json
610
locales/ru.json
@@ -1,294 +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: ": "Показывать только последние видео с каналов: ",
|
||||||
"Administrator preferences": "",
|
"Only show latest unwatched video from channel: ": "Показывать только непросмотренные видео с каналов: ",
|
||||||
"Default homepage: ": "",
|
"Only show unwatched: ": "Показывать только непросмотренные видео: ",
|
||||||
"Feed menu: ": "",
|
"Only show notifications (if there are any): ": "Показывать только оповещения, если они есть: ",
|
||||||
"Top enabled? ": "",
|
"Enable web notifications": "",
|
||||||
"CAPTCHA enabled? ": "",
|
"`x` uploaded a video": "",
|
||||||
"Login enabled? ": "",
|
"`x` is live": "",
|
||||||
"Registration enabled? ": "",
|
"Data preferences": "Настройки данных",
|
||||||
"Report statistics? ": "",
|
"Clear watch history": "Очистить историю просмотров",
|
||||||
"Save preferences": "Сохранить настройки",
|
"Import/export data": "Импорт/Экспорт данных",
|
||||||
"Subscription manager": "Менеджер подписок",
|
"Change password": "Изменить пароль",
|
||||||
"`x` subscriptions": "`x` подписок",
|
"Manage subscriptions": "Управлять подписками",
|
||||||
"Import/Export": "Импорт/Экспорт",
|
"Manage tokens": "Управлять токенами",
|
||||||
"unsubscribe": "отписаться",
|
"Watch history": "История просмотров",
|
||||||
"Subscriptions": "Подписки",
|
"Delete account": "Удалить аккаунт",
|
||||||
"`x` unseen notifications": "`x` новых оповещений",
|
"Administrator preferences": "Администраторские настройки",
|
||||||
"search": "поиск",
|
"Default homepage: ": "Главная страница по умолчанию: ",
|
||||||
"Sign out": "Выйти",
|
"Feed menu: ": "Меню ленты видео: ",
|
||||||
"Released under the AGPLv3 by Omar Roth.": "Распространяется Omar Roth по AGPLv3.",
|
"Top enabled? ": "Включить топ видео? ",
|
||||||
"Source available here.": "Исходный код доступен здесь.",
|
"CAPTCHA enabled? ": "Включить капчу? ",
|
||||||
"Liberapay: ": "Liberapay: ",
|
"Login enabled? ": "Включить авторизацию? ",
|
||||||
"Patreon: ": "Patreon: ",
|
"Registration enabled? ": "Включить регистрацию? ",
|
||||||
"BTC: ": "BTC: ",
|
"Report statistics? ": "Сообщать статистику? ",
|
||||||
"BCH: ": "BCH: ",
|
"Save preferences": "Сохранить настройки",
|
||||||
"View JavaScript license information.": "Посмотреть лицензии JavaScript кода.",
|
"Subscription manager": "Менеджер подписок",
|
||||||
"Trending": "В тренде",
|
"Token manager": "Менеджер токенов",
|
||||||
"Watch video on Youtube": "Смотреть на YouTube",
|
"Token": "Токен",
|
||||||
"Genre: ": "Жанр: ",
|
"`x` subscriptions": "`x` подписок",
|
||||||
"License: ": "Лицензия: ",
|
"`x` tokens": "`x` токенов",
|
||||||
"Family friendly? ": "Семейный просмотр: ",
|
"Import/export": "Импорт и экспорт",
|
||||||
"Wilson score: ": "Рейтинг Вильсона: ",
|
"unsubscribe": "отписаться",
|
||||||
"Engagement: ": "Вовлеченность: ",
|
"revoke": "отозвать",
|
||||||
"Whitelisted regions: ": "Доступно для: ",
|
"Subscriptions": "Подписки",
|
||||||
"Blacklisted regions: ": "Недоступно для: ",
|
"`x` unseen notifications": "`x` непросмотренных оповещений",
|
||||||
"Shared `x`": "Опубликовано `x`",
|
"search": "поиск",
|
||||||
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "Похоже, что у Вас отключен JavaScript. Нажмите сюда, чтобы увидеть комментарии (учтите, что они могут загружаться дольше).",
|
"Log out": "Выйти",
|
||||||
"View YouTube comments": "Смотреть комментарии с YouTube",
|
"Released under the AGPLv3 by Omar Roth.": "Реализовано Омаром Ротом по лицензии AGPLv3.",
|
||||||
"View more comments on Reddit": "Больше комментариев на Reddit",
|
"Source available here.": "Исходный код доступен здесь.",
|
||||||
"View `x` comments": "Показать `x` комментариев",
|
"View JavaScript license information.": "Посмотреть информацию по лицензии JavaScript.",
|
||||||
"View Reddit comments": "Смотреть комментарии с Reddit",
|
"View privacy policy.": "Посмотреть политику конфиденциальности.",
|
||||||
"Hide replies": "Скрыть ответы",
|
"Trending": "В тренде",
|
||||||
"Show replies": "Показать ответы",
|
"Unlisted": "Нет в списке",
|
||||||
"Incorrect password": "Неправильный пароль",
|
"Watch on YouTube": "Смотреть на YouTube",
|
||||||
"Quota exceeded, try again in a few hours": "Превышена квота, попробуйте снова через несколько часов",
|
"Hide annotations": "Скрыть аннотации",
|
||||||
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "Вход не выполнен, проверьте, не включена ли двухфакторная аутентификация.",
|
"Show annotations": "Показать аннотации",
|
||||||
"Invalid TFA code": "Неправильный TFA код",
|
"Genre: ": "Жанр: ",
|
||||||
"Login failed. This may be because two-factor authentication is not enabled on your account.": "Не удалось войти. Это может быть из-за того, что в вашем аккаунте не включена двухфакторная аутентификация.",
|
"License: ": "Лицензия: ",
|
||||||
"Invalid answer": "Неверный ответ",
|
"Family friendly? ": "Семейный просмотр: ",
|
||||||
"Invalid CAPTCHA": "Неверная капча",
|
"Wilson score: ": "Рейтинг Уилсона: ",
|
||||||
"CAPTCHA is a required field": "Необходимо ввести капчу",
|
"Engagement: ": "Вовлечённость: ",
|
||||||
"User ID is a required field": "Необходимо ввести идентификатор пользователя",
|
"Whitelisted regions: ": "Доступно в регионах: ",
|
||||||
"Password is a required field": "Необходимо ввести пароль",
|
"Blacklisted regions: ": "Недоступно в регионах: ",
|
||||||
"Invalid username or password": "Недопустимый пароль или имя пользователя",
|
"Shared `x`": "Опубликовано `x`",
|
||||||
"Please sign in using 'Sign in with Google'": "Пожалуйста войдите через Google",
|
"`x` views": "`x` просмотров",
|
||||||
"Password cannot be empty": "Пароль не может быть пустым",
|
"Premieres in `x`": "Премьера через `x`",
|
||||||
"Password cannot be longer than 55 characters": "Пароль не может быть длиннее 55 символов",
|
"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. Чтобы увидить комментарии, нажмите сюда, но учтите: они могут загружаться немного медленнее.",
|
||||||
"Please sign in": "Пожалуйста, войдите",
|
"View YouTube comments": "Смотреть комментарии с YouTube",
|
||||||
"Invidious Private Feed for `x`": "Приватная лента Invidious для `x`",
|
"View more comments on Reddit": "Посмотреть больше комментариев на Reddit",
|
||||||
"channel:`x`": "канал: `x`",
|
"View `x` comments": "Показать `x` комментариев",
|
||||||
"Deleted or invalid channel": "Канал удален или не найден",
|
"View Reddit comments": "Смотреть комментарии с Reddit",
|
||||||
"This channel does not exist.": "Такой канал не существует.",
|
"Hide replies": "Скрыть ответы",
|
||||||
"Could not get channel info.": "Невозможно получить информацию о канале.",
|
"Show replies": "Показать ответы",
|
||||||
"Could not fetch comments": "Невозможно получить комментарии",
|
"Incorrect password": "Неправильный пароль",
|
||||||
"View `x` replies": "Показать `x` ответов",
|
"Quota exceeded, try again in a few hours": "Лимит превышен, попробуйте снова через несколько часов",
|
||||||
"`x` ago": "`x` назад",
|
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Войти не удаётся. Проверьте, не включена ли двухфакторная аутентификация (по коду или смс).",
|
||||||
"Load more": "Загрузить больше",
|
"Invalid TFA code": "Неправильный код двухфакторной аутентификации",
|
||||||
"`x` points": "`x` очков",
|
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Не удаётся войти. Это может быть из-за того, что в вашем аккаунте не включена двухфакторная аутентификация.",
|
||||||
"Could not create mix.": "Невозможно создать \"микс\".",
|
"Wrong answer": "Неправильный ответ",
|
||||||
"Playlist is empty": "Плейлист пуст",
|
"Erroneous CAPTCHA": "Неправильная капча",
|
||||||
"Invalid playlist.": "Некорректный плейлист.",
|
"CAPTCHA is a required field": "Необходимо пройти капчу",
|
||||||
"Playlist does not exist.": "Плейлист не существует.",
|
"User ID is a required field": "Необходимо ввести ID пользователя",
|
||||||
"Could not pull trending pages.": "Невозможно получить страницы \"в тренде\".",
|
"Password is a required field": "Необходимо ввести пароль",
|
||||||
"Hidden field \"challenge\" is a required field": "Необходимо заполнить скрытое поле \"challenge\"",
|
"Wrong username or password": "Неправильный логин или пароль",
|
||||||
"Hidden field \"token\" is a required field": "Необходимо заполнить скрытое поле \"токен\"",
|
"Please sign in using 'Log in with Google'": "Пожалуйста, нажмите «Войти через Google»",
|
||||||
"Invalid challenge": "Неправильный ответ в \"challenge\"",
|
"Password cannot be empty": "Пароль не может быть пустым",
|
||||||
"Invalid token": "Неправильный токен",
|
"Password cannot be longer than 55 characters": "Пароль не может быть длиннее 55 символов",
|
||||||
"Invalid user": "Недопустимое имя пользователя",
|
"Please log in": "Пожалуйста, войдите",
|
||||||
"Token is expired, please try again": "Срок действия токена истек, попробуйте позже",
|
"Invidious Private Feed for `x`": "Приватная лента Invidious для `x`",
|
||||||
"English": "Английский",
|
"channel:`x`": "канал: `x`",
|
||||||
"English (auto-generated)": "Английский (созданы автоматически)",
|
"Deleted or invalid channel": "Канал удалён или не найден",
|
||||||
"Afrikaans": "Африкаанс",
|
"This channel does not exist.": "Такого канала не существует.",
|
||||||
"Albanian": "Албанский",
|
"Could not get channel info.": "Не удаётся получить информацию об этом канале.",
|
||||||
"Amharic": "Амхарский",
|
"Could not fetch comments": "Не удаётся загрузить комментарии",
|
||||||
"Arabic": "Арабский",
|
"View `x` replies": "Показать `x` ответов",
|
||||||
"Armenian": "Армянский",
|
"`x` ago": "`x` назад",
|
||||||
"Azerbaijani": "Азербайджанский",
|
"Load more": "Загрузить больше",
|
||||||
"Bangla": "Бенгальский",
|
"`x` points": "`x` очков",
|
||||||
"Basque": "Баскский",
|
"Could not create mix.": "Не удаётся создать микс.",
|
||||||
"Belarusian": "Белорусский",
|
"Empty playlist": "Плейлист пуст",
|
||||||
"Bosnian": "Боснийский",
|
"Not a playlist.": "Некорректный плейлист.",
|
||||||
"Bulgarian": "Болгарский",
|
"Playlist does not exist.": "Плейлист не существует.",
|
||||||
"Burmese": "Бирманский",
|
"Could not pull trending pages.": "Не удаётся загрузить страницы «в тренде».",
|
||||||
"Catalan": "Каталонский",
|
"Hidden field \"challenge\" is a required field": "Необходимо заполнить скрытое поле «challenge»",
|
||||||
"Cebuano": "Себуанский",
|
"Hidden field \"token\" is a required field": "Необходимо заполнить скрытое поле «токен»",
|
||||||
"Chinese (Simplified)": "Китайский (упрощенный)",
|
"Erroneous challenge": "Неправильный ответ в «challenge»",
|
||||||
"Chinese (Traditional)": "Китайский (традиционный)",
|
"Erroneous token": "Неправильный токен",
|
||||||
"Corsican": "Корсиканский",
|
"No such user": "Недопустимое имя пользователя",
|
||||||
"Croatian": "Хорватский",
|
"Token is expired, please try again": "Срок действия токена истёк, попробуйте позже",
|
||||||
"Czech": "Чешский",
|
"English": "Английский",
|
||||||
"Danish": "Датский",
|
"English (auto-generated)": "Английский (созданы автоматически)",
|
||||||
"Dutch": "Нидерландский",
|
"Afrikaans": "Африкаанс",
|
||||||
"Esperanto": "Эсперанто",
|
"Albanian": "Албанский",
|
||||||
"Estonian": "Эстонский",
|
"Amharic": "Амхарский",
|
||||||
"Filipino": "Филиппинский",
|
"Arabic": "Арабский",
|
||||||
"Finnish": "Финский",
|
"Armenian": "Армянский",
|
||||||
"French": "Французский",
|
"Azerbaijani": "Азербайджанский",
|
||||||
"Galician": "Галисийский",
|
"Bangla": "Бенгальский",
|
||||||
"Georgian": "Грузинский",
|
"Basque": "Баскский",
|
||||||
"German": "Немецкий",
|
"Belarusian": "Белорусский",
|
||||||
"Greek": "Греческий",
|
"Bosnian": "Боснийский",
|
||||||
"Gujarati": "Гуджаратский",
|
"Bulgarian": "Болгарский",
|
||||||
"Haitian Creole": "Гаит. креольский",
|
"Burmese": "Бирманский",
|
||||||
"Hausa": "Хауса",
|
"Catalan": "Каталонский",
|
||||||
"Hawaiian": "Гавайский",
|
"Cebuano": "Себуанский",
|
||||||
"Hebrew": "Иврит",
|
"Chinese (Simplified)": "Китайский (упрощенный)",
|
||||||
"Hindi": "Хинди",
|
"Chinese (Traditional)": "Китайский (традиционный)",
|
||||||
"Hmong": "Хмонг (мяо)",
|
"Corsican": "Корсиканский",
|
||||||
"Hungarian": "Венгерский",
|
"Croatian": "Хорватский",
|
||||||
"Icelandic": "Исландский",
|
"Czech": "Чешский",
|
||||||
"Igbo": "Игбо",
|
"Danish": "Датский",
|
||||||
"Indonesian": "Индонезийский",
|
"Dutch": "Нидерландский",
|
||||||
"Irish": "Ирландский",
|
"Esperanto": "Эсперанто",
|
||||||
"Italian": "Итальянский",
|
"Estonian": "Эстонский",
|
||||||
"Japanese": "Японский",
|
"Filipino": "Филиппинский",
|
||||||
"Javanese": "Яванский",
|
"Finnish": "Финский",
|
||||||
"Kannada": "Каннада",
|
"French": "Французский",
|
||||||
"Kazakh": "Казахский",
|
"Galician": "Галисийский",
|
||||||
"Khmer": "Кхмерский",
|
"Georgian": "Грузинский",
|
||||||
"Korean": "Корейский",
|
"German": "Немецкий",
|
||||||
"Kurdish": "Курдский",
|
"Greek": "Греческий",
|
||||||
"Kyrgyz": "Киргизский",
|
"Gujarati": "Гуджаратский",
|
||||||
"Lao": "Лаосский",
|
"Haitian Creole": "Гаит. креольский",
|
||||||
"Latin": "Латинский",
|
"Hausa": "Хауса",
|
||||||
"Latvian": "Латышский",
|
"Hawaiian": "Гавайский",
|
||||||
"Lithuanian": "Литовский",
|
"Hebrew": "Иврит",
|
||||||
"Luxembourgish": "Люксембургский",
|
"Hindi": "Хинди",
|
||||||
"Macedonian": "Македонский",
|
"Hmong": "Хмонг (мяо)",
|
||||||
"Malagasy": "Малагасийский",
|
"Hungarian": "Венгерский",
|
||||||
"Malay": "Малайский",
|
"Icelandic": "Исландский",
|
||||||
"Malayalam": "Малаялам",
|
"Igbo": "Игбо",
|
||||||
"Maltese": "Мальтийский",
|
"Indonesian": "Индонезийский",
|
||||||
"Maori": "Маори",
|
"Irish": "Ирландский",
|
||||||
"Marathi": "Маратхи",
|
"Italian": "Итальянский",
|
||||||
"Mongolian": "Монгольская",
|
"Japanese": "Японский",
|
||||||
"Nepali": "Непальский",
|
"Javanese": "Яванский",
|
||||||
"Norwegian": "Норвежский",
|
"Kannada": "Каннада",
|
||||||
"Nyanja": "Ньянджа",
|
"Kazakh": "Казахский",
|
||||||
"Pashto": "Пушту",
|
"Khmer": "Кхмерский",
|
||||||
"Persian": "Персидский",
|
"Korean": "Корейский",
|
||||||
"Polish": "Польский",
|
"Kurdish": "Курдский",
|
||||||
"Portuguese": "Португальский",
|
"Kyrgyz": "Киргизский",
|
||||||
"Punjabi": "Панджаби",
|
"Lao": "Лаосский",
|
||||||
"Romanian": "Румынский",
|
"Latin": "Латинский",
|
||||||
"Russian": "Русский",
|
"Latvian": "Латышский",
|
||||||
"Samoan": "Самоанский",
|
"Lithuanian": "Литовский",
|
||||||
"Scottish Gaelic": "Шотландский (гэльский)",
|
"Luxembourgish": "Люксембургский",
|
||||||
"Serbian": "Сербский",
|
"Macedonian": "Македонский",
|
||||||
"Shona": "Шона",
|
"Malagasy": "Малагасийский",
|
||||||
"Sindhi": "Синдхи",
|
"Malay": "Малайский",
|
||||||
"Sinhala": "Сингальский",
|
"Malayalam": "Малаялам",
|
||||||
"Slovak": "Словацкий",
|
"Maltese": "Мальтийский",
|
||||||
"Slovenian": "Словенский",
|
"Maori": "Маори",
|
||||||
"Somali": "Сомалийский",
|
"Marathi": "Маратхи",
|
||||||
"Southern Sotho": "Сесото (южный сото)",
|
"Mongolian": "Монгольская",
|
||||||
"Spanish": "Испанский",
|
"Nepali": "Непальский",
|
||||||
"Spanish (Latin America)": "Испанский (Латинская Америка)",
|
"Norwegian Bokmål": "Норвежский",
|
||||||
"Sundanese": "Сунданский",
|
"Nyanja": "Ньянджа",
|
||||||
"Swahili": "Суахили",
|
"Pashto": "Пушту",
|
||||||
"Swedish": "Шведский",
|
"Persian": "Персидский",
|
||||||
"Tajik": "Таджикский",
|
"Polish": "Польский",
|
||||||
"Tamil": "Тамильский",
|
"Portuguese": "Португальский",
|
||||||
"Telugu": "Телугу",
|
"Punjabi": "Панджаби",
|
||||||
"Thai": "Тайский",
|
"Romanian": "Румынский",
|
||||||
"Turkish": "Турецкий",
|
"Russian": "Русский",
|
||||||
"Ukrainian": "Украинский",
|
"Samoan": "Самоанский",
|
||||||
"Urdu": "Урду",
|
"Scottish Gaelic": "Шотландский (гэльский)",
|
||||||
"Uzbek": "Узбекский",
|
"Serbian": "Сербский",
|
||||||
"Vietnamese": "Вьетнамский",
|
"Shona": "Шона",
|
||||||
"Welsh": "Валлийский",
|
"Sindhi": "Синдхи",
|
||||||
"Western Frisian": "Западнофризский",
|
"Sinhala": "Сингальский",
|
||||||
"Xhosa": "Коса",
|
"Slovak": "Словацкий",
|
||||||
"Yiddish": "Идиш",
|
"Slovenian": "Словенский",
|
||||||
"Yoruba": "Йоруба",
|
"Somali": "Сомалийский",
|
||||||
"Zulu": "Зулусский",
|
"Southern Sotho": "Сесото (южный сото)",
|
||||||
"`x` years": "`x` лет",
|
"Spanish": "Испанский",
|
||||||
"`x` months": "`x` месяцев",
|
"Spanish (Latin America)": "Испанский (Латинская Америка)",
|
||||||
"`x` weeks": "`x` недель",
|
"Sundanese": "Сунданский",
|
||||||
"`x` days": "`x` дней",
|
"Swahili": "Суахили",
|
||||||
"`x` hours": "`x` часов",
|
"Swedish": "Шведский",
|
||||||
"`x` minutes": "`x` минут",
|
"Tajik": "Таджикский",
|
||||||
"`x` seconds": "`x` секунд",
|
"Tamil": "Тамильский",
|
||||||
"Fallback comments: ": "Резервные комментарии: ",
|
"Telugu": "Телугу",
|
||||||
"Popular": "Популярное",
|
"Thai": "Тайский",
|
||||||
"Top": "Топ",
|
"Turkish": "Турецкий",
|
||||||
"About": "О сайте",
|
"Ukrainian": "Украинский",
|
||||||
"Rating: ": "Рейтинг: ",
|
"Urdu": "Урду",
|
||||||
"Language: ": "Язык: ",
|
"Uzbek": "Узбекский",
|
||||||
"Default": "По-умолчанию",
|
"Vietnamese": "Вьетнамский",
|
||||||
"Music": "Музыка",
|
"Welsh": "Валлийский",
|
||||||
"Gaming": "Игры",
|
"Western Frisian": "Западнофризский",
|
||||||
"News": "Новости",
|
"Xhosa": "Коса",
|
||||||
"Movies": "Фильмы",
|
"Yiddish": "Идиш",
|
||||||
"Download": "Скачать",
|
"Yoruba": "Йоруба",
|
||||||
"Download as: ": "Скачать как: ",
|
"Zulu": "Зулусский",
|
||||||
"%A %B %-d, %Y": "%-d %B %Y, %A",
|
"`x` years": "`x` лет",
|
||||||
"(edited)": "(изменено)",
|
"`x` months": "`x` месяцев",
|
||||||
"Youtube permalink of the comment": "Прямая ссылка на YouTube",
|
"`x` weeks": "`x` недель",
|
||||||
"`x` marked it with a ❤": "❤ от автора канала \"`x`\"",
|
"`x` days": "`x` дней",
|
||||||
"Audio mode": "Аудио режим",
|
"`x` hours": "`x` часов",
|
||||||
"Video mode": "Видео режим"
|
"`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,8 +1,8 @@
|
|||||||
name: invidious
|
name: invidious
|
||||||
version: 0.14.1
|
version: 0.18.0
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- Omar Roth <omarroth@hotmail.com>
|
- Omar Roth <omarroth@protonmail.com>
|
||||||
|
|
||||||
targets:
|
targets:
|
||||||
invidious:
|
invidious:
|
||||||
@@ -16,6 +16,6 @@ dependencies:
|
|||||||
sqlite3:
|
sqlite3:
|
||||||
github: crystal-lang/crystal-sqlite3
|
github: crystal-lang/crystal-sqlite3
|
||||||
|
|
||||||
crystal: 0.27.2
|
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
|
||||||
|
|||||||
3135
src/invidious.cr
3135
src/invidious.cr
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
|||||||
class InvidiousChannel
|
struct InvidiousChannel
|
||||||
add_mapping({
|
db_mapping({
|
||||||
id: String,
|
id: String,
|
||||||
author: String,
|
author: String,
|
||||||
updated: Time,
|
updated: Time,
|
||||||
@@ -8,39 +8,84 @@ class InvidiousChannel
|
|||||||
})
|
})
|
||||||
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: {type: Int32, default: 0},
|
generate_thumbnails(json, self.id, config, Kemal.config)
|
||||||
|
end
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
@@ -89,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
|
||||||
@@ -148,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
|
||||||
|
|
||||||
|
|||||||
@@ -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,7 +249,7 @@ 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:invidious:v#{CURRENT_VERSION} (by /u/omarroth)"}
|
headers = HTTP::Headers{"User-Agent" => "web:invidious:v#{CURRENT_VERSION} (by /u/omarroth)"}
|
||||||
|
|
||||||
@@ -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,77 +1,139 @@
|
|||||||
class Config
|
require "./macros"
|
||||||
YAML.mapping({
|
|
||||||
video_threads: Int32, # Number of threads to use for updating videos in cache (mostly non-functional)
|
struct Nonce
|
||||||
crawl_threads: Int32, # Number of threads to use for finding new videos from YouTube (used to populate "top" page)
|
db_mapping({
|
||||||
channel_threads: Int32, # Number of threads to use for crawling videos from channels (for updating subscriptions)
|
nonce: String,
|
||||||
feed_threads: Int32, # Number of threads to use for updating feeds
|
expire: Time,
|
||||||
db: NamedTuple( # Database configuration
|
|
||||||
user: String,
|
|
||||||
password: String,
|
|
||||||
host: String,
|
|
||||||
port: Int32,
|
|
||||||
dbname: String,
|
|
||||||
),
|
|
||||||
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, 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},
|
|
||||||
})
|
})
|
||||||
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)
|
def rank_videos(db, n)
|
||||||
@@ -134,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
|
||||||
@@ -196,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
|
||||||
|
|
||||||
@@ -223,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
|
||||||
@@ -239,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(
|
||||||
@@ -307,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,
|
||||||
@@ -319,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
|
||||||
@@ -390,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
|
||||||
@@ -410,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"
|
||||||
@@ -195,6 +219,7 @@ end
|
|||||||
|
|
||||||
def make_host_url(config, kemal_config)
|
def make_host_url(config, kemal_config)
|
||||||
ssl = config.https_only || kemal_config.ssl
|
ssl = config.https_only || kemal_config.ssl
|
||||||
|
port = config.external_port || kemal_config.port
|
||||||
|
|
||||||
if ssl
|
if ssl
|
||||||
scheme = "https://"
|
scheme = "https://"
|
||||||
@@ -202,7 +227,8 @@ def make_host_url(config, kemal_config)
|
|||||||
scheme = "http://"
|
scheme = "http://"
|
||||||
end
|
end
|
||||||
|
|
||||||
if kemal_config.port != 80 && kemal_config.port != 443
|
# Add if non-standard port
|
||||||
|
if port != 80 && port != 443
|
||||||
port = ":#{kemal_config.port}"
|
port = ":#{kemal_config.port}"
|
||||||
else
|
else
|
||||||
port = ""
|
port = ""
|
||||||
@@ -217,7 +243,7 @@ def make_host_url(config, kemal_config)
|
|||||||
return "#{scheme}#{host}#{port}"
|
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
|
||||||
@@ -225,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,245 +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 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
|
|
||||||
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
|
|
||||||
# Create view if it doesn't exist
|
|
||||||
if ex.message.try &.ends_with? "does not exist"
|
|
||||||
db.exec("CREATE MATERIALIZED VIEW #{view_name} AS \
|
|
||||||
SELECT * FROM channel_videos WHERE \
|
|
||||||
ucid = ANY ((SELECT subscriptions FROM users WHERE email = E'#{email.gsub("'", "\\'")}')::text[]) \
|
|
||||||
ORDER BY published DESC;")
|
|
||||||
logger.write("CREATE #{view_name}")
|
|
||||||
else
|
|
||||||
logger.write("REFRESH #{email} : #{ex.message}\n")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
active_channel.send(true)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
max_channel.send(max_threads)
|
|
||||||
end
|
|
||||||
|
|
||||||
def subscribe_to_feeds(db, logger, key, config)
|
|
||||||
if config.use_pubsub_feeds
|
|
||||||
spawn do
|
|
||||||
loop do
|
|
||||||
db.query_all("SELECT id FROM channels WHERE CURRENT_TIMESTAMP - subscribed > '4 days'") do |rs|
|
|
||||||
rs.each do
|
|
||||||
ucid = rs.read(String)
|
|
||||||
response = subscribe_pubsub(ucid, key, config)
|
|
||||||
|
|
||||||
if response.status_code >= 400
|
|
||||||
logger.write("#{ucid} : #{response.body}\n")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
sleep 1.minute
|
|
||||||
Fiber.yield
|
|
||||||
end
|
|
||||||
end
|
|
||||||
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
|
|
||||||
Fiber.yield
|
|
||||||
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
|
|
||||||
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),
|
||||||
@@ -105,7 +105,7 @@ def template_mix(mix)
|
|||||||
</div>
|
</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,
|
||||||
@@ -240,7 +248,7 @@ def template_playlist(playlist)
|
|||||||
</div>
|
</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
|
||||||
|
|||||||
@@ -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)}"
|
||||||
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)}"
|
||||||
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, 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
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ CAPTION_LANGUAGES = {
|
|||||||
"Marathi",
|
"Marathi",
|
||||||
"Mongolian",
|
"Mongolian",
|
||||||
"Nepali",
|
"Nepali",
|
||||||
"Norwegian",
|
"Norwegian Bokmål",
|
||||||
"Nyanja",
|
"Nyanja",
|
||||||
"Pashto",
|
"Pashto",
|
||||||
"Persian",
|
"Persian",
|
||||||
@@ -136,18 +136,6 @@ BYPASS_REGIONS = {
|
|||||||
"TR",
|
"TR",
|
||||||
}
|
}
|
||||||
|
|
||||||
VIDEO_THUMBNAILS = {
|
|
||||||
{name: "maxres", host: "#{CONFIG.domain}", url: "maxres", height: 720, width: 1280},
|
|
||||||
{name: "maxresdefault", host: "i.ytimg.com", url: "maxresdefault", height: 720, width: 1280},
|
|
||||||
{name: "sddefault", host: "i.ytimg.com", url: "sddefault", height: 480, width: 640},
|
|
||||||
{name: "high", host: "i.ytimg.com", url: "hqdefault", height: 360, width: 480},
|
|
||||||
{name: "medium", host: "i.ytimg.com", url: "mqdefault", height: 180, width: 320},
|
|
||||||
{name: "default", host: "i.ytimg.com", url: "default", height: 90, width: 120},
|
|
||||||
{name: "start", host: "i.ytimg.com", url: "1", height: 90, width: 120},
|
|
||||||
{name: "middle", host: "i.ytimg.com", url: "2", height: 90, width: 120},
|
|
||||||
{name: "end", host: "i.ytimg.com", url: "3", height: 90, width: 120},
|
|
||||||
}
|
|
||||||
|
|
||||||
# See https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L380-#L476
|
# See https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L380-#L476
|
||||||
VIDEO_FORMATS = {
|
VIDEO_FORMATS = {
|
||||||
"5" => {"ext" => "flv", "width" => 400, "height" => 240, "acodec" => "mp3", "abr" => 64, "vcodec" => "h263"},
|
"5" => {"ext" => "flv", "width" => 400, "height" => 240, "acodec" => "mp3", "abr" => 64, "vcodec" => "h263"},
|
||||||
@@ -253,7 +241,30 @@ VIDEO_FORMATS = {
|
|||||||
"251" => {"ext" => "webm", "format" => "DASH audio", "acodec" => "opus", "abr" => 160},
|
"251" => {"ext" => "webm", "format" => "DASH audio", "acodec" => "opus", "abr" => 160},
|
||||||
}
|
}
|
||||||
|
|
||||||
class Video
|
struct VideoPreferences
|
||||||
|
json_mapping({
|
||||||
|
annotations: Bool,
|
||||||
|
autoplay: Bool,
|
||||||
|
comments: Array(String),
|
||||||
|
continue: Bool,
|
||||||
|
continue_autoplay: Bool,
|
||||||
|
controls: Bool,
|
||||||
|
listen: Bool,
|
||||||
|
local: Bool,
|
||||||
|
preferred_captions: Array(String),
|
||||||
|
quality: String,
|
||||||
|
raw: Bool,
|
||||||
|
region: String?,
|
||||||
|
related_videos: Bool,
|
||||||
|
speed: (Float32 | Float64),
|
||||||
|
video_end: (Float64 | Int32),
|
||||||
|
video_loop: Bool,
|
||||||
|
video_start: (Float64 | Int32),
|
||||||
|
volume: Int32,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
struct Video
|
||||||
property player_json : JSON::Any?
|
property player_json : JSON::Any?
|
||||||
|
|
||||||
module HTTPParamConverter
|
module HTTPParamConverter
|
||||||
@@ -262,6 +273,249 @@ class Video
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def to_json(locale, config, kemal_config, decrypt_function)
|
||||||
|
JSON.build do |json|
|
||||||
|
json.object do
|
||||||
|
json.field "type", "video"
|
||||||
|
|
||||||
|
json.field "title", self.title
|
||||||
|
json.field "videoId", self.id
|
||||||
|
json.field "videoThumbnails" do
|
||||||
|
generate_thumbnails(json, self.id, config, kemal_config)
|
||||||
|
end
|
||||||
|
json.field "storyboards" do
|
||||||
|
generate_storyboards(json, self.id, self.storyboards, config, kemal_config)
|
||||||
|
end
|
||||||
|
|
||||||
|
description_html, description = html_to_content(self.description)
|
||||||
|
|
||||||
|
json.field "description", description
|
||||||
|
json.field "descriptionHtml", description_html
|
||||||
|
json.field "published", self.published.to_unix
|
||||||
|
json.field "publishedText", translate(locale, "`x` ago", recode_date(self.published, locale))
|
||||||
|
json.field "keywords", self.keywords
|
||||||
|
|
||||||
|
json.field "viewCount", self.views
|
||||||
|
json.field "likeCount", self.likes
|
||||||
|
json.field "dislikeCount", self.dislikes
|
||||||
|
|
||||||
|
json.field "paid", self.paid
|
||||||
|
json.field "premium", self.premium
|
||||||
|
json.field "isFamilyFriendly", self.is_family_friendly
|
||||||
|
json.field "allowedRegions", self.allowed_regions
|
||||||
|
json.field "genre", self.genre
|
||||||
|
json.field "genreUrl", self.genre_url
|
||||||
|
|
||||||
|
json.field "author", self.author
|
||||||
|
json.field "authorId", self.ucid
|
||||||
|
json.field "authorUrl", "/channel/#{self.ucid}"
|
||||||
|
|
||||||
|
json.field "authorThumbnails" do
|
||||||
|
json.array do
|
||||||
|
qualities = {32, 48, 76, 100, 176, 512}
|
||||||
|
|
||||||
|
qualities.each do |quality|
|
||||||
|
json.object do
|
||||||
|
json.field "url", self.author_thumbnail.gsub("=s48-", "=s#{quality}-")
|
||||||
|
json.field "width", quality
|
||||||
|
json.field "height", quality
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
json.field "subCountText", self.sub_count_text
|
||||||
|
|
||||||
|
json.field "lengthSeconds", self.info["length_seconds"].to_i
|
||||||
|
json.field "allowRatings", self.allow_ratings
|
||||||
|
json.field "rating", self.info["avg_rating"].to_f32
|
||||||
|
json.field "isListed", self.is_listed
|
||||||
|
json.field "liveNow", self.live_now
|
||||||
|
json.field "isUpcoming", self.is_upcoming
|
||||||
|
|
||||||
|
if self.premiere_timestamp
|
||||||
|
json.field "premiereTimestamp", self.premiere_timestamp.not_nil!.to_unix
|
||||||
|
end
|
||||||
|
|
||||||
|
if self.player_response["streamingData"]?.try &.["hlsManifestUrl"]?
|
||||||
|
host_url = make_host_url(config, kemal_config)
|
||||||
|
|
||||||
|
hlsvp = self.player_response["streamingData"]["hlsManifestUrl"].as_s
|
||||||
|
hlsvp = hlsvp.gsub("https://manifest.googlevideo.com", host_url)
|
||||||
|
|
||||||
|
json.field "hlsUrl", hlsvp
|
||||||
|
end
|
||||||
|
|
||||||
|
json.field "dashUrl", "#{make_host_url(config, kemal_config)}/api/manifest/dash/id/#{id}"
|
||||||
|
|
||||||
|
json.field "adaptiveFormats" do
|
||||||
|
json.array do
|
||||||
|
self.adaptive_fmts(decrypt_function).each do |fmt|
|
||||||
|
json.object do
|
||||||
|
json.field "index", fmt["index"]
|
||||||
|
json.field "bitrate", fmt["bitrate"]
|
||||||
|
json.field "init", fmt["init"]
|
||||||
|
json.field "url", fmt["url"]
|
||||||
|
json.field "itag", fmt["itag"]
|
||||||
|
json.field "type", fmt["type"]
|
||||||
|
json.field "clen", fmt["clen"]
|
||||||
|
json.field "lmt", fmt["lmt"]
|
||||||
|
json.field "projectionType", fmt["projection_type"]
|
||||||
|
|
||||||
|
fmt_info = itag_to_metadata?(fmt["itag"])
|
||||||
|
if fmt_info
|
||||||
|
fps = fmt_info["fps"]?.try &.to_i || fmt["fps"]?.try &.to_i || 30
|
||||||
|
json.field "fps", fps
|
||||||
|
json.field "container", fmt_info["ext"]
|
||||||
|
json.field "encoding", fmt_info["vcodec"]? || fmt_info["acodec"]
|
||||||
|
|
||||||
|
if fmt_info["height"]?
|
||||||
|
json.field "resolution", "#{fmt_info["height"]}p"
|
||||||
|
|
||||||
|
quality_label = "#{fmt_info["height"]}p"
|
||||||
|
if fps > 30
|
||||||
|
quality_label += "60"
|
||||||
|
end
|
||||||
|
json.field "qualityLabel", quality_label
|
||||||
|
|
||||||
|
if fmt_info["width"]?
|
||||||
|
json.field "size", "#{fmt_info["width"]}x#{fmt_info["height"]}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
json.field "formatStreams" do
|
||||||
|
json.array do
|
||||||
|
self.fmt_stream(decrypt_function).each do |fmt|
|
||||||
|
json.object do
|
||||||
|
json.field "url", fmt["url"]
|
||||||
|
json.field "itag", fmt["itag"]
|
||||||
|
json.field "type", fmt["type"]
|
||||||
|
json.field "quality", fmt["quality"]
|
||||||
|
|
||||||
|
fmt_info = itag_to_metadata?(fmt["itag"])
|
||||||
|
if fmt_info
|
||||||
|
fps = fmt_info["fps"]?.try &.to_i || fmt["fps"]?.try &.to_i || 30
|
||||||
|
json.field "fps", fps
|
||||||
|
json.field "container", fmt_info["ext"]
|
||||||
|
json.field "encoding", fmt_info["vcodec"]? || fmt_info["acodec"]
|
||||||
|
|
||||||
|
if fmt_info["height"]?
|
||||||
|
json.field "resolution", "#{fmt_info["height"]}p"
|
||||||
|
|
||||||
|
quality_label = "#{fmt_info["height"]}p"
|
||||||
|
if fps > 30
|
||||||
|
quality_label += "60"
|
||||||
|
end
|
||||||
|
json.field "qualityLabel", quality_label
|
||||||
|
|
||||||
|
if fmt_info["width"]?
|
||||||
|
json.field "size", "#{fmt_info["width"]}x#{fmt_info["height"]}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
json.field "captions" do
|
||||||
|
json.array do
|
||||||
|
self.captions.each do |caption|
|
||||||
|
json.object do
|
||||||
|
json.field "label", caption.name.simpleText
|
||||||
|
json.field "languageCode", caption.languageCode
|
||||||
|
json.field "url", "/api/v1/captions/#{id}?label=#{URI.escape(caption.name.simpleText)}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
json.field "recommendedVideos" do
|
||||||
|
json.array do
|
||||||
|
self.info["rvs"]?.try &.split(",").each do |rv|
|
||||||
|
rv = HTTP::Params.parse(rv)
|
||||||
|
|
||||||
|
if rv["id"]?
|
||||||
|
json.object do
|
||||||
|
json.field "videoId", rv["id"]
|
||||||
|
json.field "title", rv["title"]
|
||||||
|
json.field "videoThumbnails" do
|
||||||
|
generate_thumbnails(json, rv["id"], config, kemal_config)
|
||||||
|
end
|
||||||
|
json.field "author", rv["author"]
|
||||||
|
json.field "lengthSeconds", rv["length_seconds"].to_i
|
||||||
|
json.field "viewCountText", rv["short_view_count_text"]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def allow_ratings
|
||||||
|
allow_ratings = player_response["videoDetails"]?.try &.["allowRatings"]?.try &.as_bool
|
||||||
|
|
||||||
|
if allow_ratings.nil?
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
return allow_ratings
|
||||||
|
end
|
||||||
|
|
||||||
|
def live_now
|
||||||
|
live_now = self.player_response["videoDetails"]?.try &.["isLive"]?.try &.as_bool
|
||||||
|
|
||||||
|
if live_now.nil?
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
return live_now
|
||||||
|
end
|
||||||
|
|
||||||
|
def is_listed
|
||||||
|
is_listed = player_response["videoDetails"]?.try &.["isCrawlable"]?.try &.as_bool
|
||||||
|
|
||||||
|
if is_listed.nil?
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
return is_listed
|
||||||
|
end
|
||||||
|
|
||||||
|
def is_upcoming
|
||||||
|
is_upcoming = player_response["videoDetails"]?.try &.["isUpcoming"]?.try &.as_bool
|
||||||
|
|
||||||
|
if is_upcoming.nil?
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
return is_upcoming
|
||||||
|
end
|
||||||
|
|
||||||
|
def premiere_timestamp
|
||||||
|
if self.is_upcoming
|
||||||
|
premiere_timestamp = player_response["playabilityStatus"]?
|
||||||
|
.try &.["liveStreamability"]?
|
||||||
|
.try &.["liveStreamabilityRenderer"]?
|
||||||
|
.try &.["offlineSlate"]?
|
||||||
|
.try &.["liveStreamOfflineSlateRenderer"]?
|
||||||
|
.try &.["scheduledStartTime"]?.try &.as_s.to_i64
|
||||||
|
end
|
||||||
|
|
||||||
|
if premiere_timestamp
|
||||||
|
premiere_timestamp = Time.unix(premiere_timestamp)
|
||||||
|
end
|
||||||
|
|
||||||
|
return premiere_timestamp
|
||||||
|
end
|
||||||
|
|
||||||
def keywords
|
def keywords
|
||||||
keywords = self.player_response["videoDetails"]?.try &.["keywords"]?.try &.as_a
|
keywords = self.player_response["videoDetails"]?.try &.["keywords"]?.try &.as_a
|
||||||
keywords ||= [] of String
|
keywords ||= [] of String
|
||||||
@@ -329,6 +583,7 @@ class Video
|
|||||||
end
|
end
|
||||||
|
|
||||||
streams.each do |fmt|
|
streams.each do |fmt|
|
||||||
|
fmt["url"] += "&host=" + (URI.parse(fmt["url"]).host || "")
|
||||||
fmt["url"] += decrypt_signature(fmt, decrypt_function)
|
fmt["url"] += decrypt_signature(fmt, decrypt_function)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -396,6 +651,7 @@ class Video
|
|||||||
end
|
end
|
||||||
|
|
||||||
adaptive_fmts.each do |fmt|
|
adaptive_fmts.each do |fmt|
|
||||||
|
fmt["url"] += "&host=" + (URI.parse(fmt["url"]).host || "")
|
||||||
fmt["url"] += decrypt_signature(fmt, decrypt_function)
|
fmt["url"] += decrypt_signature(fmt, decrypt_function)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -426,6 +682,78 @@ class Video
|
|||||||
return @player_json.not_nil!
|
return @player_json.not_nil!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def storyboards
|
||||||
|
storyboards = self.player_response["storyboards"]?
|
||||||
|
.try &.as_h
|
||||||
|
.try &.["playerStoryboardSpecRenderer"]?
|
||||||
|
|
||||||
|
if !storyboards
|
||||||
|
storyboards = self.player_response["storyboards"]?
|
||||||
|
.try &.as_h
|
||||||
|
.try &.["playerLiveStoryboardSpecRenderer"]?
|
||||||
|
|
||||||
|
if storyboard = storyboards.try &.["spec"]?
|
||||||
|
.try &.as_s
|
||||||
|
return [{
|
||||||
|
url: storyboard.split("#")[0],
|
||||||
|
width: 106,
|
||||||
|
height: 60,
|
||||||
|
count: -1,
|
||||||
|
interval: 5000,
|
||||||
|
storyboard_width: 3,
|
||||||
|
storyboard_height: 3,
|
||||||
|
storyboard_count: -1,
|
||||||
|
}]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
storyboards = storyboards.try &.["spec"]?
|
||||||
|
.try &.as_s.split("|")
|
||||||
|
|
||||||
|
items = [] of NamedTuple(
|
||||||
|
url: String,
|
||||||
|
width: Int32,
|
||||||
|
height: Int32,
|
||||||
|
count: Int32,
|
||||||
|
interval: Int32,
|
||||||
|
storyboard_width: Int32,
|
||||||
|
storyboard_height: Int32,
|
||||||
|
storyboard_count: Int32)
|
||||||
|
|
||||||
|
if !storyboards
|
||||||
|
return items
|
||||||
|
end
|
||||||
|
|
||||||
|
url = URI.parse(storyboards.shift)
|
||||||
|
params = HTTP::Params.parse(url.query || "")
|
||||||
|
|
||||||
|
storyboards.each_with_index do |storyboard, i|
|
||||||
|
width, height, count, storyboard_width, storyboard_height, interval, _, sigh = storyboard.split("#")
|
||||||
|
params["sigh"] = sigh
|
||||||
|
url.query = params.to_s
|
||||||
|
|
||||||
|
width = width.to_i
|
||||||
|
height = height.to_i
|
||||||
|
count = count.to_i
|
||||||
|
interval = interval.to_i
|
||||||
|
storyboard_width = storyboard_width.to_i
|
||||||
|
storyboard_height = storyboard_height.to_i
|
||||||
|
|
||||||
|
items << {
|
||||||
|
url: url.to_s.sub("$L", i).sub("$N", "M$M"),
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
count: count,
|
||||||
|
interval: interval,
|
||||||
|
storyboard_width: storyboard_width,
|
||||||
|
storyboard_height: storyboard_height,
|
||||||
|
storyboard_count: (count.to_f / (storyboard_width.to_f * storyboard_height.to_f)).ceil.to_i,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
items
|
||||||
|
end
|
||||||
|
|
||||||
def paid
|
def paid
|
||||||
reason = self.player_response["playabilityStatus"]?.try &.["reason"]?
|
reason = self.player_response["playabilityStatus"]?.try &.["reason"]?
|
||||||
|
|
||||||
@@ -474,7 +802,7 @@ class Video
|
|||||||
return self.info["length_seconds"].to_i
|
return self.info["length_seconds"].to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
add_mapping({
|
db_mapping({
|
||||||
id: String,
|
id: String,
|
||||||
info: {
|
info: {
|
||||||
type: HTTP::Params,
|
type: HTTP::Params,
|
||||||
@@ -502,29 +830,29 @@ class Video
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class Caption
|
struct Caption
|
||||||
JSON.mapping(
|
json_mapping({
|
||||||
name: CaptionName,
|
name: CaptionName,
|
||||||
baseUrl: String,
|
baseUrl: String,
|
||||||
languageCode: String
|
languageCode: String,
|
||||||
)
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class CaptionName
|
struct CaptionName
|
||||||
JSON.mapping(
|
json_mapping({
|
||||||
simpleText: String,
|
simpleText: String,
|
||||||
)
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
class VideoRedirect < Exception
|
class VideoRedirect < Exception
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_video(id, db, proxies = {} of String => Array({ip: String, port: Int32}), refresh = true, region = nil)
|
def get_video(id, db, proxies = {} of String => Array({ip: String, port: Int32}), refresh = true, region = nil, force_refresh = false)
|
||||||
if db.query_one?("SELECT EXISTS (SELECT true FROM videos WHERE id = $1)", id, as: Bool) && !region
|
if db.query_one?("SELECT EXISTS (SELECT true FROM videos WHERE id = $1)", id, as: Bool) && !region
|
||||||
video = db.query_one("SELECT * FROM videos WHERE id = $1", id, as: Video)
|
video = db.query_one("SELECT * FROM videos WHERE id = $1", id, as: Video)
|
||||||
|
|
||||||
# If record was last updated over 10 minutes ago, refresh (expire param in response lasts for 6 hours)
|
# If record was last updated over 10 minutes ago, refresh (expire param in response lasts for 6 hours)
|
||||||
if refresh && Time.now - video.updated > 10.minutes
|
if (refresh && Time.now - video.updated > 10.minutes) || force_refresh
|
||||||
begin
|
begin
|
||||||
video = fetch_video(id, proxies, region)
|
video = fetch_video(id, proxies, region)
|
||||||
video_array = video.to_a
|
video_array = video.to_a
|
||||||
@@ -554,6 +882,168 @@ def get_video(id, db, proxies = {} of String => Array({ip: String, port: Int32})
|
|||||||
return video
|
return video
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def extract_polymer_config(body, html)
|
||||||
|
params = HTTP::Params.new
|
||||||
|
|
||||||
|
params["session_token"] = body.match(/"XSRF_TOKEN":"(?<session_token>[A-Za-z0-9\_\-\=]+)"/).try &.["session_token"] || ""
|
||||||
|
|
||||||
|
html_info = JSON.parse(body.match(/ytplayer\.config = (?<info>.*?);ytplayer\.load/).try &.["info"] || "{}").try &.["args"]?.try &.as_h
|
||||||
|
|
||||||
|
if html_info
|
||||||
|
html_info.each do |key, value|
|
||||||
|
params[key] = value.to_s
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
initial_data = JSON.parse(body.match(/window\["ytInitialData"\] = (?<info>.*?);\n/).try &.["info"] || "{}")
|
||||||
|
|
||||||
|
primary_results = initial_data["contents"]?
|
||||||
|
.try &.["twoColumnWatchNextResults"]?
|
||||||
|
.try &.["results"]?
|
||||||
|
.try &.["results"]?
|
||||||
|
.try &.["contents"]?
|
||||||
|
|
||||||
|
comment_continuation = primary_results.try &.as_a.select { |object| object["itemSectionRenderer"]? }[0]?
|
||||||
|
.try &.["itemSectionRenderer"]?
|
||||||
|
.try &.["continuations"]?
|
||||||
|
.try &.[0]?
|
||||||
|
.try &.["nextContinuationData"]?
|
||||||
|
|
||||||
|
params["ctoken"] = comment_continuation.try &.["continuation"]?.try &.as_s || ""
|
||||||
|
params["itct"] = comment_continuation.try &.["clickTrackingParams"]?.try &.as_s || ""
|
||||||
|
|
||||||
|
recommended_videos = initial_data["contents"]?
|
||||||
|
.try &.["twoColumnWatchNextResults"]?
|
||||||
|
.try &.["secondaryResults"]?
|
||||||
|
.try &.["secondaryResults"]?
|
||||||
|
.try &.["results"]?
|
||||||
|
.try &.as_a
|
||||||
|
|
||||||
|
rvs = [] of String
|
||||||
|
|
||||||
|
recommended_videos.try &.each do |compact_renderer|
|
||||||
|
if compact_renderer["compactRadioRenderer"]? || compact_renderer["compactPlaylistRenderer"]?
|
||||||
|
# TODO
|
||||||
|
elsif compact_renderer["compactVideoRenderer"]?
|
||||||
|
compact_renderer = compact_renderer["compactVideoRenderer"]
|
||||||
|
|
||||||
|
recommended_video = HTTP::Params.new
|
||||||
|
recommended_video["id"] = compact_renderer["videoId"].as_s
|
||||||
|
recommended_video["title"] = compact_renderer["title"]["simpleText"].as_s
|
||||||
|
recommended_video["author"] = compact_renderer["shortBylineText"]["runs"].as_a[0]["text"].as_s
|
||||||
|
recommended_video["ucid"] = compact_renderer["shortBylineText"]["runs"].as_a[0]["navigationEndpoint"]["browseEndpoint"]["browseId"].as_s
|
||||||
|
recommended_video["author_thumbnail"] = compact_renderer["channelThumbnail"]["thumbnails"][0]["url"].as_s
|
||||||
|
|
||||||
|
recommended_video["short_view_count_text"] = compact_renderer["shortViewCountText"]["simpleText"].as_s
|
||||||
|
recommended_video["view_count"] = compact_renderer["viewCountText"]?.try &.["simpleText"]?.try &.as_s.delete(", views watching").to_i64?.try &.to_s || "0"
|
||||||
|
recommended_video["length_seconds"] = decode_length_seconds(compact_renderer["lengthText"]?.try &.["simpleText"]?.try &.as_s || "0:00").to_s
|
||||||
|
|
||||||
|
rvs << recommended_video.to_s
|
||||||
|
end
|
||||||
|
end
|
||||||
|
params["rvs"] = rvs.join(",")
|
||||||
|
|
||||||
|
# TODO: Watching now
|
||||||
|
params["views"] = primary_results.try &.as_a.select { |object| object["videoPrimaryInfoRenderer"]? }[0]?
|
||||||
|
.try &.["videoPrimaryInfoRenderer"]?
|
||||||
|
.try &.["viewCount"]?
|
||||||
|
.try &.["videoViewCountRenderer"]?
|
||||||
|
.try &.["viewCount"]?
|
||||||
|
.try &.["simpleText"]?
|
||||||
|
.try &.as_s.gsub(/\D/, "").to_i64.to_s || "0"
|
||||||
|
|
||||||
|
sentiment_bar = primary_results.try &.as_a.select { |object| object["videoPrimaryInfoRenderer"]? }[0]?
|
||||||
|
.try &.["videoPrimaryInfoRenderer"]?
|
||||||
|
.try &.["sentimentBar"]?
|
||||||
|
.try &.["sentimentBarRenderer"]?
|
||||||
|
.try &.["tooltip"]?
|
||||||
|
.try &.as_s
|
||||||
|
|
||||||
|
likes, dislikes = sentiment_bar.try &.split(" / ").map { |a| a.delete(", ").to_i32 }[0, 2] || {0, 0}
|
||||||
|
|
||||||
|
params["likes"] = "#{likes}"
|
||||||
|
params["dislikes"] = "#{dislikes}"
|
||||||
|
|
||||||
|
published = primary_results.try &.as_a.select { |object| object["videoSecondaryInfoRenderer"]? }[0]?
|
||||||
|
.try &.["videoSecondaryInfoRenderer"]?
|
||||||
|
.try &.["dateText"]?
|
||||||
|
.try &.["simpleText"]?
|
||||||
|
.try &.as_s.split(" ")[-3..-1].join(" ")
|
||||||
|
|
||||||
|
if published
|
||||||
|
params["published"] = Time.parse(published, "%b %-d, %Y", Time::Location.local).to_unix.to_s
|
||||||
|
else
|
||||||
|
params["published"] = Time.new(1990, 1, 1).to_unix.to_s
|
||||||
|
end
|
||||||
|
|
||||||
|
params["description_html"] = "<p></p>"
|
||||||
|
|
||||||
|
description_html = primary_results.try &.as_a.select { |object| object["videoSecondaryInfoRenderer"]? }[0]?
|
||||||
|
.try &.["videoSecondaryInfoRenderer"]?
|
||||||
|
.try &.["description"]?
|
||||||
|
.try &.["runs"]?
|
||||||
|
.try &.as_a
|
||||||
|
|
||||||
|
if description_html
|
||||||
|
params["description_html"] = content_to_comment_html(description_html)
|
||||||
|
end
|
||||||
|
|
||||||
|
metadata = primary_results.try &.as_a.select { |object| object["videoSecondaryInfoRenderer"]? }[0]?
|
||||||
|
.try &.["videoSecondaryInfoRenderer"]?
|
||||||
|
.try &.["metadataRowContainer"]?
|
||||||
|
.try &.["metadataRowContainerRenderer"]?
|
||||||
|
.try &.["rows"]?
|
||||||
|
.try &.as_a
|
||||||
|
|
||||||
|
params["genre"] = ""
|
||||||
|
params["genre_ucid"] = ""
|
||||||
|
params["license"] = ""
|
||||||
|
|
||||||
|
metadata.try &.each do |row|
|
||||||
|
title = row["metadataRowRenderer"]?.try &.["title"]?.try &.["simpleText"]?.try &.as_s
|
||||||
|
contents = row["metadataRowRenderer"]?
|
||||||
|
.try &.["contents"]?
|
||||||
|
.try &.as_a[0]?
|
||||||
|
|
||||||
|
if title.try &.== "Category"
|
||||||
|
contents = contents.try &.["runs"]?
|
||||||
|
.try &.as_a[0]?
|
||||||
|
|
||||||
|
params["genre"] = contents.try &.["text"]?
|
||||||
|
.try &.as_s || ""
|
||||||
|
params["genre_ucid"] = contents.try &.["navigationEndpoint"]?
|
||||||
|
.try &.["browseEndpoint"]?
|
||||||
|
.try &.["browseId"]?.try &.as_s || ""
|
||||||
|
elsif title.try &.== "License"
|
||||||
|
contents = contents.try &.["runs"]?
|
||||||
|
.try &.as_a[0]?
|
||||||
|
|
||||||
|
params["license"] = contents.try &.["text"]?
|
||||||
|
.try &.as_s || ""
|
||||||
|
elsif title.try &.== "Licensed to YouTube by"
|
||||||
|
params["license"] = contents.try &.["simpleText"]?
|
||||||
|
.try &.as_s || ""
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
author_info = primary_results.try &.as_a.select { |object| object["videoSecondaryInfoRenderer"]? }[0]?
|
||||||
|
.try &.["videoSecondaryInfoRenderer"]?
|
||||||
|
.try &.["owner"]?
|
||||||
|
.try &.["videoOwnerRenderer"]?
|
||||||
|
|
||||||
|
params["author_thumbnail"] = author_info.try &.["thumbnail"]?
|
||||||
|
.try &.["thumbnails"]?
|
||||||
|
.try &.as_a[0]?
|
||||||
|
.try &.["url"]?
|
||||||
|
.try &.as_s || ""
|
||||||
|
|
||||||
|
params["sub_count_text"] = author_info.try &.["subscriberCountText"]?
|
||||||
|
.try &.["simpleText"]?
|
||||||
|
.try &.as_s.gsub(/\D/, "") || "0"
|
||||||
|
|
||||||
|
return params
|
||||||
|
end
|
||||||
|
|
||||||
def extract_player_config(body, html)
|
def extract_player_config(body, html)
|
||||||
params = HTTP::Params.new
|
params = HTTP::Params.new
|
||||||
|
|
||||||
@@ -561,14 +1051,6 @@ def extract_player_config(body, html)
|
|||||||
params["session_token"] = md["session_token"]
|
params["session_token"] = md["session_token"]
|
||||||
end
|
end
|
||||||
|
|
||||||
if md = body.match(/itct=(?<itct>[^"]+)"/)
|
|
||||||
params["itct"] = md["itct"]
|
|
||||||
end
|
|
||||||
|
|
||||||
if md = body.match(/'COMMENTS_TOKEN': "(?<ctoken>[^"]+)"/)
|
|
||||||
params["ctoken"] = md["ctoken"]
|
|
||||||
end
|
|
||||||
|
|
||||||
if md = body.match(/'RELATED_PLAYER_ARGS': (?<rvs>{"rvs":"[^"]+"})/)
|
if md = body.match(/'RELATED_PLAYER_ARGS': (?<rvs>{"rvs":"[^"]+"})/)
|
||||||
params["rvs"] = JSON.parse(md["rvs"])["rvs"].as_s
|
params["rvs"] = JSON.parse(md["rvs"])["rvs"].as_s
|
||||||
end
|
end
|
||||||
@@ -654,6 +1136,10 @@ def fetch_video(id, proxies, region)
|
|||||||
raise "Video unavailable."
|
raise "Video unavailable."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if !info["title"]?
|
||||||
|
raise "Video unavailable."
|
||||||
|
end
|
||||||
|
|
||||||
title = info["title"]
|
title = info["title"]
|
||||||
author = info["author"]
|
author = info["author"]
|
||||||
ucid = info["ucid"]
|
ucid = info["ucid"]
|
||||||
@@ -675,7 +1161,7 @@ def fetch_video(id, proxies, region)
|
|||||||
info["avg_rating"] = "#{avg_rating}"
|
info["avg_rating"] = "#{avg_rating}"
|
||||||
|
|
||||||
description = html.xpath_node(%q(//p[@id="eow-description"]))
|
description = html.xpath_node(%q(//p[@id="eow-description"]))
|
||||||
description = description ? description.to_xml : ""
|
description = description ? description.to_xml(options: XML::SaveOptions::NO_DECL) : %q(<p id="eow-description"></p>)
|
||||||
|
|
||||||
wilson_score = ci_lower_bound(likes, likes + dislikes)
|
wilson_score = ci_lower_bound(likes, likes + dislikes)
|
||||||
|
|
||||||
@@ -694,8 +1180,10 @@ def fetch_video(id, proxies, region)
|
|||||||
|
|
||||||
genre_url = html.xpath_node(%(//ul[contains(@class, "watch-info-tag-list")]/li/a[text()="#{genre}"])).try &.["href"]
|
genre_url = html.xpath_node(%(//ul[contains(@class, "watch-info-tag-list")]/li/a[text()="#{genre}"])).try &.["href"]
|
||||||
|
|
||||||
# Sometimes YouTube tries to link to invalid/missing channels, so we fix that here
|
# YouTube provides invalid URLs for some genres, so we fix that here
|
||||||
case genre
|
case genre
|
||||||
|
when "Comedy"
|
||||||
|
genre_url = "/channel/UCQZ43c4dAA9eXCQuXWu9aTw"
|
||||||
when "Education"
|
when "Education"
|
||||||
genre_url = "/channel/UCdxpofrI-dO6oYfsqHDHphw"
|
genre_url = "/channel/UCdxpofrI-dO6oYfsqHDHphw"
|
||||||
when "Gaming"
|
when "Gaming"
|
||||||
@@ -741,44 +1229,59 @@ def itag_to_metadata?(itag : String)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def process_video_params(query, preferences)
|
def process_video_params(query, preferences)
|
||||||
|
annotations = query["iv_load_policy"]?.try &.to_i?
|
||||||
autoplay = query["autoplay"]?.try &.to_i?
|
autoplay = query["autoplay"]?.try &.to_i?
|
||||||
|
comments = query["comments"]?.try &.split(",").map { |a| a.downcase }
|
||||||
continue = query["continue"]?.try &.to_i?
|
continue = query["continue"]?.try &.to_i?
|
||||||
related_videos = query["related_videos"]?
|
continue_autoplay = query["continue_autoplay"]?.try &.to_i?
|
||||||
listen = query["listen"]? && (query["listen"] == "true" || query["listen"] == "1").to_unsafe
|
listen = query["listen"]? && (query["listen"] == "true" || query["listen"] == "1").to_unsafe
|
||||||
|
local = query["local"]? && (query["local"] == "true" || query["listen"] == "1").to_unsafe
|
||||||
preferred_captions = query["subtitles"]?.try &.split(",").map { |a| a.downcase }
|
preferred_captions = query["subtitles"]?.try &.split(",").map { |a| a.downcase }
|
||||||
quality = query["quality"]?
|
quality = query["quality"]?
|
||||||
region = query["region"]?
|
region = query["region"]?
|
||||||
speed = query["speed"]?.try &.to_f?
|
related_videos = query["related_videos"]? && (query["related_videos"] == "true" || query["related_videos"] == "1").to_unsafe
|
||||||
|
speed = query["speed"]?.try &.rchop("x").to_f?
|
||||||
video_loop = query["loop"]?.try &.to_i?
|
video_loop = query["loop"]?.try &.to_i?
|
||||||
volume = query["volume"]?.try &.to_i?
|
volume = query["volume"]?.try &.to_i?
|
||||||
|
|
||||||
if preferences
|
if preferences
|
||||||
# region ||= preferences.region
|
# region ||= preferences.region
|
||||||
|
annotations ||= preferences.annotations.to_unsafe
|
||||||
autoplay ||= preferences.autoplay.to_unsafe
|
autoplay ||= preferences.autoplay.to_unsafe
|
||||||
|
comments ||= preferences.comments
|
||||||
continue ||= preferences.continue.to_unsafe
|
continue ||= preferences.continue.to_unsafe
|
||||||
related_videos ||= preferences.related_videos.to_unsafe
|
continue_autoplay ||= preferences.continue_autoplay.to_unsafe
|
||||||
listen ||= preferences.listen.to_unsafe
|
listen ||= preferences.listen.to_unsafe
|
||||||
|
local ||= preferences.local.to_unsafe
|
||||||
preferred_captions ||= preferences.captions
|
preferred_captions ||= preferences.captions
|
||||||
quality ||= preferences.quality
|
quality ||= preferences.quality
|
||||||
|
related_videos ||= preferences.related_videos.to_unsafe
|
||||||
speed ||= preferences.speed
|
speed ||= preferences.speed
|
||||||
video_loop ||= preferences.video_loop.to_unsafe
|
video_loop ||= preferences.video_loop.to_unsafe
|
||||||
volume ||= preferences.volume
|
volume ||= preferences.volume
|
||||||
end
|
end
|
||||||
|
|
||||||
autoplay ||= DEFAULT_USER_PREFERENCES.autoplay.to_unsafe
|
annotations ||= CONFIG.default_user_preferences.annotations.to_unsafe
|
||||||
continue ||= DEFAULT_USER_PREFERENCES.continue.to_unsafe
|
autoplay ||= CONFIG.default_user_preferences.autoplay.to_unsafe
|
||||||
related_videos ||= DEFAULT_USER_PREFERENCES.related_videos.to_unsafe
|
comments ||= CONFIG.default_user_preferences.comments
|
||||||
listen ||= DEFAULT_USER_PREFERENCES.listen.to_unsafe
|
continue ||= CONFIG.default_user_preferences.continue.to_unsafe
|
||||||
preferred_captions ||= DEFAULT_USER_PREFERENCES.captions
|
continue_autoplay ||= CONFIG.default_user_preferences.continue_autoplay.to_unsafe
|
||||||
quality ||= DEFAULT_USER_PREFERENCES.quality
|
listen ||= CONFIG.default_user_preferences.listen.to_unsafe
|
||||||
speed ||= DEFAULT_USER_PREFERENCES.speed
|
local ||= CONFIG.default_user_preferences.local.to_unsafe
|
||||||
video_loop ||= DEFAULT_USER_PREFERENCES.video_loop.to_unsafe
|
preferred_captions ||= CONFIG.default_user_preferences.captions
|
||||||
volume ||= DEFAULT_USER_PREFERENCES.volume
|
quality ||= CONFIG.default_user_preferences.quality
|
||||||
|
related_videos ||= CONFIG.default_user_preferences.related_videos.to_unsafe
|
||||||
|
speed ||= CONFIG.default_user_preferences.speed
|
||||||
|
video_loop ||= CONFIG.default_user_preferences.video_loop.to_unsafe
|
||||||
|
volume ||= CONFIG.default_user_preferences.volume
|
||||||
|
|
||||||
|
annotations = annotations == 1
|
||||||
autoplay = autoplay == 1
|
autoplay = autoplay == 1
|
||||||
continue = continue == 1
|
continue = continue == 1
|
||||||
related_videos = related_videos == 1
|
continue_autoplay = continue_autoplay == 1
|
||||||
listen = listen == 1
|
listen = listen == 1
|
||||||
|
local = local == 1
|
||||||
|
related_videos = related_videos == 1
|
||||||
video_loop = video_loop == 1
|
video_loop = video_loop == 1
|
||||||
|
|
||||||
if query["t"]?
|
if query["t"]?
|
||||||
@@ -804,37 +1307,73 @@ def process_video_params(query, preferences)
|
|||||||
|
|
||||||
controls = query["controls"]?.try &.to_i?
|
controls = query["controls"]?.try &.to_i?
|
||||||
controls ||= 1
|
controls ||= 1
|
||||||
controls = controls == 1
|
controls = controls >= 1
|
||||||
|
|
||||||
params = {
|
params = VideoPreferences.new(
|
||||||
autoplay: autoplay,
|
annotations: annotations,
|
||||||
continue: continue,
|
autoplay: autoplay,
|
||||||
controls: controls,
|
comments: comments,
|
||||||
listen: listen,
|
continue: continue,
|
||||||
|
continue_autoplay: continue_autoplay,
|
||||||
|
controls: controls,
|
||||||
|
listen: listen,
|
||||||
|
local: local,
|
||||||
preferred_captions: preferred_captions,
|
preferred_captions: preferred_captions,
|
||||||
quality: quality,
|
quality: quality,
|
||||||
raw: raw,
|
raw: raw,
|
||||||
region: region,
|
region: region,
|
||||||
related_videos: related_videos,
|
related_videos: related_videos,
|
||||||
speed: speed,
|
speed: speed,
|
||||||
video_end: video_end,
|
video_end: video_end,
|
||||||
video_loop: video_loop,
|
video_loop: video_loop,
|
||||||
video_start: video_start,
|
video_start: video_start,
|
||||||
volume: volume,
|
volume: volume,
|
||||||
}
|
)
|
||||||
|
|
||||||
return params
|
return params
|
||||||
end
|
end
|
||||||
|
|
||||||
def generate_thumbnails(json, id)
|
def build_thumbnails(id, config, kemal_config)
|
||||||
|
return {
|
||||||
|
{name: "maxres", host: "#{make_host_url(config, kemal_config)}", url: "maxres", height: 720, width: 1280},
|
||||||
|
{name: "maxresdefault", host: "https://i.ytimg.com", url: "maxresdefault", height: 720, width: 1280},
|
||||||
|
{name: "sddefault", host: "https://i.ytimg.com", url: "sddefault", height: 480, width: 640},
|
||||||
|
{name: "high", host: "https://i.ytimg.com", url: "hqdefault", height: 360, width: 480},
|
||||||
|
{name: "medium", host: "https://i.ytimg.com", url: "mqdefault", height: 180, width: 320},
|
||||||
|
{name: "default", host: "https://i.ytimg.com", url: "default", height: 90, width: 120},
|
||||||
|
{name: "start", host: "https://i.ytimg.com", url: "1", height: 90, width: 120},
|
||||||
|
{name: "middle", host: "https://i.ytimg.com", url: "2", height: 90, width: 120},
|
||||||
|
{name: "end", host: "https://i.ytimg.com", url: "3", height: 90, width: 120},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
def generate_thumbnails(json, id, config, kemal_config)
|
||||||
json.array do
|
json.array do
|
||||||
VIDEO_THUMBNAILS.each do |thumbnail|
|
build_thumbnails(id, config, kemal_config).each do |thumbnail|
|
||||||
json.object do
|
json.object do
|
||||||
json.field "quality", thumbnail[:name]
|
json.field "quality", thumbnail[:name]
|
||||||
json.field "url", "https://#{thumbnail[:host]}/vi/#{id}/#{thumbnail["url"]}.jpg"
|
json.field "url", "#{thumbnail[:host]}/vi/#{id}/#{thumbnail["url"]}.jpg"
|
||||||
json.field "width", thumbnail[:width]
|
json.field "width", thumbnail[:width]
|
||||||
json.field "height", thumbnail[:height]
|
json.field "height", thumbnail[:height]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def generate_storyboards(json, id, storyboards, config, kemal_config)
|
||||||
|
json.array do
|
||||||
|
storyboards.each do |storyboard|
|
||||||
|
json.object do
|
||||||
|
json.field "url", "/api/v1/storyboards/#{id}?width=#{storyboard[:width]}&height=#{storyboard[:height]}"
|
||||||
|
json.field "templateUrl", storyboard[:url]
|
||||||
|
json.field "width", storyboard[:width]
|
||||||
|
json.field "height", storyboard[:height]
|
||||||
|
json.field "count", storyboard[:count]
|
||||||
|
json.field "interval", storyboard[:interval]
|
||||||
|
json.field "storyboardWidth", storyboard[:storyboard_width]
|
||||||
|
json.field "storyboardHeight", storyboard[:storyboard_height]
|
||||||
|
json.field "storyboardCount", storyboard[:storyboard_count]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
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,37 +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>
|
||||||
|
<% if !auto_generated %>
|
||||||
|
<div class="pure-u-1 pure-md-1-3">
|
||||||
|
<b><%= translate(locale, "Videos") %></b>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
<div class="pure-u-1 pure-md-1-3">
|
<div class="pure-u-1 pure-md-1-3">
|
||||||
<b><%= translate(locale, "Videos") %></b>
|
<% if auto_generated %>
|
||||||
</div>
|
<b><%= translate(locale, "Playlists") %></b>
|
||||||
<div class="pure-u-1 pure-md-1-3">
|
<% else %>
|
||||||
<% if !auto_generated %>
|
|
||||||
<a href="/channel/<%= ucid %>/playlists"><%= translate(locale, "Playlists") %></a>
|
<a href="/channel/<%= ucid %>/playlists"><%= translate(locale, "Playlists") %></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="pure-u-1-3"></div>
|
||||||
<div class="pure-u-1-3">
|
<div class="pure-u-1-3">
|
||||||
</div>
|
<div class="pure-g" style="text-align:right">
|
||||||
<div class="pure-u-1-3">
|
<% sort_options.each do |sort| %>
|
||||||
<div class="pure-g" style="text-align:right;">
|
<div class="pure-u-1 pure-md-1-3">
|
||||||
<% sort_options.each do |sort| %>
|
<% if sort_by == sort %>
|
||||||
<div class="pure-u-1 pure-md-1-3">
|
<b><%= translate(locale, sort) %></b>
|
||||||
<% if sort_by == sort %>
|
<% else %>
|
||||||
<b><%= translate(locale, sort) %></b>
|
<a href="/channel/<%= ucid %>?page=<%= page %>&sort_by=<%= sort %>">
|
||||||
<% else %>
|
<%= translate(locale, sort) %>
|
||||||
<a href="/channel/<%= ucid %>?page=<%= page %>&sort_by=<%= sort %>">
|
</a>
|
||||||
<%= translate(locale, sort) %>
|
<% end %>
|
||||||
</a>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -54,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>
|
||||||
|
|||||||
@@ -4,16 +4,16 @@
|
|||||||
<div class="pure-g">
|
<div class="pure-g">
|
||||||
<% feed_menu = config.feed_menu.dup %>
|
<% feed_menu = config.feed_menu.dup %>
|
||||||
<% if !env.get?("user") %>
|
<% if !env.get?("user") %>
|
||||||
<% feed_menu.reject! {|feed| feed == "Subscriptions"} %>
|
<% feed_menu.reject! {|feed| feed == "Subscriptions"} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% feed_menu.each do |feed| %>
|
<% feed_menu.each do |feed| %>
|
||||||
<div class="pure-u-1-2 pure-u-md-1-<%= feed_menu.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 pure-u-md-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,192 +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);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
<% 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 %>
|
|
||||||
|
|
||||||
// Since videojs-share can sometimes be blocked, we try to load it last
|
|
||||||
player.share(shareOptions);
|
|
||||||
</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