246 Commits

Author SHA1 Message Date
Omar Roth
5e2889e776 Update CHANGELOG and bump version 2019-05-05 23:02:43 -05:00
Omar Roth
5bda36fb28 Remove source map URL from videojs.hotkeys.min.js 2019-05-05 20:45:46 -05:00
Omar Roth
53fbb257b9 Update fix for HTTP Client 2019-05-05 19:03:56 -05:00
Omar Roth
65a32d6e20 Update fix for crystal-lang/crystal#7383 2019-05-05 17:47:45 -05:00
Omar Roth
92450920d4 Fix backticks in locales 2019-05-05 17:46:58 -05:00
Omar Roth
0099a9822e Refactor subscribe_widget 2019-05-05 08:38:55 -05:00
Omar Roth
0cf86974dd Add redirect for videos with no audio sources 2019-05-04 10:47:54 -05:00
Omar Roth
716705aa15 Add mouse hover for video previews 2019-05-04 08:43:41 -05:00
Omar Roth
757993064e Fix view_count_text extractor for livestreams 2019-05-04 08:43:41 -05:00
Omar Roth
3f738cf905 Tweak styling for thumbnail video length 2019-05-04 08:43:34 -05:00
Omar Roth
570715100b Fix text size for premieres 2019-05-03 18:00:16 -05:00
Omar Roth
ad8750b40d Fix referer escaping 2019-05-03 12:15:21 -05:00
Omar Roth
757ea93393 Fix typo 2019-05-03 09:15:53 -05:00
Omar Roth
dbd5a222d5 Add '/watch_videos' endpoint 2019-05-03 09:11:38 -05:00
Omar Roth
bba80bc80f Fix content-type for HEAD '.jpg' 2019-05-03 08:23:11 -05:00
Allan Nordhøy
094143bc28 Update Norwegian Bokmål translation 2019-05-02 21:38:28 +02:00
Jorge Maldonado Ventura
24a335d304 Update Esperanto translation 2019-05-02 21:38:28 +02:00
arkakuso
c62b318b9e Update Basque translation 2019-05-02 21:38:28 +02:00
Jorge Maldonado Ventura
ea5c7c321a Update Esperanto translation 2019-05-02 21:38:28 +02:00
Omar Roth
6d92775ab5 Add video previews 2019-05-02 14:36:32 -05:00
Omar Roth
1a9360ca75 Minor formatting changes 2019-05-01 20:03:39 -05:00
Omar Roth
22b9bbe702 Add support for anonymous playlists 2019-05-01 08:03:58 -05:00
Omar Roth
6fb44083ec Update source and licenses 2019-05-01 07:40:18 -05:00
Omar Roth
ba02be08bb Merge pull request #303 from glmdgrielson/annotations
Add annotation player
2019-05-01 07:14:10 -05:00
Omar Roth
56fe3ede5b Add annotation preferences 2019-04-30 23:39:04 -05:00
glmdgrielson
e48a000784 Add annotation player
This addresses issue #110 from master. Yay for adding annotations back!
2019-04-30 21:19:13 -05:00
Omar Roth
6d1c150ff5 Fix typo 2019-04-30 21:18:35 -05:00
Omar Roth
21190a240f Add support for adding banner to site header 2019-04-30 21:17:34 -05:00
Omar Roth
8a525bc131 Add '/api/v1/auth/preferences' 2019-04-30 21:01:57 -05:00
Omar Roth
734905d1f7 Bump max-age for HSTS 2019-04-30 20:53:56 -05:00
Omar Roth
90edf2fc60 Add 'debug' topic to /api/v1/auth/notifications 2019-04-30 20:48:48 -05:00
Omar Roth
e3f37c14db Add glibc to Docker dependencies 2019-04-30 08:56:24 -05:00
Omar Roth
c6c92184d9 Fix duplicate id on watch page 2019-04-29 09:34:49 -05:00
Omar Roth
c4fbc65354 Provide bundled streams first in download widget 2019-04-28 18:51:10 -05:00
Omar Roth
54d250bde4 Add 'since' to '/api/v1/auth/notifications' 2019-04-28 18:14:16 -05:00
Omar Roth
ef309bd8d0 Translate value for 'familyFriendly' 2019-04-28 14:56:06 -05:00
Omar Roth
6cdb6ec711 Add support for plurlization to locales 2019-04-28 14:50:17 -05:00
Omar Roth
03891b66b6 Show view count for related videos 2019-04-28 14:14:44 -05:00
Omar Roth
42dd6326d5 Remove unnecessary index 2019-04-28 14:11:23 -05:00
Omar Roth
5c4defdb8e Add support for '/c/:user/live' 2019-04-28 14:11:23 -05:00
Omar Roth
f08d53b0c6 Add view count to livestreams in search results 2019-04-28 14:11:23 -05:00
Omar Roth
6859b85266 Add 'lang' to HTML tag 2019-04-28 10:05:15 -05:00
Omar Roth
075adb4f03 Add http-source-selector 2019-04-28 10:05:15 -05:00
Esmail EL BoB
5ce72a3461 Updated most of ar.json (#508)
* Update ar.json
2019-04-25 13:09:38 -05:00
Omar Roth
8c2958b86d Add 'local=true' to hlsUrl 2019-04-25 12:41:35 -05:00
Omar Roth
f15b7cebac Try to prevent timeout in /data_control 2019-04-24 20:18:35 -05:00
Omar Roth
f6d8df1e83 Update videojs-share 2019-04-24 08:48:34 -05:00
Omar Roth
19ed5bf993 Add support for 'user' URLs in NewPipe import 2019-04-22 15:39:57 -05:00
Omar Roth
5567e2843d Force refresh after receiving PubSub notification 2019-04-22 11:15:19 -05:00
Omar Roth
0a8e20fd60 Revert "Update French translation"
This reverts commit a2533af116.
2019-04-22 11:07:41 -05:00
Omar Roth
558c4341e4 Merge remote-tracking branch 'weblate/master' 2019-04-22 10:51:08 -05:00
Omar Roth
250860d92c Add '/api/v1/auth/subscriptions' 2019-04-22 10:40:29 -05:00
Omar Roth
64aecba7a0 Add option to change passwords 2019-04-22 10:18:17 -05:00
Jorge Maldonado Ventura
3689b08237 Update Esperanto translation 2019-04-20 20:33:58 +02:00
Omar Roth
30e567e8b6 Fix published time for /api/v1/auth/notifications 2019-04-20 12:41:51 -05:00
Omar Roth
ddd74549fe Fix description field for /api/v1/videos 2019-04-20 10:50:55 -05:00
Omar Roth
14620c32aa Don't overwrite published date for channel_videos 2019-04-20 10:18:54 -05:00
Omar Roth
fb7068d415 Add '/api/v1/notifications' 2019-04-20 09:33:45 -05:00
Omar Roth
8614ff40df Add support for Ukranian and Esperanto 2019-04-19 11:20:18 -05:00
Allan Nordhøy
aa10a9d899 Language fixes (#366)
* Language fixes
2019-04-19 11:14:11 -05:00
Omar Roth
a5b8feca93 Merge remote-tracking branch 'weblate/master' 2019-04-19 10:31:14 -05:00
Omar Roth
486e47f985 Add missing text to locales 2019-04-19 10:28:12 -05:00
Omar Roth
bb5a1ad513 Add 'continue_autoplay' preference 2019-04-19 09:38:27 -05:00
Omar Roth
eac0a52f10 Fix shiftKey for player hotkeys 2019-04-19 09:20:41 -05:00
Tolstovka
7ac00258cc Update Ukrainian translation 2019-04-19 15:49:24 +02:00
Tolstovka
e3a0ae8a4b Update Russian translation 2019-04-19 15:49:24 +02:00
Adam Zieliński
2953159f8b Update Polish translation 2019-04-19 15:49:24 +02:00
Allan Nordhøy
9693363c76 Update Norwegian Bokmål translation 2019-04-19 15:49:24 +02:00
Anne Onyme 017
a2533af116 Update French translation 2019-04-19 15:49:24 +02:00
Jorge Maldonado Ventura
b4aecb5b74 Update Spanish translation 2019-04-19 15:49:24 +02:00
Jorge Maldonado Ventura
15aa2498b5 Update Esperanto translation 2019-04-19 15:49:24 +02:00
Omar Roth
0372ff0c2c Update shard.yml 2019-04-19 08:49:08 -05:00
Omar Roth
7a8d5a391a Fix downcasting with usernames 2019-04-18 19:17:58 -05:00
Omar Roth
2a6c81a89d Add authentication API 2019-04-18 16:23:50 -05:00
Omar Roth
301871aec6 Bump version 2019-04-18 08:37:29 -05:00
Omar Roth
25359e5320 Fix typo in 404 handler 2019-04-17 14:46:00 -05:00
Omar Roth
b6fff53b21 Refactor HTTP::Client calls into make_client 2019-04-17 09:06:31 -05:00
Omar Roth
ae7b5fac74 Fix handling for comments 2019-04-16 08:20:25 -05:00
Omar Roth
26168a9520 Refactor CSRF tokens (using format in #473) 2019-04-15 23:23:40 -05:00
Omar Roth
698dfca319 Add migrate script for annotations.sql 2019-04-15 11:17:23 -05:00
Omar Roth
3bcb98e644 Add config option to cache annotations from IA 2019-04-15 11:13:09 -05:00
Omar Roth
2deb436ccd Update placeholder text in new locales 2019-04-15 10:45:00 -05:00
Omar Roth
2b3405c4a9 Merge remote-tracking branch 'weblate/master' 2019-04-14 19:48:47 -05:00
Omar Roth
677a465630 Fix file formatting for locales 2019-04-14 19:48:21 -05:00
Omar Roth
8ecb76fc0b Merge remote-tracking branch 'weblate/master' 2019-04-14 19:40:47 -05:00
Tolstovka
0178013fc1 Update Ukrainian translation 2019-04-14 19:39:17 -05:00
Tolstovka
c273a8ee69 Update Ukrainian translation 2019-04-15 02:23:36 +02:00
Tolstovka
0ed56b706b Update Russian translation 2019-04-15 02:23:32 +02:00
Jorge Maldonado Ventura
4582b6cf76 Update Esperanto translation 2019-04-15 02:23:31 +02:00
Omar Roth
05513bcd1e Fix "placeholder=" text in locales 2019-04-14 19:17:56 -05:00
Omar Roth
f5dd135ed8 Add 'view as playlist' option to trending page 2019-04-14 19:04:10 -05:00
Omar Roth
9c8f85741c Fix search when keyword matches operator 2019-04-14 18:37:43 -05:00
Omar Roth
ca515f2eae Use headset icon for audio mode 2019-04-14 18:24:25 -05:00
Omar Roth
80c1ebd768 Support 'sort_by' in reddit /api/v1/comments 2019-04-14 18:08:00 -05:00
Omar Roth
b51fd7fc13 Add view count to video items 2019-04-14 17:43:44 -05:00
Omar Roth
efe86c37b2 Show subscribe text when not logged in 2019-04-14 17:10:32 -05:00
Omar Roth
d20a4a8bfc Fix grid size for smaller devices 2019-04-14 17:04:52 -05:00
Tolstovka
9da2d11e80 Add Ukrainian translation 2019-04-14 01:58:01 +02:00
Jorge Maldonado Ventura
5ef554aecf Add Esperanto translation 2019-04-14 01:41:17 +02:00
Omar Roth
9a7fea0447 Add playlist support to embedded videos 2019-04-13 14:26:32 -05:00
Omar Roth
ae52ff93b2 Fix 404 for annotations endpoint 2019-04-13 08:28:59 -05:00
Omar Roth
80a567bf1e Fix video count in playlist extractor 2019-04-12 16:37:35 -05:00
Omar Roth
ce2a3361eb Fix missing author name for channel_videos 2019-04-12 16:29:23 -05:00
Omar Roth
ca9ea109c6 Add id to AdaptationSets 2019-04-12 11:19:54 -05:00
Omar Roth
2a33a746f0 Remove content type from videoplayback redirects 2019-04-12 11:08:33 -05:00
Omar Roth
e8c5246645 Fix share button 2019-04-12 09:31:05 -05:00
Omar Roth
98295b85ab Add webm to dash manifests 2019-04-12 08:04:59 -05:00
Omar Roth
af1823db8c Fix url in storyboards 2019-04-12 07:29:47 -05:00
Omar Roth
a2ab6b89f1 Fix width and height in manifest 2019-04-11 22:31:45 -05:00
Omar Roth
5de300fb35 Fix default background color for player 2019-04-11 17:03:37 -05:00
Omar Roth
62a4c82e95 Add storyboards and fix image caching 2019-04-11 17:00:00 -05:00
Omar Roth
d522c864d4 Add dashUrl to /api/v1/videos 2019-04-11 15:28:03 -05:00
Omar Roth
aa8ff7ace3 Always use ucid for channel search 2019-04-11 13:52:09 -05:00
Omar Roth
4e6a931de3 Make check_tables config option 2019-04-11 12:13:25 -05:00
Omar Roth
5e141e869d Add subtitles to download widget 2019-04-11 12:08:43 -05:00
Omar Roth
611555514c Remove unnecessary XML declaration 2019-04-11 11:53:07 -05:00
Omar Roth
e1c78fcbd3 Update view names to avoid collisions 2019-04-10 19:56:38 -05:00
Omar Roth
8640d6bb1e Add 'extract_polymer_config' 2019-04-10 18:02:13 -05:00
Omar Roth
28d5bedcc7 Speed up table creation 2019-04-10 17:16:18 -05:00
Omar Roth
373b890e1d Log command before execution 2019-04-10 17:09:36 -05:00
Omar Roth
aad0f90a9d Add 'sign_token' 2019-04-10 16:58:46 -05:00
Omar Roth
5dc45c35e6 Automatically migrate database 2019-04-10 16:23:37 -05:00
Omar Roth
b8c87632e6 Add feed link to watch history 2019-04-09 17:41:25 -05:00
Omar Roth
c85903383a Fix to_json for storing user preferences 2019-04-08 09:46:58 -05:00
Omar Roth
4aededf038 Add media-src blob: to CSP 2019-04-08 09:39:47 -05:00
Omar Roth
4bc6501b8d Add 'blob' to CSP 2019-04-08 09:36:12 -05:00
Omar Roth
a1b3b47573 Add CSP, STS, and Referrer-Policy 2019-04-07 14:04:33 -05:00
Omar Roth
c8cf4fe09c Fix subscription_ajax for Google accounts 2019-04-07 12:59:12 -05:00
Omar Roth
ca07d75405 Add '--version' to command line 2019-04-06 08:32:36 -05:00
Omar Roth
c5001f3620 Add role to psql scripts 2019-04-06 07:38:33 -05:00
Omar Roth
8d5f941829 Update CHANGELOG and bump version 2019-04-05 23:04:56 -05:00
Omar Roth
c3bfaa1c33 Merge remote-tracking branch 'weblate/master' 2019-04-05 17:25:39 -05:00
Omar Roth
ea0d52c0b8 Add support for Spanish translation 2019-04-05 17:24:06 -05:00
Allan Nordhøy
fcb37f40f6 Update Norwegian Bokmål translation 2019-04-06 00:13:29 +02:00
dimqua
7f30d07f4c Update Russian translation 2019-04-06 00:13:29 +02:00
micrococo
59744a96fa Add Spanish translation (#466)
* Add Spanish translation
2019-04-05 17:13:25 -05:00
Omar Roth
b82fb58dc4 Fix typo in handling 'controls' param 2019-04-04 15:05:54 -05:00
Omar Roth
c728214af7 Fix batch importing of channels 2019-04-04 14:49:32 -05:00
Omar Roth
305d636217 Add multithreading to pubsub job 2019-04-04 07:49:53 -05:00
Omar Roth
31312747e9 Fix from_yaml in ConfigPreferences 2019-04-03 19:04:33 -05:00
Omar Roth
5ef288b840 Add 'sort_by' to /api/v1/comments 2019-04-03 18:42:12 -05:00
Omar Roth
f6615a490d Allow disabling download widget for specific videos (in compliance with DMCA) 2019-04-03 14:54:38 -05:00
Omar Roth
bd4f5ebcdf Add option to configure default user preferences 2019-04-03 11:38:41 -05:00
Omar Roth
1fd7ff5655 Add scheme to author thumbnail 2019-04-02 08:51:28 -05:00
Omar Roth
ab7e1b42bd Add '/api/v1/annotations/:id' 2019-03-31 22:07:17 -05:00
afrmtbl
a7723e6ded Implement "fields" parameter from the YouTube Data API (#429)
* Implement fields handling
2019-03-30 20:18:34 -05:00
Omar Roth
1b78001201 Use struct for allocations 2019-03-29 16:30:02 -05:00
Omar Roth
36c0eae7ed Add /feeds/videos.xml 2019-03-29 15:50:18 -05:00
Omar Roth
0ae43e242f Fix pubsub job for newly added channels 2019-03-29 10:03:13 -05:00
Omar Roth
bafd4f1860 Update Arabic translation 2019-03-29 09:08:10 -05:00
Omar Roth
388e58bf1e Update handling for preferences 2019-03-28 13:43:40 -05:00
Omar Roth
eee973fe86 Fix host in redirect 2019-03-27 15:25:08 -05:00
Omar Roth
61769c6f9c Fix local redirects in /videoplayback 2019-03-27 15:00:22 -05:00
TheFrenchGhosty
665ef9424e French translation updated - New words translated, even more consistency (#451)
* French Translation Updated
2019-03-27 12:23:54 -05:00
Omar Roth
7a0f0ca5ce Fix thin mode 2019-03-27 11:31:05 -05:00
Omar Roth
63be05146d Fix expire for prefs cookie 2019-03-27 11:15:23 -05:00
Omar Roth
9239cfb3c1 Fix redirect for shortened video urls 2019-03-27 05:28:53 -05:00
Omar Roth
6fd24ad54f Add cancel button to search bar 2019-03-26 17:45:39 -05:00
Omar Roth
d70933c9f2 Fix typo in allow_ratings 2019-03-26 13:47:06 -05:00
Omar Roth
9ac2ddcb4d Fix premiere_timestamp without scheduledStartTime 2019-03-26 13:46:07 -05:00
Omar Roth
8d9569e06b Add 'unlisted' icon to watch page 2019-03-26 13:01:23 -05:00
Omar Roth
02f8e657f3 Update French translation 2019-03-25 20:27:35 -05:00
Omar Roth
3dc711ab9d Merge remote-tracking branch 'weblate/master' 2019-03-25 20:12:43 -05:00
Adam Zieliński
702922dd88 Update Polish translation 2019-03-25 19:38:30 -05:00
TheFrenchGhosty
2583c809ca French translation updated - More consistency (#436)
* French translation updated
2019-03-25 19:26:18 -05:00
Adam Zieliński
b6071ce6dc Update Polish translation 2019-03-25 23:11:09 +01:00
Anne Onyme 017
186132bb98 Update French translation 2019-03-25 23:11:09 +01:00
Omar Roth
c15790f230 Use user preferences in embedded videos 2019-03-25 17:09:53 -05:00
Omar Roth
13924a8353 Fix duplicate file extension 2019-03-25 17:09:20 -05:00
Omar Roth
fd84b57ac8 Use tuples for "qualities" in API endpoints 2019-03-25 10:00:18 -05:00
Omar Roth
591a6b330a Remove 'crawl_threads', fix sleep in fibers 2019-03-25 09:23:42 -05:00
Omar Roth
a3b767bb13 Add live now indicator to playlists 2019-03-24 09:10:14 -05:00
Omar Roth
847ee61bf4 Fix typo in APIHandler 2019-03-24 09:01:18 -05:00
Omar Roth
0c6cede287 Format files and trim trailing whitespace 2019-03-23 14:05:13 -05:00
Omar Roth
ce4b07d7d7 Fix thumbnail for deleted videos 2019-03-23 12:56:52 -05:00
Omar Roth
a1f49b279f Rename migrate scripts 2019-03-23 11:34:16 -05:00
Omar Roth
1c8075ca40 Add 0.25 to list of playback rates 2019-03-23 11:14:15 -05:00
Omar Roth
56b0952cd1 Update sources 2019-03-23 11:09:31 -05:00
Omar Roth
1c152f6cad Add padding to thumbnails 2019-03-23 10:24:52 -05:00
Omar Roth
57c05354c2 Move 'pretty=1' into middleware 2019-03-23 10:24:30 -05:00
Omar Roth
90b5479735 Fix error message for invalid video ID 2019-03-22 22:17:39 -05:00
Omar Roth
1079c4516c Automatically recreate views with outdated schema 2019-03-22 16:53:16 -05:00
Omar Roth
7381985c79 Fix typo in logger 2019-03-22 15:50:41 -05:00
Omar Roth
fd26f9f34e Add support for premieres to search and feed 2019-03-22 14:54:35 -05:00
Omar Roth
88b70973cc Add 'premiereTimestamp' to /api/v1/videos 2019-03-22 14:53:19 -05:00
Omar Roth
f0658bbd09 Add 'liveNow' to subscription feed 2019-03-22 14:52:57 -05:00
Omar Roth
661e07c8db Merge pull request #423 from Perflyst/patch-1
Update contact email in shard.yml
2019-03-20 11:40:47 -05:00
Omar Roth
6e51189d4d Expire nonce on register 2019-03-20 11:02:04 -05:00
Perflyst
dfdb7c835b Update contact email in shard.yml 2019-03-20 16:33:31 +01:00
Omar Roth
f1d7aa09e4 Add fix for Google cookies with no extension 2019-03-20 09:48:37 -05:00
Omar Roth
88e6b865d9 Update contact email for text captcha 2019-03-20 09:20:51 -05:00
Omar Roth
d5c6d74f14 Fix loading icon size 2019-03-20 09:20:31 -05:00
Omar Roth
202f3d36c4 Bake in branch, commit, version 2019-03-19 20:50:34 -05:00
Omar Roth
7a54b1d36a Fix player size with JS disabled 2019-03-19 20:13:26 -05:00
Omar Roth
9091b36249 Don't require CAPTCHA for login 2019-03-19 20:13:16 -05:00
Omar Roth
21285d9f6d Fix file extension for download widget 2019-03-17 18:52:01 -05:00
Omar Roth
2ebc773863 Add mixes to genre channels 2019-03-17 18:31:11 -05:00
Omar Roth
44f4057876 Fix issue with cookie expiration 2019-03-17 12:40:24 -05:00
Omar Roth
d85020079f Add shortcuts for changing playbackRate 2019-03-17 12:21:55 -05:00
Omar Roth
956dc382ea Clean up player CSS 2019-03-17 12:21:55 -05:00
Omar Roth
99aa214859 Add 'thumbnail_id' to playlists 2019-03-17 12:21:47 -05:00
Omar Roth
405e98f429 Add 1.25 and 0.75 playback rates 2019-03-16 09:17:57 -05:00
Omar Roth
a8c375fc95 Update copyright notice 2019-03-15 11:44:53 -05:00
Omar Roth
4a56a2cad6 Remove outline when clicking on player 2019-03-15 08:34:37 -05:00
Omar Roth
438945907d Merge branch 'master' of github.com:omarroth/invidious 2019-03-14 21:12:32 -05:00
TheFrenchGhosty
db245add0f French translation updated, some translation restored (#412)
* French translation updated
2019-03-14 20:28:27 -05:00
Anne Onyme 017
986699bce5 Update French translation 2019-03-14 23:03:33 +01:00
dimqua
d1803320f1 Update Russian translation 2019-03-13 17:21:24 +01:00
Omar Roth
d4609519f0 Merge pull request #411 from EsmailELBoBDev2/master
Update ar.json
2019-03-13 11:21:20 -05:00
Esmail EL BoB
2b4a6284e4 Update ar.json 2019-03-13 12:26:43 +00:00
Omar Roth
3c6be7e04c Merge weblate into master 2019-03-13 00:02:21 -05:00
Omar Roth
e738e57e26 Add 'local' option to preferences 2019-03-12 21:05:49 -05:00
Omar Roth
21ebc398fa Add privacy policy 2019-03-12 20:58:25 -05:00
Adam Zieliński
1ac611239e Update Polish translation 2019-03-12 16:14:34 +01:00
Allan Nordhøy
97e6047725 Update Norwegian Bokmål translation 2019-03-12 16:14:34 +01:00
Omar Roth
cf3f0fcc39 Add max-aspect-ratio to player 2019-03-12 10:12:47 -05:00
Omar Roth
19c32bf993 Calculate player height based on viewport 2019-03-12 10:01:36 -05:00
Omar Roth
e86eb16d91 Add temporary fix for crystal-lang/crystal#7383 2019-03-11 16:17:40 -05:00
Omar Roth
1fcd1ff3e8 Add better fallback for '/videoplayback' 2019-03-11 14:07:55 -05:00
Omar Roth
58f4212aa8 Remove 'host' from query params 2019-03-11 13:32:46 -05:00
Omar Roth
f01152eda1 Add 'host' to '/videoplayback' 2019-03-11 13:14:30 -05:00
Omar Roth
11ff40bcd6 Fix paths for 'local=true&raw=1' 2019-03-11 12:55:09 -05:00
Omar Roth
46e985b306 Add 'dark_mode', 'thin_mode' as query parameters 2019-03-11 12:44:25 -05:00
Omar Roth
fdc014af67 Add '&local=true' to watch and embed pages 2019-03-11 11:43:48 -05:00
Omar Roth
bf11a46abe Bump expire time for pubsub 2019-03-11 10:48:38 -05:00
Omar Roth
8f41130a14 Update and add missing text to locales 2019-03-08 22:23:17 -06:00
dimqua
e96c4732d6 Update Russian translation 2019-03-09 05:02:13 +01:00
Allan Nordhøy
a1d38a6940 Update Norwegian Bokmål translation 2019-03-09 05:02:13 +01:00
Omar Roth
9b8703cf49 Fix tab name for auto-generated channels 2019-03-08 22:01:59 -06:00
Omar Roth
c4d77bc18a Use host_url for generating thumbnails 2019-03-08 14:43:31 -06:00
Omar Roth
c69fbb72d3 Fix typo in README 2019-03-08 12:01:43 -06:00
Omar Roth
64e4791dca Update README.md 2019-03-08 12:01:31 -06:00
Omar Roth
bc1e62ce51 Add 'external_port' 2019-03-08 11:37:52 -06:00
Omar Roth
79c1040796 Remove sourceMap link for JS source 2019-03-08 10:36:14 -06:00
Omar Roth
eaf55bf12c Fix styling for watch indicator 2019-03-08 10:35:18 -06:00
Omar Roth
ce528c9783 Update sorting for subscriptions 2019-03-08 10:34:52 -06:00
Omar Roth
b9c7501012 Fix typo in pubsub update 2019-03-07 21:49:52 -06:00
Omar Roth
ae10052aaf Fix date parsing for RSS feeds 2019-03-07 21:13:54 -06:00
Omar Roth
10abcd519f Add RSS alternate to channel and subscription pages 2019-03-07 13:34:33 -06:00
Omar Roth
1d6c763e92 Merge pull request #397 from dimqua/patch-1
(preferences) fix word wrap
2019-03-07 13:29:44 -06:00
Omar Roth
3fa0ce99f0 Merge pull request #403 from em92/patch-1
Add alternate link with rss feed to playlist page
2019-03-07 13:29:14 -06:00
Eugene Molotov
7380585f00 Add alternate link with rss feed to playlist page 2019-03-07 12:26:30 +05:00
Omar Roth
7557ffcda1 Mark deleted channels in /subscription_manager 2019-03-06 09:54:56 -06:00
Omar Roth
bc9d70109c Fix typo in index 2019-03-06 08:45:04 -06:00
Omar Roth
7448159d6b Update CHANGELOG and bump version 2019-03-05 23:55:24 -06:00
dimqua
f16273772e (preferences) fix word wrap 2019-03-04 23:14:24 +03:00
103 changed files with 10587 additions and 8339 deletions

View File

@@ -1,3 +1,184 @@
# 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 +240,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.

View File

@@ -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

View File

@@ -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;

View File

@@ -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;
@@ -203,7 +231,7 @@ img.thumbnail {
} }
} }
/* /*
* Footer * Footer
*/ */
@@ -237,6 +265,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);
@@ -304,38 +372,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;
} }

View File

@@ -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;
} }

File diff suppressed because one or more lines are too long

View 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}

View File

@@ -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}}

View 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)}

View 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}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,78 @@
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 +
'&referer=' + location.pathname + location.search;
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 + 1);
};
}
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 +
'&referer=' + location.pathname + location.search;
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 + 1);
};
}

File diff suppressed because one or more lines are too long

View File

@@ -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});

File diff suppressed because one or more lines are too long

View 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});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -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);
}));

View File

@@ -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})});

View File

@@ -1,52 +1,52 @@
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(target) {
body = target.parentNode.parentNode.parentNode.children[1]; body = target.parentNode.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 swap_comments(source) { function swap_comments(source) {
if (source == "youtube") { if (source == "youtube") {
get_youtube_comments(); get_youtube_comments();
} else if (source == "reddit") { } else if (source == "reddit") {
get_reddit_comments(); get_reddit_comments();
} }
} }
String.prototype.supplant = function(o) { String.prototype.supplant = function (o) {
return this.replace(/{([^{}]*)}/g, function(a, b) { return this.replace(/{([^{}]*)}/g, function (a, b) {
var r = o[b]; var r = o[b];
return typeof r === "string" || typeof r === "number" ? r : a; return typeof r === "string" || typeof r === "number" ? r : a;
}); });
}; };
function show_youtube_replies(target, inner_text, sub_text) { function show_youtube_replies(target, inner_text, sub_text) {
body = target.parentNode.parentNode.children[1]; body = target.parentNode.parentNode.children[1];
body.style.display = ""; body.style.display = "";
target.innerHTML = inner_text; target.innerHTML = inner_text;
target.setAttribute("onclick", "hide_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')"); target.setAttribute("onclick", "hide_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')");
} }
function hide_youtube_replies(target, inner_text, sub_text) { function hide_youtube_replies(target, inner_text, sub_text) {
body = target.parentNode.parentNode.children[1]; body = target.parentNode.parentNode.children[1];
body.style.display = "none"; body.style.display = "none";
target.innerHTML = sub_text; target.innerHTML = sub_text;
target.setAttribute("onclick", "show_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')"); target.setAttribute("onclick", "show_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')");
} }

View File

@@ -1,5 +1,3 @@
video_threads: 0
crawl_threads: 0
channel_threads: 1 channel_threads: 1
feed_threads: 1 feed_threads: 1
db: db:

View File

@@ -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;"

View 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"

View File

@@ -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;"

View File

@@ -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"

View File

@@ -0,0 +1,3 @@
#!/bin/sh
psql invidious kemal < config/sql/annotations.sql

View 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;"

View File

@@ -0,0 +1,3 @@
#!/bin/sh
psql invidious kemal -c "ALTER TABLE channel_videos ADD COLUMN premiere_timestamp timestamptz;"

View 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'"

View File

@@ -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'"

View 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;

View File

@@ -11,20 +11,13 @@ 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,
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;

View File

@@ -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

View File

@@ -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

View File

@@ -1,294 +1,314 @@
{ {
"`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": "زيارة القناة على موقع يوتيوب", "newest": "الأجدد",
"newest": "الأجدد", "oldest": "الأقدم",
"oldest": "الأقدم", "popular": "الاكثر شعبية",
"popular": "الاكثر شعبية", "last": "اخر قوائم التشغيل المعدلة",
"Preview page": "معاينة الصفحة", "Next page": "الصفحة الثانية",
"Next page": "الصفحة الثانية", "Previous page": "الصفحة السابقة",
"Clear watch history?": "مسح السجل ؟", "Clear watch history?": "مسح السجل ؟",
"Yes": "نعم", "New password": "الرقم السرى الجديد",
"No": "لا", "New passwords must match": "الأرقام السرية يجب ان تكون متطابقة",
"Import and Export Data": "استخراج و إضافة البيانات", "Cannot change password for Google accounts": "لا يستطيع تغيير الرقم السرى لحساب جوجل",
"Import": "إضافة", "Authorize token?": "رمز الإذن ؟",
"Import Invidious data": "إضافة بيانات Invidious", "Authorize token for `x`?": "رمز الإذن لـ `x` ?",
"Import YouTube subscriptions": "إضافةالإشتراكات من موقع يوتيوب", "Yes": "نعم",
"Import FreeTube subscriptions (.db)": "إضافةالمشتركين من FreeTube (.db)", "No": "لا",
"Import NewPipe subscriptions (.json)": "إضافة المشتركين من NewPipe (.json)", "Import and Export Data": "استخراج و إضافة البيانات",
"Import NewPipe data (.zip)": "إضافة بيانات NewPipe (.zip)", "Import": "إضافة",
"Export": "استخراج", "Import Invidious data": "إضافة بيانات Invidious",
"Export subscriptions as OPML": "استخراج المشتركين كـ OPML", "Import YouTube subscriptions": "إضافةالإشتراكات من موقع يوتيوب",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "استخراج المشتركين كـ OPML (لـ NewPipe و FreeTube)", "Import FreeTube subscriptions (.db)": "إضافةالمشتركين من FreeTube (.db)",
"Export data as JSON": "استخراج البيانات كـ JSON", "Import NewPipe subscriptions (.json)": "إضافة المشتركين من NewPipe (.json)",
"Delete account?": "حذف الحساب ؟", "Import NewPipe data (.zip)": "إضافة بيانات NewPipe (.zip)",
"History": "السجل", "Export": "استخراج",
"Previous page": "الصفحة السابقة", "Export subscriptions as OPML": "استخراج المشتركين كـ OPML",
"An alternative front-end to YouTube": "البديل الكامل لموقع يوتيوب", "Export subscriptions as OPML (for NewPipe & FreeTube)": "استخراج المشتركين كـ OPML (لـ NewPipe و FreeTube)",
"JavaScript license information": "معلومات ترخيص JavaScript", "Export data as JSON": "استخراج البيانات كـ JSON",
"source": "المصدر", "Delete account?": "حذف الحساب ؟",
"Login": "تسجيل الدخول", "History": "السجل",
"Login/Register": "تسجيل الدخول\\إنشاء حساب", "An alternative front-end to YouTube": "البديل الكامل لموقع يوتيوب",
"Login to Google": "تسجيل الدخول بإستخدام جوجل", "JavaScript license information": "معلومات ترخيص JavaScript",
"User ID:": "إسم المستخدم:", "source": "المصدر",
"Password:": "الرقم السرى:", "Log in": "تسجيل الدخول",
"Time (h:mm:ss):": "(يجب ان يكتب مثل هذا التنسيق) الوقت (h(ساعات):mm(دقائق):ss(ثوانى)):", "Log in/register": "تسجيل الدخول\\إنشاء حساب",
"Text CAPTCHA": "CAPTCHA كلامية", "Log in with Google": "تسجيل الدخول بإستخدام جوجل",
"Image CAPTCHA": "CAPTCHA صورية", "User ID": "إسم المستخدم",
"Sign In": "تسجيل الدخول", "Password": "الرقم السرى",
"Register": "انشاء الحساب", "Time (h:mm:ss):": "(يجب ان يكتب مثل هذا التنسيق) الوقت (h(ساعات):mm(دقائق):ss(ثوانى)):",
"Email:": "الإيميل:", "Text CAPTCHA": "CAPTCHA كلامية",
"Google verification code:": "رمز تحقق جوجل:", "Image CAPTCHA": "CAPTCHA صورية",
"Preferences": "التفضيلات", "Sign In": "تسجيل الدخول",
"Player preferences": "التفضيلات المشغل", "Register": "انشاء الحساب",
"Always loop: ": "كرر الفيديو دائما: ", "E-mail": "الإيميل",
"Autoplay: ": "تشغيل تلقائى: ", "Google verification code": "رمز تحقق جوجل",
"Autoplay next video: ": "شغل الفيديو التالى تلقائى: ", "Preferences": "التفضيلات",
"Listen by default: ": "تشغيل النسخة السمعية تلقائى: ", "Player preferences": "التفضيلات المشغل",
"Default speed: ": "السرعة الإفتراضية: ", "Always loop: ": "كرر الفيديو دائما: ",
"Preferred video quality: ": "الجودة المفضلة للفيديوهات: ", "Autoplay: ": "تشغيل تلقائى: ",
"Player volume: ": "صوت المشغل: ", "Play next by default: ": "",
"Default comments: ": "إضهار التعليقات الإفتراضية لـ: ", "Autoplay next video: ": "شغل الفيديو التالى تلقائى: ",
"youtube": "يوتيوب", "Listen by default: ": "تشغيل النسخة السمعية تلقائى: ",
"reddit": "Reddit", "Proxy videos? ": "عرض الفيديوهات عن طريق الوكيل(proxy) ؟",
"Default captions: ": "الترجمات الإفتراضية: ", "Default speed: ": "السرعة الإفتراضية: ",
"Fallback captions: ": "الترجمات المصاحبة: ", "Preferred video quality: ": "الجودة المفضلة للفيديوهات: ",
"Show related videos? ": "عرض مقاطع الفيديو ذات الصلة؟", "Player volume: ": "صوت المشغل: ",
"Visual preferences": "التفضيلات المرئية", "Default comments: ": "إضهار التعليقات الإفتراضية لـ: ",
"Dark mode: ": "الوضع الليلى: ", "youtube": "يوتيوب",
"Thin mode: ": "الوضع الخفيف: ", "reddit": "Reddit",
"Subscription preferences": "تفضيلات الإشتراك", "Default captions: ": "الترجمات الإفتراضية: ",
"Redirect homepage to feed: ": "إعادة التوجية من الصفحة الرئيسية لصفحة المشتركين (لرؤية اخر فيديوهات المشتركين): ", "Fallback captions: ": "الترجمات المصاحبة: ",
"Number of videos shown in feed: ": دد الفيديوهات التى ستظهر فى صفحة المشتركين: ", "Show related videos? ": رض مقاطع الفيديو ذات الصلة؟",
"Sort videos by: ": "ترتيب الفيديو بـ: ", "Show annotations by default? ": "",
"published": "احدث فيديو", "Visual preferences": "التفضيلات المرئية",
"published - reverse": "احدث فيديو - عكسى", "Dark mode: ": "الوضع الليلى: ",
"alphabetically": "ترتيب ابجدى", "Thin mode: ": "الوضع الخفيف: ",
"alphabetically - reverse": "ابجدى - عكسى", "Subscription preferences": "تفضيلات الإشتراك",
"channel name": "بإسم القناة", "Show annotations by default for subscribed channels? ": "",
"channel name - reverse": "بإسم القناة - عكسى", "Redirect homepage to feed: ": "إعادة التوجية من الصفحة الرئيسية لصفحة المشتركين (لرؤية اخر فيديوهات المشتركين): ",
"Only show latest video from channel: ": "فقط إظهر اخر فيديو من القناة: ", "Number of videos shown in feed: ": "عدد الفيديوهات التى ستظهر فى صفحة المشتركين: ",
"Only show latest unwatched video from channel: ": "فقط اظهر اخر فيديو لم يتم رؤيتة من القناة: ", "Sort videos by: ": "ترتيب الفيديو بـ: ",
"Only show unwatched: ": "فقط اظهر الذى لم يتم رؤيتة: ", "published": "احدث فيديو",
"Only show notifications (if there are any): ": "إظهار الإشعارات فقط (إذا كان هناك أي): ", "published - reverse": "احدث فيديو - عكسى",
"Data preferences": "إعدادات التفضيلات", "alphabetically": "ترتيب ابجدى",
"Clear watch history": "حذف سجل المشاهدة", "alphabetically - reverse": "ابجدى - عكسى",
"Import/Export data": "إضافة\\إستخراج البيانات", "channel name": "بإسم القناة",
"Manage subscriptions": "إدارة المشتركين", "channel name - reverse": "بإسم القناة - عكسى",
"Watch history": "سجل المشاهدة", "Only show latest video from channel: ": "فقط إظهر اخر فيديو من القناة: ",
"Delete account": "حذف الحساب", "Only show latest unwatched video from channel: ": "فقط اظهر اخر فيديو لم يتم رؤيتة من القناة: ",
"Administrator preferences": "", "Only show unwatched: ": "فقط اظهر الذى لم يتم رؤيتة: ",
"Default homepage: ": "", "Only show notifications (if there are any): ": "إظهار الإشعارات فقط (إذا كان هناك أي): ",
"Feed menu: ": "", "Data preferences": "إعدادات التفضيلات",
"Top enabled? ": "", "Clear watch history": "حذف سجل المشاهدة",
"CAPTCHA enabled? ": "", "Import/export data": "إضافة\\إستخراج البيانات",
"Login enabled? ": "", "Change password": "غير الرقم السرى",
"Registration enabled? ": "", "Manage subscriptions": "إدارة المشتركين",
"Report statistics? ": "", "Manage tokens": "إدارة الرموز",
"Save preferences": "حفظ التفضيلات", "Watch history": "سجل المشاهدة",
"Subscription manager": "مدير الإشتراكات", "Delete account": "حذف الحساب",
"`x` subscriptions": "`x` مشتركين", "Administrator preferences": "إعدادات المدير",
"Import/Export": "إضافة\\إستخراج", "Default homepage: ": "الصفحة الرئيسية الافتراضية ",
"unsubscribe": "إلغاء الإشتراك", "Feed menu: ": "قائمة التغذية",
"Subscriptions": "الإشتراكات", "Top enabled? ": "تفعيل 'الأفضل' ؟ ",
"`x` unseen notifications": "`x` إشعارات لم تشاهدها بعد ", "CAPTCHA enabled? ": "تفعيل الكابتشا ؟",
"search": "بحث", "Login enabled? ": "تفعيل تسجيل الدخول ؟",
"Sign out": سجيل الخروج", "Registration enabled? ": فعيل التسجيل ؟",
"Released under the AGPLv3 by Omar Roth.": "تم الإنشاء تحت AGPLv3 بواسطة عمر روث.", "Report statistics? ": "إبلاغ الإحصائيات",
"Source available here.": "الأكواد متوفرة هنا.", "Save preferences": "حفظ التفضيلات",
"Liberapay: ": "ليبرباى: ", "Subscription manager": "مدير الإشتراكات",
"Patreon: ": "باتريون: ", "Token manager": "إداره الرمز",
"BTC: ": "بيتكوين: ", "Token": "الرمز",
"BCH: ": "بيتكوين كاش: ", "`x` subscriptions": "`x` مشتركين",
"View JavaScript license information.": "مشاهدة معلومات حول تراخيص الجافاسكريبت.", "`x` tokens": "`x` رموز",
"Trending": "الشائع", "Import/export": "إضافة\\إستخراج",
"Watch video on Youtube": "مشاهدة الفيديو على اليوتيوب", "unsubscribe": "إلغاء الإشتراك",
"Genre: ": "النوع: ", "revoke": "مسح",
"License: ": "التراخيص: ", "Subscriptions": "الإشتراكات",
"Family friendly? ": "محتوى عائلى? ", "`x` unseen notifications": "`x` إشعارات لم تشاهدها بعد ",
"Wilson score: ": "درجة ويلسون: ", "search": "بحث",
"Engagement: ": "نسبة المشاركة (عدد المشاهدات\\عدد الإعجابات): ", "Log out": "تسجيل الخروج",
"Whitelisted regions: ": "الدول المسموح فيها هذا الفيديو: ", "Released under the AGPLv3 by Omar Roth.": "تم الإنشاء تحت AGPLv3 بواسطة عمر روث.",
"Blacklisted regions: ": "الدول الحظور فيها هذا الفيديو: ", "Source available here.": "الأكواد متوفرة هنا.",
"Shared `x`": "شارك منذ `x`", "View JavaScript license information.": "مشاهدة معلومات حول تراخيص الجافاسكريبت.",
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "اهلا! يبدو ان الجافاسكريبت معطلة. اضغط هنا لعرض التعليقات, ضع فى إعتبارك انها ستأخذ وقت اطول للعرض.", "View privacy policy.": "عرض سياسة الخصوصية",
"View YouTube comments": "عرض تعليقات اليوتيوب", "Trending": "الشائع",
"View more comments on Reddit": "عرض المزيد من التعليقات على\\من موقع Reddit", "Unlisted": "غير مصنف",
"View `x` comments": "عرض `x` تعليقات", "Watch on YouTube": "مشاهدة الفيديو على اليوتيوب",
"View Reddit comments": "عرض تعليقات ريدإت Reddit", "Hide annotations": "",
"Hide replies": "إخفاء الردود", "Show annotations": "",
"Show replies": "عرض الردود", "Genre: ": "النوع: ",
"Incorrect password": "الرقم السرى غير صحيح", "License: ": "التراخيص: ",
"Quota exceeded, try again in a few hours": "تم تجاوز عدد المرات المسموح بها, حاول مرة اخرى بعد عدة ساعات", "Family friendly? ": "محتوى عائلى? ",
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "غير قادر على تسجيل الدخول, تأكد من تشغيل المصادقة الثنائية 2FA.", "Wilson score: ": "درجة ويلسون: ",
"Invalid TFA code": "كود مصادقة ثنائية 2FA غير صحيح", "Engagement: ": "نسبة المشاركة (عدد المشاهدات\\عدد الإعجابات): ",
"Login failed. This may be because two-factor authentication is not enabled on your account.": "لم يتم تسجيل الدخول. هذا ربما بسبب ان المصادقة الثنائية 2FA معطلة فى حسابك.", "Whitelisted regions: ": "الدول المسموح فيها هذا الفيديو: ",
"Invalid answer": "إجابة خاطئة", "Blacklisted regions: ": "الدول الحظور فيها هذا الفيديو: ",
"Invalid CAPTCHA": "الكابتشا CAPTCHA غير صاحلة", "Shared `x`": "شارك منذ `x`",
"CAPTCHA is a required field": "مكان الكابتشا CAPTCHA مطلوب", "`x` views": "`x` مشاهدون",
"User ID is a required field": "مكان إسم المستخدم مطلوب", "Premieres in `x`": "يعرض فى `x`",
"Password is a required field": "مكان الرقم السرى مطلوب", "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "اهلا! يبدو ان الجافاسكريبت معطلة. اضغط هنا لعرض التعليقات, ضع فى إعتبارك انها ستأخذ وقت اطول للعرض.",
"Invalid username or password": "إسم المستخدم او الرقم السرى غير صحيح", "View YouTube comments": "عرض تعليقات اليوتيوب",
"Please sign in using 'Sign in with Google'": "الرجاء تسجيل الدخول 'تسجيل الدخول بواسطة جوجل'", "View more comments on Reddit": "عرض المزيد من التعليقات على\\من موقع Reddit",
"Password cannot be empty": "الرقم السرى لايمكن ان يكون فارغ", "View `x` comments": "عرض `x` تعليقات",
"Password cannot be longer than 55 characters": "الرقم السرى لا يتعدى 55 حرف", "View Reddit comments": "عرض تعليقات ريدإت Reddit",
"Please sign in": "الرجاء تسجيل الدخول", "Hide replies": "إخفاء الردود",
"Invidious Private Feed for `x`": "صفحة Invidious للمشتركين الخاصة\\مخفية لـ `x`", "Show replies": "عرض الردود",
"channel:`x`": "قناة:`x`", "Incorrect password": "الرقم السرى غير صحيح",
"Deleted or invalid channel": "قناة ممسوحة او غير صالحة", "Quota exceeded, try again in a few hours": "تم تجاوز عدد المرات المسموح بها, حاول مرة اخرى بعد عدة ساعات",
"This channel does not exist.": "القناة غير موجودة.", "Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "غير قادر على تسجيل الدخول, تأكد من تشغيل المصادقة الثنائية 2FA.",
"Could not get channel info.": "لم يستطع الحصول على معلومات القناة.", "Invalid TFA code": "كود مصادقة ثنائية 2FA غير صحيح",
"Could not fetch comments": "لم يتمكن من إحضار التعليقات", "Login failed. This may be because two-factor authentication is not turned on for your account.": "لم يتم تسجيل الدخول. هذا ربما بسبب ان المصادقة الثنائية 2FA معطلة فى حسابك.",
"View `x` replies": "عرض `x` ردود", "Wrong answer": "إجابة خاطئة",
"`x` ago": "`x` منذ", "Erroneous CAPTCHA": "الكابتشا CAPTCHA غير صاحلة",
"Load more": "عرض المزيد", "CAPTCHA is a required field": "مكان الكابتشا CAPTCHA مطلوب",
"`x` points": "`x` نقاط", "User ID is a required field": "مكان إسم المستخدم مطلوب",
"Could not create mix.": "لم يستطع عمل خلط.", "Password is a required field": "مكان الرقم السرى مطلوب",
"Playlist is empty": "قائمة التشغيل فارغة", "Wrong username or password": "إسم المستخدم او الرقم السرى غير صحيح",
"Invalid playlist.": "قائمة التشغيل غير صالحة.", "Please sign in using 'Log in with Google'": "الرجاء تسجيل الدخول 'تسجيل الدخول بواسطة جوجل'",
"Playlist does not exist.": "قائمة التشغيل غير موجودة.", "Password cannot be empty": "الرقم السرى لايمكن ان يكون فارغ",
"Could not pull trending pages.": "لم يستطع عرض الصفحات الراجئة.", "Password cannot be longer than 55 characters": "الرقم السرى لا يتعدى 55 حرف",
"Hidden field \"challenge\" is a required field": "مكان مخفى \"تحدى\" مكان مطلوب", "Please log in": "الرجاء تسجيل الدخول",
"Hidden field \"token\" is a required field": "مكان مخفى \"رمز\" مكان مطلوب", "Invidious Private Feed for `x`": "صفحة Invidious للمشتركين الخاصة\\مخفية لـ `x`",
"Invalid challenge": "تحدى غير صالح", "channel:`x`": "قناة:`x`",
"Invalid token": "روز غير صالح", "Deleted or invalid channel": "قناة ممسوحة او غير صالحة",
"Invalid user": "مستخدم غير صالح", "This channel does not exist.": "القناة غير موجودة.",
"Token is expired, please try again": "الرمز منتهى الصلاحية , الرجاء المحاولة مرة اخرى", "Could not get channel info.": "لم يستطع الحصول على معلومات القناة.",
"English": "إنجليزى", "Could not fetch comments": "لم يتمكن من إحضار التعليقات",
"English (auto-generated)": "إنجليزى (تم إنشائة تلقائى)", "View `x` replies": "عرض `x` ردود",
"Afrikaans": "الأفريكانية", "`x` ago": "`x` منذ",
"Albanian": "الألبانية", "Load more": "عرض المزيد",
"Amharic": "الأمهرية", "`x` points": "`x` نقاط",
"Arabic": "العربية", "Could not create mix.": "لم يستطع عمل خلط.",
"Armenian": "الأرميني", "Empty playlist": "قائمة التشغيل فارغة",
"Azerbaijani": "أذربيجان", "Not a playlist.": "قائمة التشغيل غير صالحة.",
"Bangla": "البنغالية", "Playlist does not exist.": "قائمة التشغيل غير موجودة.",
"Basque": "الباسكي", "Could not pull trending pages.": "لم يستطع عرض الصفحات الراجئة.",
"Belarusian": "البيلاروسية", "Hidden field \"challenge\" is a required field": "مكان مخفى \"تحدى\" مكان مطلوب",
"Bosnian": "البوسنية", "Hidden field \"token\" is a required field": "مكان مخفى \"رمز\" مكان مطلوب",
"Bulgarian": "البلغارية", "Erroneous challenge": "تحدى غير صالح",
"Burmese": "البورمية", "Erroneous token": "روز غير صالح",
"Catalan": "الكاتالونية", "No such user": "مستخدم غير صالح",
"Cebuano": "السيبيونو", "Token is expired, please try again": "الرمز منتهى الصلاحية , الرجاء المحاولة مرة اخرى",
"Chinese (Simplified)": "الصينية (المبسطة)", "English": "إنجليزى",
"Chinese (Traditional)": "الصينية (التقليدية)", "English (auto-generated)": "إنجليزى (تم إنشائة تلقائى)",
"Corsican": "الكورسيكية", "Afrikaans": "الأفريكانية",
"Croatian": "الكرواتية", "Albanian": "الألبانية",
"Czech": "تشيكي", "Amharic": "الأمهرية",
"Danish": "دانماركي", "Arabic": "العربية",
"Dutch": "هولندي", "Armenian": "الأرميني",
"Esperanto": "الاسبرانتو", "Azerbaijani": "أذربيجان",
"Estonian": "الإستونية", "Bangla": "البنغالية",
"Filipino": "الفلبينية", "Basque": "الباسكي",
"Finnish": "الفنلندية", "Belarusian": "البيلاروسية",
"French": "الفرنسية", "Bosnian": "البوسنية",
"Galician": "الجاليكية", "Bulgarian": "البلغارية",
"Georgian": "الجورجية", "Burmese": "البورمية",
"German": "ألمانية", "Catalan": "الكاتالونية",
"Greek": "الإغريقي", "Cebuano": "السيبيونو",
"Gujarati": "الغوجاراتية", "Chinese (Simplified)": "الصينية (المبسطة)",
"Haitian Creole": "الكاثوليكية الهايتية", "Chinese (Traditional)": "الصينية (التقليدية)",
"Hausa": "الهوسا", "Corsican": "الكورسيكية",
"Hawaiian": "هاواي", "Croatian": "الكرواتية",
"Hebrew": "العبرية", "Czech": "تشيكي",
"Hindi": "الهندية", "Danish": "دانماركي",
"Hmong": "همونغ", "Dutch": "هولندي",
"Hungarian": "الهنغارية", "Esperanto": "الاسبرانتو",
"Icelandic": "أيسلندي", "Estonian": "الإستونية",
"Igbo": "الإيبو", "Filipino": "الفلبينية",
"Indonesian": "الأندونيسية", "Finnish": "الفنلندية",
"Irish": "الأيرلندية", "French": "الفرنسية",
"Italian": "الإيطالي", "Galician": "الجاليكية",
"Japanese": "اليابانية", "Georgian": "الجورجية",
"Javanese": "جاوي", "German": "ألمانية",
"Kannada": "الكانادا", "Greek": "الإغريقي",
"Kazakh": "الكازاخية", "Gujarati": "الغوجاراتية",
"Khmer": "الخمير", "Haitian Creole": "الكاثوليكية الهايتية",
"Korean": "الكورية", "Hausa": "الهوسا",
"Kurdish": "كردي", "Hawaiian": "هاواي",
"Kyrgyz": "قيرغيزستان", "Hebrew": "العبرية",
"Lao": "لاو", "Hindi": "الهندية",
"Latin": "لاتينية", "Hmong": "همونغ",
"Latvian": "اللاتفية", "Hungarian": "الهنغارية",
"Lithuanian": "اللتوانية", "Icelandic": "أيسلندي",
"Luxembourgish": "اللوكسمبرجية", "Igbo": "الإيبو",
"Macedonian": "المقدونية", "Indonesian": "الأندونيسية",
"Malagasy": "مدجشقر\\مدغشقر", "Irish": "الأيرلندية",
"Malay": "الملايو", "Italian": "الإيطالي",
"Malayalam": "المالايالامية", "Japanese": "اليابانية",
"Maltese": "المالطية", "Javanese": "جاوي",
"Maori": "الماوري", "Kannada": "الكانادا",
"Marathi": "المهاراتية", "Kazakh": "الكازاخية",
"Mongolian": "المنغولية", "Khmer": "الخمير",
"Nepali": "النيبالية", "Korean": "الكورية",
"Norwegian": "النرويجية", "Kurdish": "كردي",
"Nyanja": "نيانجا", "Kyrgyz": "قيرغيزستان",
"Pashto": "الباشتو", "Lao": "لاو",
"Persian": "الفارسية", "Latin": "لاتينية",
"Polish": "البولندي", "Latvian": "اللاتفية",
"Portuguese": "البرتغالية", "Lithuanian": "اللتوانية",
"Punjabi": "البنجابية", "Luxembourgish": "اللوكسمبرجية",
"Romanian": "روماني", "Macedonian": "المقدونية",
"Russian": "الروسية", "Malagasy": "مدجشقر\\مدغشقر",
"Samoan": "ساموا", "Malay": "الملايو",
"Scottish Gaelic": "الغيلية الاسكتلندية", "Malayalam": "المالايالامية",
"Serbian": "صربي", "Maltese": "المالطية",
"Shona": "شونا", "Maori": "الماوري",
"Sindhi": "السندية", "Marathi": "المهاراتية",
"Sinhala": "السنهالية", "Mongolian": "المنغولية",
"Slovak": "السلوفاكية", "Nepali": "النيبالية",
"Slovenian": "سلوفيني", "Norwegian Bokmål": "النرويجية",
"Somali": "الصومالية", "Nyanja": "نيانجا",
"Southern Sotho": "جنوب سوثو", "Pashto": "الباشتو",
"Spanish": "الأسبانية", "Persian": "الفارسية",
"Spanish (Latin America)": "الأسبانية (أمريكا اللاتينية)", "Polish": "البولندي",
"Sundanese": "السودانية", "Portuguese": "البرتغالية",
"Swahili": "السواحلية", "Punjabi": "البنجابية",
"Swedish": "السويدية", "Romanian": "روماني",
"Tajik": "الطاجيكية", "Russian": "الروسية",
"Tamil": "التاميل", "Samoan": "ساموا",
"Telugu": "التيلجو", "Scottish Gaelic": "الغيلية الاسكتلندية",
"Thai": "التايلاندية", "Serbian": "صربي",
"Turkish": "التركية", "Shona": "شونا",
"Ukrainian": "الأوكراني", "Sindhi": "السندية",
"Urdu": "الأردية", "Sinhala": "السنهالية",
"Uzbek": "الأوزبكي", "Slovak": "السلوفاكية",
"Vietnamese": "الفيتنامية", "Slovenian": "سلوفيني",
"Welsh": "الولزية", "Somali": "الصومالية",
"Western Frisian": "الفريزية الغربية", "Southern Sotho": "جنوب سوثو",
"Xhosa": "زوسا", "Spanish": "الأسبانية",
"Yiddish": "اليديشية", "Spanish (Latin America)": "الأسبانية (أمريكا اللاتينية)",
"Yoruba": "اليوروبا", "Sundanese": "السودانية",
"Zulu": "الزولو", "Swahili": "السواحلية",
"`x` years": "`x` سنوات", "Swedish": "السويدية",
"`x` months": "`x` شهور", "Tajik": "الطاجيكية",
"`x` weeks": "`x` اسابيع", "Tamil": "التاميل",
"`x` days": "`x` ايام", "Telugu": "التيلجو",
"`x` hours": "`x` ساعات", "Thai": "التايلاندية",
"`x` minutes": "`x` دقائق", "Turkish": "التركية",
"`x` seconds": "`x` ثوانى", "Ukrainian": "الأوكراني",
"Fallback comments: ": "التعليقات المصاحبة", "Urdu": "الأردية",
"Popular": "لاكثر شعبية", "Uzbek": "الأوزبكي",
"Top": "الأفضل", "Vietnamese": "الفيتنامية",
"About": "حول", "Welsh": "الولزية",
"Rating: ": "التقييم", "Western Frisian": "الفريزية الغربية",
"Language: ": "اللغة", "Xhosa": "زوسا",
"Default": "الكل", "Yiddish": "اليديشية",
"Music": "الاغانى", "Yoruba": "اليوروبا",
"Gaming": "الألعاب", "Zulu": "الزولو",
"News": "الأخبار", "`x` years": "`x` سنوات",
"Movies": "الأفلام", "`x` months": "`x` شهور",
"Download as: ": "تحميل كـ", "`x` weeks": "`x` اسابيع",
"Download": "تحميل", "`x` days": "`x` ايام",
"%A %B %-d, %Y": "", "`x` hours": "`x` ساعات",
"(edited)": "", "`x` minutes": "`x` دقائق",
"Youtube permalink of the comment": "", "`x` seconds": "`x` ثوانى",
"`x` marked it with a ❤": "", "Fallback comments: ": "التعليقات المصاحبة",
"Audio mode": "", "Popular": "لاكثر شعبية",
"Video mode": "" "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: ": "الإصدار الحالى"
}

View File

@@ -1,294 +1,314 @@
{ {
"`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", "newest": "neueste",
"newest": "neueste", "oldest": "älteste",
"oldest": "älteste", "popular": "beliebt",
"popular": "beliebt", "last": "",
"Preview page": "Vorschau Seite", "Next page": "Nächste Seite",
"Next page": "Nächste Seite", "Previous page": "Vorherige Seite",
"Clear watch history?": "Verlauf löschen?", "Clear watch history?": "Verlauf löschen?",
"Yes": "Ja", "New password": "",
"No": "Nein", "New passwords must match": "",
"Import and Export Data": "Import und Export Daten", "Cannot change password for Google accounts": "",
"Import": "Importieren", "Authorize token?": "",
"Import Invidious data": "Invidious Daten importieren", "Authorize token for `x`?": "",
"Import YouTube subscriptions": "YouTube Abonnements importieren", "Yes": "Ja",
"Import FreeTube subscriptions (.db)": "FreeTube Abonnements importieren (.db)", "No": "Nein",
"Import NewPipe subscriptions (.json)": "NewPipe Abonnements importieren (.json)", "Import and Export Data": "Import und Export Daten",
"Import NewPipe data (.zip)": "NewPipe Daten importieren (.zip)", "Import": "Importieren",
"Export": "Exportieren", "Import Invidious data": "Invidious Daten importieren",
"Export subscriptions as OPML": "Abonnements als OPML exportieren", "Import YouTube subscriptions": "YouTube Abonnements importieren",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Abonnements als OPML exportieren (für NewPipe & FreeTube)", "Import FreeTube subscriptions (.db)": "FreeTube Abonnements importieren (.db)",
"Export data as JSON": "Daten als JSON exportieren", "Import NewPipe subscriptions (.json)": "NewPipe Abonnements importieren (.json)",
"Delete account?": "Account löschen?", "Import NewPipe data (.zip)": "NewPipe Daten importieren (.zip)",
"History": "Verlauf", "Export": "Exportieren",
"Previous page": "Vorherige Seite", "Export subscriptions as OPML": "Abonnements als OPML exportieren",
"An alternative front-end to YouTube": "Eine alternative Oberfläche für YouTube", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Abonnements als OPML exportieren (für NewPipe & FreeTube)",
"JavaScript license information": "JavaScript Lizenzinformationen", "Export data as JSON": "Daten als JSON exportieren",
"source": "Quelle", "Delete account?": "Account löschen?",
"Login": "Einloggen", "History": "Verlauf",
"Login/Register": "Einloggen/Registrieren", "An alternative front-end to YouTube": "Eine alternative Oberfläche für YouTube",
"Login to Google": "In Google einloggen", "JavaScript license information": "JavaScript Lizenzinformationen",
"User ID:": "Benutzer ID:", "source": "Quelle",
"Password:": "Passwort:", "Log in": "Einloggen",
"Time (h:mm:ss):": "Zeit (h:mm:ss):", "Log in/register": "Einloggen/Registrieren",
"Text CAPTCHA": "Text CAPTCHA", "Log in with Google": "In Google einloggen",
"Image CAPTCHA": "Image CAPTCHA", "User ID": "Benutzer ID",
"Sign In": "Einloggen", "Password": "Passwort",
"Register": "Registrieren", "Time (h:mm:ss):": "Zeit (h:mm:ss):",
"Email:": "Email:", "Text CAPTCHA": "Text CAPTCHA",
"Google verification code:": "Google Bestätigungscode:", "Image CAPTCHA": "Image CAPTCHA",
"Preferences": "Einstellungen", "Sign In": "Einloggen",
"Player preferences": "Playereinstellungen", "Register": "Registrieren",
"Always loop: ": "Immer wiederholen: ", "E-mail": "Email",
"Autoplay: ": "Automatisch abspielen: ", "Google verification code": "Google Bestätigungscode",
"Autoplay next video: ": "nächstes Video automatisch abspielen: ", "Preferences": "Einstellungen",
"Listen by default: ": "Nur Ton als Standard: ", "Player preferences": "Playereinstellungen",
"Default speed: ": "Standardgeschwindigkeit: ", "Always loop: ": "Immer wiederholen: ",
"Preferred video quality: ": "Bevorzugte Videoqualität: ", "Autoplay: ": "Automatisch abspielen: ",
"Player volume: ": "Playerlautstärke: ", "Play next by default: ": "",
"Default comments: ": "Standardkommentare: ", "Autoplay next video: ": "nächstes Video automatisch abspielen: ",
"youtube": "youtube", "Listen by default: ": "Nur Ton als Standard: ",
"reddit": "reddit", "Proxy videos? ": "",
"Default captions: ": "Standarduntertitel: ", "Default speed: ": "Standardgeschwindigkeit: ",
"Fallback captions: ": "Ersatzuntertitel: ", "Preferred video quality: ": "Bevorzugte Videoqualität: ",
"Show related videos? ": "Ähnliche Videos anzeigen? ", "Player volume: ": "Playerlautstärke: ",
"Visual preferences": "Anzeigeeinstellungen", "Default comments: ": "Standardkommentare: ",
"Dark mode: ": "Nachtmodus: ", "youtube": "youtube",
"Thin mode: ": "Schlanker Modus: ", "reddit": "reddit",
"Subscription preferences": "Abonnementeinstellungen", "Default captions: ": "Standarduntertitel: ",
"Redirect homepage to feed: ": "Startseite zu Feed umleiten: ", "Fallback captions: ": "Ersatzuntertitel: ",
"Number of videos shown in feed: ": "Anzahl von Videos die im Feed angezeigt werden: ", "Show related videos? ": "Ähnliche Videos anzeigen? ",
"Sort videos by: ": "Videos sortieren nach: ", "Show annotations by default? ": "",
"published": "veröffentlicht", "Visual preferences": "Anzeigeeinstellungen",
"published - reverse": "veröffentlicht - invertiert", "Dark mode: ": "Nachtmodus: ",
"alphabetically": "alphabetisch", "Thin mode: ": "Schlanker Modus: ",
"alphabetically - reverse": "alphabetisch - invertiert", "Subscription preferences": "Abonnementeinstellungen",
"channel name": "Kanalname", "Show annotations by default for subscribed channels? ": "",
"channel name - reverse": "Kanalname - invertiert", "Redirect homepage to feed: ": "Startseite zu Feed umleiten: ",
"Only show latest video from channel: ": "Nur neueste Videos des Kanals anzeigen: ", "Number of videos shown in feed: ": "Anzahl von Videos die im Feed angezeigt werden: ",
"Only show latest unwatched video from channel: ": "Nur neueste ungesehene Videos des Kanals anzeigen: ", "Sort videos by: ": "Videos sortieren nach: ",
"Only show unwatched: ": "Nur ungesehene anzeigen: ", "published": "veröffentlicht",
"Only show notifications (if there are any): ": "Nur Benachrichtigungen anzeigen (wenn es welche gibt): ", "published - reverse": "veröffentlicht - invertiert",
"Data preferences": "Dateneinstellungen", "alphabetically": "alphabetisch",
"Clear watch history": "Verlauf löschen", "alphabetically - reverse": "alphabetisch - invertiert",
"Import/Export data": "Daten im- exportieren", "channel name": "Kanalname",
"Manage subscriptions": "Abonnements verwalten", "channel name - reverse": "Kanalname - invertiert",
"Watch history": "Verlauf", "Only show latest video from channel: ": "Nur neueste Videos des Kanals anzeigen: ",
"Delete account": "Account löschen", "Only show latest unwatched video from channel: ": "Nur neueste ungesehene Videos des Kanals anzeigen: ",
"Administrator preferences": "", "Only show unwatched: ": "Nur ungesehene anzeigen: ",
"Default homepage: ": "", "Only show notifications (if there are any): ": "Nur Benachrichtigungen anzeigen (wenn es welche gibt): ",
"Feed menu: ": "", "Data preferences": "Dateneinstellungen",
"Top enabled? ": "", "Clear watch history": "Verlauf löschen",
"CAPTCHA enabled? ": "", "Import/export data": "Daten im- exportieren",
"Login enabled? ": "", "Change password": "",
"Registration enabled? ": "", "Manage subscriptions": "Abonnements verwalten",
"Report statistics? ": "", "Manage tokens": "",
"Save preferences": "Einstellungen speichern", "Watch history": "Verlauf",
"Subscription manager": "Abonnementverwaltung", "Delete account": "Account löschen",
"`x` subscriptions": "`x` Abonnements", "Administrator preferences": "",
"Import/Export": "Importieren/Exportieren", "Default homepage: ": "",
"unsubscribe": "abbestellen", "Feed menu: ": "",
"Subscriptions": "Abonnements", "Top enabled? ": "",
"`x` unseen notifications": "`x` ungesehene Benachrichtigungen", "CAPTCHA enabled? ": "",
"search": "Suchen", "Login enabled? ": "",
"Sign out": "Abmelden", "Registration enabled? ": "",
"Released under the AGPLv3 by Omar Roth.": "Veröffentlicht unter AGPLv3 von Omar Roth.", "Report statistics? ": "",
"Source available here.": "Quellcode verfügbar hier.", "Save preferences": "Einstellungen speichern",
"Liberapay: ": "Liberapay: ", "Subscription manager": "Abonnementverwaltung",
"Patreon: ": "Patreon: ", "Token manager": "",
"BTC: ": "BTC: ", "Token": "",
"BCH: ": "BCH: ", "`x` subscriptions": "`x` Abonnements",
"View JavaScript license information.": "Javascript Lizenzinformationen anzeigen.", "`x` tokens": "",
"Trending": "Trending", "Import/export": "Importieren/Exportieren",
"Watch video on Youtube": "Video auf YouTube ansehen", "unsubscribe": "abbestellen",
"Genre: ": "Genre: ", "revoke": "",
"License: ": "Lizenz: ", "Subscriptions": "Abonnements",
"Family friendly? ": "Familienfreundlich? ", "`x` unseen notifications": "`x` ungesehene Benachrichtigungen",
"Wilson score: ": "Wilson-Score: ", "search": "Suchen",
"Engagement: ": "Engagement: ", "Log out": "Abmelden",
"Whitelisted regions: ": "Erlaubte Regionen: ", "Released under the AGPLv3 by Omar Roth.": "Veröffentlicht unter AGPLv3 von Omar Roth.",
"Blacklisted regions: ": "Unerlaubte Regionen: ", "Source available here.": "Quellcode verfügbar hier.",
"Shared `x`": "Geteilt `x`", "View JavaScript license information.": "Javascript Lizenzinformationen anzeigen.",
"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.", "View privacy policy.": "",
"View YouTube comments": "YouTube Kommentare anzeigen", "Trending": "Trending",
"View more comments on Reddit": "Mehr Kommentare auf Reddit anzeigen", "Unlisted": "",
"View `x` comments": "`x` Kommentare anzeigen", "Watch on YouTube": "Video auf YouTube ansehen",
"View Reddit comments": "Reddit Kommentare anzeigen", "Hide annotations": "",
"Hide replies": "Antworten verstecken", "Show annotations": "",
"Show replies": "Antworten anzeigen", "Genre: ": "Genre: ",
"Incorrect password": "Falsches Passwort", "License: ": "Lizenz: ",
"Quota exceeded, try again in a few hours": "Kontingent überschritten, versuche es in ein paar Stunden erneut", "Family friendly? ": "Familienfreundlich? ",
"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.", "Wilson score: ": "Wilson-Score: ",
"Invalid TFA code": "Ungültiger TFA Code", "Engagement: ": "Engagement: ",
"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.", "Whitelisted regions: ": "Erlaubte Regionen: ",
"Invalid answer": "Ungültige Antwort", "Blacklisted regions: ": "Unerlaubte Regionen: ",
"Invalid CAPTCHA": "Ungültiges CAPTCHA", "Shared `x`": "Geteilt `x`",
"CAPTCHA is a required field": "CAPTCHA ist eine erforderliche Eingabe", "`x` views": "",
"User ID is a required field": "Benutzer ID ist eine erforderliche Eingabe", "Premieres in `x`": "",
"Password is a required field": "Passwort ist eine erforderliche Eingabe", "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.",
"Invalid username or password": "Ungültiger Benutzername oder Passwort", "View YouTube comments": "YouTube Kommentare anzeigen",
"Please sign in using 'Sign in with Google'": "Bitte melden sie sich mit 'Mit Google anmelden' an", "View more comments on Reddit": "Mehr Kommentare auf Reddit anzeigen",
"Password cannot be empty": "Passwort darf nicht leer sein", "View `x` comments": "`x` Kommentare anzeigen",
"Password cannot be longer than 55 characters": "Passwort darf nicht länger als 55 Zeichen sein", "View Reddit comments": "Reddit Kommentare anzeigen",
"Please sign in": "Bitte anmelden", "Hide replies": "Antworten verstecken",
"Invidious Private Feed for `x`": "Invidious Persönlicher Feed für `x`", "Show replies": "Antworten anzeigen",
"channel:`x`": "Kanal:`x`", "Incorrect password": "Falsches Passwort",
"Deleted or invalid channel": "Gelöschter oder ungültiger Kanal", "Quota exceeded, try again in a few hours": "Kontingent überschritten, versuche es in ein paar Stunden erneut",
"This channel does not exist.": "Dieser Kanal existiert nicht.", "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.",
"Could not get channel info.": "Kanalinformationen konnten nicht geladen werden.", "Invalid TFA code": "Ungültiger TFA Code",
"Could not fetch comments": "Kommentare konnten nicht geladen werden", "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.",
"View `x` replies": "Zeige `x` Antworten", "Wrong answer": "Ungültige Antwort",
"`x` ago": "vor `x`", "Erroneous CAPTCHA": "Ungültiges CAPTCHA",
"Load more": "Mehr laden", "CAPTCHA is a required field": "CAPTCHA ist eine erforderliche Eingabe",
"`x` points": "`x` Punkte", "User ID is a required field": "Benutzer ID ist eine erforderliche Eingabe",
"Could not create mix.": "Mix konnte nicht erstellt werden.", "Password is a required field": "Passwort ist eine erforderliche Eingabe",
"Playlist is empty": "Playlist ist leer", "Wrong username or password": "Ungültiger Benutzername oder Passwort",
"Invalid playlist.": "Ungültige Playlist.", "Please sign in using 'Log in with Google'": "Bitte melden sie sich mit 'Mit Google anmelden' an",
"Playlist does not exist.": "Playlist existiert nicht.", "Password cannot be empty": "Passwort darf nicht leer sein",
"Could not pull trending pages.": "Trending Seiten konnten nicht geladen werden.", "Password cannot be longer than 55 characters": "Passwort darf nicht länger als 55 Zeichen sein",
"Hidden field \"challenge\" is a required field": "Verstecktes Feld \"challenge\" ist eine erforderliche Eingabe", "Please log in": "Bitte anmelden",
"Hidden field \"token\" is a required field": "Verstecktes Feld \"token\" ist eine erforderliche Eingabe", "Invidious Private Feed for `x`": "Invidious Persönlicher Feed für `x`",
"Invalid challenge": "Ungültiger Test", "channel:`x`": "Kanal:`x`",
"Invalid token": "Ungöltige Marke", "Deleted or invalid channel": "Gelöschter oder ungültiger Kanal",
"Invalid user": "Ungültiger Benutzer", "This channel does not exist.": "Dieser Kanal existiert nicht.",
"Token is expired, please try again": "Marke ist abgelaufen, bitte erneut versuchen", "Could not get channel info.": "Kanalinformationen konnten nicht geladen werden.",
"English": "Englisch", "Could not fetch comments": "Kommentare konnten nicht geladen werden",
"English (auto-generated)": "Englisch (automatisch erzeugt)", "View `x` replies": "Zeige `x` Antworten",
"Afrikaans": "Afrikaans", "`x` ago": "vor `x`",
"Albanian": "Albanisch", "Load more": "Mehr laden",
"Amharic": "Amharisch", "`x` points": "`x` Punkte",
"Arabic": "Arabisch", "Could not create mix.": "Mix konnte nicht erstellt werden.",
"Armenian": "Armenisch", "Empty playlist": "Playlist ist leer",
"Azerbaijani": "Aserbaidschanisch", "Not a playlist.": "Ungültige Playlist.",
"Bangla": "Bengalisch", "Playlist does not exist.": "Playlist existiert nicht.",
"Basque": "Baskisch", "Could not pull trending pages.": "Trending Seiten konnten nicht geladen werden.",
"Belarusian": "Weißrussisch", "Hidden field \"challenge\" is a required field": "Verstecktes Feld \"challenge\" ist eine erforderliche Eingabe",
"Bosnian": "Bosnisch", "Hidden field \"token\" is a required field": "Verstecktes Feld \"token\" ist eine erforderliche Eingabe",
"Bulgarian": "Bulgarisch", "Erroneous challenge": "Ungültiger Test",
"Burmese": "Burmesisch", "Erroneous token": "Ungöltige Marke",
"Catalan": "Katalanisch", "No such user": "Ungültiger Benutzer",
"Cebuano": "Cebuano", "Token is expired, please try again": "Marke ist abgelaufen, bitte erneut versuchen",
"Chinese (Simplified)": "Chinesisch (vereinfacht)", "English": "Englisch",
"Chinese (Traditional)": "Chinesisch (traditionell)", "English (auto-generated)": "Englisch (automatisch erzeugt)",
"Corsican": "Korsisch", "Afrikaans": "Afrikaans",
"Croatian": "Kroatisch", "Albanian": "Albanisch",
"Czech": "Tschechisch", "Amharic": "Amharisch",
"Danish": "Dänisch", "Arabic": "Arabisch",
"Dutch": "Niederländisch", "Armenian": "Armenisch",
"Esperanto": "Esperanto", "Azerbaijani": "Aserbaidschanisch",
"Estonian": "Estnisch", "Bangla": "Bengalisch",
"Filipino": "Philippinisch", "Basque": "Baskisch",
"Finnish": "Finnisch", "Belarusian": "Weißrussisch",
"French": "Französisch", "Bosnian": "Bosnisch",
"Galician": "Galizisch", "Bulgarian": "Bulgarisch",
"Georgian": "Georgisch", "Burmese": "Burmesisch",
"German": "Deutsch", "Catalan": "Katalanisch",
"Greek": "Griechisch", "Cebuano": "Cebuano",
"Gujarati": "Gujarati", "Chinese (Simplified)": "Chinesisch (vereinfacht)",
"Haitian Creole": "Haitianisches Kreolisch", "Chinese (Traditional)": "Chinesisch (traditionell)",
"Hausa": "Hausa", "Corsican": "Korsisch",
"Hawaiian": "Hawaiianisch", "Croatian": "Kroatisch",
"Hebrew": "Hebräisch", "Czech": "Tschechisch",
"Hindi": "Hindi", "Danish": "Dänisch",
"Hmong": "Hmong", "Dutch": "Niederländisch",
"Hungarian": "Ungarisch", "Esperanto": "Esperanto",
"Icelandic": "Isländisch", "Estonian": "Estnisch",
"Igbo": "Igbo", "Filipino": "Philippinisch",
"Indonesian": "Indonesisch", "Finnish": "Finnisch",
"Irish": "Irisch", "French": "Französisch",
"Italian": "Italienisch", "Galician": "Galizisch",
"Japanese": "Japanisch", "Georgian": "Georgisch",
"Javanese": "Javanisch", "German": "Deutsch",
"Kannada": "Kannada", "Greek": "Griechisch",
"Kazakh": "Kasachisch", "Gujarati": "Gujarati",
"Khmer": "Khmer", "Haitian Creole": "Haitianisches Kreolisch",
"Korean": "Koreanisch", "Hausa": "Hausa",
"Kurdish": "Kurdisch", "Hawaiian": "Hawaiianisch",
"Kyrgyz": "Kirgisisch", "Hebrew": "Hebräisch",
"Lao": "Laotisch", "Hindi": "Hindi",
"Latin": "Lateinisch", "Hmong": "Hmong",
"Latvian": "Lettisch", "Hungarian": "Ungarisch",
"Lithuanian": "Litauisch", "Icelandic": "Isländisch",
"Luxembourgish": "Luxemburgisch", "Igbo": "Igbo",
"Macedonian": "Mazedonisch", "Indonesian": "Indonesisch",
"Malagasy": "Madagassisch", "Irish": "Irisch",
"Malay": "Malaiisch", "Italian": "Italienisch",
"Malayalam": "Malayalam", "Japanese": "Japanisch",
"Maltese": "Maltesisch", "Javanese": "Javanisch",
"Maori": "Maori", "Kannada": "Kannada",
"Marathi": "Marathi", "Kazakh": "Kasachisch",
"Mongolian": "Mongolisch", "Khmer": "Khmer",
"Nepali": "Nepalesisch", "Korean": "Koreanisch",
"Norwegian": "Norwegisch", "Kurdish": "Kurdisch",
"Nyanja": "Nyanja", "Kyrgyz": "Kirgisisch",
"Pashto": "Paschtunisch", "Lao": "Laotisch",
"Persian": "Persisch", "Latin": "Lateinisch",
"Polish": "Polnisch", "Latvian": "Lettisch",
"Portuguese": "Portugiesisch", "Lithuanian": "Litauisch",
"Punjabi": "Pandschabi", "Luxembourgish": "Luxemburgisch",
"Romanian": "Rumänisch", "Macedonian": "Mazedonisch",
"Russian": "Russisch", "Malagasy": "Madagassisch",
"Samoan": "Samoanisch", "Malay": "Malaiisch",
"Scottish Gaelic": "Schottisches Gälisch", "Malayalam": "Malayalam",
"Serbian": "Serbisch", "Maltese": "Maltesisch",
"Shona": "Schona", "Maori": "Maori",
"Sindhi": "Sindhi", "Marathi": "Marathi",
"Sinhala": "Singhalesisch", "Mongolian": "Mongolisch",
"Slovak": "Slowakisch", "Nepali": "Nepalesisch",
"Slovenian": "Slowenisch", "Norwegian Bokmål": "Norwegisch",
"Somali": "Somali", "Nyanja": "Nyanja",
"Southern Sotho": "Südliches Sotho", "Pashto": "Paschtunisch",
"Spanish": "Spanisch", "Persian": "Persisch",
"Spanish (Latin America)": "Spanisch (Lateinamerika)", "Polish": "Polnisch",
"Sundanese": "Sundanesisch", "Portuguese": "Portugiesisch",
"Swahili": "Suaheli", "Punjabi": "Pandschabi",
"Swedish": "Schwedisch", "Romanian": "Rumänisch",
"Tajik": "Tadschikisch", "Russian": "Russisch",
"Tamil": "Tamilisch", "Samoan": "Samoanisch",
"Telugu": "Telugu", "Scottish Gaelic": "Schottisches Gälisch",
"Thai": "Thailändisch", "Serbian": "Serbisch",
"Turkish": "Türkisch", "Shona": "Schona",
"Ukrainian": "Ukrainisch", "Sindhi": "Sindhi",
"Urdu": "Urdu", "Sinhala": "Singhalesisch",
"Uzbek": "Usbekisch", "Slovak": "Slowakisch",
"Vietnamese": "Vietnamesisch", "Slovenian": "Slowenisch",
"Welsh": "Walisisch", "Somali": "Somali",
"Western Frisian": "Westfriesisch", "Southern Sotho": "Südliches Sotho",
"Xhosa": "Xhosa", "Spanish": "Spanisch",
"Yiddish": "Jiddisch", "Spanish (Latin America)": "Spanisch (Lateinamerika)",
"Yoruba": "Joruba", "Sundanese": "Sundanesisch",
"Zulu": "Zulu", "Swahili": "Suaheli",
"`x` years": "`x` Jahre", "Swedish": "Schwedisch",
"`x` months": "`x` Monate", "Tajik": "Tadschikisch",
"`x` weeks": "`x` Wochen", "Tamil": "Tamilisch",
"`x` days": "`x` Tage", "Telugu": "Telugu",
"`x` hours": "`x` Stunden", "Thai": "Thailändisch",
"`x` minutes": "`x` Minuten", "Turkish": "Türkisch",
"`x` seconds": "`x` Sekunden", "Ukrainian": "Ukrainisch",
"Fallback comments: ": "Alternative Kommentare: ", "Urdu": "Urdu",
"Popular": "Populär", "Uzbek": "Usbekisch",
"Top": "Top", "Vietnamese": "Vietnamesisch",
"About": "Über", "Welsh": "Walisisch",
"Rating: ": "Bewertung: ", "Western Frisian": "Westfriesisch",
"Language: ": "Sprache: ", "Xhosa": "Xhosa",
"Default": "", "Yiddish": "Jiddisch",
"Music": "", "Yoruba": "Joruba",
"Gaming": "", "Zulu": "Zulu",
"News": "", "`x` years": "`x` Jahre",
"Movies": "", "`x` months": "`x` Monate",
"Download": "", "`x` weeks": "`x` Wochen",
"Download as: ": "", "`x` days": "`x` Tage",
"%A %B %-d, %Y": "", "`x` hours": "`x` Stunden",
"(edited)": "", "`x` minutes": "`x` Minuten",
"Youtube permalink of the comment": "", "`x` seconds": "`x` Sekunden",
"`x` marked it with a ❤": "", "Fallback comments: ": "Alternative Kommentare: ",
"Audio mode": "", "Popular": "Populär",
"Video mode": "" "Top": "Top",
} "About": "Über",
"Rating: ": "Bewertung: ",
"Language: ": "Sprache: ",
"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": "",
"Playlists": "",
"Current version: ": ""
}

View File

@@ -1,288 +1,359 @@
{ {
"`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?", "newest": "newest",
"Yes": "Yes", "oldest": "oldest",
"No": "No", "popular": "popular",
"Import and Export Data": "Import and Export Data", "last": "last",
"Import": "Import", "Next page": "Next page",
"Import Invidious data": "Import Invidious data", "Previous page": "Previous page",
"Import YouTube subscriptions": "Import YouTube subscriptions", "Clear watch history?": "Clear watch history?",
"Import FreeTube subscriptions (.db)": "Import FreeTube subscriptions (.db)", "New password": "New password",
"Import NewPipe subscriptions (.json)": "Import NewPipe subscriptions (.json)", "New passwords must match": "New passwords must match",
"Import NewPipe data (.zip)": "Import NewPipe data (.zip)", "Cannot change password for Google accounts": "Cannot change password for Google accounts",
"Export": "Export", "Authorize token?": "Authorize token?",
"Export subscriptions as OPML": "Export subscriptions as OPML", "Authorize token for `x`?": "Authorize token for `x`?",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Export subscriptions as OPML (for NewPipe & FreeTube)", "Yes": "Yes",
"Export data as JSON": "Export data as JSON", "No": "No",
"Delete account?": "Delete account?", "Import and Export Data": "Import and Export Data",
"History": "History", "Import": "Import",
"Previous page": "Previous page", "Import Invidious data": "Import Invidious data",
"An alternative front-end to YouTube": "An alternative front-end to YouTube", "Import YouTube subscriptions": "Import YouTube subscriptions",
"JavaScript license information": "JavaScript license information", "Import FreeTube subscriptions (.db)": "Import FreeTube subscriptions (.db)",
"source": "source", "Import NewPipe subscriptions (.json)": "Import NewPipe subscriptions (.json)",
"Login": "Login", "Import NewPipe data (.zip)": "Import NewPipe data (.zip)",
"Login/Register": "Login/Register", "Export": "Export",
"Login to Google": "Login to Google", "Export subscriptions as OPML": "Export subscriptions as OPML",
"User ID:": "User ID:", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Export subscriptions as OPML (for NewPipe & FreeTube)",
"Password:": "Password:", "Export data as JSON": "Export data as JSON",
"Time (h:mm:ss):": "Time (h:mm:ss):", "Delete account?": "Delete account?",
"Text CAPTCHA": "Text CAPTCHA", "History": "History",
"Image CAPTCHA": "Image CAPTCHA", "An alternative front-end to YouTube": "An alternative front-end to YouTube",
"Sign In": "Sign In", "JavaScript license information": "JavaScript license information",
"Register": "Register", "source": "source",
"Email:": "Email:", "Log in": "Log in",
"Google verification code:": "Google verification code:", "Log in/register": "Log in/register",
"Preferences": "Preferences", "Log in with Google": "Log in with Google",
"Player preferences": "Player preferences", "User ID": "User ID",
"Always loop: ": "Always loop: ", "Password": "Password",
"Autoplay: ": "Autoplay: ", "Time (h:mm:ss):": "Time (h:mm:ss):",
"Autoplay next video: ": "Autoplay next video: ", "Text CAPTCHA": "Text CAPTCHA",
"Listen by default: ": "Listen by default: ", "Image CAPTCHA": "Image CAPTCHA",
"Default speed: ": "Default speed: ", "Sign In": "Sign In",
"Preferred video quality: ": "Preferred video quality: ", "Register": "Register",
"Player volume: ": "Player volume: ", "E-mail": "E-mail",
"Default comments: ": "Default comments: ", "Google verification code": "Google verification code",
"Default captions: ": "Default captions: ", "Preferences": "Preferences",
"Fallback captions: ": "Fallback captions: ", "Player preferences": "Player preferences",
"Show related videos? ": "Show related videos? ", "Always loop: ": "Always loop: ",
"Visual preferences": "Visual preferences", "Autoplay: ": "Autoplay: ",
"Dark mode: ": "Dark mode: ", "Play next by default: ": "Play next by default: ",
"Thin mode: ": "Thin mode: ", "Autoplay next video: ": "Autoplay next video: ",
"Subscription preferences": "Subscription preferences", "Listen by default: ": "Listen by default: ",
"Redirect homepage to feed: ": "Redirect homepage to feed: ", "Proxy videos? ": "Proxy videos? ",
"Number of videos shown in feed: ": "Number of videos shown in feed: ", "Default speed: ": "Default speed: ",
"Sort videos by: ": "Sort videos by: ", "Preferred video quality: ": "Preferred video quality: ",
"published": "published", "Player volume: ": "Player volume: ",
"published - reverse": "published - reverse", "Default comments: ": "Default comments: ",
"alphabetically": "alphabetically", "youtube": "youtube",
"alphabetically - reverse": "alphabetically - reverse", "reddit": "reddit",
"channel name": "channel name", "Default captions: ": "Default captions: ",
"channel name - reverse": "channel name - reverse", "Fallback captions: ": "Fallback captions: ",
"Only show latest video from channel: ": "Only show latest video from channel: ", "Show related videos? ": "Show related videos? ",
"Only show latest unwatched video from channel: ": "Only show latest unwatched video from channel: ", "Show annotations by default? ": "Show annotations by default? ",
"Only show unwatched: ": "Only show unwatched: ", "Visual preferences": "Visual preferences",
"Only show notifications (if there are any): ": "Only show notifications (if there are any): ", "Dark mode: ": "Dark mode: ",
"Data preferences": "Data preferences", "Thin mode: ": "Thin mode: ",
"Clear watch history": "Clear watch history", "Subscription preferences": "Subscription preferences",
"Import/Export data": "Import/Export data", "Show annotations by default for subscribed channels? ": "Show annotations by default for subscribed channels? ",
"Manage subscriptions": "Manage subscriptions", "Redirect homepage to feed: ": "Redirect homepage to feed: ",
"Watch history": "Watch history", "Number of videos shown in feed: ": "Number of videos shown in feed: ",
"Delete account": "Delete account", "Sort videos by: ": "Sort videos by: ",
"Administrator preferences": "Administrator preferences", "published": "published",
"Default homepage: ": "Default homepage: ", "published - reverse": "published - reverse",
"Feed menu: ": "Feed menu: ", "alphabetically": "alphabetically",
"Top enabled? ": "Top enabled? ", "alphabetically - reverse": "alphabetically - reverse",
"CAPTCHA enabled? ": "CAPTCHA enabled? ", "channel name": "channel name",
"Login enabled? ": "Login enabled? ", "channel name - reverse": "channel name - reverse",
"Registration enabled? ": "Registration enabled? ", "Only show latest video from channel: ": "Only show latest video from channel: ",
"Report statistics? ": "Report statistics? ", "Only show latest unwatched video from channel: ": "Only show latest unwatched video from channel: ",
"Save preferences": "Save preferences", "Only show unwatched: ": "Only show unwatched: ",
"Subscription manager": "Subscription manager", "Only show notifications (if there are any): ": "Only show notifications (if there are any): ",
"`x` subscriptions": "`x` subscriptions", "Data preferences": "Data preferences",
"Import/Export": "Import/Export", "Clear watch history": "Clear watch history",
"unsubscribe": "unsubscribe", "Import/export data": "Import/export data",
"Subscriptions": "Subscriptions", "Change password": "Change password",
"`x` unseen notifications": "`x` unseen notifications", "Manage subscriptions": "Manage subscriptions",
"search": "search", "Manage tokens": "Manage tokens",
"Sign out": "Sign out", "Watch history": "Watch history",
"Released under the AGPLv3 by Omar Roth.": "Released under the AGPLv3 by Omar Roth.", "Delete account": "Delete account",
"Source available here.": "Source available here.", "Administrator preferences": "Administrator preferences",
"View JavaScript license information.": "View JavaScript license information.", "Default homepage: ": "Default homepage: ",
"Trending": "Trending", "Feed menu: ": "Feed menu: ",
"Watch video on Youtube": "Watch video on Youtube", "Top enabled? ": "Top enabled? ",
"Genre: ": "Genre: ", "CAPTCHA enabled? ": "CAPTCHA enabled? ",
"License: ": "License: ", "Login enabled? ": "Login enabled? ",
"Family friendly? ": "Family friendly? ", "Registration enabled? ": "Registration enabled? ",
"Wilson score: ": "Wilson score: ", "Report statistics? ": "Report statistics? ",
"Engagement: ": "Engagement: ", "Save preferences": "Save preferences",
"Whitelisted regions: ": "Whitelisted regions: ", "Subscription manager": "Subscription manager",
"Blacklisted regions: ": "Blacklisted regions: ", "Token manager": "Token manager",
"Shared `x`": "Shared `x`", "Token": "Token",
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.", "`x` subscriptions": {
"View YouTube comments": "View YouTube comments", "(\\D|^)1(\\D|$)": "`x` subscription",
"View more comments on Reddit": "View more comments on Reddit", "": "`x` subscriptions"
"View `x` comments": "View `x` comments", },
"View Reddit comments": "View Reddit comments", "`x` tokens": {
"Hide replies": "Hide replies", "(\\D|^)1(\\D|$)": "`x` token",
"Show replies": "Show replies", "": "`x` tokens"
"Incorrect password": "Incorrect password", },
"Quota exceeded, try again in a few hours": "Quota exceeded, try again in a few hours", "Import/export": "Import/export",
"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.", "unsubscribe": "unsubscribe",
"Invalid TFA code": "Invalid TFA code", "revoke": "revoke",
"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.", "Subscriptions": "Subscriptions",
"Invalid answer": "Invalid answer", "`x` unseen notifications": {
"Invalid CAPTCHA": "Invalid CAPTCHA", "(\\D|^)1(\\D|$)": "`x` unseen notification",
"CAPTCHA is a required field": "CAPTCHA is a required field", "": "`x` unseen notifications"
"User ID is a required field": "User ID is a required field", },
"Password is a required field": "Password is a required field", "search": "search",
"Invalid username or password": "Invalid username or password", "Log out": "Log out",
"Please sign in using 'Sign in with Google'": "Please sign in using 'Sign in with Google'", "Released under the AGPLv3 by Omar Roth.": "Released under the AGPLv3 by Omar Roth.",
"Password cannot be empty": "Password cannot be empty", "Source available here.": "Source available here.",
"Password cannot be longer than 55 characters": "Password cannot be longer than 55 characters", "View JavaScript license information.": "View JavaScript license information.",
"Please sign in": "Please sign in", "View privacy policy.": "View privacy policy.",
"Invidious Private Feed for `x`": "Invidious Private Feed for `x`", "Trending": "Trending",
"channel:`x`": "channel:`x`", "Unlisted": "Unlisted",
"Deleted or invalid channel": "Deleted or invalid channel", "Watch on YouTube": "Watch on YouTube",
"This channel does not exist.": "This channel does not exist.", "Hide annotations": "Hide annotations",
"Could not get channel info.": "Could not get channel info.", "Show annotations": "Show annotations",
"Could not fetch comments": "Could not fetch comments", "Genre: ": "Genre: ",
"View `x` replies": "View `x` replies", "License: ": "License: ",
"`x` ago": "`x` ago", "Family friendly? ": "Family friendly? ",
"Load more": "Load more", "Wilson score: ": "Wilson score: ",
"`x` points": "`x` points", "Engagement: ": "Engagement: ",
"Could not create mix.": "Could not create mix.", "Whitelisted regions: ": "Whitelisted regions: ",
"Playlist is empty": "Playlist is empty", "Blacklisted regions: ": "Blacklisted regions: ",
"Invalid playlist.": "Invalid playlist.", "Shared `x`": "Shared `x`",
"Playlist does not exist.": "Playlist does not exist.", "`x` views": {
"Could not pull trending pages.": "Could not pull trending pages.", "(\\D|^)1(\\D|$)": "`x` views",
"Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field", "": "`x` views"
"Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field", },
"Invalid challenge": "Invalid challenge", "Premieres in `x`": "Premieres in `x`",
"Invalid token": "Invalid token", "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.",
"Invalid user": "Invalid user", "View YouTube comments": "View YouTube comments",
"Token is expired, please try again": "Token is expired, please try again", "View more comments on Reddit": "View more comments on Reddit",
"English": "English", "View `x` comments": "View `x` comments",
"English (auto-generated)": "English (auto-generated)", "View Reddit comments": "View Reddit comments",
"Afrikaans": "Afrikaans", "Hide replies": "Hide replies",
"Albanian": "Albanian", "Show replies": "Show replies",
"Amharic": "Amharic", "Incorrect password": "Incorrect password",
"Arabic": "Arabic", "Quota exceeded, try again in a few hours": "Quota exceeded, try again in a few hours",
"Armenian": "Armenian", "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.",
"Azerbaijani": "Azerbaijani", "Invalid TFA code": "Invalid TFA code",
"Bangla": "Bangla", "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.",
"Basque": "Basque", "Wrong answer": "Wrong answer",
"Belarusian": "Belarusian", "Erroneous CAPTCHA": "Erroneous CAPTCHA",
"Bosnian": "Bosnian", "CAPTCHA is a required field": "CAPTCHA is a required field",
"Bulgarian": "Bulgarian", "User ID is a required field": "User ID is a required field",
"Burmese": "Burmese", "Password is a required field": "Password is a required field",
"Catalan": "Catalan", "Wrong username or password": "Wrong username or password",
"Cebuano": "Cebuano", "Please sign in using 'Log in with Google'": "Please sign in using 'Log in with Google'",
"Chinese (Simplified)": "Chinese (Simplified)", "Password cannot be empty": "Password cannot be empty",
"Chinese (Traditional)": "Chinese (Traditional)", "Password cannot be longer than 55 characters": "Password cannot be longer than 55 characters",
"Corsican": "Corsican", "Please log in": "Please log in",
"Croatian": "Croatian", "Invidious Private Feed for `x`": "Invidious Private Feed for `x`",
"Czech": "Czech", "channel:`x`": "channel:`x`",
"Danish": "Danish", "Deleted or invalid channel": "Deleted or invalid channel",
"Dutch": "Dutch", "This channel does not exist.": "This channel does not exist.",
"Esperanto": "Esperanto", "Could not get channel info.": "Could not get channel info.",
"Estonian": "Estonian", "Could not fetch comments": "Could not fetch comments",
"Filipino": "Filipino", "View `x` replies": {
"Finnish": "Finnish", "(\\D|^)1(\\D|$)": "View `x` reply",
"French": "French", "": "View `x` replies"
"Galician": "Galician", },
"Georgian": "Georgian", "`x` ago": "`x` ago",
"German": "German", "Load more": "Load more",
"Greek": "Greek", "`x` points": {
"Gujarati": "Gujarati", "(\\D|^)1(\\D|$)": "`x` point",
"Haitian Creole": "Haitian Creole", "": "`x` points"
"Hausa": "Hausa", },
"Hawaiian": "Hawaiian", "Could not create mix.": "Could not create mix.",
"Hebrew": "Hebrew", "Empty playlist": "Empty playlist",
"Hindi": "Hindi", "Not a playlist.": "Not a playlist.",
"Hmong": "Hmong", "Playlist does not exist.": "Playlist does not exist.",
"Hungarian": "Hungarian", "Could not pull trending pages.": "Could not pull trending pages.",
"Icelandic": "Icelandic", "Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field",
"Igbo": "Igbo", "Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field",
"Indonesian": "Indonesian", "Erroneous challenge": "Erroneous challenge",
"Irish": "Irish", "Erroneous token": "Erroneous token",
"Italian": "Italian", "No such user": "No such user",
"Japanese": "Japanese", "Token is expired, please try again": "Token is expired, please try again",
"Javanese": "Javanese", "English": "English",
"Kannada": "Kannada", "English (auto-generated)": "English (auto-generated)",
"Kazakh": "Kazakh", "Afrikaans": "Afrikaans",
"Khmer": "Khmer", "Albanian": "Albanian",
"Korean": "Korean", "Amharic": "Amharic",
"Kurdish": "Kurdish", "Arabic": "Arabic",
"Kyrgyz": "Kyrgyz", "Armenian": "Armenian",
"Lao": "Lao", "Azerbaijani": "Azerbaijani",
"Latin": "Latin", "Bangla": "Bangla",
"Latvian": "Latvian", "Basque": "Basque",
"Lithuanian": "Lithuanian", "Belarusian": "Belarusian",
"Luxembourgish": "Luxembourgish", "Bosnian": "Bosnian",
"Macedonian": "Macedonian", "Bulgarian": "Bulgarian",
"Malagasy": "Malagasy", "Burmese": "Burmese",
"Malay": "Malay", "Catalan": "Catalan",
"Malayalam": "Malayalam", "Cebuano": "Cebuano",
"Maltese": "Maltese", "Chinese (Simplified)": "Chinese (Simplified)",
"Maori": "Maori", "Chinese (Traditional)": "Chinese (Traditional)",
"Marathi": "Marathi", "Corsican": "Corsican",
"Mongolian": "Mongolian", "Croatian": "Croatian",
"Nepali": "Nepali", "Czech": "Czech",
"Norwegian": "Norwegian", "Danish": "Danish",
"Nyanja": "Nyanja", "Dutch": "Dutch",
"Pashto": "Pashto", "Esperanto": "Esperanto",
"Persian": "Persian", "Estonian": "Estonian",
"Polish": "Polish", "Filipino": "Filipino",
"Portuguese": "Portuguese", "Finnish": "Finnish",
"Punjabi": "Punjabi", "French": "French",
"Romanian": "Romanian", "Galician": "Galician",
"Russian": "Russian", "Georgian": "Georgian",
"Samoan": "Samoan", "German": "German",
"Scottish Gaelic": "Scottish Gaelic", "Greek": "Greek",
"Serbian": "Serbian", "Gujarati": "Gujarati",
"Shona": "Shona", "Haitian Creole": "Haitian Creole",
"Sindhi": "Sindhi", "Hausa": "Hausa",
"Sinhala": "Sinhala", "Hawaiian": "Hawaiian",
"Slovak": "Slovak", "Hebrew": "Hebrew",
"Slovenian": "Slovenian", "Hindi": "Hindi",
"Somali": "Somali", "Hmong": "Hmong",
"Southern Sotho": "Southern Sotho", "Hungarian": "Hungarian",
"Spanish": "Spanish", "Icelandic": "Icelandic",
"Spanish (Latin America)": "Spanish (Latin America)", "Igbo": "Igbo",
"Sundanese": "Sundanese", "Indonesian": "Indonesian",
"Swahili": "Swahili", "Irish": "Irish",
"Swedish": "Swedish", "Italian": "Italian",
"Tajik": "Tajik", "Japanese": "Japanese",
"Tamil": "Tamil", "Javanese": "Javanese",
"Telugu": "Telugu", "Kannada": "Kannada",
"Thai": "Thai", "Kazakh": "Kazakh",
"Turkish": "Turkish", "Khmer": "Khmer",
"Ukrainian": "Ukrainian", "Korean": "Korean",
"Urdu": "Urdu", "Kurdish": "Kurdish",
"Uzbek": "Uzbek", "Kyrgyz": "Kyrgyz",
"Vietnamese": "Vietnamese", "Lao": "Lao",
"Welsh": "Welsh", "Latin": "Latin",
"Western Frisian": "Western Frisian", "Latvian": "Latvian",
"Xhosa": "Xhosa", "Lithuanian": "Lithuanian",
"Yiddish": "Yiddish", "Luxembourgish": "Luxembourgish",
"Yoruba": "Yoruba", "Macedonian": "Macedonian",
"Zulu": "Zulu", "Malagasy": "Malagasy",
"`x` years": "`x` years", "Malay": "Malay",
"`x` months": "`x` months", "Malayalam": "Malayalam",
"`x` weeks": "`x` weeks", "Maltese": "Maltese",
"`x` days": "`x` days", "Maori": "Maori",
"`x` hours": "`x` hours", "Marathi": "Marathi",
"`x` minutes": "`x` minutes", "Mongolian": "Mongolian",
"`x` seconds": "`x` seconds", "Nepali": "Nepali",
"Fallback comments: ": "Fallback comments: ", "Norwegian Bokmål": "Norwegian Bokmål",
"Popular": "Popular", "Nyanja": "Nyanja",
"Top": "Top", "Pashto": "Pashto",
"About": "About", "Persian": "Persian",
"Rating: ": "Rating: ", "Polish": "Polish",
"Language: ": "Language: ", "Portuguese": "Portuguese",
"Default": "Default", "Punjabi": "Punjabi",
"Music": "Music", "Romanian": "Romanian",
"Gaming": "Gaming", "Russian": "Russian",
"News": "News", "Samoan": "Samoan",
"Movies": "Movies", "Scottish Gaelic": "Scottish Gaelic",
"Download": "Download", "Serbian": "Serbian",
"Download as: ": "Download as: ", "Shona": "Shona",
"%A %B %-d, %Y": "%A %B %-d, %Y", "Sindhi": "Sindhi",
"(edited)": "(edited)", "Sinhala": "Sinhala",
"Youtube permalink of the comment": "Youtube permalink of the comment", "Slovak": "Slovak",
"`x` marked it with a ❤": "`x` marked it with a ❤", "Slovenian": "Slovenian",
"Audio mode": "Audio mode", "Somali": "Somali",
"Video mode": "Video mode" "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: "
}

314
locales/eo.json Normal file
View File

@@ -0,0 +1,314 @@
{
"`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",
"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): ",
"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: "
}

314
locales/es.json Normal file
View File

@@ -0,0 +1,314 @@
{
"`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",
"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": "",
"New passwords must match": "",
"Cannot change password for Google accounts": "",
"Authorize token?": "",
"Authorize token for `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: ": "",
"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": "",
"reddit": "",
"Default captions: ": "Subtítulos por defecto: ",
"Fallback captions: ": "Subtítulos alternativos: ",
"Show related videos? ": "¿Mostrar vídeos relacionados? ",
"Show annotations by default? ": "",
"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? ": "",
"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): ",
"Data preferences": "Preferencias de los datos",
"Clear watch history": "Borrar el historial de reproducción",
"Import/export data": "Importar/Exportar datos",
"Change password": "",
"Manage subscriptions": "Gestionar las suscripciones",
"Manage 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": "",
"Token": "",
"`x` subscriptions": "`x` suscripciones",
"`x` tokens": "",
"Import/export": "Importar/Exportar",
"unsubscribe": "Desuscribirse",
"revoke": "",
"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": "",
"Show annotations": "",
"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: "
}

View File

@@ -1,288 +1,312 @@
{ {
"`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", "newest": "berrienak",
"newest": "berrienak", "oldest": "zaharrenak",
"oldest": "zaharrenak", "popular": "ospetsuenak",
"popular": "ospetsuenak", "last": "azkena",
"Preview page": "Aurrebista orria", "Next page": "Hurrengo orria",
"Next page": "Hurrengo orria", "Previous page": "Aurreko orria",
"Clear watch history?": "Garbitu ikusitakoen historia?", "Clear watch history?": "Garbitu ikusitakoen historia?",
"Yes": "Bai", "New password": "Pasahitz berria",
"No": "Ez", "New passwords must match": "",
"Import and Export Data": "Datuak inportatu eta esportatu", "Cannot change password for Google accounts": "",
"Import": "Inportatu", "Authorize token?": "",
"Import Invidious data": "Invidiouseko datuak inportatu", "Authorize token for `x`?": "",
"Import YouTube subscriptions": "YouTubeko harpidetzak inportatu", "Yes": "Bai",
"Import FreeTube subscriptions (.db)": "FreeTubeko harpidetzak inportatu (.db)", "No": "Ez",
"Import NewPipe subscriptions (.json)": "NewPipeko harpidetzak inportatu (.json)", "Import and Export Data": "Datuak inportatu eta esportatu",
"Import NewPipe data (.zip)": "NewPipeko datuak inportatu (.zip)", "Import": "Inportatu",
"Export": "Esportatu", "Import Invidious data": "Invidiouseko datuak inportatu",
"Export subscriptions as OPML": "Esportatu harpidetzak OPML bezala", "Import YouTube subscriptions": "YouTubeko harpidetzak inportatu",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Harpidetzak OPML bezala esportatu (NewPipe eta FreeTuberako)", "Import FreeTube subscriptions (.db)": "FreeTubeko harpidetzak inportatu (.db)",
"Export data as JSON": "Datuak JSON bezala esportatu", "Import NewPipe subscriptions (.json)": "NewPipeko harpidetzak inportatu (.json)",
"Delete account?": "Kontua ezabatu?", "Import NewPipe data (.zip)": "NewPipeko datuak inportatu (.zip)",
"History": "Historia", "Export": "Esportatu",
"Previous page": "Aurreko orria", "Export subscriptions as OPML": "Esportatu harpidetzak OPML bezala",
"An alternative front-end to YouTube": "YouTuberako interfaze alternatibo bat", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Harpidetzak OPML bezala esportatu (NewPipe eta FreeTuberako)",
"JavaScript license information": "JavaScript lizentzia informazioa", "Export data as JSON": "Datuak JSON bezala esportatu",
"source": "iturburua", "Delete account?": "Kontua ezabatu?",
"Login": "Saioa hasi", "History": "Historia",
"Login/Register": "Saioa hasi/Izena eman", "An alternative front-end to YouTube": "YouTuberako interfaze alternatibo bat",
"Login to Google": "Googlekin hasi saioa", "JavaScript license information": "JavaScript lizentzia informazioa",
"User ID:": "Erabiltzaile IDa:", "source": "iturburua",
"Password:": "Pasahitza:", "Log in": "Saioa hasi",
"Time (h:mm:ss):": "Denbora (o:mm:ss):", "Log in/register": "Saioa hasi/Izena eman",
"Text CAPTCHA": "Testu CAPTCHA", "Log in with Google": "Googlekin hasi saioa",
"Image CAPTCHA": "Irudi CAPTCHA", "User ID": "Erabiltzaile IDa",
"Sign In": "", "Password": "Pasahitza",
"Register": "", "Time (h:mm:ss):": "Denbora (o:mm:ss):",
"Email:": "", "Text CAPTCHA": "Testu CAPTCHA",
"Google verification code:": "", "Image CAPTCHA": "Irudi CAPTCHA",
"Preferences": "", "Sign In": "",
"Player preferences": "", "Register": "",
"Always loop: ": "", "E-mail": "",
"Autoplay: ": "", "Google verification code": "",
"Autoplay next video: ": "", "Preferences": "",
"Listen by default: ": "", "Player preferences": "",
"Default speed: ": "", "Always loop: ": "",
"Preferred video quality: ": "", "Autoplay: ": "",
"Player volume: ": "", "Play next by default: ": "",
"Default comments: ": "", "Autoplay next video: ": "",
"Default captions: ": "", "Listen by default: ": "",
"Fallback captions: ": "", "Proxy videos? ": "",
"Show related videos? ": "", "Default speed: ": "",
"Visual preferences": "", "Preferred video quality: ": "",
"Dark mode: ": "", "Player volume: ": "",
"Thin mode: ": "", "Default comments: ": "",
"Subscription preferences": "", "youtube": "",
"Redirect homepage to feed: ": "", "reddit": "",
"Number of videos shown in feed: ": "", "Default captions: ": "",
"Sort videos by: ": "", "Fallback captions: ": "",
"published": "", "Show related videos? ": "",
"published - reverse": "", "Show annotations by default? ": "",
"alphabetically": "", "Visual preferences": "",
"alphabetically - reverse": "", "Dark mode: ": "",
"channel name": "", "Thin mode: ": "",
"channel name - reverse": "", "Subscription preferences": "",
"Only show latest video from channel: ": "", "Show annotations by default for subscribed channels? ": "",
"Only show latest unwatched video from channel: ": "", "Redirect homepage to feed: ": "",
"Only show unwatched: ": "", "Number of videos shown in feed: ": "",
"Only show notifications (if there are any): ": "", "Sort videos by: ": "",
"Data preferences": "", "published": "",
"Clear watch history": "", "published - reverse": "",
"Import/Export data": "", "alphabetically": "",
"Manage subscriptions": "", "alphabetically - reverse": "",
"Watch history": "", "channel name": "",
"Delete account": "", "channel name - reverse": "",
"Administrator preferences": "", "Only show latest video from channel: ": "",
"Default homepage: ": "", "Only show latest unwatched video from channel: ": "",
"Feed menu: ": "", "Only show unwatched: ": "",
"Top enabled? ": "", "Only show notifications (if there are any): ": "",
"CAPTCHA enabled? ": "", "Data preferences": "",
"Login enabled? ": "", "Clear watch history": "",
"Registration enabled? ": "", "Import/export data": "",
"Report statistics? ": "", "Change password": "",
"Save preferences": "", "Manage subscriptions": "",
"Subscription manager": "", "Manage tokens": "",
"`x` subscriptions": "", "Watch history": "",
"Import/Export": "", "Delete account": "",
"unsubscribe": "", "Administrator preferences": "",
"Subscriptions": "", "Default homepage: ": "",
"`x` unseen notifications": "", "Feed menu: ": "",
"search": "", "Top enabled? ": "",
"Sign out": "", "CAPTCHA enabled? ": "",
"Released under the AGPLv3 by Omar Roth.": "", "Login enabled? ": "",
"Source available here.": "", "Registration enabled? ": "",
"View JavaScript license information.": "", "Report statistics? ": "",
"Trending": "", "Save preferences": "",
"Watch video on Youtube": "", "Subscription manager": "",
"Genre: ": "", "Token manager": "",
"License: ": "", "Token": "",
"Family friendly? ": "", "`x` subscriptions": "",
"Wilson score: ": "", "`x` tokens": "",
"Engagement: ": "", "Import/export": "",
"Whitelisted regions: ": "", "unsubscribe": "",
"Blacklisted regions: ": "", "revoke": "",
"Shared `x`": "", "Subscriptions": "",
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "", "`x` unseen notifications": "",
"View YouTube comments": "", "search": "",
"View more comments on Reddit": "", "Log out": "",
"View `x` comments": "", "Released under the AGPLv3 by Omar Roth.": "",
"View Reddit comments": "", "Source available here.": "",
"Hide replies": "", "View JavaScript license information.": "",
"Show replies": "", "View privacy policy.": "",
"Incorrect password": "", "Trending": "",
"Quota exceeded, try again in a few hours": "", "Unlisted": "",
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "", "Watch on YouTube": "",
"Invalid TFA code": "", "Hide annotations": "",
"Login failed. This may be because two-factor authentication is not enabled on your account.": "", "Show annotations": "",
"Invalid answer": "", "Genre: ": "",
"Invalid CAPTCHA": "", "License: ": "",
"CAPTCHA is a required field": "", "Family friendly? ": "",
"User ID is a required field": "", "Wilson score: ": "",
"Password is a required field": "", "Engagement: ": "",
"Invalid username or password": "", "Whitelisted regions: ": "",
"Please sign in using 'Sign in with Google'": "", "Blacklisted regions: ": "",
"Password cannot be empty": "", "Shared `x`": "",
"Password cannot be longer than 55 characters": "", "`x` views": "",
"Please sign in": "", "Premieres in `x`": "",
"Invidious Private Feed for `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.": "",
"channel:`x`": "", "View YouTube comments": "",
"Deleted or invalid channel": "", "View more comments on Reddit": "",
"This channel does not exist.": "", "View `x` comments": "",
"Could not get channel info.": "", "View Reddit comments": "",
"Could not fetch comments": "", "Hide replies": "",
"View `x` replies": "", "Show replies": "",
"`x` ago": "", "Incorrect password": "",
"Load more": "", "Quota exceeded, try again in a few hours": "",
"`x` points": "", "Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "",
"Could not create mix.": "", "Invalid TFA code": "",
"Playlist is empty": "", "Login failed. This may be because two-factor authentication is not turned on for your account.": "",
"Invalid playlist.": "", "Wrong answer": "",
"Playlist does not exist.": "", "Erroneous CAPTCHA": "",
"Could not pull trending pages.": "", "CAPTCHA is a required field": "",
"Hidden field \"challenge\" is a required field": "", "User ID is a required field": "",
"Hidden field \"token\" is a required field": "", "Password is a required field": "",
"Invalid challenge": "", "Wrong username or password": "",
"Invalid token": "", "Please sign in using 'Log in with Google'": "",
"Invalid user": "", "Password cannot be empty": "",
"Token is expired, please try again": "", "Password cannot be longer than 55 characters": "",
"English": "", "Please log in": "",
"English (auto-generated)": "", "Invidious Private Feed for `x`": "",
"Afrikaans": "", "channel:`x`": "",
"Albanian": "", "Deleted or invalid channel": "",
"Amharic": "", "This channel does not exist.": "",
"Arabic": "", "Could not get channel info.": "",
"Armenian": "", "Could not fetch comments": "",
"Azerbaijani": "", "View `x` replies": "",
"Bangla": "", "`x` ago": "",
"Basque": "", "Load more": "",
"Belarusian": "", "`x` points": "",
"Bosnian": "", "Could not create mix.": "",
"Bulgarian": "", "Empty playlist": "",
"Burmese": "", "Not a playlist.": "",
"Catalan": "", "Playlist does not exist.": "",
"Cebuano": "", "Could not pull trending pages.": "",
"Chinese (Simplified)": "", "Hidden field \"challenge\" is a required field": "",
"Chinese (Traditional)": "", "Hidden field \"token\" is a required field": "",
"Corsican": "", "Erroneous challenge": "",
"Croatian": "", "Erroneous token": "",
"Czech": "", "No such user": "",
"Danish": "", "Token is expired, please try again": "",
"Dutch": "", "English": "",
"Esperanto": "", "English (auto-generated)": "",
"Estonian": "", "Afrikaans": "",
"Filipino": "", "Albanian": "",
"Finnish": "", "Amharic": "",
"French": "", "Arabic": "",
"Galician": "", "Armenian": "",
"Georgian": "", "Azerbaijani": "",
"German": "", "Bangla": "",
"Greek": "", "Basque": "",
"Gujarati": "", "Belarusian": "",
"Haitian Creole": "", "Bosnian": "",
"Hausa": "", "Bulgarian": "",
"Hawaiian": "", "Burmese": "",
"Hebrew": "", "Catalan": "",
"Hindi": "", "Cebuano": "",
"Hmong": "", "Chinese (Simplified)": "",
"Hungarian": "", "Chinese (Traditional)": "",
"Icelandic": "", "Corsican": "",
"Igbo": "", "Croatian": "",
"Indonesian": "", "Czech": "",
"Irish": "", "Danish": "",
"Italian": "", "Dutch": "",
"Japanese": "", "Esperanto": "",
"Javanese": "", "Estonian": "",
"Kannada": "", "Filipino": "",
"Kazakh": "", "Finnish": "",
"Khmer": "", "French": "",
"Korean": "", "Galician": "",
"Kurdish": "", "Georgian": "",
"Kyrgyz": "", "German": "",
"Lao": "", "Greek": "",
"Latin": "", "Gujarati": "",
"Latvian": "", "Haitian Creole": "",
"Lithuanian": "", "Hausa": "",
"Luxembourgish": "", "Hawaiian": "",
"Macedonian": "", "Hebrew": "",
"Malagasy": "", "Hindi": "",
"Malay": "", "Hmong": "",
"Malayalam": "", "Hungarian": "",
"Maltese": "", "Icelandic": "",
"Maori": "", "Igbo": "",
"Marathi": "", "Indonesian": "",
"Mongolian": "", "Irish": "",
"Nepali": "", "Italian": "",
"Norwegian": "", "Japanese": "",
"Nyanja": "", "Javanese": "",
"Pashto": "", "Kannada": "",
"Persian": "", "Kazakh": "",
"Polish": "", "Khmer": "",
"Portuguese": "", "Korean": "",
"Punjabi": "", "Kurdish": "",
"Romanian": "", "Kyrgyz": "",
"Russian": "", "Lao": "",
"Samoan": "", "Latin": "",
"Scottish Gaelic": "", "Latvian": "",
"Serbian": "", "Lithuanian": "",
"Shona": "", "Luxembourgish": "",
"Sindhi": "", "Macedonian": "",
"Sinhala": "", "Malagasy": "",
"Slovak": "", "Malay": "",
"Slovenian": "", "Malayalam": "",
"Somali": "", "Maltese": "",
"Southern Sotho": "", "Maori": "",
"Spanish": "", "Marathi": "",
"Spanish (Latin America)": "", "Mongolian": "",
"Sundanese": "", "Nepali": "",
"Swahili": "", "Norwegian Bokmål": "",
"Swedish": "", "Nyanja": "",
"Tajik": "", "Pashto": "",
"Tamil": "", "Persian": "",
"Telugu": "", "Polish": "",
"Thai": "", "Portuguese": "",
"Turkish": "", "Punjabi": "",
"Ukrainian": "", "Romanian": "",
"Urdu": "", "Russian": "",
"Uzbek": "", "Samoan": "",
"Vietnamese": "", "Scottish Gaelic": "",
"Welsh": "", "Serbian": "",
"Western Frisian": "", "Shona": "",
"Xhosa": "", "Sindhi": "",
"Yiddish": "", "Sinhala": "",
"Yoruba": "", "Slovak": "",
"Zulu": "", "Slovenian": "",
"`x` years": "", "Somali": "",
"`x` months": "", "Southern Sotho": "",
"`x` weeks": "", "Spanish": "",
"`x` days": "", "Spanish (Latin America)": "",
"`x` hours": "", "Sundanese": "",
"`x` minutes": "", "Swahili": "",
"`x` seconds": "", "Swedish": "",
"Fallback comments: ": "", "Tajik": "",
"Popular": "", "Tamil": "",
"Top": "", "Telugu": "",
"About": "", "Thai": "",
"Rating: ": "", "Turkish": "",
"Language: ": "", "Ukrainian": "",
"Default": "", "Urdu": "",
"Music": "", "Uzbek": "",
"Gaming": "", "Vietnamese": "",
"News": "", "Welsh": "",
"Movies": "", "Western Frisian": "",
"Download": "", "Xhosa": "",
"Download as: ": "", "Yiddish": "",
"%A %B %-d, %Y": "", "Yoruba": "",
"(edited)": "", "Zulu": "",
"Youtube permalink of the comment": "", "`x` years": "",
"`x` marked it with a ❤": "", "`x` months": "",
"Audio mode": "", "`x` weeks": "",
"Video mode": "" "`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": ""
} }

View File

@@ -1,287 +1,314 @@
{ {
"`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", "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", "last": "Dernières",
"Next page": "Page suivante", "Next page": "Page suivante",
"Clear watch history?": "Êtes-vous sûr de vouloir supprimer l'historique des vidéos regardées ?", "Previous page": "Page précédente",
"Yes": "Oui", "Clear watch history?": "Êtes-vous sûr de vouloir supprimer l'historique des vidéos regardées ?",
"No": "Non", "New password": "",
"Import and Export Data": "Importer et Exporter les Données", "New passwords must match": "",
"Import": "Importer", "Cannot change password for Google accounts": "",
"Import Invidious data": "Importer des données Invidious", "Authorize token?": "",
"Import YouTube subscriptions": "Importer des abonnements YouTube", "Authorize token for `x`?": "",
"Import FreeTube subscriptions (.db)": "Importer des abonnements FreeTube (.db)", "Yes": "Oui",
"Import NewPipe subscriptions (.json)": "Importer des abonnements NewPipe (.json)", "No": "Non",
"Import NewPipe data (.zip)": "Importer des données NewPipe (.zip)", "Import and Export Data": "Importer et exporter des données",
"Export": "Exporter", "Import": "Importer",
"Export subscriptions as OPML": "Exporter les abonnements en OPML", "Import Invidious data": "Importer des données Invidious",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exporter les abonnements en OPML (pour NewPipe & FreeTube)", "Import YouTube subscriptions": "Importer des abonnements YouTube",
"Export data as JSON": "Exporter les données au format JSON", "Import FreeTube subscriptions (.db)": "Importer des abonnements FreeTube (.db)",
"Delete account?": "Supprimer votre compte ?", "Import NewPipe subscriptions (.json)": "Importer des abonnements NewPipe (.json)",
"History": "Historique", "Import NewPipe data (.zip)": "Importer des données NewPipe (.zip)",
"Previous page": "Page précédente", "Export": "Exporter",
"An alternative front-end to YouTube": "Un front-end alternatif à YouTube", "Export subscriptions as OPML": "Exporter les abonnements en OPML",
"JavaScript license information": "Informations sur les licences JavaScript", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Exporter les abonnements en OPML (pour NewPipe & FreeTube)",
"source": "source", "Export data as JSON": "Exporter les données au format JSON",
"Login": "Connexion", "Delete account?": "Êtes-vous sûr de vouloir supprimer votre compte ?",
"Login/Register": "Connexion/S'inscrire", "History": "Historique",
"Login to Google": "Se connecter à Google", "An alternative front-end to YouTube": "Un front-end alternatif à YouTube",
"User ID:": "ID utilisateur :", "JavaScript license information": "Informations sur les licences JavaScript",
"Password:": "Mot de passe :", "source": "source",
"Time (h:mm:ss):": "Heure (h:mm:ss) :", "Log in": "Se connecter",
"Text CAPTCHA": "CAPTCHA Texte", "Log in/register": "Se connecter/Créer un compte",
"Image CAPTCHA": "CAPTCHA Image", "Log in with Google": "Se connecter avec Google",
"Sign In": "S'identifier", "User ID": "Identifiant utilisateur",
"Register": "S'inscrire", "Password": "Mot de passe",
"Email:": "Email :", "Time (h:mm:ss):": "Heure (h:mm:ss) :",
"Google verification code:": "Code de vérification Google :", "Text CAPTCHA": "CAPTCHA Texte",
"Preferences": "Préférences", "Image CAPTCHA": "CAPTCHA Image",
"Player preferences": "Préférences du Lecteur", "Sign In": "Se connecter",
"Always loop: ": "Lire en boucle : ", "Register": "S'inscrire",
"Autoplay: ": "Lire Automatiquement : ", "E-mail": "E-mail",
"Autoplay next video: ": "Lire automatiquement la vidéo suivante : ", "Google verification code": "Code de vérification Google",
"Listen by default: ": "Audio Uniquement par défaut : ", "Preferences": "Préférences",
"Default speed: ": "Vitesse par défaut : ", "Player preferences": "Préférences du lecteur",
"Preferred video quality: ": "Qualité vidéo souhaitée : ", "Always loop: ": "Lire en boucle : ",
"Player volume: ": "Volume du lecteur : ", "Autoplay: ": "Lire automatiquement : ",
"Default comments: ": "Source des Commentaires : ", "Play next by default: ": "",
"Default captions: ": "Sous-titres principal : ", "Autoplay next video: ": "Lire automatiquement la vidéo suivante : ",
"Fallback captions: ": "Sous-titres secondaire : ", "Listen by default: ": "Audio uniquement : ",
"Show related videos? ": "Voir les vidéos liées à ce sujet ? ", "Proxy videos? ": "Charger les vidéos à travers un proxy ? ",
"Visual preferences": "Préférences visuelles", "Default speed: ": "Vitesse par défaut : ",
"Dark mode: ": "Mode Sombre : ", "Preferred video quality: ": "Qualité vidéo souhaitée : ",
"Thin mode: ": "Mode Simplifié : ", "Player volume: ": "Volume du lecteur : ",
"Subscription preferences": "Préférences de la page d'abonnements", "Default comments: ": "Source des commentaires : ",
"Redirect homepage to feed: ": "Rediriger la page d'accueil vers la page d'abonnements : ", "youtube": "",
"Number of videos shown in feed: ": "Nombre de vidéos montrées dans la page d'abonnements : ", "reddit": "",
"Sort videos by: ": "Trier les vidéos par : ", "Default captions: ": "Sous-titres par défaut : ",
"published": "publication", "Fallback captions: ": "Fallback captions: ",
"published - reverse": "publication - inversé", "Show related videos? ": "Voir les vidéos liées ? ",
"alphabetically": "alphabétiquement", "Show annotations by default? ": "",
"alphabetically - reverse": "alphabétiquement - inversé", "Visual preferences": "Préférences du site",
"channel name": "nom de la chaîne", "Dark mode: ": "Mode Sombre : ",
"channel name - reverse": "nom de la chaîne - inversé", "Thin mode: ": "Mode Simplifié : ",
"Only show latest video from channel: ": "Afficher uniquement la dernière vidéo de la chaîne : ", "Subscription preferences": "Préférences de la page d'abonnements",
"Only show latest unwatched video from channel: ": "Afficher uniquement la dernière vidéo de la chaîne non regardée : ", "Show annotations by default for subscribed channels? ": "",
"Only show unwatched: ": "Afficher uniquement les vidéos non regardées : ", "Redirect homepage to feed: ": "Rediriger la page d'accueil vers la page d'abonnements : ",
"Only show notifications (if there are any): ": "Afficher uniquement les notifications (s'il y en a) : ", "Number of videos shown in feed: ": "Nombre de vidéos montrées dans la page d'abonnements : ",
"Data preferences": "Préférences liées aux données", "Sort videos by: ": "Trier les vidéos par : ",
"Clear watch history": "Supprimer l'historique des vidéos regardées", "published": "publication",
"Import/Export data": "Importer/exporter les données", "published - reverse": "publication - inversé",
"Manage subscriptions": "Gérer les abonnements", "alphabetically": "alphabétiquement",
"Watch history": "Historique de visionnage", "alphabetically - reverse": "alphabétiquement - inversé",
"Delete account": "Supprimer votre compte", "channel name": "nom de la chaîne",
"Administrator preferences": "", "channel name - reverse": "nom de la chaîne - inversé",
"Default homepage: ": "", "Only show latest video from channel: ": "Afficher uniquement la dernière vidéo de la chaîne : ",
"Feed menu: ": "", "Only show latest unwatched video from channel: ": "Afficher uniquement la dernière vidéo de la chaîne non regardée : ",
"Top enabled? ": "", "Only show unwatched: ": "Afficher uniquement les vidéos non regardées : ",
"CAPTCHA enabled? ": "", "Only show notifications (if there are any): ": "Afficher uniquement les notifications (s'il y en a) : ",
"Login enabled? ": "", "Data preferences": "Préférences liées aux données",
"Registration enabled? ": "", "Clear watch history": "Supprimer l'historique des vidéos regardées",
"Report statistics? ": "", "Import/export data": "Importer/exporter les données",
"Save preferences": "Enregistrer les préférences", "Change password": "",
"Subscription manager": "Gestionnaire d'abonnement", "Manage subscriptions": "Gérer les abonnements",
"`x` subscriptions": "`x` abonnements", "Manage tokens": "",
"Import/Export": "Importer/Exporter", "Watch history": "Historique de visionnage",
"unsubscribe": "se désabonner", "Delete account": "Supprimer votre compte",
"Subscriptions": "Abonnements", "Administrator preferences": "Préferences d'Administrateur",
"`x` unseen notifications": "`x` notifications non vues", "Default homepage: ": "Page d'accueil par défaut : ",
"search": "Rechercher", "Feed menu: ": "Menu des Flux : ",
"Sign out": "Déconnexion", "Top enabled? ": "Top activé ? ",
"Released under the AGPLv3 by Omar Roth.": "Publié sous licence AGPLv3 par Omar Roth.", "CAPTCHA enabled? ": "CAPTCHA activé ? ",
"Source available here.": "Code Source.", "Login enabled? ": "Connexion activé ? ",
"View JavaScript license information.": "Voir les informations des licences JavaScript.", "Registration enabled? ": "Inscription activée ? ",
"Trending": "Tendances", "Report statistics? ": "Télémétrie activé ? ",
"Watch video on Youtube": "Voir la vidéo sur Youtube", "Save preferences": "Enregistrer les préférences",
"Genre: ": "Genre : ", "Subscription manager": "Gestionnaire d'abonnement",
"License: ": "Licence : ", "Token manager": "",
"Family friendly? ": "Tout Public ? ", "Token": "",
"Wilson score: ": "Score de Wilson : ", "`x` subscriptions": "`x` abonnements",
"Engagement: ": "Poucentage de spectateur aillant aimé Liker ou Disliker la vidéo : ", "`x` tokens": "",
"Whitelisted regions: ": "Régions en liste blanche : ", "Import/export": "Importer/Exporter",
"Blacklisted regions: ": "Régions sur liste noire : ", "unsubscribe": "se désabonner",
"Shared `x`": "Partagée `x`", "revoke": "",
"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.", "Subscriptions": "Abonnements",
"View YouTube comments": "Voir les commentaires YouTube", "`x` unseen notifications": "`x` notifications non vues",
"View more comments on Reddit": "Voir plus de commentaires sur Reddit", "search": "Rechercher",
"View `x` comments": "Voir `x` commentaires", "Log out": "Déconnexion",
"View Reddit comments": "Voir les commentaires Reddit", "Released under the AGPLv3 by Omar Roth.": "Publié sous licence AGPLv3 par Omar Roth.",
"Hide replies": "Masquer les réponses", "Source available here.": "Code Source.",
"Show replies": "Afficher les réponses", "View JavaScript license information.": "Voir les informations des licences JavaScript.",
"Incorrect password": "Mot de passe incorrect", "View privacy policy.": "Politique de confidentialité",
"Quota exceeded, try again in a few hours": "Nombre de tentative de connexion dépassé, réessayez dans quelques heures", "Trending": "Tendances",
"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.", "Unlisted": "Non répertoriée",
"Invalid TFA code": "Code d'authentification à deux facteurs invalide", "Watch on YouTube": "Voir la vidéo sur Youtube",
"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.", "Hide annotations": "",
"Invalid answer": "Réponse non valide", "Show annotations": "",
"Invalid CAPTCHA": "CAPTCHA invalide", "Genre: ": "Genre : ",
"CAPTCHA is a required field": "Veuillez rentrez un CAPTCHA", "License: ": "Licence : ",
"User ID is a required field": "Veuillez rentrez un Identifiant Utilisateur", "Family friendly? ": "Tout Public ? ",
"Password is a required field": "Veuillez rentrez un Mot de passe", "Wilson score: ": "Score de Wilson : ",
"Invalid username or password": "Nom d'utilisateur ou mot de passe invalide", "Engagement: ": "Poucentage de spectateur aillant aimé Like ou Dislike la vidéo : ",
"Please sign in using 'Sign in with Google'": "Veuillez vous connecter en utilisant \"S'identifier avec Google\"", "Whitelisted regions: ": "Régions en liste blanche : ",
"Password cannot be empty": "Le mot de passe ne peut pas être vide", "Blacklisted regions: ": "Régions sur liste noire : ",
"Password cannot be longer than 55 characters": "Le mot de passe ne doit pas comporter plus de 55 caractères", "Shared `x`": "Ajoutée le `x`",
"Please sign in": "Veuillez vous connecter", "`x` views": "",
"Invidious Private Feed for `x`": "Flux RSS privé pour `x`", "Premieres in `x`": "Première dans `x`",
"channel:`x`": "chaîne:`x`", "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Il semblerait que JavaScript soit désactivé. Cliquez ici pour voir les commentaires sans. Gardez à l'esprit que le chargement peut prendre plus de temps.",
"Deleted or invalid channel": "Chaîne supprimée ou invalide", "View YouTube comments": "Voir les commentaires YouTube",
"This channel does not exist.": "Cette chaine n'existe pas.", "View more comments on Reddit": "Voir plus de commentaires sur Reddit",
"Could not get channel info.": "Impossible de charger les informations de cette chaîne.", "View `x` comments": "Voir `x` commentaires",
"Could not fetch comments": "Impossible de charger les commentaires", "View Reddit comments": "Voir les commentaires Reddit",
"View `x` replies": "Voir `x` réponses", "Hide replies": "Masquer les réponses",
"`x` ago": "il y a `x`", "Show replies": "Afficher les réponses",
"Load more": "Charger plus", "Incorrect password": "Mot de passe incorrect",
"`x` points": "`x` points", "Quota exceeded, try again in a few hours": "Nombre de tentative de connexion dépassé, réessayez dans quelques heures",
"Could not create mix.": "Impossible de charger cette liste de lecture.", "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.",
"Playlist is empty": "La liste de lecture est vide", "Invalid TFA code": "Code d'authentification à deux facteurs invalide",
"Invalid playlist.": "Liste de lecture invalide.", "Login failed. This may be because two-factor authentication is not turned on for your account.": "La connexion a échoué. Cela peut être dû au fait que l'authentification à deux facteurs n'est pas activée sur votre compte.",
"Playlist does not exist.": "La liste de lecture n'existe pas.", "Wrong answer": "Réponse invalide",
"Could not pull trending pages.": "Impossible de charger les pages de tendances.", "Erroneous CAPTCHA": "CAPTCHA invalide",
"Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field", "CAPTCHA is a required field": "Veuillez entrer un CAPTCHA",
"Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field", "User ID is a required field": "Veuillez entrer un Identifiant Utilisateur",
"Invalid challenge": "Invalid challenge", "Password is a required field": "Veuillez entrer un Mot de passe",
"Invalid token": "Invalid token", "Wrong username or password": "Nom d'utilisateur ou mot de passe invalide",
"Invalid user": "Invalid user", "Please sign in using 'Log in with Google'": "Veuillez vous connecter en utilisant \"Se connecter avec Google\"",
"Token is expired, please try again": "Token is expired, please try again", "Password cannot be empty": "Le mot de passe ne peut pas être vide",
"English": "Anglais", "Password cannot be longer than 55 characters": "Le mot de passe ne doit pas comporter plus de 55 caractères",
"English (auto-generated)": "Anglais (générés automatiquement)", "Please log in": "Veuillez vous connecter",
"Afrikaans": "Afrikaans", "Invidious Private Feed for `x`": "Flux RSS privé pour `x`",
"Albanian": "Albanais", "channel:`x`": "chaîne:`x`",
"Amharic": "Amharique", "Deleted or invalid channel": "Chaîne supprimée ou invalide",
"Arabic": "Arabe", "This channel does not exist.": "Cette chaine n'existe pas.",
"Armenian": "Arménien", "Could not get channel info.": "Impossible de charger les informations de cette chaîne.",
"Azerbaijani": "Azerbaïdjanais", "Could not fetch comments": "Impossible de charger les commentaires",
"Bangla": "Bangla", "View `x` replies": "Voir `x` réponses",
"Basque": "Basque", "`x` ago": "il y a `x`",
"Belarusian": "Belarusian", "Load more": "Charger plus",
"Bosnian": "Bosnian", "`x` points": "`x` points",
"Bulgarian": "Bulgarian", "Could not create mix.": "Impossible de charger cette liste de lecture.",
"Burmese": "Birman", "Empty playlist": "La liste de lecture est vide",
"Catalan": "Catalan", "Not a playlist.": "Liste de lecture invalide.",
"Cebuano": "Cebuano", "Playlist does not exist.": "La liste de lecture n'existe pas.",
"Chinese (Simplified)": "Chinois (Simplifié)", "Could not pull trending pages.": "Impossible de charger les pages de tendances.",
"Chinese (Traditional)": "Chinois (Traditionnel)", "Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field",
"Corsican": "Corse", "Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field",
"Croatian": "Croate", "Erroneous challenge": "Erroneous challenge",
"Czech": "Tchèque", "Erroneous token": "Erroneous token",
"Danish": "Danois", "No such user": "No such user",
"Dutch": "Hollandais", "Token is expired, please try again": "Token is expired, please try again",
"Esperanto": "Espéranto", "English": "Anglais",
"Estonian": "Estonien", "English (auto-generated)": "Anglais (générés automatiquement)",
"Filipino": "Philippin", "Afrikaans": "Afrikaans",
"Finnish": "Finlandais", "Albanian": "Albanais",
"French": "Français", "Amharic": "Amharique",
"Galician": "Galicien", "Arabic": "Arabe",
"Georgian": "Géorgien", "Armenian": "Arménien",
"German": "Allemand", "Azerbaijani": "Azerbaïdjanais",
"Greek": "Grec", "Bangla": "Bangla",
"Gujarati": "Gujarati", "Basque": "Basque",
"Haitian Creole": "Créole Haïtien", "Belarusian": "Belarusian",
"Hausa": "Haoussa", "Bosnian": "Bosnian",
"Hawaiian": "Hawaïen", "Bulgarian": "Bulgarian",
"Hebrew": "Hébraïque", "Burmese": "Birman",
"Hindi": "Hindi", "Catalan": "Catalan",
"Hmong": "Hmong", "Cebuano": "Cebuano",
"Hungarian": "Hongrois", "Chinese (Simplified)": "Chinois (Simplifié)",
"Icelandic": "Islandais", "Chinese (Traditional)": "Chinois (Traditionnel)",
"Igbo": "Igbo", "Corsican": "Corse",
"Indonesian": "Indonésien", "Croatian": "Croate",
"Irish": "Irlandais", "Czech": "Tchèque",
"Italian": "Italien", "Danish": "Danois",
"Japanese": "Japonais", "Dutch": "Hollandais",
"Javanese": "Javanais", "Esperanto": "Espéranto",
"Kannada": "Kannada", "Estonian": "Estonien",
"Kazakh": "Kazakh", "Filipino": "Philippin",
"Khmer": "Khmer", "Finnish": "Finlandais",
"Korean": "Coréen", "French": "Français",
"Kurdish": "Kurde", "Galician": "Galicien",
"Kyrgyz": "Kirghize", "Georgian": "Géorgien",
"Lao": "Lao", "German": "Allemand",
"Latin": "Latin", "Greek": "Grec",
"Latvian": "Letton", "Gujarati": "Gujarati",
"Lithuanian": "Lituanien", "Haitian Creole": "Créole Haïtien",
"Luxembourgish": "Luxembourgeois", "Hausa": "Haoussa",
"Macedonian": "Macédonien", "Hawaiian": "Hawaïen",
"Malagasy": "Malgache", "Hebrew": "Hébraïque",
"Malay": "Malais", "Hindi": "Hindi",
"Malayalam": "Malayalam", "Hmong": "Hmong",
"Maltese": "Maltais", "Hungarian": "Hongrois",
"Maori": "Maori", "Icelandic": "Islandais",
"Marathi": "Marathi", "Igbo": "Igbo",
"Mongolian": "Mongol", "Indonesian": "Indonésien",
"Nepali": "Népalais", "Irish": "Irlandais",
"Norwegian": "Norvégien", "Italian": "Italien",
"Nyanja": "Nyanja", "Japanese": "Japonais",
"Pashto": "Pachtou", "Javanese": "Javanais",
"Persian": "Persan", "Kannada": "Kannada",
"Polish": "Polonais", "Kazakh": "Kazakh",
"Portuguese": "Portugais", "Khmer": "Khmer",
"Punjabi": "Punjabi", "Korean": "Coréen",
"Romanian": "Roumain", "Kurdish": "Kurde",
"Russian": "Russe", "Kyrgyz": "Kirghize",
"Samoan": "Samoan", "Lao": "Lao",
"Scottish Gaelic": "Eaélique Ècossais", "Latin": "Latin",
"Serbian": "Serbe", "Latvian": "Letton",
"Shona": "Shona", "Lithuanian": "Lituanien",
"Sindhi": "Sindhi", "Luxembourgish": "Luxembourgeois",
"Sinhala": "Cinghalais", "Macedonian": "Macédonien",
"Slovak": "Slovaque", "Malagasy": "Malgache",
"Slovenian": "Slovène", "Malay": "Malais",
"Somali": "Somalien", "Malayalam": "Malayalam",
"Southern Sotho": "Sotho du Sud", "Maltese": "Maltais",
"Spanish": "Espagnol", "Maori": "Maori",
"Spanish (Latin America)": "Espagnol (Amérique latine)", "Marathi": "Marathi",
"Sundanese": "Sundanais", "Mongolian": "Mongol",
"Swahili": "Swahili", "Nepali": "Népalais",
"Swedish": "Suédois", "Norwegian Bokmål": "Norvégien",
"Tajik": "Tajik", "Nyanja": "Nyanja",
"Tamil": "Tamil", "Pashto": "Pachtou",
"Telugu": "Telugu", "Persian": "Persan",
"Thai": "Thaï", "Polish": "Polonais",
"Turkish": "Turc", "Portuguese": "Portugais",
"Ukrainian": "Ukrainien", "Punjabi": "Punjabi",
"Urdu": "Ourdou", "Romanian": "Roumain",
"Uzbek": "Ouzbek", "Russian": "Russe",
"Vietnamese": "Vietnamien", "Samoan": "Samoan",
"Welsh": "Gallois", "Scottish Gaelic": "Eaélique Ècossais",
"Western Frisian": "Frison occidental", "Serbian": "Serbe",
"Xhosa": "Xhosa", "Shona": "Shona",
"Yiddish": "Yiddish", "Sindhi": "Sindhi",
"Yoruba": "Yoruba", "Sinhala": "Cinghalais",
"Zulu": "Zoulou", "Slovak": "Slovaque",
"`x` years": "`x` ans", "Slovenian": "Slovène",
"`x` months": "`x` mois", "Somali": "Somalien",
"`x` weeks": "`x` semaines", "Southern Sotho": "Sotho du Sud",
"`x` days": "`x` jours", "Spanish": "Espagnol",
"`x` hours": "`x` heures", "Spanish (Latin America)": "Espagnol (Amérique latine)",
"`x` minutes": "`x` minutes", "Sundanese": "Sundanais",
"`x` seconds": "`x` secondes", "Swahili": "Swahili",
"Fallback comments: ": "Commentaires secondaires : ", "Swedish": "Suédois",
"Popular": "Populaire", "Tajik": "Tajik",
"Top": "Top", "Tamil": "Tamil",
"About": "A Propos", "Telugu": "Telugu",
"Rating: ": "Évaluation : ", "Thai": "Thaï",
"Language: ": "Langue : ", "Turkish": "Turc",
"Default": "Défaut", "Ukrainian": "Ukrainien",
"Music": "Musique", "Urdu": "Ourdou",
"Gaming": "Jeux Vidéo", "Uzbek": "Ouzbek",
"News": "Actualités", "Vietnamese": "Vietnamien",
"Movies": "Films", "Welsh": "Gallois",
"Download": "Télécharger", "Western Frisian": "Frison occidental",
"Download as: ": "Télécharger en : ", "Xhosa": "Xhosa",
"%A %B %-d, %Y": "%A %-d %B %Y", "Yiddish": "Yiddish",
"(edited)": "(modifié)", "Yoruba": "Yoruba",
"Youtube permalink of the comment": "Lien YouTube permanent vers le commentaire", "Zulu": "Zoulou",
"`x` marked it with a ❤": "`x` l'a marqué d'un ❤", "`x` years": "`x` ans",
"Audio mode": "Mode Audio", "`x` months": "`x` mois",
"Video mode": "Mode Vidéo" "`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": "A Propos",
"Rating: ": "Évaluation : ",
"Language: ": "Langue : ",
"View as playlist": "",
"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 :"
}

View File

@@ -1,287 +1,314 @@
{ {
"`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", "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", "last": "",
"Next page": "Pagina successiva", "Next page": "Pagina successiva",
"Clear watch history?": "Sei sicuro di voler cancellare la cronologia dei video guardati?", "Previous page": "Pagina precedente",
"Yes": "Si", "Clear watch history?": "Sei sicuro di voler cancellare la cronologia dei video guardati?",
"No": "No", "New password": "",
"Import and Export Data": "Importazione ed esportazione dati", "New passwords must match": "",
"Import": "Importa", "Cannot change password for Google accounts": "",
"Import Invidious data": "Importa dati Invidious", "Authorize token?": "",
"Import YouTube subscriptions": "Importa le iscrizioni da YouTube", "Authorize token for `x`?": "",
"Import FreeTube subscriptions (.db)": "Importa le iscrizioni da FreeTube (.db)", "Yes": "Si",
"Import NewPipe subscriptions (.json)": "Importa le iscrizioni da NewPipe (.json)", "No": "No",
"Import NewPipe data (.zip)": "Importa i dati di NewPipe (.zip)", "Import and Export Data": "Importazione ed esportazione dati",
"Export": "Esporta", "Import": "Importa",
"Export subscriptions as OPML": "Esporta gli abbonamenti come OPML", "Import Invidious data": "Importa dati Invidious",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Esporta gli abbonamenti come OPML (per NewPipe e FreeTube)", "Import YouTube subscriptions": "Importa le iscrizioni da YouTube",
"Export data as JSON": "Esporta i dati in formato JSON", "Import FreeTube subscriptions (.db)": "Importa le iscrizioni da FreeTube (.db)",
"Delete account?": "Sei sicuro di voler cancellare l'account?", "Import NewPipe subscriptions (.json)": "Importa le iscrizioni da NewPipe (.json)",
"History": "Cronologia", "Import NewPipe data (.zip)": "Importa i dati di NewPipe (.zip)",
"Previous page": "Pagina precedente", "Export": "Esporta",
"An alternative front-end to YouTube": "Un'interfaccia alternativa per YouTube", "Export subscriptions as OPML": "Esporta gli abbonamenti come OPML",
"JavaScript license information": "Info licenze JavaScript", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Esporta gli abbonamenti come OPML (per NewPipe e FreeTube)",
"source": "sorgente", "Export data as JSON": "Esporta i dati in formato JSON",
"Login": "Entra", "Delete account?": "Sei sicuro di voler cancellare l'account?",
"Login/Register": "Entra/Registrati", "History": "Cronologia",
"Login to Google": "Entra con Google", "An alternative front-end to YouTube": "Un'interfaccia alternativa per YouTube",
"User ID:": "ID utente:", "JavaScript license information": "Info licenze JavaScript",
"Password:": "Password:", "source": "sorgente",
"Time (h:mm:ss):": "Orario (h:mm:ss):", "Log in": "Entra",
"Text CAPTCHA": "Testo del CAPTCHA", "Log in/register": "Entra/Registrati",
"Image CAPTCHA": "Immagine CAPTCHA", "Log in with Google": "Entra con Google",
"Sign In": "Entra", "User ID": "ID utente",
"Register": "Registrati", "Password": "Password",
"Email:": "Email:", "Time (h:mm:ss):": "Orario (h:mm:ss):",
"Google verification code:": "Codice di verifica Google:", "Text CAPTCHA": "Testo del CAPTCHA",
"Preferences": "Preferenze", "Image CAPTCHA": "Immagine CAPTCHA",
"Player preferences": "Preferenze del riproduttore", "Sign In": "Entra",
"Always loop: ": "Ripeti sempre: ", "Register": "Registrati",
"Autoplay: ": "Riproduzione automatica: ", "E-mail": "Email",
"Autoplay next video: ": "Riproduci automaticamente il prossimo video: ", "Google verification code": "Codice di verifica Google",
"Listen by default: ": "Modalità solo audio come predefinita: ", "Preferences": "Preferenze",
"Default speed: ": "Velocità di riproduzione predefinita: ", "Player preferences": "Preferenze del riproduttore",
"Preferred video quality: ": "Preferenza sulla qualità video: ", "Always loop: ": "Ripeti sempre: ",
"Player volume: ": "Volume di riproduzione: ", "Autoplay: ": "Riproduzione automatica: ",
"Default comments: ": "Origine dei commenti: ", "Play next by default: ": "",
"Default captions: ": "Sottotitoli predefiniti: ", "Autoplay next video: ": "Riproduci automaticamente il prossimo video: ",
"Fallback captions: ": "Sottotitoli alternativi: ", "Listen by default: ": "Modalità solo audio come predefinita: ",
"Show related videos? ": "Mostra video correlati? ", "Proxy videos? ": "",
"Visual preferences": "Preferenze grafiche", "Default speed: ": "Velocità di riproduzione predefinita: ",
"Dark mode: ": "Tema scuro: ", "Preferred video quality: ": "Preferenza sulla qualità video: ",
"Thin mode: ": "Modalità per connessioni lente: ", "Player volume: ": "Volume di riproduzione: ",
"Subscription preferences": "Preferenze iscrizioni", "Default comments: ": "Origine dei commenti: ",
"Redirect homepage to feed: ": "Reindirizza la pagina principale a quella delle iscrizioni: ", "youtube": "",
"Number of videos shown in feed: ": "Numero di video da mostrare nelle iscrizioni: ", "reddit": "",
"Sort videos by: ": "Ordinare i video per: ", "Default captions: ": "Sottotitoli predefiniti: ",
"published": "data di pubblicazione", "Fallback captions: ": "Sottotitoli alternativi: ",
"published - reverse": "data di pubblicazione - decrescente", "Show related videos? ": "Mostra video correlati? ",
"alphabetically": "ordine alfabetico", "Show annotations by default? ": "",
"alphabetically - reverse": "ordine alfabetico - decrescente", "Visual preferences": "Preferenze grafiche",
"channel name": "nome del canale", "Dark mode: ": "Tema scuro: ",
"channel name - reverse": "nome del canale - decrescente", "Thin mode: ": "Modalità per connessioni lente: ",
"Only show latest video from channel: ": "Mostra solo il video più recente del canale: ", "Subscription preferences": "Preferenze iscrizioni",
"Only show latest unwatched video from channel: ": "Mostra solo il video più recente non guardato del canale: ", "Show annotations by default for subscribed channels? ": "",
"Only show unwatched: ": "Mostra solo i video non guardati: ", "Redirect homepage to feed: ": "Reindirizza la pagina principale a quella delle iscrizioni: ",
"Only show notifications (if there are any): ": "Mostra solo le notifiche (se presenti): ", "Number of videos shown in feed: ": "Numero di video da mostrare nelle iscrizioni: ",
"Data preferences": "Preferenze dati", "Sort videos by: ": "Ordinare i video per: ",
"Clear watch history": "Cancella la cronologia dei video guardati", "published": "data di pubblicazione",
"Import/Export data": "Importazione/esportazione dati", "published - reverse": "data di pubblicazione - decrescente",
"Manage subscriptions": "Gestisci le iscrizioni", "alphabetically": "ordine alfabetico",
"Watch history": "Cronologia dei video", "alphabetically - reverse": "ordine alfabetico - decrescente",
"Delete account": "Elimina l'account", "channel name": "nome del canale",
"Administrator preferences": "", "channel name - reverse": "nome del canale - decrescente",
"Default homepage: ": "", "Only show latest video from channel: ": "Mostra solo il video più recente del canale: ",
"Feed menu: ": "", "Only show latest unwatched video from channel: ": "Mostra solo il video più recente non guardato del canale: ",
"Top enabled? ": "", "Only show unwatched: ": "Mostra solo i video non guardati: ",
"CAPTCHA enabled? ": "", "Only show notifications (if there are any): ": "Mostra solo le notifiche (se presenti): ",
"Login enabled? ": "", "Data preferences": "Preferenze dati",
"Registration enabled? ": "", "Clear watch history": "Cancella la cronologia dei video guardati",
"Report statistics? ": "", "Import/export data": "Importazione/esportazione dati",
"Save preferences": "Salva le preferenze", "Change password": "",
"Subscription manager": "Gestisci le iscrizioni", "Manage subscriptions": "Gestisci le iscrizioni",
"`x` subscriptions": "`x` iscrizioni", "Manage tokens": "",
"Import/Export": "Importa/esporta", "Watch history": "Cronologia dei video",
"unsubscribe": "disiscriviti", "Delete account": "Elimina l'account",
"Subscriptions": "Iscrizioni", "Administrator preferences": "",
"`x` unseen notifications": "`x` notifiche non visualizzate", "Default homepage: ": "",
"search": "Cerca", "Feed menu: ": "",
"Sign out": "Esci", "Top enabled? ": "",
"Released under the AGPLv3 by Omar Roth.": "Pubblicato con licenza AGPLv3 da Omar Roth.", "CAPTCHA enabled? ": "",
"Source available here.": "Codice sorgente.", "Login enabled? ": "",
"View JavaScript license information.": "Guarda le informazioni di licenza del codice JavaScript.", "Registration enabled? ": "",
"Trending": "Tendenze", "Report statistics? ": "",
"Watch video on Youtube": "Guarda il video su YouTube", "Save preferences": "Salva le preferenze",
"Genre: ": "Genere: ", "Subscription manager": "Gestisci le iscrizioni",
"License: ": "Licenza: ", "Token manager": "",
"Family friendly? ": "Per tutti? ", "Token": "",
"Wilson score: ": "Punteggio di Wilson: ", "`x` subscriptions": "`x` iscrizioni",
"Engagement: ": "Tasso di coinvolgimento: ", "`x` tokens": "",
"Whitelisted regions: ": "Regioni nella lista bianca: ", "Import/export": "Importa/esporta",
"Blacklisted regions: ": "Regioni nella lista nera: ", "unsubscribe": "disiscriviti",
"Shared `x`": "Condiviso `x`", "revoke": "",
"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.", "Subscriptions": "Iscrizioni",
"View YouTube comments": "Visualizza i commenti da YouTube", "`x` unseen notifications": "`x` notifiche non visualizzate",
"View more comments on Reddit": "Visualizza più commenti su Reddit", "search": "Cerca",
"View `x` comments": "Visualizza `x` commenti", "Log out": "Esci",
"View Reddit comments": "Visualizza i commenti da Reddit", "Released under the AGPLv3 by Omar Roth.": "Pubblicato con licenza AGPLv3 da Omar Roth.",
"Hide replies": "Nascondi le risposte", "Source available here.": "Codice sorgente.",
"Show replies": "Mostra le risposte", "View JavaScript license information.": "Guarda le informazioni di licenza del codice JavaScript.",
"Incorrect password": "Password sbagliata", "View privacy policy.": "",
"Quota exceeded, try again in a few hours": "Limite superato, prova di nuovo fra qualche ora", "Trending": "Tendenze",
"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.", "Unlisted": "",
"Invalid TFA code": "Codice di autenticazione a due fattori non valido", "Watch on YouTube": "Guarda il video su YouTube",
"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.", "Hide annotations": "",
"Invalid answer": "Risposta errata", "Show annotations": "",
"Invalid CAPTCHA": "CAPTCHA errato", "Genre: ": "Genere: ",
"CAPTCHA is a required field": "Il CAPTCHA è un campo obbligatorio", "License: ": "Licenza: ",
"User ID is a required field": "L'ID utente è obbligatorio", "Family friendly? ": "Per tutti? ",
"Password is a required field": "La password è un campo obbligatorio", "Wilson score: ": "Punteggio di Wilson: ",
"Invalid username or password": "Nome utente o password errati", "Engagement: ": "Tasso di coinvolgimento: ",
"Please sign in using 'Sign in with Google'": "Per favore accedi con \"Entra con Google\"", "Whitelisted regions: ": "Regioni nella lista bianca: ",
"Password cannot be empty": "La password non può essere vuota", "Blacklisted regions: ": "Regioni nella lista nera: ",
"Password cannot be longer than 55 characters": "La password non può contenere più di 55 caratteri", "Shared `x`": "Condiviso `x`",
"Please sign in": "Per favore, entra", "`x` views": "",
"Invidious Private Feed for `x`": "Feed privato Invidious per `x`", "Premieres in `x`": "",
"channel:`x`": "canale:`x`", "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Ciao! Sembra che tu abbia disattivato JavaScript. Clicca qui per visualizzare i commenti. Considera che potrebbe volerci più tempo.",
"Deleted or invalid channel": "Canale cancellato o invalido", "View YouTube comments": "Visualizza i commenti da YouTube",
"This channel does not exist.": "Canale inesistente.", "View more comments on Reddit": "Visualizza più commenti su Reddit",
"Could not get channel info.": "Impossibile ottenere le informazioni del canale.", "View `x` comments": "Visualizza `x` commenti",
"Could not fetch comments": "Impossibile recuperare i commenti", "View Reddit comments": "Visualizza i commenti da Reddit",
"View `x` replies": "Visualizza `x` risposte", "Hide replies": "Nascondi le risposte",
"`x` ago": "`x` fa", "Show replies": "Mostra le risposte",
"Load more": "Carica altro", "Incorrect password": "Password sbagliata",
"`x` points": "`x` punti", "Quota exceeded, try again in a few hours": "Limite superato, prova di nuovo fra qualche ora",
"Could not create mix.": "Impossibile creare il mix.", "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.",
"Playlist is empty": "Playlist vuota", "Invalid TFA code": "Codice di autenticazione a due fattori non valido",
"Invalid playlist.": "Playlist invalida.", "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.",
"Playlist does not exist.": "Playlist inesistente.", "Wrong answer": "Risposta errata",
"Could not pull trending pages.": "Impossibile recuperare le tendenze.", "Erroneous CAPTCHA": "CAPTCHA errato",
"Hidden field \"challenge\" is a required field": "Il campo nascosto \"challenge\" è obbligatorio", "CAPTCHA is a required field": "Il CAPTCHA è un campo obbligatorio",
"Hidden field \"token\" is a required field": "Il campo nascosto \"token\" è obbligatorio", "User ID is a required field": "L'ID utente è obbligatorio",
"Invalid challenge": "Campo \"challenge\" invalido", "Password is a required field": "La password è un campo obbligatorio",
"Invalid token": "Campo \"token\" invalido", "Wrong username or password": "Nome utente o password errati",
"Invalid user": "Utente invalido", "Please sign in using 'Log in with Google'": "Per favore accedi con \"Entra con Google\"",
"Token is expired, please try again": "Token scaduto, riprova", "Password cannot be empty": "La password non può essere vuota",
"English": "Inglese", "Password cannot be longer than 55 characters": "La password non può contenere più di 55 caratteri",
"English (auto-generated)": "Inglese (generati automaticamente)", "Please log in": "Per favore, entra",
"Afrikaans": "Afrikaans", "Invidious Private Feed for `x`": "Feed privato Invidious per `x`",
"Albanian": "Albanese", "channel:`x`": "canale:`x`",
"Amharic": "Amarico", "Deleted or invalid channel": "Canale cancellato o invalido",
"Arabic": "Arabo", "This channel does not exist.": "Canale inesistente.",
"Armenian": "Armeno", "Could not get channel info.": "Impossibile ottenere le informazioni del canale.",
"Azerbaijani": "Azero", "Could not fetch comments": "Impossibile recuperare i commenti",
"Bangla": "Bengalese", "View `x` replies": "Visualizza `x` risposte",
"Basque": "Basco", "`x` ago": "`x` fa",
"Belarusian": "Biellorusso", "Load more": "Carica altro",
"Bosnian": "Bosniaco", "`x` points": "`x` punti",
"Bulgarian": "Bulgaro", "Could not create mix.": "Impossibile creare il mix.",
"Burmese": "Birmano", "Empty playlist": "Playlist vuota",
"Catalan": "Catalano", "Not a playlist.": "Playlist invalida.",
"Cebuano": "Sugbuanon", "Playlist does not exist.": "Playlist inesistente.",
"Chinese (Simplified)": "Cinese semplifiato", "Could not pull trending pages.": "Impossibile recuperare le tendenze.",
"Chinese (Traditional)": "Cinese tradizionale", "Hidden field \"challenge\" is a required field": "Il campo nascosto \"challenge\" è obbligatorio",
"Corsican": "Corso", "Hidden field \"token\" is a required field": "Il campo nascosto \"token\" è obbligatorio",
"Croatian": "Croato", "Erroneous challenge": "Campo \"challenge\" invalido",
"Czech": "Ceco", "Erroneous token": "Campo \"token\" invalido",
"Danish": "Danese", "No such user": "Utente invalido",
"Dutch": "Olandese", "Token is expired, please try again": "Token scaduto, riprova",
"Esperanto": "Esperanto", "English": "Inglese",
"Estonian": "Estone", "English (auto-generated)": "Inglese (generati automaticamente)",
"Filipino": "Filippino", "Afrikaans": "Afrikaans",
"Finnish": "Finlandese", "Albanian": "Albanese",
"French": "Francese", "Amharic": "Amarico",
"Galician": "Galiziano", "Arabic": "Arabo",
"Georgian": "Georgiano", "Armenian": "Armeno",
"German": "Tedesco", "Azerbaijani": "Azero",
"Greek": "Greco", "Bangla": "Bengalese",
"Gujarati": "Gujarati", "Basque": "Basco",
"Haitian Creole": "Creolo haitiano", "Belarusian": "Biellorusso",
"Hausa": "Lingua hausa", "Bosnian": "Bosniaco",
"Hawaiian": "Hawaiano", "Bulgarian": "Bulgaro",
"Hebrew": "Ebreo", "Burmese": "Birmano",
"Hindi": "Hindi", "Catalan": "Catalano",
"Hmong": "Hmong", "Cebuano": "Sugbuanon",
"Hungarian": "Ungarese", "Chinese (Simplified)": "Cinese semplifiato",
"Icelandic": "Islandese", "Chinese (Traditional)": "Cinese tradizionale",
"Igbo": "Igbo", "Corsican": "Corso",
"Indonesian": "Indonesiano", "Croatian": "Croato",
"Irish": "Irlandese", "Czech": "Ceco",
"Italian": "Italiano", "Danish": "Danese",
"Japanese": "Giapponese", "Dutch": "Olandese",
"Javanese": "Giavanese", "Esperanto": "Esperanto",
"Kannada": "Kannada", "Estonian": "Estone",
"Kazakh": "Kazaco", "Filipino": "Filippino",
"Khmer": "Khmer", "Finnish": "Finlandese",
"Korean": "Coreano", "French": "Francese",
"Kurdish": "Curdo", "Galician": "Galiziano",
"Kyrgyz": "Kirghize", "Georgian": "Georgiano",
"Lao": "Lao", "German": "Tedesco",
"Latin": "Latino", "Greek": "Greco",
"Latvian": "Lettone", "Gujarati": "Gujarati",
"Lithuanian": "Lituano", "Haitian Creole": "Creolo haitiano",
"Luxembourgish": "Lussemburghese", "Hausa": "Lingua hausa",
"Macedonian": "Macedone", "Hawaiian": "Hawaiano",
"Malagasy": "Malgascio", "Hebrew": "Ebreo",
"Malay": "Malese", "Hindi": "Hindi",
"Malayalam": "Lingua malayalam", "Hmong": "Hmong",
"Maltese": "Maltese", "Hungarian": "Ungarese",
"Maori": "Maori", "Icelandic": "Islandese",
"Marathi": "Marathi", "Igbo": "Igbo",
"Mongolian": "Mongolo", "Indonesian": "Indonesiano",
"Nepali": "Nepalese", "Irish": "Irlandese",
"Norwegian": "Norvegese", "Italian": "Italiano",
"Nyanja": "Nyanja", "Japanese": "Giapponese",
"Pashto": "Lingua pashtu", "Javanese": "Giavanese",
"Persian": "Persiano", "Kannada": "Kannada",
"Polish": "Polacco", "Kazakh": "Kazaco",
"Portuguese": "Portoghese", "Khmer": "Khmer",
"Punjabi": "Punjabi", "Korean": "Coreano",
"Romanian": "Rumeno", "Kurdish": "Curdo",
"Russian": "Russo", "Kyrgyz": "Kirghize",
"Samoan": "Samoan", "Lao": "Lao",
"Scottish Gaelic": "Gaelico scozzese", "Latin": "Latino",
"Serbian": "Serbo", "Latvian": "Lettone",
"Shona": "Shona", "Lithuanian": "Lituano",
"Sindhi": "Sindhi", "Luxembourgish": "Lussemburghese",
"Sinhala": "Cingalese", "Macedonian": "Macedone",
"Slovak": "Slovacco", "Malagasy": "Malgascio",
"Slovenian": "Sloveno", "Malay": "Malese",
"Somali": "Somalo", "Malayalam": "Lingua malayalam",
"Southern Sotho": "Sotho del Sud", "Maltese": "Maltese",
"Spanish": "Spagnolo", "Maori": "Maori",
"Spanish (Latin America)": "Spagnolo (America latina)", "Marathi": "Marathi",
"Sundanese": "Sudanese", "Mongolian": "Mongolo",
"Swahili": "Swahili", "Nepali": "Nepalese",
"Swedish": "Svedese", "Norwegian Bokmål": "Norvegese",
"Tajik": "Tajik", "Nyanja": "Nyanja",
"Tamil": "Tamil", "Pashto": "Lingua pashtu",
"Telugu": "Telugu", "Persian": "Persiano",
"Thai": "Thaï", "Polish": "Polacco",
"Turkish": "Turco", "Portuguese": "Portoghese",
"Ukrainian": "Ucraino", "Punjabi": "Punjabi",
"Urdu": "Urdu", "Romanian": "Rumeno",
"Uzbek": "Uzbeco", "Russian": "Russo",
"Vietnamese": "Vietnamese", "Samoan": "Samoan",
"Welsh": "Gallese", "Scottish Gaelic": "Gaelico scozzese",
"Western Frisian": "Frisone occidentale", "Serbian": "Serbo",
"Xhosa": "Xhosa", "Shona": "Shona",
"Yiddish": "Yiddish", "Sindhi": "Sindhi",
"Yoruba": "Yoruba", "Sinhala": "Cingalese",
"Zulu": "Zulu", "Slovak": "Slovacco",
"`x` years": "`x` anni", "Slovenian": "Sloveno",
"`x` months": "`x` mesi", "Somali": "Somalo",
"`x` weeks": "`x` settimane", "Southern Sotho": "Sotho del Sud",
"`x` days": "`x` giorni", "Spanish": "Spagnolo",
"`x` hours": "`x` ore", "Spanish (Latin America)": "Spagnolo (America latina)",
"`x` minutes": "`x` minuti", "Sundanese": "Sudanese",
"`x` seconds": "`x` secondi", "Swahili": "Swahili",
"Fallback comments: ": "Commenti alternativi: ", "Swedish": "Svedese",
"Popular": "Popolare", "Tajik": "Tajik",
"Top": "Top", "Tamil": "Tamil",
"About": "A proposito", "Telugu": "Telugu",
"Rating: ": "Punteggio: ", "Thai": "Thaï",
"Language: ": "Lingua: ", "Turkish": "Turco",
"Default": "Predefinito", "Ukrainian": "Ucraino",
"Music": "Musica", "Urdu": "Urdu",
"Gaming": "Videogiochi", "Uzbek": "Uzbeco",
"News": "Notizie", "Vietnamese": "Vietnamese",
"Movies": "Film", "Welsh": "Gallese",
"Download": "Scarica", "Western Frisian": "Frisone occidentale",
"Download as: ": "Scarica come: ", "Xhosa": "Xhosa",
"%A %B %-d, %Y": "%A %-d %B %Y", "Yiddish": "Yiddish",
"(edited)": "(modificato)", "Yoruba": "Yoruba",
"Youtube permalink of the comment": "Link permanente al commento di YouTube", "Zulu": "Zulu",
"`x` marked it with a ❤": "`x` l'ha contrassegnato con un ❤", "`x` years": "`x` anni",
"Audio mode": "Modalità audio", "`x` months": "`x` mesi",
"Video mode": "Modalità video" "`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: ": ""
}

View File

@@ -1,288 +1,314 @@
{ {
"`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", "newest": "nyeste",
"newest": "nyeste", "oldest": "eldste",
"oldest": "eldste", "popular": "populært",
"popular": "populært", "last": "siste",
"Preview page": "Forhåndsvis side", "Next page": "Neste side",
"Next page": "Neste side", "Previous page": "Forrige side",
"Clear watch history?": "Tøm visningshistorikk?", "Clear watch history?": "Tøm visningshistorikk?",
"Yes": "Ja", "New password": "Nytt passord",
"No": "Nei", "New passwords must match": "Nye passordfelter må stemme overens",
"Import and Export Data": "Importer- og eksporter data", "Cannot change password for Google accounts": "Kan ikke endre passord for Google-kontoer",
"Import": "Importer", "Authorize token?": "Identitetsbekreft symbol?",
"Import Invidious data": "Importer Invidious-data", "Authorize token for `x`?": "Identitetsbekreft symbol for `x`?",
"Import YouTube subscriptions": "Importer YouTube-abonnenter", "Yes": "Ja",
"Import FreeTube subscriptions (.db)": "Importer FreeTube-abonnenter (.db)", "No": "Nei",
"Import NewPipe subscriptions (.json)": "Importer NewPipe-abonnenter (.json)", "Import and Export Data": "Importer- og eksporter data",
"Import NewPipe data (.zip)": "Importer NewPipe-data (.zip)", "Import": "Importer",
"Export": "Eksporter", "Import Invidious data": "Importer Invidious-data",
"Export subscriptions as OPML": "Eksporter abonnenter som OPML", "Import YouTube subscriptions": "Importer YouTube-abonnenter",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksporter abonnenter som OPML (for NewPipe og FreeTube)", "Import FreeTube subscriptions (.db)": "Importer FreeTube-abonnenter (.db)",
"Export data as JSON": "Eksporter data som JSON", "Import NewPipe subscriptions (.json)": "Importer NewPipe-abonnenter (.json)",
"Delete account?": "Slett konto?", "Import NewPipe data (.zip)": "Importer NewPipe-data (.zip)",
"History": "Historikk", "Export": "Eksporter",
"Previous page": "Forrige side", "Export subscriptions as OPML": "Eksporter abonnenter som OPML",
"An alternative front-end to YouTube": "En alternativ grenseflate for YouTube", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksporter abonnenter som OPML (for NewPipe og FreeTube)",
"JavaScript license information": "JavaScript-lisensinformasjon", "Export data as JSON": "Eksporter data som JSON",
"source": "kilde", "Delete account?": "Slett konto?",
"Login": "Logg inn", "History": "Historikk",
"Login/Register": "Logg inn/registrer", "An alternative front-end to YouTube": "En alternativ grenseflate for YouTube",
"Login to Google": "Logg inn med Google", "JavaScript license information": "JavaScript-lisensinformasjon",
"User ID:": "Bruker-ID:", "source": "kilde",
"Password:": "Passord:", "Log in": "Logg inn",
"Time (h:mm:ss):": "Tid (h:mm:ss):", "Log in/register": "Logg inn/registrer",
"Text CAPTCHA": "Tekst-CAPTCHA", "Log in with Google": "Logg inn med Google",
"Image CAPTCHA": "Bilde-CAPTCHA", "User ID": "Bruker-ID",
"Sign In": "Innlogging", "Password": "Passord",
"Register": "Registrer", "Time (h:mm:ss):": "Tid (h:mm:ss):",
"Email:": "E-post:", "Text CAPTCHA": "Tekst-CAPTCHA",
"Google verification code:": "Google-bekreftelseskode:", "Image CAPTCHA": "Bilde-CAPTCHA",
"Preferences": "Innstillinger", "Sign In": "Innlogging",
"Player preferences": "Avspillerinnstillinger", "Register": "Registrer",
"Always loop: ": "Alltid gjenta: ", "E-mail": "E-post",
"Autoplay: ": "Autoavspilling: ", "Google verification code": "Google-bekreftelseskode",
"Autoplay next video: ": "Autospill neste video: ", "Preferences": "Innstillinger",
"Listen by default: ": "Lytt som forvalg: ", "Player preferences": "Avspillerinnstillinger",
"Default speed: ": "Forvalgt hastighet: ", "Always loop: ": "Alltid gjenta: ",
"Preferred video quality: ": "Foretrukket videokvalitet: ", "Autoplay: ": "Autoavspilling: ",
"Player volume: ": "Avspillerlydstyrke: ", "Play next by default: ": "Spill neste som forvalg: ",
"Default comments: ": "Forvalgte kommentarer: ", "Autoplay next video: ": "Autospill neste video: ",
"Default captions: ": "Forvalgte undertitler: ", "Listen by default: ": "Lytt som forvalg: ",
"Fallback captions: ": "Tilbakefallsundertitler: ", "Proxy videos? ": "Mellomtjen videoer? ",
"Show related videos? ": "Vis relaterte videoer? ", "Default speed: ": "Forvalgt hastighet: ",
"Visual preferences": "Visuelle innstillinger", "Preferred video quality: ": "Foretrukket videokvalitet: ",
"Dark mode: ": "Mørk drakt: ", "Player volume: ": "Avspillerlydstyrke: ",
"Thin mode: ": "Tynt modus: ", "Default comments: ": "Forvalgte kommentarer: ",
"Subscription preferences": "Abonnementsinnstillinger", "youtube": "YouTube",
"Redirect homepage to feed: ": "Videresend hjemmeside til flyt: ", "reddit": "Reddit",
"Number of videos shown in feed: ": "Antall videoer å vise i flyt: ", "Default captions: ": "Forvalgte undertitler: ",
"Sort videos by: ": "Sorter videoer etter: ", "Fallback captions: ": "Tilbakefallsundertitler: ",
"published": "publisert", "Show related videos? ": "Vis relaterte videoer? ",
"published - reverse": "publisert - motsatt", "Show annotations by default? ": "Vis merknader som forvalg? ",
"alphabetically": "alfabetisk", "Visual preferences": "Visuelle innstillinger",
"alphabetically - reverse": "alfabetisk - motsatt", "Dark mode: ": "Mørk drakt: ",
"channel name": "kanalnavn", "Thin mode: ": "Tynt modus: ",
"channel name - reverse": "kanalnavn - motsatt", "Subscription preferences": "Abonnementsinnstillinger",
"Only show latest video from channel: ": "Kun vis siste video fra kanal: ", "Show annotations by default for subscribed channels? ": "Vis merknader som forvalg for kanaler det abonneres på? ",
"Only show latest unwatched video from channel: ": "Kun vis siste usette video fra kanal: ", "Redirect homepage to feed: ": "Videresend hjemmeside til flyt: ",
"Only show unwatched: ": "Kun vis usette: ", "Number of videos shown in feed: ": "Antall videoer å vise i flyt: ",
"Only show notifications (if there are any): ": "Kun vis merknader (hvis det er noen): ", "Sort videos by: ": "Sorter videoer etter: ",
"Data preferences": "Datainnstillinger", "published": "publisert",
"Clear watch history": "Tøm visningshistorikk", "published - reverse": "publisert - motsatt",
"Import/Export data": "Importer/eksporter data", "alphabetically": "alfabetisk",
"Manage subscriptions": "Behandle abonnementer", "alphabetically - reverse": "alfabetisk - motsatt",
"Watch history": "Visningshistorikk", "channel name": "kanalnavn",
"Delete account": "Slett konto", "channel name - reverse": "kanalnavn - motsatt",
"Administrator preferences": "Administratorinnstillinger", "Only show latest video from channel: ": "Kun vis siste video fra kanal: ",
"Default homepage: ": "Forvalgt hjemmeside: ", "Only show latest unwatched video from channel: ": "Kun vis siste usette video fra kanal: ",
"Feed menu: ": "Flyt-meny: ", "Only show unwatched: ": "Kun vis usette: ",
"Top enabled? ": "", "Only show notifications (if there are any): ": "Kun vis merknader (hvis det er noen): ",
"CAPTCHA enabled? ": "CAPTCHA påskrudd? ", "Data preferences": "Datainnstillinger",
"Login enabled? ": "Innlogging påskrudd? ", "Clear watch history": "Tøm visningshistorikk",
"Registration enabled? ": "Registrering påskrudd? ", "Import/export data": "Importer/eksporter data",
"Report statistics? ": "", "Change password": "Endre passord",
"Save preferences": "Lagre innstillinger", "Manage subscriptions": "Behandle abonnementer",
"Subscription manager": "Abonnementsbehandler", "Manage tokens": "Behandle symboler",
"`x` subscriptions": "`x` abonnementer", "Watch history": "Visningshistorikk",
"Import/Export": "Importer/eksporter", "Delete account": "Slett konto",
"unsubscribe": "opphev abonnement", "Administrator preferences": "Administratorinnstillinger",
"Subscriptions": "Abonnement", "Default homepage: ": "Forvalgt hjemmeside: ",
"`x` unseen notifications": "`x` usette merknader", "Feed menu: ": "Flyt-meny: ",
"search": "søk", "Top enabled? ": "Topp påskrudd? ",
"Sign out": "Logg ut", "CAPTCHA enabled? ": "CAPTCHA påskrudd? ",
"Released under the AGPLv3 by Omar Roth.": "Utgitt med AGPLv3+lisens av Omar Roth.", "Login enabled? ": "Innlogging påskrudd? ",
"Source available here.": "Kildekode tilgjengelig her.", "Registration enabled? ": "Registrering påskrudd? ",
"View JavaScript license information.": "Vis JavaScript-lisensinfo.", "Report statistics? ": "Innrapporter statistikk? ",
"Trending": "Trendsettende", "Save preferences": "Lagre innstillinger",
"Watch video on Youtube": "Vis video på YouTube", "Subscription manager": "Abonnementsbehandler",
"Genre: ": "Sjanger: ", "Token manager": "Symbolbehandler",
"License: ": "Lisens: ", "Token": "Symbol",
"Family friendly? ": "Familievennlig? ", "`x` subscriptions": "`x` abonnementer",
"Wilson score: ": "Wilson-poengsum: ", "`x` tokens": "`x` symboler",
"Engagement: ": "Engasjement: ", "Import/export": "Importer/eksporter",
"Whitelisted regions: ": "Hvitlistede regioner: ", "unsubscribe": "opphev abonnement",
"Blacklisted regions: ": "Svartelistede regioner: ", "revoke": "tilbakekall",
"Shared `x`": "Delt `x`", "Subscriptions": "Abonnement",
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "Hei. Det ser ut til at du har JavaScript avslått. Klikk her for å vise kommentarer, ha i minnet at innlasting tar lengre tid.", "`x` unseen notifications": "`x` usette merknader",
"View YouTube comments": "Vis YouTube-kommentarer", "search": "søk",
"View more comments on Reddit": "Vis flere kommenterer på Reddit", "Log out": "Logg ut",
"View `x` comments": "Vis `x` kommentarer", "Released under the AGPLv3 by Omar Roth.": "Utgitt med AGPLv3+lisens av Omar Roth.",
"View Reddit comments": "Vis Reddit-kommentarer", "Source available here.": "Kildekode tilgjengelig her.",
"Hide replies": "Skjul svar", "View JavaScript license information.": "Vis JavaScript-lisensinfo.",
"Show replies": "Vis svar", "View privacy policy.": "Vis personvernspraksis.",
"Incorrect password": "Feil passord", "Trending": "Trendsettende",
"Quota exceeded, try again in a few hours": "Kvote overskredet, prøv igjen om et par timer", "Unlisted": "Ulistet",
"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å.", "Watch on YouTube": "Vis video på YouTube",
"Invalid TFA code": "Ugyldig tofaktorkode", "Hide annotations": "Skjul merknader",
"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.", "Show annotations": "Vis merknader",
"Invalid answer": "Ugyldig svar", "Genre: ": "Sjanger: ",
"Invalid CAPTCHA": "Ugyldig CAPTCHA", "License: ": "Lisens: ",
"CAPTCHA is a required field": "CAPTCHA er et påkrevd felt", "Family friendly? ": "Familievennlig? ",
"User ID is a required field": "Bruker-ID er et påkrevd felt", "Wilson score: ": "Wilson-poengsum: ",
"Password is a required field": "Passord er et påkrevd felt", "Engagement: ": "Engasjement: ",
"Invalid username or password": "Ugyldig brukernavn eller passord", "Whitelisted regions: ": "Hvitlistede regioner: ",
"Please sign in using 'Sign in with Google'": "Logg inn ved bruk av \"Google-innlogging\"", "Blacklisted regions: ": "Svartelistede regioner: ",
"Password cannot be empty": "Passordet kan ikke være tomt", "Shared `x`": "Delt `x`",
"Password cannot be longer than 55 characters": "Passordet kan ikke være lengre enn 55 tegn", "`x` views": "`x` visninger",
"Please sign in": "Logg inn", "Premieres in `x`": "Premiere om `x`",
"Invidious Private Feed for `x`": "Ugyldig privat flyt for `x`", "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Hei. Det ser ut til at du har JavaScript avslått. Klikk her for å vise kommentarer, ha i minnet at innlasting tar lengre tid.",
"channel:`x`": "kanal `x`", "View YouTube comments": "Vis YouTube-kommentarer",
"Deleted or invalid channel": "Slettet eller ugyldig kanal", "View more comments on Reddit": "Vis flere kommenterer på Reddit",
"This channel does not exist.": "Denne kanalen finnes ikke.", "View `x` comments": "Vis `x` kommentarer",
"Could not get channel info.": "Kunne ikke innhente kanalinfo.", "View Reddit comments": "Vis Reddit-kommentarer",
"Could not fetch comments": "Kunne ikke hente kommentarer", "Hide replies": "Skjul svar",
"View `x` replies": "Vis `x` svar", "Show replies": "Vis svar",
"`x` ago": "`x` siden", "Incorrect password": "Feil passord",
"Load more": "Last inn flere", "Quota exceeded, try again in a few hours": "Kvote overskredet, prøv igjen om et par timer",
"`x` points": "`x` poeng", "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 create mix.": "Kunne ikke opprette miks.", "Invalid TFA code": "Ugyldig tofaktorkode",
"Playlist is empty": "Spillelisten er tom", "Login failed. This may be because two-factor authentication is not turned on for your account.": "Innlogging mislyktes. Dette kan være fordi tofaktor-identitetsbekreftelse er skrudd av på kontoen din.",
"Invalid playlist.": "Ugyldig spilleliste.", "Wrong answer": "Ugyldig svar",
"Playlist does not exist.": "Spillelisten finnes ikke.", "Erroneous CAPTCHA": "Ugyldig CAPTCHA",
"Could not pull trending pages.": "Kunne ikke hente trendsettende sider.", "CAPTCHA is a required field": "CAPTCHA er et påkrevd felt",
"Hidden field \"challenge\" is a required field": "Skjult felt \"utfordring\" er et påkrevd felt", "User ID is a required field": "Bruker-ID er et påkrevd felt",
"Hidden field \"token\" is a required field": "Skjult felt \"symbol\" er et påkrevd felt", "Password is a required field": "Passord er et påkrevd felt",
"Invalid challenge": "Ugyldig utfordring", "Wrong username or password": "Ugyldig brukernavn eller passord",
"Invalid token": "Ugyldig symbol", "Please sign in using 'Log in with Google'": "Logg inn ved bruk av \"Google-innlogging\"",
"Invalid user": "Ugyldig bruker", "Password cannot be empty": "Passordet kan ikke være tomt",
"Token is expired, please try again": "Symbol utløpt, prøv igjen", "Password cannot be longer than 55 characters": "Passordet kan ikke være lengre enn 55 tegn",
"English": "Engelsk", "Please log in": "Logg inn",
"English (auto-generated)": "Engelsk (auto-generert)", "Invidious Private Feed for `x`": "Ugyldig privat flyt for `x`",
"Afrikaans": "", "channel:`x`": "kanal `x`",
"Albanian": "Albansk", "Deleted or invalid channel": "Slettet eller ugyldig kanal",
"Amharic": "", "This channel does not exist.": "Denne kanalen finnes ikke.",
"Arabic": "Arabisk", "Could not get channel info.": "Kunne ikke innhente kanalinfo.",
"Armenian": "Armensk", "Could not fetch comments": "Kunne ikke hente kommentarer",
"Azerbaijani": "", "View `x` replies": "Vis `x` svar",
"Bangla": "", "`x` ago": "`x` siden",
"Basque": "", "Load more": "Last inn flere",
"Belarusian": "Hviterussisk", "`x` points": "`x` poeng",
"Bosnian": "Bosnisk", "Could not create mix.": "Kunne ikke opprette miks.",
"Bulgarian": "Bulgarsk", "Empty playlist": "Spillelisten er tom",
"Burmese": "Burmesisk", "Not a playlist.": "Ugyldig spilleliste.",
"Catalan": "Katalansk", "Playlist does not exist.": "Spillelisten finnes ikke.",
"Cebuano": "", "Could not pull trending pages.": "Kunne ikke hente trendsettende sider.",
"Chinese (Simplified)": "", "Hidden field \"challenge\" is a required field": "Skjult felt \"utfordring\" er et påkrevd felt",
"Chinese (Traditional)": "", "Hidden field \"token\" is a required field": "Skjult felt \"symbol\" er et påkrevd felt",
"Corsican": "", "Erroneous challenge": "Ugyldig utfordring",
"Croatian": "", "Erroneous token": "Ugyldig symbol",
"Czech": "Tsjekkisk", "No such user": "Ugyldig bruker",
"Danish": "Dansk", "Token is expired, please try again": "Symbol utløpt, prøv igjen",
"Dutch": "", "English": "Engelsk",
"Esperanto": "Esperanto", "English (auto-generated)": "Engelsk (auto-generert)",
"Estonian": "", "Afrikaans": "",
"Filipino": "", "Albanian": "Albansk",
"Finnish": "Finsk", "Amharic": "",
"French": "Fransk", "Arabic": "Arabisk",
"Galician": "", "Armenian": "Armensk",
"Georgian": "", "Azerbaijani": "",
"German": "", "Bangla": "",
"Greek": "", "Basque": "",
"Gujarati": "", "Belarusian": "Hviterussisk",
"Haitian Creole": "", "Bosnian": "Bosnisk",
"Hausa": "", "Bulgarian": "Bulgarsk",
"Hawaiian": "", "Burmese": "Burmesisk",
"Hebrew": "", "Catalan": "Katalansk",
"Hindi": "", "Cebuano": "",
"Hmong": "", "Chinese (Simplified)": "",
"Hungarian": "Ungarsk", "Chinese (Traditional)": "",
"Icelandic": "Islandsk", "Corsican": "",
"Igbo": "", "Croatian": "",
"Indonesian": "Indonesisk", "Czech": "Tsjekkisk",
"Irish": "Irsk", "Danish": "Dansk",
"Italian": "Italiensk", "Dutch": "",
"Japanese": "Japansk", "Esperanto": "Esperanto",
"Javanese": "", "Estonian": "",
"Kannada": "", "Filipino": "",
"Kazakh": "", "Finnish": "Finsk",
"Khmer": "", "French": "Fransk",
"Korean": "", "Galician": "",
"Kurdish": "", "Georgian": "",
"Kyrgyz": "", "German": "",
"Lao": "", "Greek": "",
"Latin": "", "Gujarati": "",
"Latvian": "", "Haitian Creole": "",
"Lithuanian": "", "Hausa": "",
"Luxembourgish": "", "Hawaiian": "",
"Macedonian": "", "Hebrew": "",
"Malagasy": "", "Hindi": "",
"Malay": "", "Hmong": "",
"Malayalam": "", "Hungarian": "Ungarsk",
"Maltese": "", "Icelandic": "Islandsk",
"Maori": "", "Igbo": "",
"Marathi": "", "Indonesian": "Indonesisk",
"Mongolian": "", "Irish": "Irsk",
"Nepali": "", "Italian": "Italiensk",
"Norwegian": "Norsk bokmål", "Japanese": "Japansk",
"Nyanja": "", "Javanese": "",
"Pashto": "", "Kannada": "",
"Persian": "", "Kazakh": "",
"Polish": "", "Khmer": "",
"Portuguese": "", "Korean": "",
"Punjabi": "", "Kurdish": "",
"Romanian": "", "Kyrgyz": "",
"Russian": "Russisk", "Lao": "",
"Samoan": "", "Latin": "",
"Scottish Gaelic": "", "Latvian": "",
"Serbian": "Serbisk", "Lithuanian": "",
"Shona": "", "Luxembourgish": "",
"Sindhi": "", "Macedonian": "",
"Sinhala": "", "Malagasy": "",
"Slovak": "Slovakisk", "Malay": "",
"Slovenian": "Slovensk", "Malayalam": "",
"Somali": "Somali", "Maltese": "",
"Southern Sotho": "", "Maori": "",
"Spanish": "Spansk", "Marathi": "",
"Spanish (Latin America)": "", "Mongolian": "",
"Sundanese": "", "Nepali": "",
"Swahili": "", "Norwegian Bokmål": "Norsk bokmål",
"Swedish": "Svensk", "Nyanja": "",
"Tajik": "", "Pashto": "",
"Tamil": "", "Persian": "",
"Telugu": "", "Polish": "",
"Thai": "", "Portuguese": "",
"Turkish": "Tyrkisk", "Punjabi": "",
"Ukrainian": "Ukrainsk", "Romanian": "",
"Urdu": "", "Russian": "Russisk",
"Uzbek": "", "Samoan": "",
"Vietnamese": "Vietnamesisk", "Scottish Gaelic": "",
"Welsh": "", "Serbian": "Serbisk",
"Western Frisian": "", "Shona": "",
"Xhosa": "", "Sindhi": "",
"Yiddish": "", "Sinhala": "",
"Yoruba": "", "Slovak": "Slovakisk",
"Zulu": "", "Slovenian": "Slovensk",
"`x` years": "`x` år", "Somali": "Somali",
"`x` months": "`x` måneder", "Southern Sotho": "",
"`x` weeks": "`x` uker", "Spanish": "Spansk",
"`x` days": "`x` dager", "Spanish (Latin America)": "",
"`x` hours": "`x` timer", "Sundanese": "",
"`x` minutes": "`x` minutter", "Swahili": "",
"`x` seconds": "`x` sekunder", "Swedish": "Svensk",
"Fallback comments: ": "Tilbakefallskommentarer: ", "Tajik": "",
"Popular": "Pupulært", "Tamil": "",
"Top": "Topp", "Telugu": "",
"About": "Om", "Thai": "",
"Rating: ": "Vurdering: ", "Turkish": "Tyrkisk",
"Language: ": "Språk: ", "Ukrainian": "Ukrainsk",
"Default": "Forvalg", "Urdu": "",
"Music": "Musikk", "Uzbek": "",
"Gaming": "Spill", "Vietnamese": "Vietnamesisk",
"News": "Nyheter", "Welsh": "",
"Movies": "Filmer", "Western Frisian": "",
"Download": "Last ned", "Xhosa": "",
"Download as: ": "Last ned som: ", "Yiddish": "",
"%A %B %-d, %Y": "", "Yoruba": "",
"(edited)": "(redigert)", "Zulu": "",
"Youtube permalink of the comment": "Permanent YouTube-lenke til innholdet", "`x` years": "`x` år",
"`x` marked it with a ❤": "`x` levnet et ❤", "`x` months": "`x` måneder",
"Audio mode": "Lydmodus", "`x` weeks": "`x` uker",
"Video mode": "Video-modus" "`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: "
} }

View File

@@ -1,288 +1,314 @@
{ {
"`x` subscribers": "`x` abonnees", "`x` subscribers": "`x` abonnees",
"`x` videos": "`x` videos", "`x` videos": "`x` videos",
"LIVE": "LIVE", "LIVE": "LIVE",
"Shared `x` ago": "Gedeeld `x` geleden", "Shared `x` ago": "Gedeeld `x` geleden",
"Unsubscribe": "Abonnement opzeggen", "Unsubscribe": "Abonnement opzeggen",
"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", "newest": "nieuwste",
"newest": "nieuwste", "oldest": "oudste",
"oldest": "oudste", "popular": "populair",
"popular": "populair", "last": "",
"Preview page": "Pagina voorvertonen", "Next page": "Volgende pagina",
"Next page": "Volgende pagina", "Previous page": "Vorige pagina",
"Clear watch history?": "Kijk geschiedenis wissen?", "Clear watch history?": "Kijk geschiedenis wissen?",
"Yes": "Ja", "New password": "",
"No": "Nee", "New passwords must match": "",
"Import and Export Data": "Importeer en Exporteer Gegevens", "Cannot change password for Google accounts": "",
"Import": "Importeren", "Authorize token?": "",
"Import Invidious data": "Importeer Invidious gegevens", "Authorize token for `x`?": "",
"Import YouTube subscriptions": "Importeer Youtube abonnees", "Yes": "Ja",
"Import FreeTube subscriptions (.db)": "Importeer FreeTube abonnees (.db)", "No": "Nee",
"Import NewPipe subscriptions (.json)": "Importeer NewPipe abonnees (.json)", "Import and Export Data": "Importeer en Exporteer Gegevens",
"Import NewPipe data (.zip)": "Importeer NewPipe gegevens (.zip)", "Import": "Importeren",
"Export": "Exporteren", "Import Invidious data": "Importeer Invidious gegevens",
"Export subscriptions as OPML": "Exporteer abonnees als OPML", "Import YouTube subscriptions": "Importeer Youtube abonnees",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exporteer abonnees als OPML (voor NewPipe & FreeTube)", "Import FreeTube subscriptions (.db)": "Importeer FreeTube abonnees (.db)",
"Export data as JSON": "Exporteer gegevens als JSON", "Import NewPipe subscriptions (.json)": "Importeer NewPipe abonnees (.json)",
"Delete account?": "Verwijder account?", "Import NewPipe data (.zip)": "Importeer NewPipe gegevens (.zip)",
"History": "Geschiedenis", "Export": "Exporteren",
"Previous page": "Vorige pagina", "Export subscriptions as OPML": "Exporteer abonnees als OPML",
"An alternative front-end to YouTube": "Een alternatieve front-end voor YouTube", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Exporteer abonnees als OPML (voor NewPipe & FreeTube)",
"JavaScript license information": "JavaScript licentie informatie", "Export data as JSON": "Exporteer gegevens als JSON",
"source": "bron", "Delete account?": "Verwijder account?",
"Login": "Inloggen", "History": "Geschiedenis",
"Login/Register": "Inloggen/Registreren", "An alternative front-end to YouTube": "Een alternatieve front-end voor YouTube",
"Login to Google": "Inloggen op Google", "JavaScript license information": "JavaScript licentie informatie",
"User ID:": "Gebruiker ID:", "source": "bron",
"Password:": "Wachtwoord:", "Log in": "Inloggen",
"Time (h:mm:ss):": "Tijd (h:mm:ss):", "Log in/register": "Inloggen/Registreren",
"Text CAPTCHA": "Tekst CAPTCHA", "Log in with Google": "Inloggen op Google",
"Image CAPTCHA": "Afbeelding CAPTCHA", "User ID": "Gebruiker ID",
"Sign In": "Aanmelden", "Password": "Wachtwoord",
"Register": "Registreren", "Time (h:mm:ss):": "Tijd (h:mm:ss):",
"Email:": "Email:", "Text CAPTCHA": "Tekst CAPTCHA",
"Google verification code:": "Google verificatie code:", "Image CAPTCHA": "Afbeelding CAPTCHA",
"Preferences": "Voorkeuren", "Sign In": "Aanmelden",
"Player preferences": "Afspeler voorkeuren", "Register": "Registreren",
"Always loop: ": "Altijd herhalen: ", "E-mail": "Email",
"Autoplay: ": "Automatisch afspelen: ", "Google verification code": "Google verificatie code",
"Autoplay next video: ": "Automatisch volgende video afspelen: ", "Preferences": "Voorkeuren",
"Listen by default: ": "Standaard luisteren: ", "Player preferences": "Afspeler voorkeuren",
"Default speed: ": "Standaard snelheid: ", "Always loop: ": "Altijd herhalen: ",
"Preferred video quality: ": "Video kwaliteit voorkeur: ", "Autoplay: ": "Automatisch afspelen: ",
"Player volume: ": "Afspeler volume: ", "Play next by default: ": "",
"Default comments: ": "Standaard reacties: ", "Autoplay next video: ": "Automatisch volgende video afspelen: ",
"Default captions: ": "Standaard ondertitels: ", "Listen by default: ": "Standaard luisteren: ",
"Fallback captions: ": "Alternatieve ondertitels: ", "Proxy videos? ": "",
"Show related videos? ": "Laat gerelateerde videos zien? ", "Default speed: ": "Standaard snelheid: ",
"Visual preferences": "Visuele voorkeuren", "Preferred video quality: ": "Video kwaliteit voorkeur: ",
"Dark mode: ": "Donkere modus: ", "Player volume: ": "Afspeler volume: ",
"Thin mode: ": "Smalle modus: ", "Default comments: ": "Standaard reacties: ",
"Subscription preferences": "Abonnement voorkeuren", "youtube": "",
"Redirect homepage to feed: ": "Startpagina omleiden naar feed: ", "reddit": "",
"Number of videos shown in feed: ": "Aantal videos te zien in feed: ", "Default captions: ": "Standaard ondertitels: ",
"Sort videos by: ": "Sorteer videos op: ", "Fallback captions: ": "Alternatieve ondertitels: ",
"published": "gepubliceerd", "Show related videos? ": "Laat gerelateerde videos zien? ",
"published - reverse": "gepubliceerd - omgekeerd", "Show annotations by default? ": "",
"alphabetically": "alfabetische volgorde", "Visual preferences": "Visuele voorkeuren",
"alphabetically - reverse": "alfabetisch - omgekeerd", "Dark mode: ": "Donkere modus: ",
"channel name": "kanaal naam", "Thin mode: ": "Smalle modus: ",
"channel name - reverse": "kanaal naam - omgekeerd", "Subscription preferences": "Abonnement voorkeuren",
"Only show latest video from channel: ": "Laat alleen laatste video van kanaal zien: ", "Show annotations by default for subscribed channels? ": "",
"Only show latest unwatched video from channel: ": "Laat alleen de laatste onbekeken video zien van kanaal: ", "Redirect homepage to feed: ": "Startpagina omleiden naar feed: ",
"Only show unwatched: ": "Laat alleen onbekeken videos zien: ", "Number of videos shown in feed: ": "Aantal videos te zien in feed: ",
"Only show notifications (if there are any): ": "Laat alleen notificaties zien (als die er zijn): ", "Sort videos by: ": "Sorteer videos op: ",
"Data preferences": "Gegevens voorkeuren", "published": "gepubliceerd",
"Clear watch history": "Kijkgeschiedenis wissen", "published - reverse": "gepubliceerd - omgekeerd",
"Import/Export data": "Importeer/Exporteer gegevens", "alphabetically": "alfabetische volgorde",
"Manage subscriptions": "Abonnees beheren", "alphabetically - reverse": "alfabetisch - omgekeerd",
"Watch history": "Kijkgeschiedenis", "channel name": "kanaal naam",
"Delete account": "Account verwijderen", "channel name - reverse": "kanaal naam - omgekeerd",
"Administrator preferences": "", "Only show latest video from channel: ": "Laat alleen laatste video van kanaal zien: ",
"Default homepage: ": "", "Only show latest unwatched video from channel: ": "Laat alleen de laatste onbekeken video zien van kanaal: ",
"Feed menu: ": "", "Only show unwatched: ": "Laat alleen onbekeken videos zien: ",
"Top enabled? ": "", "Only show notifications (if there are any): ": "Laat alleen notificaties zien (als die er zijn): ",
"CAPTCHA enabled? ": "", "Data preferences": "Gegevens voorkeuren",
"Login enabled? ": "", "Clear watch history": "Kijkgeschiedenis wissen",
"Registration enabled? ": "", "Import/export data": "Importeer/Exporteer gegevens",
"Report statistics? ": "", "Change password": "",
"Save preferences": "Opslaan voorkeuren", "Manage subscriptions": "Abonnees beheren",
"Subscription manager": "Abonnees beheerder", "Manage tokens": "",
"`x` subscriptions": "`x` abonnees", "Watch history": "Kijkgeschiedenis",
"Import/Export": "Importeer/Exporteer", "Delete account": "Account verwijderen",
"unsubscribe": "abonnement opzeggen", "Administrator preferences": "",
"Subscriptions": "Abonnees", "Default homepage: ": "",
"`x` unseen notifications": "`x` onbekeken notificaties", "Feed menu: ": "",
"search": "zoeken", "Top enabled? ": "",
"Sign out": "Afmelden", "CAPTCHA enabled? ": "",
"Released under the AGPLv3 by Omar Roth.": "Uitgegeven onder AGPLv3 door Omar Roth.", "Login enabled? ": "",
"Source available here.": "Bron beschikbaar hier.", "Registration enabled? ": "",
"View JavaScript license information.": "Bekijk JavaScript licentie informatie.", "Report statistics? ": "",
"Trending": "Trending", "Save preferences": "Opslaan voorkeuren",
"Watch video on Youtube": "Bekijk video op Youtube", "Subscription manager": "Abonnees beheerder",
"Genre: ": "Genre: ", "Token manager": "",
"License: ": "Licentie: ", "Token": "",
"Family friendly? ": "Gezinsvriendelijk? ", "`x` subscriptions": "`x` abonnees",
"Wilson score: ": "Wilson score: ", "`x` tokens": "",
"Engagement: ": "Betrokkenheid: ", "Import/export": "Importeer/Exporteer",
"Whitelisted regions: ": "Toegestane regio's: ", "unsubscribe": "abonnement opzeggen",
"Blacklisted regions: ": "Geblokkeerde regio's: ", "revoke": "",
"Shared `x`": "`x` gedeeld", "Subscriptions": "Abonnees",
"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.", "`x` unseen notifications": "`x` onbekeken notificaties",
"View YouTube comments": "Bekijk YouTube reacties", "search": "zoeken",
"View more comments on Reddit": "Bekijk meer reacties op Reddit", "Log out": "Afmelden",
"View `x` comments": "`x` reacties zien", "Released under the AGPLv3 by Omar Roth.": "Uitgegeven onder AGPLv3 door Omar Roth.",
"View Reddit comments": "Bekijk Reddit reacties", "Source available here.": "Bron beschikbaar hier.",
"Hide replies": "Verberg antwoorden", "View JavaScript license information.": "Bekijk JavaScript licentie informatie.",
"Show replies": "Laat antwoorden zien", "View privacy policy.": "",
"Incorrect password": "Onjuist wachtwoord", "Trending": "Trending",
"Quota exceeded, try again in a few hours": "Quota overschreden, probeer het over een paar uur opnieuw", "Unlisted": "",
"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.", "Watch on YouTube": "Bekijk video op Youtube",
"Invalid TFA code": "Onjuiste TFA code", "Hide annotations": "",
"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.", "Show annotations": "",
"Invalid answer": "Onjuist antwoord", "Genre: ": "Genre: ",
"Invalid CAPTCHA": "Onjuiste CAPTCHA", "License: ": "Licentie: ",
"CAPTCHA is a required field": "CAPTCHA is een vereist veld", "Family friendly? ": "Gezinsvriendelijk? ",
"User ID is a required field": "Gebruiker ID is een vereist veld", "Wilson score: ": "Wilson score: ",
"Password is a required field": "Wachtwoord is een vereist veld", "Engagement: ": "Betrokkenheid: ",
"Invalid username or password": "Ongeldige gebruikersnaam of wachtwoord", "Whitelisted regions: ": "Toegestane regio's: ",
"Please sign in using 'Sign in with Google'": "Meld u aan met 'Aanmelden met Google'", "Blacklisted regions: ": "Geblokkeerde regio's: ",
"Password cannot be empty": "Wachtwoord mag niet leeg zijn", "Shared `x`": "`x` gedeeld",
"Password cannot be longer than 55 characters": "Wachtwoord mag niet langer dan 55 tekens zijn", "`x` views": "",
"Please sign in": "Meld u aan", "Premieres in `x`": "",
"Invidious Private Feed for `x`": "Invidious Privé Feed voor `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.": "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.",
"channel:`x`": "kanaal:`x`", "View YouTube comments": "Bekijk YouTube reacties",
"Deleted or invalid channel": "Verwijderd of ongeldig kanaal", "View more comments on Reddit": "Bekijk meer reacties op Reddit",
"This channel does not exist.": "Dit kanaal bestaat niet.", "View `x` comments": "`x` reacties zien",
"Could not get channel info.": "Kan kanaal informatie niet verkrijgen.", "View Reddit comments": "Bekijk Reddit reacties",
"Could not fetch comments": "Kan reacties niet verkrijgen", "Hide replies": "Verberg antwoorden",
"View `x` replies": "`x` antwoorden zien", "Show replies": "Laat antwoorden zien",
"`x` ago": "`x` geleden", "Incorrect password": "Onjuist wachtwoord",
"Load more": "Meer laden", "Quota exceeded, try again in a few hours": "Quota overschreden, probeer het over een paar uur opnieuw",
"`x` points": "`x` punten", "Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Niet in staat om in te loggen, zorg ervoor dat two-factor authentication (Authenticator of SMS) is ingeschakeld.",
"Could not create mix.": "Kon mix niet maken.", "Invalid TFA code": "Onjuiste TFA code",
"Playlist is empty": "Afspeellijst is leeg", "Login failed. This may be because two-factor authentication is not turned on for your account.": "Aanmelden mislukt. Dit kan zijn omdat two-factor authentication niet is ingeschakeld voor uw account.",
"Invalid playlist.": "Ongeldige afspeellijst.", "Wrong answer": "Onjuist antwoord",
"Playlist does not exist.": "Afspeellijst bestaat niet.", "Erroneous CAPTCHA": "Onjuiste CAPTCHA",
"Could not pull trending pages.": "Kon trending paginas niet verkrijgen.", "CAPTCHA is a required field": "CAPTCHA is een vereist veld",
"Hidden field \"challenge\" is a required field": "Verborgen veld \"uitdaging\" is een vereist veld", "User ID is a required field": "Gebruiker ID is een vereist veld",
"Hidden field \"token\" is a required field": "Verborgen veld \"token\" is een vereist veld", "Password is a required field": "Wachtwoord is een vereist veld",
"Invalid challenge": "Ongeldige uitdaging", "Wrong username or password": "Ongeldige gebruikersnaam of wachtwoord",
"Invalid token": "Ongeldige token", "Please sign in using 'Log in with Google'": "Meld u aan met 'Aanmelden met Google'",
"Invalid user": "Ongeldige gebruiker", "Password cannot be empty": "Wachtwoord mag niet leeg zijn",
"Token is expired, please try again": "Token is verlopen, probeer het opnieuw", "Password cannot be longer than 55 characters": "Wachtwoord mag niet langer dan 55 tekens zijn",
"English": "", "Please log in": "Meld u aan",
"English (auto-generated)": "", "Invidious Private Feed for `x`": "Invidious Privé Feed voor `x`",
"Afrikaans": "", "channel:`x`": "kanaal:`x`",
"Albanian": "", "Deleted or invalid channel": "Verwijderd of ongeldig kanaal",
"Amharic": "", "This channel does not exist.": "Dit kanaal bestaat niet.",
"Arabic": "", "Could not get channel info.": "Kan kanaal informatie niet verkrijgen.",
"Armenian": "", "Could not fetch comments": "Kan reacties niet verkrijgen",
"Azerbaijani": "", "View `x` replies": "`x` antwoorden zien",
"Bangla": "", "`x` ago": "`x` geleden",
"Basque": "", "Load more": "Meer laden",
"Belarusian": "", "`x` points": "`x` punten",
"Bosnian": "", "Could not create mix.": "Kon mix niet maken.",
"Bulgarian": "", "Empty playlist": "Afspeellijst is leeg",
"Burmese": "", "Not a playlist.": "Ongeldige afspeellijst.",
"Catalan": "", "Playlist does not exist.": "Afspeellijst bestaat niet.",
"Cebuano": "", "Could not pull trending pages.": "Kon trending paginas niet verkrijgen.",
"Chinese (Simplified)": "", "Hidden field \"challenge\" is a required field": "Verborgen veld \"uitdaging\" is een vereist veld",
"Chinese (Traditional)": "", "Hidden field \"token\" is a required field": "Verborgen veld \"token\" is een vereist veld",
"Corsican": "", "Erroneous challenge": "Ongeldige uitdaging",
"Croatian": "", "Erroneous token": "Ongeldige token",
"Czech": "", "No such user": "Ongeldige gebruiker",
"Danish": "", "Token is expired, please try again": "Token is verlopen, probeer het opnieuw",
"Dutch": "", "English": "",
"Esperanto": "", "English (auto-generated)": "",
"Estonian": "", "Afrikaans": "",
"Filipino": "", "Albanian": "",
"Finnish": "", "Amharic": "",
"French": "", "Arabic": "",
"Galician": "", "Armenian": "",
"Georgian": "", "Azerbaijani": "",
"German": "", "Bangla": "",
"Greek": "", "Basque": "",
"Gujarati": "", "Belarusian": "",
"Haitian Creole": "", "Bosnian": "",
"Hausa": "", "Bulgarian": "",
"Hawaiian": "", "Burmese": "",
"Hebrew": "", "Catalan": "",
"Hindi": "", "Cebuano": "",
"Hmong": "", "Chinese (Simplified)": "",
"Hungarian": "", "Chinese (Traditional)": "",
"Icelandic": "", "Corsican": "",
"Igbo": "", "Croatian": "",
"Indonesian": "", "Czech": "",
"Irish": "", "Danish": "",
"Italian": "", "Dutch": "",
"Japanese": "", "Esperanto": "",
"Javanese": "", "Estonian": "",
"Kannada": "", "Filipino": "",
"Kazakh": "", "Finnish": "",
"Khmer": "", "French": "",
"Korean": "", "Galician": "",
"Kurdish": "", "Georgian": "",
"Kyrgyz": "", "German": "",
"Lao": "", "Greek": "",
"Latin": "", "Gujarati": "",
"Latvian": "", "Haitian Creole": "",
"Lithuanian": "", "Hausa": "",
"Luxembourgish": "", "Hawaiian": "",
"Macedonian": "", "Hebrew": "",
"Malagasy": "", "Hindi": "",
"Malay": "", "Hmong": "",
"Malayalam": "", "Hungarian": "",
"Maltese": "", "Icelandic": "",
"Maori": "", "Igbo": "",
"Marathi": "", "Indonesian": "",
"Mongolian": "", "Irish": "",
"Nepali": "", "Italian": "",
"Norwegian": "", "Japanese": "",
"Nyanja": "", "Javanese": "",
"Pashto": "", "Kannada": "",
"Persian": "", "Kazakh": "",
"Polish": "", "Khmer": "",
"Portuguese": "", "Korean": "",
"Punjabi": "", "Kurdish": "",
"Romanian": "", "Kyrgyz": "",
"Russian": "", "Lao": "",
"Samoan": "", "Latin": "",
"Scottish Gaelic": "", "Latvian": "",
"Serbian": "", "Lithuanian": "",
"Shona": "", "Luxembourgish": "",
"Sindhi": "", "Macedonian": "",
"Sinhala": "", "Malagasy": "",
"Slovak": "", "Malay": "",
"Slovenian": "", "Malayalam": "",
"Somali": "", "Maltese": "",
"Southern Sotho": "", "Maori": "",
"Spanish": "", "Marathi": "",
"Spanish (Latin America)": "", "Mongolian": "",
"Sundanese": "", "Nepali": "",
"Swahili": "", "Norwegian Bokmål": "",
"Swedish": "", "Nyanja": "",
"Tajik": "", "Pashto": "",
"Tamil": "", "Persian": "",
"Telugu": "", "Polish": "",
"Thai": "", "Portuguese": "",
"Turkish": "", "Punjabi": "",
"Ukrainian": "", "Romanian": "",
"Urdu": "", "Russian": "",
"Uzbek": "", "Samoan": "",
"Vietnamese": "", "Scottish Gaelic": "",
"Welsh": "", "Serbian": "",
"Western Frisian": "", "Shona": "",
"Xhosa": "", "Sindhi": "",
"Yiddish": "", "Sinhala": "",
"Yoruba": "", "Slovak": "",
"Zulu": "", "Slovenian": "",
"`x` years": "`x` jaar", "Somali": "",
"`x` months": "`x` maanden", "Southern Sotho": "",
"`x` weeks": "`x` weken", "Spanish": "",
"`x` days": "`x` dagen", "Spanish (Latin America)": "",
"`x` hours": "`x` uur", "Sundanese": "",
"`x` minutes": "`x` minuten", "Swahili": "",
"`x` seconds": "`x` seconden", "Swedish": "",
"Fallback comments: ": "", "Tajik": "",
"Popular": "", "Tamil": "",
"Top": "", "Telugu": "",
"About": "", "Thai": "",
"Rating: ": "", "Turkish": "",
"Language: ": "", "Ukrainian": "",
"Default": "", "Urdu": "",
"Music": "", "Uzbek": "",
"Gaming": "", "Vietnamese": "",
"News": "", "Welsh": "",
"Movies": "", "Western Frisian": "",
"Download": "", "Xhosa": "",
"Download as: ": "", "Yiddish": "",
"%A %B %-d, %Y": "", "Yoruba": "",
"(edited)": "", "Zulu": "",
"Youtube permalink of the comment": "", "`x` years": "`x` jaar",
"`x` marked it with a ❤": "", "`x` months": "`x` maanden",
"Audio mode": "", "`x` weeks": "`x` weken",
"Video mode": "" "`x` days": "`x` dagen",
} "`x` hours": "`x` uur",
"`x` minutes": "`x` minuten",
"`x` seconds": "`x` seconden",
"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": "",
"Playlists": "",
"Current version: ": ""
}

View File

@@ -1,288 +1,314 @@
{ {
"`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", "newest": "najnowsze",
"newest": "najnowsze", "oldest": "najstarsze",
"oldest": "najstarsze", "popular": "popularne",
"popular": "popularne", "last": "ostatnie",
"Preview page": "Podgląd strony", "Next page": "Następna strona",
"Next page": "Następna strona", "Previous page": "Poprzednia strona",
"Clear watch history?": "Wyczyścić historię?", "Clear watch history?": "Wyczyścić historię?",
"Yes": "Tak", "New password": "",
"No": "Nie", "New passwords must match": "",
"Import and Export Data": "Import i eksport danych", "Cannot change password for Google accounts": "",
"Import": "Import", "Authorize token?": "",
"Import Invidious data": "Importuj dane Invidious", "Authorize token for `x`?": "",
"Import YouTube subscriptions": "Importuj subskrybcje z YouTube", "Yes": "Tak",
"Import FreeTube subscriptions (.db)": "Importuj subskrybcje z FreeTube (.db)", "No": "Nie",
"Import NewPipe subscriptions (.json)": "Importuj subskrybcje z NewPipe (.json)", "Import and Export Data": "Import i eksport danych",
"Import NewPipe data (.zip)": "Importuj dane NewPipe (.zip)", "Import": "Import",
"Export": "Eksport", "Import Invidious data": "Importuj dane Invidious",
"Export subscriptions as OPML": "Eksportuj subskrybcje jako OPML", "Import YouTube subscriptions": "Importuj subskrybcje z YouTube",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksportuj subskrybcje jako OPML (dla NewPipe i FreeTube)", "Import FreeTube subscriptions (.db)": "Importuj subskrybcje z FreeTube (.db)",
"Export data as JSON": "Eksportuj dane jako JSON", "Import NewPipe subscriptions (.json)": "Importuj subskrybcje z NewPipe (.json)",
"Delete account?": "Usunąć konto?", "Import NewPipe data (.zip)": "Importuj dane NewPipe (.zip)",
"History": "Historia", "Export": "Eksport",
"Previous page": "Poprzednia strona", "Export subscriptions as OPML": "Eksportuj subskrybcje jako OPML",
"An alternative front-end to YouTube": "Alternatywny front-end dla YouTube", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksportuj subskrybcje jako OPML (dla NewPipe i FreeTube)",
"JavaScript license information": "Informacja o licencji JavaScript", "Export data as JSON": "Eksportuj dane jako JSON",
"source": "źródło", "Delete account?": "Usunąć konto?",
"Login": "Zaloguj", "History": "Historia",
"Login/Register": "Zaloguj/Zarejestruj", "An alternative front-end to YouTube": "Alternatywny front-end dla YouTube",
"Login to Google": "Zaloguj do Google", "JavaScript license information": "Informacja o licencji JavaScript",
"User ID:": "ID użytkownika:", "source": "źródło",
"Password:": "Hasło:", "Log in": "Zaloguj",
"Time (h:mm:ss):": "Godzina (h:mm:ss):", "Log in/register": "Zaloguj/Zarejestruj",
"Text CAPTCHA": "Tekst CAPTCHA", "Log in with Google": "Zaloguj do Google",
"Image CAPTCHA": "Obraz CAPTCHA", "User ID": "ID użytkownika",
"Sign In": "Zaloguj się", "Password": "Hasło",
"Register": "Zarejestruj się", "Time (h:mm:ss):": "Godzina (h:mm:ss):",
"Email:": "Email:", "Text CAPTCHA": "Tekst CAPTCHA",
"Google verification code:": "Kod weryfikacyjny Google:", "Image CAPTCHA": "Obraz CAPTCHA",
"Preferences": "Preferencje", "Sign In": "Zaloguj się",
"Player preferences": "Ustawienia odtwarzacza", "Register": "Zarejestruj się",
"Always loop: ": "Zawsze zapętlaj: ", "E-mail": "Email",
"Autoplay: ": "Autoodtwarzanie: ", "Google verification code": "Kod weryfikacyjny Google",
"Autoplay next video: ": "Odtwórz następny film: ", "Preferences": "Preferencje",
"Listen by default: ": "Tryb dźwiękowy: ", "Player preferences": "Ustawienia odtwarzacza",
"Default speed: ": "Domyślna prędkość: ", "Always loop: ": "Zawsze zapętlaj: ",
"Preferred video quality: ": "Preferowana jakość filmów: ", "Autoplay: ": "Autoodtwarzanie: ",
"Player volume: ": "Głośność odtwarzacza: ", "Play next by default: ": "",
"Default comments: ": "Domyślne komentarze: ", "Autoplay next video: ": "Odtwórz następny film: ",
"Default captions: ": "Domyślne napisy: ", "Listen by default: ": "Tryb dźwiękowy: ",
"Fallback captions: ": "Rezerwowe napisy: ", "Proxy videos? ": "Filmy przez proxy? ",
"Show related videos? ": "Pokaż powiązane filmy? ", "Default speed: ": "Domyślna prędkość: ",
"Visual preferences": "Preferencje Wizualne", "Preferred video quality: ": "Preferowana jakość filmów: ",
"Dark mode: ": "Ciemny motyw: ", "Player volume: ": "Głośność odtwarzacza: ",
"Thin mode: ": "Tryb minimalny: ", "Default comments: ": "Domyślne komentarze: ",
"Subscription preferences": "Preferencje subskrybcji", "youtube": "",
"Redirect homepage to feed: ": "Przekieruj stronę główną do subskrybcji: ", "reddit": "",
"Number of videos shown in feed: ": "Liczba filmów widoczna na stronie subskrybcji: ", "Default captions: ": "Domyślne napisy: ",
"Sort videos by: ": "Sortuj filmy po: ", "Fallback captions: ": "Zastępcze napisy: ",
"published": "czasie publikacji", "Show related videos? ": "Pokaż powiązane filmy? ",
"published - reverse": "czasie publikacji od najstarszych", "Show annotations by default? ": "",
"alphabetically": "alfabetycznie", "Visual preferences": "Preferencje Wizualne",
"alphabetically - reverse": "alfabetycznie od tyłu", "Dark mode: ": "Ciemny motyw: ",
"channel name": "nazwie kanału", "Thin mode: ": "Tryb minimalny: ",
"channel name - reverse": "nazwie kanału od tyłu", "Subscription preferences": "Preferencje subskrybcji",
"Only show latest video from channel: ": "Pokazuj tylko najnowszy film z kanału: ", "Show annotations by default for subscribed channels? ": "",
"Only show latest unwatched video from channel: ": "Pokazuj tylko najnowszy nie obejrzany film z kanału: ", "Redirect homepage to feed: ": "Przekieruj stronę główną do subskrybcji: ",
"Only show unwatched: ": "Pokazuj tylko nie obejrzane: ", "Number of videos shown in feed: ": "Liczba filmów widoczna na stronie subskrybcji: ",
"Only show notifications (if there are any): ": "Pokazuj tylko powiadomienia (jeśli są): ", "Sort videos by: ": "Sortuj filmy: ",
"Data preferences": "Preferencje danych", "published": "po czasie publikacji",
"Clear watch history": "Wyczyść historię", "published - reverse": "po czasie publikacji od najstarszych",
"Import/Export data": "Import/Eksport danych", "alphabetically": "alfabetycznie",
"Manage subscriptions": "Organizuj subskrybcje", "alphabetically - reverse": "alfabetycznie od tyłu",
"Watch history": "Historia", "channel name": "po nazwie kanału",
"Delete account": "Usuń konto", "channel name - reverse": "po nazwie kanału od tyłu",
"Administrator preferences": "", "Only show latest video from channel: ": "Pokazuj tylko najnowszy film z kanału: ",
"Default homepage: ": "", "Only show latest unwatched video from channel: ": "Pokazuj tylko najnowszy nie obejrzany film z kanału: ",
"Feed menu: ": "", "Only show unwatched: ": "Pokazuj tylko nie obejrzane: ",
"Top enabled? ": "", "Only show notifications (if there are any): ": "Pokazuj tylko powiadomienia (jeśli są): ",
"CAPTCHA enabled? ": "", "Data preferences": "Preferencje danych",
"Login enabled? ": "", "Clear watch history": "Wyczyść historię",
"Registration enabled? ": "", "Import/export data": "Import/Eksport danych",
"Report statistics? ": "", "Change password": "",
"Save preferences": "Zapisz preferencje", "Manage subscriptions": "Organizuj subskrybcje",
"Subscription manager": "Manager subskrybcji", "Manage tokens": "",
"`x` subscriptions": "`x` subskrybcji", "Watch history": "Historia",
"Import/Export": "Import/Eksport", "Delete account": "Usuń konto",
"unsubscribe": "odsubskrybuj", "Administrator preferences": "Preferencje administratora",
"Subscriptions": "Subskrybcje", "Default homepage: ": "Domyślna strona główna: ",
"`x` unseen notifications": "`x` niewidzianych powiadomień", "Feed menu: ": "",
"search": "szukaj", "Top enabled? ": "",
"Sign out": "Wyloguj", "CAPTCHA enabled? ": "CAPTCHA aktywna? ",
"Released under the AGPLv3 by Omar Roth.": "Wydano na licencji AGPLv3 przez Omar Roth.", "Login enabled? ": "Logowanie włączone? ",
"Source available here.": "Kod źródłowy dostępny tutaj.", "Registration enabled? ": "Rejestracja włączona? ",
"View JavaScript license information.": "Wyświetl informację o licencji JavaScript.", "Report statistics? ": "Raportować statystyki? ",
"Trending": "Na czasie", "Save preferences": "Zapisz preferencje",
"Watch video on Youtube": "Zobacz film na YouTube", "Subscription manager": "Manager subskrybcji",
"Genre: ": "Gatunek: ", "Token manager": "",
"License: ": "Licencja: ", "Token": "",
"Family friendly? ": "Przyjazny rodzinie? ", "`x` subscriptions": "`x` subskrybcji",
"Wilson score: ": "Punktacja Wilsona: ", "`x` tokens": "",
"Engagement: ": "Zaangażowanie: ", "Import/export": "Import/Eksport",
"Whitelisted regions: ": "Dostępny na obszarach: ", "unsubscribe": "odsubskrybuj",
"Blacklisted regions: ": "Niedostępny na obszarach: ", "revoke": "",
"Shared `x`": "Udostępniono `x`", "Subscriptions": "Subskrybcje",
"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.", "`x` unseen notifications": "`x` nowych powiadomień",
"View YouTube comments": "Wyświetl komentarze z YouTube", "search": "szukaj",
"View more comments on Reddit": "Wyświetl więcej komentarzy na Reddicie", "Log out": "Wyloguj",
"View `x` comments": "Wyświetl `x` komentarzy", "Released under the AGPLv3 by Omar Roth.": "Wydano na licencji AGPLv3 przez Omar Roth.",
"View Reddit comments": "Wyświetl komentarze z Redditta", "Source available here.": "Kod źródłowy dostępny tutaj.",
"Hide replies": "Ukryj odpowiedzi", "View JavaScript license information.": "Wyświetl informację o licencji JavaScript.",
"Show replies": "Pokaż odpowiedzi", "View privacy policy.": "Polityka prywatności.",
"Incorrect password": "Niepoprawne hasło", "Trending": "Na czasie",
"Quota exceeded, try again in a few hours": "Przekroczony limit zapytań, spróbuj ponownie za kilka godzin", "Unlisted": "",
"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.", "Watch on YouTube": "Zobacz film na YouTube",
"Invalid TFA code": "Niepoprawny kod TFA", "Hide annotations": "",
"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.", "Show annotations": "",
"Invalid answer": "Niepoprawna odpowiedź", "Genre: ": "Gatunek: ",
"Invalid CAPTCHA": "CAPTCHA wykonane błędnie", "License: ": "Licencja: ",
"CAPTCHA is a required field": "CAPTCHA jest polem wymaganym", "Family friendly? ": "Przyjazny rodzinie? ",
"User ID is a required field": "ID użytkownika jest polem wymaganym", "Wilson score: ": "Punktacja Wilsona: ",
"Password is a required field": "Hasło jest polem wymaganym", "Engagement: ": "Zaangażowanie: ",
"Invalid username or password": "Niepoprawny login lub hasło", "Whitelisted regions: ": "Dostępny na obszarach: ",
"Please sign in using 'Sign in with Google'": "Zaloguj się używając \"Zaloguj się przez Google\"", "Blacklisted regions: ": "Niedostępny na obszarach: ",
"Password cannot be empty": "Hasło nie może być puste", "Shared `x`": "Udostępniono `x`",
"Password cannot be longer than 55 characters": "Hasło nie może być dłuższe niż 55 znaków", "`x` views": "`x` wyświetleń",
"Please sign in": "Proszę się zalogować", "Premieres in `x`": "Publikacja za `x`",
"Invidious Private Feed for `x`": "", "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Cześć! Wygląda na to, że masz wyłączoną obsługę JavaScriptu. Kliknij tutaj, żeby zobaczyć komentarze. Pamiętaj, że wczytywanie może potrwać dłużej.",
"channel:`x`": "kanał:`x", "View YouTube comments": "Wyświetl komentarze z YouTube",
"Deleted or invalid channel": "Usunięty lub niepoprawny kanał", "View more comments on Reddit": "Wyświetl więcej komentarzy na Reddicie",
"This channel does not exist.": "Ten kanał nie istnieje.", "View `x` comments": "Wyświetl `x` komentarzy",
"Could not get channel info.": "Nie udało się uzyskać informacji o kanale.", "View Reddit comments": "Wyświetl komentarze z Redditta",
"Could not fetch comments": "Nie udało się pobrać komentarzy", "Hide replies": "Ukryj odpowiedzi",
"View `x` replies": "Wyświetl `x` odpowiedzi", "Show replies": "Pokaż odpowiedzi",
"`x` ago": "`x` temu", "Incorrect password": "Niepoprawne hasło",
"Load more": "Wczytaj więcej", "Quota exceeded, try again in a few hours": "Przekroczony limit zapytań, spróbuj ponownie za kilka godzin",
"`x` points": "`x` punktów", "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 create mix.": "Nie udało się utworzyć miksu.", "Invalid TFA code": "Niepoprawny kod TFA",
"Playlist is empty": "Lista odtwarzania jest pusta", "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.",
"Invalid playlist.": "Niepoprawna lista.", "Wrong answer": "Niepoprawna odpowiedź",
"Playlist does not exist.": "Lista odtwarzania nie istnieje.", "Erroneous CAPTCHA": "CAPTCHA wykonane błędnie",
"Could not pull trending pages.": "Nie udało się pobrać strony na czasie.", "CAPTCHA is a required field": "CAPTCHA jest polem wymaganym",
"Hidden field \"challenge\" is a required field": "Ukryte pole \"wyzwanie\" jest polem wymaganym", "User ID is a required field": "ID użytkownika jest polem wymaganym",
"Hidden field \"token\" is a required field": "Ukryte pole \"token\" jest polem wymaganym", "Password is a required field": "Hasło jest polem wymaganym",
"Invalid challenge": "Niepoprawne wyzwanie", "Wrong username or password": "Niepoprawny login lub hasło",
"Invalid token": "Niepoprawny token", "Please sign in using 'Log in with Google'": "Zaloguj się używając \"Zaloguj się przez Google\"",
"Invalid user": "Niepoprawny użytkownik", "Password cannot be empty": "Hasło nie może być puste",
"Token is expired, please try again": "Token wygasł, spróbuj ponownie", "Password cannot be longer than 55 characters": "Hasło nie może być dłuższe niż 55 znaków",
"English": "angielski", "Please log in": "Proszę się zalogować",
"English (auto-generated)": "angielski (automatycznie generowane)", "Invidious Private Feed for `x`": "",
"Afrikaans": "", "channel:`x`": "kanał:`x",
"Albanian": "albański", "Deleted or invalid channel": "Usunięty lub niepoprawny kanał",
"Amharic": "", "This channel does not exist.": "Ten kanał nie istnieje.",
"Arabic": "arabski", "Could not get channel info.": "Nie udało się uzyskać informacji o kanale.",
"Armenian": "", "Could not fetch comments": "Nie udało się pobrać komentarzy",
"Azerbaijani": "", "View `x` replies": "Wyświetl `x` odpowiedzi",
"Bangla": "", "`x` ago": "`x` temu",
"Basque": "", "Load more": "Wczytaj więcej",
"Belarusian": "białoruski", "`x` points": "`x` punktów",
"Bosnian": "bośniacki", "Could not create mix.": "Nie udało się utworzyć miksu.",
"Bulgarian": "bułgarski", "Empty playlist": "Lista odtwarzania jest pusta",
"Burmese": "birmański", "Not a playlist.": "Niepoprawna lista.",
"Catalan": "kataloński", "Playlist does not exist.": "Lista odtwarzania nie istnieje.",
"Cebuano": "", "Could not pull trending pages.": "Nie udało się pobrać strony na czasie.",
"Chinese (Simplified)": "chiński (uproszczony)", "Hidden field \"challenge\" is a required field": "Ukryte pole \"wyzwanie\" jest polem wymaganym",
"Chinese (Traditional)": "chiński (tradycyjny)", "Hidden field \"token\" is a required field": "Ukryte pole \"token\" jest polem wymaganym",
"Corsican": "korsykański", "Erroneous challenge": "Niepoprawne wyzwanie",
"Croatian": "chorwacki", "Erroneous token": "Niepoprawny token",
"Czech": "czeski", "No such user": "Niepoprawny użytkownik",
"Danish": "duński", "Token is expired, please try again": "Token wygasł, spróbuj ponownie",
"Dutch": "holenderski", "English": "angielski",
"Esperanto": "esperanto", "English (auto-generated)": "angielski (automatycznie generowane)",
"Estonian": "estoński", "Afrikaans": "afrykanerski",
"Filipino": "filipiński", "Albanian": "albański",
"Finnish": "fiński", "Amharic": "amharski",
"French": "francuski", "Arabic": "arabski",
"Galician": "galicyjski", "Armenian": "armeński",
"Georgian": "gruziński", "Azerbaijani": "azerski",
"German": "niemiecki", "Bangla": "bengalski",
"Greek": "grecki", "Basque": "baskijski",
"Gujarati": "", "Belarusian": "białoruski",
"Haitian Creole": "", "Bosnian": "bośniacki",
"Hausa": "", "Bulgarian": "bułgarski",
"Hawaiian": "hawajski", "Burmese": "birmański",
"Hebrew": "hebrajski", "Catalan": "kataloński",
"Hindi": "hindi", "Cebuano": "cebuański",
"Hmong": "", "Chinese (Simplified)": "chiński (uproszczony)",
"Hungarian": "węgierski", "Chinese (Traditional)": "chiński (tradycyjny)",
"Icelandic": "islandzki", "Corsican": "korsykański",
"Igbo": "", "Croatian": "chorwacki",
"Indonesian": "indonezyjski", "Czech": "czeski",
"Irish": "irlandzki", "Danish": "duński",
"Italian": "włoski", "Dutch": "holenderski",
"Japanese": "japoński", "Esperanto": "esperanto",
"Javanese": "jawajski", "Estonian": "estoński",
"Kannada": "", "Filipino": "filipiński",
"Kazakh": "kazachski", "Finnish": "fiński",
"Khmer": "", "French": "francuski",
"Korean": "koreański", "Galician": "galicyjski",
"Kurdish": "kurdyjski", "Georgian": "gruziński",
"Kyrgyz": "kirgiski", "German": "niemiecki",
"Lao": "", "Greek": "grecki",
"Latin": "łaciński", "Gujarati": "gudźarati",
"Latvian": "łotewski", "Haitian Creole": "kreolski haitański",
"Lithuanian": "litewski", "Hausa": "hausa",
"Luxembourgish": "luksemburski", "Hawaiian": "hawajski",
"Macedonian": "macedoński", "Hebrew": "hebrajski",
"Malagasy": "malgaski", "Hindi": "hindi",
"Malay": "malajski", "Hmong": "hmong",
"Malayalam": "", "Hungarian": "węgierski",
"Maltese": "maltański", "Icelandic": "islandzki",
"Maori": "", "Igbo": "ibo",
"Marathi": "", "Indonesian": "indonezyjski",
"Mongolian": "mongolski", "Irish": "irlandzki",
"Nepali": "nepalski", "Italian": "włoski",
"Norwegian": "norweski", "Japanese": "japoński",
"Nyanja": "", "Javanese": "jawajski",
"Pashto": "", "Kannada": "kannada",
"Persian": "perski", "Kazakh": "kazachski",
"Polish": "polski", "Khmer": "khmerski",
"Portuguese": "portugalski", "Korean": "koreański",
"Punjabi": "", "Kurdish": "kurdyjski",
"Romanian": "rumuński", "Kyrgyz": "kirgiski",
"Russian": "rosyjski", "Lao": "laotański",
"Samoan": "", "Latin": "łaciński",
"Scottish Gaelic": "", "Latvian": "łotewski",
"Serbian": "serbski", "Lithuanian": "litewski",
"Shona": "", "Luxembourgish": "luksemburski",
"Sindhi": "", "Macedonian": "macedoński",
"Sinhala": "", "Malagasy": "malgaski",
"Slovak": "słowacki", "Malay": "malajski",
"Slovenian": "słoweński", "Malayalam": "malajalam",
"Somali": "somalijski", "Maltese": "maltański",
"Southern Sotho": "", "Maori": "maoryski",
"Spanish": "hiszpański", "Marathi": "marathi",
"Spanish (Latin America)": "hiszpański (ameryka łacińska)", "Mongolian": "mongolski",
"Sundanese": "", "Nepali": "nepalski",
"Swahili": "", "Norwegian Bokmål": "norweski",
"Swedish": "szwedzki", "Nyanja": "njandża",
"Tajik": "", "Pashto": "paszto",
"Tamil": "", "Persian": "perski",
"Telugu": "", "Polish": "polski",
"Thai": "tajski", "Portuguese": "portugalski",
"Turkish": "turecki", "Punjabi": "pendżabski",
"Ukrainian": "ukraiński", "Romanian": "rumuński",
"Urdu": "", "Russian": "rosyjski",
"Uzbek": "uzbecki", "Samoan": "samoański",
"Vietnamese": "wietnamski", "Scottish Gaelic": "gaelicki szkocki",
"Welsh": "walijski", "Serbian": "serbski",
"Western Frisian": "", "Shona": "shona",
"Xhosa": "", "Sindhi": "sindhi",
"Yiddish": "", "Sinhala": "syngaleski",
"Yoruba": "", "Slovak": "słowacki",
"Zulu": "", "Slovenian": "słoweński",
"`x` years": "`x` lat", "Somali": "somalijski",
"`x` months": "`x` miesięcy", "Southern Sotho": "sotho południowy",
"`x` weeks": "`x` tygodni", "Spanish": "hiszpański",
"`x` days": "`x` dni", "Spanish (Latin America)": "hiszpański (ameryka łacińska)",
"`x` hours": "`x` godzin", "Sundanese": "sundajski",
"`x` minutes": "`x` minut", "Swahili": "suahili",
"`x` seconds": "`x` sekund", "Swedish": "szwedzki",
"Fallback comments: ": "Zastępcze komentarze: ", "Tajik": "tadżycki",
"Popular": "Popularne", "Tamil": "tamilski",
"Top": "Na czasie", "Telugu": "telugu",
"About": "Informacje", "Thai": "tajski",
"Rating: ": "Ocena: ", "Turkish": "turecki",
"Language: ": "Język: ", "Ukrainian": "ukraiński",
"Default": "", "Urdu": "urdu",
"Music": "Muzyka", "Uzbek": "uzbecki",
"Gaming": "Gry", "Vietnamese": "wietnamski",
"News": "Wiadomości", "Welsh": "walijski",
"Movies": "Filmy", "Western Frisian": "zachodniofryzyjski",
"Download": "Pobierz", "Xhosa": "xhosa",
"Download as: ": "Pobierz jako: ", "Yiddish": "jidysz",
"%A %B %-d, %Y": "", "Yoruba": "joruba",
"(edited)": "(edytowany)", "Zulu": "zuluski",
"Youtube permalink of the comment": "Odnośnik bezpośredni do komentarza na YouTube", "`x` years": "`x` lat",
"`x` marked it with a ❤": "", "`x` months": "`x` miesięcy",
"Audio mode": "Tryb audio", "`x` weeks": "`x` tygodni",
"Video mode": "Tryb wideo" "`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: "
}

View File

@@ -1,294 +1,314 @@
{ {
"`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", "newest": "новые",
"newest": "новые", "oldest": "старые",
"oldest": "старые", "popular": "популярные",
"popular": "популярные", "last": "недавно обновленные",
"Preview page": "Предварительный просмотр", "Next page": "Следующая страница",
"Next page": "Следующая страница", "Previous page": "Предыдущая страница",
"Clear watch history?": "Очистить историю просмотров?", "Clear watch history?": "Очистить историю просмотров?",
"Yes": "Да", "New password": "",
"No": "Нет", "New passwords must match": "",
"Import and Export Data": "Импорт и экспорт данных", "Cannot change password for Google accounts": "",
"Import": "Импорт", "Authorize token?": "",
"Import Invidious data": "Импортировать данные Invidious", "Authorize token for `x`?": "",
"Import YouTube subscriptions": "Импортировать YouTube подписки", "Yes": "Да",
"Import FreeTube subscriptions (.db)": "Импортировать FreeTube подписки (.db)", "No": "Нет",
"Import NewPipe subscriptions (.json)": "Импортировать NewPipe подписки (.json)", "Import and Export Data": "Импорт и экспорт данных",
"Import NewPipe data (.zip)": "Импортировать данные NewPipe (.zip)", "Import": "Импорт",
"Export": "Экспорт", "Import Invidious data": "Импортировать данные Invidious",
"Export subscriptions as OPML": "Экспортировать подписки в OPML", "Import YouTube subscriptions": "Импортировать YouTube подписки",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Экспортировать подписки в OPML (для NewPipe и FreeTube)", "Import FreeTube subscriptions (.db)": "Импортировать FreeTube подписки (.db)",
"Export data as JSON": "Экспортировать данные в JSON", "Import NewPipe subscriptions (.json)": "Импортировать NewPipe подписки (.json)",
"Delete account?": "Удалить аккаунт?", "Import NewPipe data (.zip)": "Импортировать данные NewPipe (.zip)",
"History": "История", "Export": "Экспорт",
"Previous page": "Предыдущая страница", "Export subscriptions as OPML": "Экспортировать подписки в OPML",
"An alternative front-end to YouTube": "Альтернативный фронтенд для YouTube", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Экспортировать подписки в OPML (для NewPipe и FreeTube)",
"JavaScript license information": "Лицензии JavaScript", "Export data as JSON": "Экспортировать данные в JSON",
"source": "источник", "Delete account?": "Удалить аккаунт?",
"Login": "Войти", "History": "История",
"Login/Register": "Войти/Регистрация", "An alternative front-end to YouTube": "Альтернативный фронтенд для YouTube",
"Login to Google": "Войти через Google", "JavaScript license information": "Лицензии JavaScript",
"User ID:": "ID пользователя:", "source": "источник",
"Password:": "Пароль:", "Log in": "Войти",
"Time (h:mm:ss):": "Время (ч:мм:сс):", "Log in/register": "Войти/Регистрация",
"Text CAPTCHA": "Текст капчи", "Log in with Google": "Войти через Google",
"Image CAPTCHA": "Изображение капчи", "User ID": "ID пользователя",
"Sign In": "Войти", "Password": "Пароль",
"Register": "Регистрация", "Time (h:mm:ss):": "Время (ч:мм:сс):",
"Email:": "Эл. почта:", "Text CAPTCHA": "Текст капчи",
"Google verification code:": "Код подтверждения Google:", "Image CAPTCHA": "Изображение капчи",
"Preferences": "Настройки", "Sign In": "Войти",
"Player preferences": "Настройки проигрывателя", "Register": "Регистрация",
"Always loop: ": "Всегда повторять: ", "E-mail": "Эл. почта",
"Autoplay: ": "Автовоспроизведение: ", "Google verification code": "Код подтверждения Google",
"Autoplay next video: ": "Автовоспроизведение следующего видео: ", "Preferences": "Настройки",
"Listen by default: ": "Режим \"только аудио\" по-умолчанию: ", "Player preferences": "Настройки проигрывателя",
"Default speed: ": "Скорость по-умолчанию: ", "Always loop: ": "Всегда повторять: ",
"Preferred video quality: ": "Предпочтительное качество видео: ", "Autoplay: ": "Автовоспроизведение: ",
"Player volume: ": "Громкость воспроизведения: ", "Play next by default: ": "",
"Default comments: ": "Источник комментариев: ", "Autoplay next video: ": "Автовоспроизведение следующего видео: ",
"youtube": "YouTube", "Listen by default: ": "Режим \"только аудио\" по-умолчанию: ",
"reddit": "Reddit", "Proxy videos? ": "Проксировать видео? ",
"Default captions: ": "Субтитры по-умолчанию: ", "Default speed: ": "Скорость по умолчанию: ",
"Fallback captions: ": "Резервные субтитры: ", "Preferred video quality: ": "Предпочтительное качество видео: ",
"Show related videos? ": "Показывать похожие видео? ", "Player volume: ": "Громкость воспроизведения: ",
"Visual preferences": "Визуальные настройки", "Default comments: ": "Источник комментариев: ",
"Dark mode: ": "Темная тема: ", "youtube": "YouTube",
"Thin mode: ": "Облегченный режим: ", "reddit": "Reddit",
"Subscription preferences": "Настройки подписок", "Default captions: ": "Субтитры по умолчанию: ",
"Redirect homepage to feed: ": "Отображать ленту вместо главной страницы: ", "Fallback captions: ": "Резервные субтитры: ",
"Number of videos shown in feed: ": "Число видео в ленте: ", "Show related videos? ": "Показывать похожие видео? ",
"Sort videos by: ": "Сортировать видео по: ", "Show annotations by default? ": "",
"published": "дате публикации", "Visual preferences": "Визуальные настройки",
"published - reverse": "дате - обратный порядок", "Dark mode: ": "Темная тема: ",
"alphabetically": "алфавиту", "Thin mode: ": "Облегченный режим: ",
"alphabetically - reverse": "алфавиту - обратный порядок", "Subscription preferences": "Настройки подписок",
"channel name": "имени канала", "Show annotations by default for subscribed channels? ": "",
"channel name - reverse": "имени канала - обратный порядок", "Redirect homepage to feed: ": "Отображать ленту вместо главной страницы: ",
"Only show latest video from channel: ": "Отображать только последние видео с каждого канала: ", "Number of videos shown in feed: ": "Число видео в ленте: ",
"Only show latest unwatched video from channel: ": "Отображать только непросмотренные видео с каждого канала: ", "Sort videos by: ": "Сортировать видео по: ",
"Only show unwatched: ": "Отображать только непросмотренные видео: ", "published": "дате публикации",
"Only show notifications (if there are any): ": "Отображать только оповещения (если есть): ", "published - reverse": "дате - обратный порядок",
"Data preferences": "Настройки данных", "alphabetically": "алфавиту",
"Clear watch history": "Очистить историю просмотра", "alphabetically - reverse": "алфавиту - обратный порядок",
"Import/Export data": "Импорт/Экспорт данных", "channel name": "имени канала",
"Manage subscriptions": "Управление подписками", "channel name - reverse": "имени канала - обратный порядок",
"Watch history": "История просмотров", "Only show latest video from channel: ": "Отображать только последние видео с каждого канала: ",
"Delete account": "Удалить аккаунт", "Only show latest unwatched video from channel: ": "Отображать только непросмотренные видео с каждого канала: ",
"Administrator preferences": "", "Only show unwatched: ": "Отображать только непросмотренные видео: ",
"Default homepage: ": "", "Only show notifications (if there are any): ": "Отображать только оповещения (если есть): ",
"Feed menu: ": "", "Data preferences": "Настройки данных",
"Top enabled? ": "", "Clear watch history": "Очистить историю просмотра",
"CAPTCHA enabled? ": "", "Import/export data": "Импорт/Экспорт данных",
"Login enabled? ": "", "Change password": "",
"Registration enabled? ": "", "Manage subscriptions": "Управление подписками",
"Report statistics? ": "", "Manage tokens": "",
"Save preferences": "Сохранить настройки", "Watch history": "История просмотров",
"Subscription manager": "Менеджер подписок", "Delete account": "Удалить аккаунт",
"`x` subscriptions": "`x` подписок", "Administrator preferences": "Настройки администратора",
"Import/Export": "Импорт/Экспорт", "Default homepage: ": "Главная страница по умолчанию: ",
"unsubscribe": "отписаться", "Feed menu: ": "Меню ленты: ",
"Subscriptions": "Подписки", "Top enabled? ": "Включить топ? ",
"`x` unseen notifications": "`x` новых оповещений", "CAPTCHA enabled? ": "Включить капчу? ",
"search": "поиск", "Login enabled? ": "Включить логин? ",
"Sign out": "Выйти", "Registration enabled? ": "Включить регистрацию? ",
"Released under the AGPLv3 by Omar Roth.": "Распространяется Omar Roth по AGPLv3.", "Report statistics? ": "Отображать статистику? ",
"Source available here.": "Исходный код доступен здесь.", "Save preferences": "Сохранить настройки",
"Liberapay: ": "Liberapay: ", "Subscription manager": "Менеджер подписок",
"Patreon: ": "Patreon: ", "Token manager": "",
"BTC: ": "BTC: ", "Token": "",
"BCH: ": "BCH: ", "`x` subscriptions": "`x` подписок",
"View JavaScript license information.": "Посмотреть лицензии JavaScript кода.", "`x` tokens": "",
"Trending": "В тренде", "Import/export": "Импорт/Экспорт",
"Watch video on Youtube": "Смотреть на YouTube", "unsubscribe": "отписаться",
"Genre: ": "Жанр: ", "revoke": "",
"License: ": "Лицензия: ", "Subscriptions": "Подписки",
"Family friendly? ": "Семейный просмотр: ", "`x` unseen notifications": "`x` новых оповещений",
"Wilson score: ": "Рейтинг Вильсона: ", "search": "поиск",
"Engagement: ": "Вовлеченность: ", "Log out": "Выйти",
"Whitelisted regions: ": "Доступно для: ", "Released under the AGPLv3 by Omar Roth.": "Распространяется Omar Roth по AGPLv3.",
"Blacklisted regions: ": "Недоступно для: ", "Source available here.": "Исходный код доступен здесь.",
"Shared `x`": "Опубликовано `x`", "View JavaScript license information.": "Посмотреть лицензии JavaScript кода.",
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "Похоже, что у Вас отключен JavaScript. Нажмите сюда, чтобы увидеть комментарии (учтите, что они могут загружаться дольше).", "View privacy policy.": "См. политику конфиденциальности.",
"View YouTube comments": "Смотреть комментарии с YouTube", "Trending": "В тренде",
"View more comments on Reddit": "Больше комментариев на Reddit", "Unlisted": "Доступно по ссылке",
"View `x` comments": "Показать `x` комментариев", "Watch on YouTube": "Смотреть на YouTube",
"View Reddit comments": "Смотреть комментарии с Reddit", "Hide annotations": "",
"Hide replies": "Скрыть ответы", "Show annotations": "",
"Show replies": "Показать ответы", "Genre: ": "Жанр: ",
"Incorrect password": "Неправильный пароль", "License: ": "Лицензия: ",
"Quota exceeded, try again in a few hours": "Превышена квота, попробуйте снова через несколько часов", "Family friendly? ": "Семейный просмотр: ",
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "Вход не выполнен, проверьте, не включена ли двухфакторная аутентификация.", "Wilson score: ": "Рейтинг Уилсона: ",
"Invalid TFA code": "Неправильный TFA код", "Engagement: ": "Вовлеченность: ",
"Login failed. This may be because two-factor authentication is not enabled on your account.": "Не удалось войти. Это может быть из-за того, что в вашем аккаунте не включена двухфакторная аутентификация.", "Whitelisted regions: ": "Доступно для: ",
"Invalid answer": "Неверный ответ", "Blacklisted regions: ": "Недоступно для: ",
"Invalid CAPTCHA": "Неверная капча", "Shared `x`": "Опубликовано `x`",
"CAPTCHA is a required field": "Необходимо ввести капчу", "`x` views": "`x` просмотров / просмотр / просмотра",
"User ID is a required field": "Необходимо ввести идентификатор пользователя", "Premieres in `x`": "Премьера через `x`",
"Password is a required field": "Необходимо ввести пароль", "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. Нажмите сюда, чтобы увидеть комментарии (учтите, что они могут загружаться дольше).",
"Invalid username or password": "Недопустимый пароль или имя пользователя", "View YouTube comments": "Смотреть комментарии с YouTube",
"Please sign in using 'Sign in with Google'": "Пожалуйста войдите через Google", "View more comments on Reddit": "Больше комментариев на Reddit",
"Password cannot be empty": "Пароль не может быть пустым", "View `x` comments": "Показать `x` комментариев",
"Password cannot be longer than 55 characters": "Пароль не может быть длиннее 55 символов", "View Reddit comments": "Смотреть комментарии с Reddit",
"Please sign in": "Пожалуйста, войдите", "Hide replies": "Скрыть ответы",
"Invidious Private Feed for `x`": "Приватная лента Invidious для `x`", "Show replies": "Показать ответы",
"channel:`x`": "канал: `x`", "Incorrect password": "Неправильный пароль",
"Deleted or invalid channel": "Канал удален или не найден", "Quota exceeded, try again in a few hours": "Превышена квота, попробуйте снова через несколько часов",
"This channel does not exist.": "Такой канал не существует.", "Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Вход не выполнен, проверьте, не включена ли двухфакторная аутентификация.",
"Could not get channel info.": "Невозможно получить информацию о канале.", "Invalid TFA code": "Неправильный TFA код",
"Could not fetch comments": "Невозможно получить комментарии", "Login failed. This may be because two-factor authentication is not turned on for your account.": "Не удалось войти. Это может быть из-за того, что в вашем аккаунте не включена двухфакторная аутентификация.",
"View `x` replies": "Показать `x` ответов", "Wrong answer": "Неверный ответ",
"`x` ago": "`x` назад", "Erroneous CAPTCHA": "Неверная капча",
"Load more": "Загрузить больше", "CAPTCHA is a required field": "Необходимо ввести капчу",
"`x` points": "`x` очков", "User ID is a required field": "Необходимо ввести идентификатор пользователя",
"Could not create mix.": "Невозможно создать \"микс\".", "Password is a required field": "Необходимо ввести пароль",
"Playlist is empty": "Плейлист пуст", "Wrong username or password": "Недопустимый пароль или имя пользователя",
"Invalid playlist.": "Некорректный плейлист.", "Please sign in using 'Log in with Google'": "Пожалуйста войдите через Google",
"Playlist does not exist.": "Плейлист не существует.", "Password cannot be empty": "Пароль не может быть пустым",
"Could not pull trending pages.": "Невозможно получить страницы \"в тренде\".", "Password cannot be longer than 55 characters": "Пароль не может быть длиннее 55 символов",
"Hidden field \"challenge\" is a required field": "Необходимо заполнить скрытое поле \"challenge\"", "Please log in": "Пожалуйста, войдите",
"Hidden field \"token\" is a required field": "Необходимо заполнить скрытое поле \"токен\"", "Invidious Private Feed for `x`": "Приватная лента Invidious для `x`",
"Invalid challenge": "Неправильный ответ в \"challenge\"", "channel:`x`": "канал: `x`",
"Invalid token": "Неправильный токен", "Deleted or invalid channel": "Канал удален или не найден",
"Invalid user": "Недопустимое имя пользователя", "This channel does not exist.": "Такой канал не существует.",
"Token is expired, please try again": "Срок действия токена истек, попробуйте позже", "Could not get channel info.": "Невозможно получить информацию о канале.",
"English": "Английский", "Could not fetch comments": "Невозможно получить комментарии",
"English (auto-generated)": "Английский (созданы автоматически)", "View `x` replies": "Показать `x` ответов",
"Afrikaans": "Африкаанс", "`x` ago": "`x` назад",
"Albanian": "Албанский", "Load more": "Загрузить больше",
"Amharic": "Амхарский", "`x` points": "`x` очков",
"Arabic": "Арабский", "Could not create mix.": "Невозможно создать \"микс\".",
"Armenian": "Армянский", "Empty playlist": "Плейлист пуст",
"Azerbaijani": "Азербайджанский", "Not a playlist.": "Некорректный плейлист.",
"Bangla": "Бенгальский", "Playlist does not exist.": "Плейлист не существует.",
"Basque": "Баскский", "Could not pull trending pages.": "Невозможно получить страницы \"в тренде\".",
"Belarusian": "Белорусский", "Hidden field \"challenge\" is a required field": "Необходимо заполнить скрытое поле \"challenge\"",
"Bosnian": "Боснийский", "Hidden field \"token\" is a required field": "Необходимо заполнить скрытое поле \"токен\"",
"Bulgarian": "Болгарский", "Erroneous challenge": "Неправильный ответ в \"challenge\"",
"Burmese": "Бирманский", "Erroneous token": "Неправильный токен",
"Catalan": "Каталонский", "No such user": "Недопустимое имя пользователя",
"Cebuano": "Себуанский", "Token is expired, please try again": "Срок действия токена истек, попробуйте позже",
"Chinese (Simplified)": "Китайский (упрощенный)", "English": "Английский",
"Chinese (Traditional)": "Китайский (традиционный)", "English (auto-generated)": "Английский (созданы автоматически)",
"Corsican": "Корсиканский", "Afrikaans": "Африкаанс",
"Croatian": "Хорватский", "Albanian": "Албанский",
"Czech": "Чешский", "Amharic": "Амхарский",
"Danish": "Датский", "Arabic": "Арабский",
"Dutch": "Нидерландский", "Armenian": "Армянский",
"Esperanto": "Эсперанто", "Azerbaijani": "Азербайджанский",
"Estonian": "Эстонский", "Bangla": "Бенгальский",
"Filipino": "Филиппинский", "Basque": "Баскский",
"Finnish": "Финский", "Belarusian": "Белорусский",
"French": "Французский", "Bosnian": "Боснийский",
"Galician": "Галисийский", "Bulgarian": "Болгарский",
"Georgian": "Грузинский", "Burmese": "Бирманский",
"German": "Немецкий", "Catalan": "Каталонский",
"Greek": "Греческий", "Cebuano": "Себуанский",
"Gujarati": "Гуджаратский", "Chinese (Simplified)": "Китайский (упрощенный)",
"Haitian Creole": "Гаит. креольский", "Chinese (Traditional)": "Китайский (традиционный)",
"Hausa": "Хауса", "Corsican": "Корсиканский",
"Hawaiian": "Гавайский", "Croatian": "Хорватский",
"Hebrew": "Иврит", "Czech": "Чешский",
"Hindi": "Хинди", "Danish": "Датский",
"Hmong": "Хмонг (мяо)", "Dutch": "Нидерландский",
"Hungarian": "Венгерский", "Esperanto": "Эсперанто",
"Icelandic": "Исландский", "Estonian": "Эстонский",
"Igbo": "Игбо", "Filipino": "Филиппинский",
"Indonesian": "Индонезийский", "Finnish": "Финский",
"Irish": "Ирландский", "French": "Французский",
"Italian": "Итальянский", "Galician": "Галисийский",
"Japanese": "Японский", "Georgian": "Грузинский",
"Javanese": "Яванский", "German": "Немецкий",
"Kannada": "Каннада", "Greek": "Греческий",
"Kazakh": "Казахский", "Gujarati": "Гуджаратский",
"Khmer": "Кхмерский", "Haitian Creole": "Гаит. креольский",
"Korean": "Корейский", "Hausa": "Хауса",
"Kurdish": "Курдский", "Hawaiian": "Гавайский",
"Kyrgyz": "Киргизский", "Hebrew": "Иврит",
"Lao": "Лаосский", "Hindi": "Хинди",
"Latin": "Латинский", "Hmong": "Хмонг (мяо)",
"Latvian": "Латышский", "Hungarian": "Венгерский",
"Lithuanian": "Литовский", "Icelandic": "Исландский",
"Luxembourgish": "Люксембургский", "Igbo": "Игбо",
"Macedonian": "Македонский", "Indonesian": "Индонезийский",
"Malagasy": "Малагасийский", "Irish": "Ирландский",
"Malay": "Малайский", "Italian": "Итальянский",
"Malayalam": "Малаялам", "Japanese": "Японский",
"Maltese": "Мальтийский", "Javanese": "Яванский",
"Maori": "Маори", "Kannada": "Каннада",
"Marathi": "Маратхи", "Kazakh": "Казахский",
"Mongolian": "Монгольская", "Khmer": "Кхмерский",
"Nepali": "Непальский", "Korean": "Корейский",
"Norwegian": "Норвежский", "Kurdish": "Курдский",
"Nyanja": "Ньянджа", "Kyrgyz": "Киргизский",
"Pashto": "Пушту", "Lao": "Лаосский",
"Persian": "Персидский", "Latin": "Латинский",
"Polish": "Польский", "Latvian": "Латышский",
"Portuguese": "Португальский", "Lithuanian": "Литовский",
"Punjabi": "Панджаби", "Luxembourgish": "Люксембургский",
"Romanian": "Румынский", "Macedonian": "Македонский",
"Russian": "Русский", "Malagasy": "Малагасийский",
"Samoan": "Самоанский", "Malay": "Малайский",
"Scottish Gaelic": "Шотландский (гэльский)", "Malayalam": "Малаялам",
"Serbian": "Сербский", "Maltese": "Мальтийский",
"Shona": "Шона", "Maori": "Маори",
"Sindhi": "Синдхи", "Marathi": "Маратхи",
"Sinhala": "Сингальский", "Mongolian": "Монгольская",
"Slovak": "Словацкий", "Nepali": "Непальский",
"Slovenian": "Словенский", "Norwegian Bokmål": "Норвежский",
"Somali": "Сомалийский", "Nyanja": "Ньянджа",
"Southern Sotho": "Сесото (южный сото)", "Pashto": "Пушту",
"Spanish": "Испанский", "Persian": "Персидский",
"Spanish (Latin America)": "Испанский (Латинская Америка)", "Polish": "Польский",
"Sundanese": "Сунданский", "Portuguese": "Португальский",
"Swahili": "Суахили", "Punjabi": "Панджаби",
"Swedish": "Шведский", "Romanian": "Румынский",
"Tajik": "Таджикский", "Russian": "Русский",
"Tamil": "Тамильский", "Samoan": "Самоанский",
"Telugu": "Телугу", "Scottish Gaelic": "Шотландский (гэльский)",
"Thai": "Тайский", "Serbian": "Сербский",
"Turkish": "Турецкий", "Shona": "Шона",
"Ukrainian": "Украинский", "Sindhi": "Синдхи",
"Urdu": "Урду", "Sinhala": "Сингальский",
"Uzbek": "Узбекский", "Slovak": "Словацкий",
"Vietnamese": "Вьетнамский", "Slovenian": "Словенский",
"Welsh": "Валлийский", "Somali": "Сомалийский",
"Western Frisian": "Западнофризский", "Southern Sotho": "Сесото (южный сото)",
"Xhosa": "Коса", "Spanish": "Испанский",
"Yiddish": "Идиш", "Spanish (Latin America)": "Испанский (Латинская Америка)",
"Yoruba": "Йоруба", "Sundanese": "Сунданский",
"Zulu": "Зулусский", "Swahili": "Суахили",
"`x` years": "`x` лет", "Swedish": "Шведский",
"`x` months": "`x` месяцев", "Tajik": "Таджикский",
"`x` weeks": "`x` недель", "Tamil": "Тамильский",
"`x` days": "`x` дней", "Telugu": "Телугу",
"`x` hours": "`x` часов", "Thai": "Тайский",
"`x` minutes": "`x` минут", "Turkish": "Турецкий",
"`x` seconds": "`x` секунд", "Ukrainian": "Украинский",
"Fallback comments: ": "Резервные комментарии: ", "Urdu": "Урду",
"Popular": "Популярное", "Uzbek": "Узбекский",
"Top": "Топ", "Vietnamese": "Вьетнамский",
"About": "О сайте", "Welsh": "Валлийский",
"Rating: ": "Рейтинг: ", "Western Frisian": "Западнофризский",
"Language: ": "Язык: ", "Xhosa": "Коса",
"Default": "По-умолчанию", "Yiddish": "Идиш",
"Music": "Музыка", "Yoruba": "Йоруба",
"Gaming": "Игры", "Zulu": "Зулусский",
"News": "Новости", "`x` years": "`x` лет",
"Movies": "Фильмы", "`x` months": "`x` месяцев",
"Download": "Скачать", "`x` weeks": "`x` недель",
"Download as: ": "Скачать как: ", "`x` days": "`x` дней",
"%A %B %-d, %Y": "%-d %B %Y, %A", "`x` hours": "`x` часов",
"(edited)": "(изменено)", "`x` minutes": "`x` минут",
"Youtube permalink of the comment": "Прямая ссылка на YouTube", "`x` seconds": "`x` секунд",
"`x` marked it with a ❤": "❤ от автора канала \"`x`\"", "Fallback comments: ": "Резервные комментарии: ",
"Audio mode": "Аудио режим", "Popular": "Популярное",
"Video mode": "Видео режим" "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: ": "Текущая версия: "
}

314
locales/uk.json Normal file
View File

@@ -0,0 +1,314 @@
{
"`x` subscribers": "`x` підписник / підписників / підписника",
"`x` videos": "`x` відео",
"LIVE": "ПРЯМИЙ ЕФІР",
"Shared `x` ago": "Розміщено `x` назад",
"Unsubscribe": "Відписатися",
"Subscribe": "Підписатися",
"View channel on YouTube": "Подивитися канал на YouTube",
"newest": "найновіше",
"oldest": "найстаріше",
"popular": "популярне",
"last": "останнє",
"Next page": "Наступна сторінка",
"Previous page": "Попередня сторінка",
"Clear watch history?": "Очистити історію переглядів?",
"New password": "",
"New passwords must match": "",
"Cannot change password for Google accounts": "",
"Authorize token?": "",
"Authorize token for `x`?": "",
"Yes": "Так",
"No": "Ні",
"Import and Export Data": "Імпорт і експорт даних",
"Import": "Імпорт",
"Import Invidious data": "Імпортувати дані 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": "",
"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): ": "Показувати лише сповіщення, якщо вони є: ",
"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": "",
"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": "",
"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: ": "Поточна версія: "
}

View File

@@ -1,8 +1,8 @@
name: invidious name: invidious
version: 0.14.1 version: 0.17.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

View File

@@ -1,11 +1,14 @@
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 "Helpers" do
describe "#produce_channel_videos_url" do describe "#produce_channel_videos_url" do
@@ -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

File diff suppressed because it is too large Load Diff

View File

@@ -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,79 @@ 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 "title", self.title
published: Time, json.field "videoId", self.id
updated: Time, json.field "videoThumbnails" do
ucid: String, generate_thumbnails(json, self.id, config, Kemal.config)
author: String, end
length_seconds: {type: Int32, default: 0},
json.field "lengthSeconds", self.length_seconds
json.field "author", self.author
json.field "authorId", self.ucid
json.field "authorUrl", "/channel/#{self.ucid}"
json.field "published", self.published.to_unix
json.field "publishedText", translate(locale, "`x` ago", recode_date(self.published, locale))
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},
}) })
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 +129,72 @@ 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
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
live_now ||= false
premiere_timestamp = channel_video.try &.premiere_timestamp
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
)
db.exec("UPDATE users SET notifications = notifications || $1 \
WHERE updated < $2 AND $3 = ANY(subscriptions) AND $1 <> ALL(notifications)", video.id, video.published, ucid) WHERE updated < $2 AND $3 = ANY(subscriptions) AND $1 <> ALL(notifications)", video.id, video.published, ucid)
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}) \ # We don't include the 'premire_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, \
end live_now = $8", video_array)
else end
page = 1
if pull_all_videos
page += 1
ids = [] of String ids = [] of String
loop do loop do
@@ -148,16 +209,26 @@ 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
) }
videos.each do |video| videos.each do |video|
ids << video.id ids << video.id
@@ -170,12 +241,14 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
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, updated = $4, \
ucid = $5, author = $6, length_seconds = $7, live_now = $8", video_array)
end end
end end
if count < 30 if count < 25
break break
end end

View File

@@ -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

View File

@@ -0,0 +1,226 @@
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 ["/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"]
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

View File

@@ -1,7 +1,102 @@
class Config require "./macros"
struct Nonce
db_mapping({
nonce: String,
expire: Time,
})
end
struct SessionId
db_mapping({
id: String,
email: String,
issued: String,
})
end
struct Annotation
db_mapping({
id: String,
annotations: String,
})
end
struct ConfigPreferences
module StringToArray
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 << item.value
end
rescue ex
if node.is_a?(YAML::Nodes::Scalar)
result = [node.value, ""]
else
result = ["", ""]
end
end
result
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
struct Config
module ConfigPreferencesConverter
def self.from_yaml(ctx : YAML::ParseContext, node : YAML::Nodes::Node) : Preferences
Preferences.new(*ConfigPreferences.new(ctx, node).to_tuple)
end
def self.to_yaml(value : Preferences, yaml : YAML::Nodes::Builder)
value.to_yaml(yaml)
end
end
YAML.mapping({ YAML.mapping({
video_threads: Int32, # Number of threads to use for updating videos in cache (mostly non-functional)
crawl_threads: Int32, # Number of threads to use for finding new videos from YouTube (used to populate "top" page)
channel_threads: Int32, # Number of threads to use for crawling videos from channels (for updating subscriptions) 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 feed_threads: Int32, # Number of threads to use for updating feeds
db: NamedTuple( # Database configuration db: NamedTuple( # Database configuration
@@ -11,69 +106,31 @@ user: String,
port: Int32, port: Int32,
dbname: String, dbname: String,
), ),
full_refresh: Bool, # Used for crawling channels: threads should check all videos uploaded by a channel 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:// 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 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 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) use_pubsub_feeds: {type: Bool | Int32, default: false}, # Subscribe to channels using PubSubHubbub (requires domain, hmac_key)
default_home: {type: String, default: "Top"}, default_home: {type: String, default: "Top"},
feed_menu: {type: Array(String), default: ["Popular", "Top", "Trending", "Subscriptions"]}, feed_menu: {type: Array(String), default: ["Popular", "Top", "Trending", "Subscriptions"]},
top_enabled: {type: Bool, default: true}, top_enabled: {type: Bool, default: true},
captcha_enabled: {type: Bool, default: true}, captcha_enabled: {type: Bool, default: true},
login_enabled: {type: Bool, default: true}, login_enabled: {type: Bool, default: true},
registration_enabled: {type: Bool, default: true}, registration_enabled: {type: Bool, default: true},
statistics_enabled: {type: Bool, default: false}, statistics_enabled: {type: Bool, default: false},
admins: {type: Array(String), default: [] of String}, 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.
}) })
end end
class FilteredCompressHandler < Kemal::Handler
exclude ["/videoplayback", "/videoplayback/*", "/vi/*", "/api/*", "/ggpht/*"]
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 APIHandler < Kemal::Handler
only ["/api/v1/*"]
def call(env)
return call_next env unless only_match? env
env.response.headers["Access-Control-Allow-Origin"] = "*"
call_next env
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
def rank_videos(db, n) def rank_videos(db, n)
top = [] of {Float64, String} top = [] of {Float64, String}
@@ -134,8 +191,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 +253,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 +280,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 +305,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 +379,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 +396,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 +468,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 +503,128 @@ 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

View File

@@ -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

View File

@@ -1,51 +1,3 @@
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) def refresh_channels(db, logger, max_threads = 1, full_refresh = false)
max_channel = Channel(Int32).new max_channel = Channel(Int32).new
@@ -82,30 +34,14 @@ def refresh_channels(db, logger, max_threads = 1, full_refresh = false)
end end
end end
end end
sleep 1.minute
end end
end end
max_channel.send(max_threads) max_channel.send(max_threads)
end 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) def refresh_feeds(db, logger, max_threads = 1)
max_channel = Channel(Int32).new max_channel = Channel(Int32).new
@@ -118,7 +54,7 @@ def refresh_feeds(db, logger, max_threads = 1)
db.query("SELECT email FROM users") do |rs| db.query("SELECT email FROM users") do |rs|
rs.each do rs.each do
email = rs.read(String) email = rs.read(String)
view_name = "subscriptions_#{sha256(email)[0..7]}" view_name = "subscriptions_#{sha256(email)}"
if active_threads >= max_threads if active_threads >= max_threads
if active_channel.receive if active_channel.receive
@@ -129,17 +65,38 @@ def refresh_feeds(db, logger, max_threads = 1)
active_threads += 1 active_threads += 1
spawn do spawn do
begin 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
db.exec("REFRESH MATERIALIZED VIEW #{view_name}") db.exec("REFRESH MATERIALIZED VIEW #{view_name}")
rescue ex rescue ex
# Create view if it doesn't exist # Rename old views
if ex.message.try &.ends_with? "does not exist" begin
db.exec("CREATE MATERIALIZED VIEW #{view_name} AS \ legacy_view_name = "subscriptions_#{sha256(email)[0..7]}"
SELECT * FROM channel_videos WHERE \
ucid = ANY ((SELECT subscriptions FROM users WHERE email = E'#{email.gsub("'", "\\'")}')::text[]) \ db.exec("SELECT * FROM #{legacy_view_name} LIMIT 0")
ORDER BY published DESC;") logger.write("RENAME MATERIALIZED VIEW #{legacy_view_name}\n")
logger.write("CREATE #{view_name}") db.exec("ALTER MATERIALIZED VIEW #{legacy_view_name} RENAME TO #{view_name}")
else rescue ex
logger.write("REFRESH #{email} : #{ex.message}\n") 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 = ANY ((SELECT subscriptions FROM users WHERE email = E'#{email.gsub("'", "\\'")}')::text[]) \
ORDER BY published DESC;")
end
rescue ex
logger.write("REFRESH #{email} : #{ex.message}\n")
end
end end
end end
@@ -147,6 +104,8 @@ def refresh_feeds(db, logger, max_threads = 1)
end end
end end
end end
sleep 1.minute
end end
end end
@@ -155,23 +114,52 @@ end
def subscribe_to_feeds(db, logger, key, config) def subscribe_to_feeds(db, logger, key, config)
if config.use_pubsub_feeds 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 spawn do
max_threads = max_channel.receive
active_threads = 0
active_channel = Channel(Bool).new
loop do loop do
db.query_all("SELECT id FROM channels WHERE CURRENT_TIMESTAMP - subscribed > '4 days'") do |rs| db.query_all("SELECT id FROM channels WHERE CURRENT_TIMESTAMP - subscribed > interval '4 days' OR subscribed IS NULL") do |rs|
rs.each do rs.each do
ucid = rs.read(String) ucid = rs.read(String)
response = subscribe_pubsub(ucid, key, config)
if response.status_code >= 400 if active_threads >= max_threads.as(Int32)
logger.write("#{ucid} : #{response.body}\n") 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 end
end end
sleep 1.minute sleep 1.minute
Fiber.yield
end end
end end
max_channel.send(max_threads.as(Int32))
end end
end end
@@ -200,7 +188,7 @@ def pull_top_videos(config, db)
end end
yield videos yield videos
Fiber.yield sleep 1.minute
end end
end end
@@ -215,7 +203,7 @@ def pull_popular_videos(db)
ORDER BY ucid, published DESC", subscriptions, as: ChannelVideo).sort_by { |video| video.published }.reverse ORDER BY ucid, published DESC", subscriptions, as: ChannelVideo).sort_by { |video| video.published }.reverse
yield videos yield videos
Fiber.yield sleep 1.minute
end end
end end
@@ -228,6 +216,7 @@ def update_decrypt_function
end end
yield decrypt_function yield decrypt_function
sleep 1.minute
end end
end end
@@ -239,7 +228,8 @@ def find_working_proxies(regions)
# proxies = filter_proxies(proxies) # proxies = filter_proxies(proxies)
yield region, proxies yield region, proxies
Fiber.yield
end end
sleep 1.minute
end end
end end

View 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

View File

@@ -1,12 +1,43 @@
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
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")

View 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

View File

@@ -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
@@ -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 = ""

View File

@@ -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>

View File

@@ -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>

View File

@@ -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

View File

@@ -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

View File

@@ -1,24 +1,23 @@
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?,
@@ -27,29 +26,7 @@ class User
}) })
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
@@ -71,56 +48,65 @@ class Preferences
result result
end 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 << item.value
end
rescue ex
if node.is_a?(YAML::Nodes::Scalar)
result = [node.value, ""]
else
result = ["", ""]
end
end
result
end
end end
JSON.mapping({ json_mapping({
video_loop: Bool, annotations: {type: Bool, default: CONFIG.default_user_preferences.annotations},
autoplay: Bool, annotations_subscribed: {type: Bool, default: CONFIG.default_user_preferences.annotations_subscribed},
continue: { autoplay: {type: Bool, default: CONFIG.default_user_preferences.autoplay},
type: Bool, captions: {type: Array(String), default: CONFIG.default_user_preferences.captions, converter: StringToArray},
default: DEFAULT_USER_PREFERENCES.continue, comments: {type: Array(String), default: CONFIG.default_user_preferences.comments, converter: StringToArray},
}, continue: {type: Bool, default: CONFIG.default_user_preferences.continue},
listen: { continue_autoplay: {type: Bool, default: CONFIG.default_user_preferences.continue_autoplay},
type: Bool, dark_mode: {type: Bool, default: CONFIG.default_user_preferences.dark_mode},
default: DEFAULT_USER_PREFERENCES.listen, latest_only: {type: Bool, default: CONFIG.default_user_preferences.latest_only},
}, listen: {type: Bool, default: CONFIG.default_user_preferences.listen},
speed: Float32, local: {type: Bool, default: CONFIG.default_user_preferences.local},
quality: String, locale: {type: String, default: CONFIG.default_user_preferences.locale},
volume: Int32, max_results: {type: Int32, default: CONFIG.default_user_preferences.max_results},
comments: { notifications_only: {type: Bool, default: CONFIG.default_user_preferences.notifications_only},
type: Array(String), quality: {type: String, default: CONFIG.default_user_preferences.quality},
default: DEFAULT_USER_PREFERENCES.comments, redirect_feed: {type: Bool, default: CONFIG.default_user_preferences.redirect_feed},
converter: StringToArray, related_videos: {type: Bool, default: CONFIG.default_user_preferences.related_videos},
}, sort: {type: String, default: CONFIG.default_user_preferences.sort},
captions: { speed: {type: Float32, default: CONFIG.default_user_preferences.speed},
type: Array(String), thin_mode: {type: Bool, default: CONFIG.default_user_preferences.thin_mode},
default: DEFAULT_USER_PREFERENCES.captions, unseen_only: {type: Bool, default: CONFIG.default_user_preferences.unseen_only},
}, video_loop: {type: Bool, default: CONFIG.default_user_preferences.video_loop},
redirect_feed: { volume: {type: Int32, default: CONFIG.default_user_preferences.volume},
type: Bool,
default: DEFAULT_USER_PREFERENCES.redirect_feed,
},
related_videos: {
type: Bool,
default: DEFAULT_USER_PREFERENCES.related_videos,
},
dark_mode: Bool,
thin_mode: {
type: Bool,
default: DEFAULT_USER_PREFERENCES.thin_mode,
},
max_results: Int32,
sort: String,
latest_only: Bool,
unseen_only: Bool,
notifications_only: {
type: Bool,
default: DEFAULT_USER_PREFERENCES.notifications_only,
},
locale: {
type: String,
default: DEFAULT_USER_PREFERENCES.locale,
},
}) })
end end
@@ -142,7 +128,7 @@ 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 = ANY ((SELECT subscriptions FROM users WHERE email = E'#{user.email.gsub("'", "\\'")}')::text[]) \
@@ -164,7 +150,7 @@ 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 = ANY ((SELECT subscriptions FROM users WHERE email = E'#{user.email.gsub("'", "\\'")}')::text[]) \
@@ -201,7 +187,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)
return user, sid return user, sid
end end
@@ -209,70 +195,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)
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 +218,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 +250,22 @@ 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 end

View File

@@ -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,29 @@ 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,
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 +272,247 @@ class Video
end end
end end
def to_json(locale, config, kemal_config, decrypt_function)
JSON.build do |json|
json.object do
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 +580,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 +648,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 +679,75 @@ 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 = storyboards.shift
storyboards.each_with_index do |storyboard, i|
width, height, count, storyboard_width, storyboard_height, interval, _, sigh = storyboard.split("#")
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}&sigh=#{sigh}".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 +796,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,7 +824,7 @@ class Video
}) })
end end
class Caption struct Caption
JSON.mapping( JSON.mapping(
name: CaptionName, name: CaptionName,
baseUrl: String, baseUrl: String,
@@ -510,7 +832,7 @@ class Caption
) )
end end
class CaptionName struct CaptionName
JSON.mapping( JSON.mapping(
simpleText: String, simpleText: String,
) )
@@ -519,12 +841,12 @@ 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 +876,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 +1045,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 +1130,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 +1155,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) : ""
wilson_score = ci_lower_bound(likes, likes + dislikes) wilson_score = ci_lower_bound(likes, likes + dislikes)
@@ -741,44 +1221,56 @@ 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?
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").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"]?
related_videos = query["related_videos"]?
speed = query["speed"]?.try &.to_f? speed = query["speed"]?.try &.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
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 continue ||= CONFIG.default_user_preferences.continue.to_unsafe
listen ||= DEFAULT_USER_PREFERENCES.listen.to_unsafe continue_autoplay ||= CONFIG.default_user_preferences.continue_autoplay.to_unsafe
preferred_captions ||= DEFAULT_USER_PREFERENCES.captions listen ||= CONFIG.default_user_preferences.listen.to_unsafe
quality ||= DEFAULT_USER_PREFERENCES.quality local ||= CONFIG.default_user_preferences.local.to_unsafe
speed ||= DEFAULT_USER_PREFERENCES.speed preferred_captions ||= CONFIG.default_user_preferences.captions
video_loop ||= DEFAULT_USER_PREFERENCES.video_loop.to_unsafe quality ||= CONFIG.default_user_preferences.quality
volume ||= DEFAULT_USER_PREFERENCES.volume 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 +1296,72 @@ 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, continue: continue,
listen: listen, 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

View 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><%= 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 %>

View 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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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) ? translate(locale, "`x` views", number_to_short_text(item.views)) : "" %>
</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="#">
<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) ? translate(locale, "`x` views", number_to_short_text(item.views)) : "" %>
</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>

View File

@@ -1,192 +1,267 @@
<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 options = {
<% if aspect_ratio %> <% if aspect_ratio %>
aspectRatio: "<%= aspect_ratio %>", aspectRatio: "<%= aspect_ratio %>",
<% end %> <% end %>
preload: "auto", preload: "auto",
playbackRates: [0.5, 1, 1.5, 2], playbackRates: [0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 2.0],
controlBar: { controlBar: {
children: [ children: [
"playToggle", "playToggle",
"volumePanel", "volumePanel",
"currentTimeDisplay", "currentTimeDisplay",
"timeDivider", "timeDivider",
"durationDisplay", "durationDisplay",
"progressControl", "progressControl",
"remainingTimeDisplay", "remainingTimeDisplay",
"captionsButton", "captionsButton",
"qualitySelector", "qualitySelector",
"playbackRateMenuButton", "playbackRateMenuButton",
"fullscreenToggle" "fullscreenToggle"
] ]
} }
}; };
var shareOptions = { var shareOptions = {
socials: ["fb", "tw", "reddit", "mail"], socials: ["fbFeed", "tw", "reddit", "email"],
url: "<%= host_url %>/<%= video.id %>?<%= host_params %>", url: window.location.href,
title: "<%= video.title.dump_unquoted %>", title: "<%= video.title.dump_unquoted %>",
description: "<%= description %>", description: "<%= description %>",
image: "<%= thumbnail %>", image: "<%= thumbnail %>",
embedCode: "<iframe id='ivplayer' type='text/html' width='640' height='360' \ embedCode: "<iframe id='ivplayer' type='text/html' width='640' height='360' \
src='<%= host_url %>/embed/<%= video.id %>?<%= host_params %>' frameborder='0'></iframe>" src='<%= host_url %>/embed/<%= video.id %>?<%= host_params %>' frameborder='0'></iframe>"
}; };
var player = videojs("player", options, function() { var player = videojs("player", options, function() {
this.hotkeys({ this.hotkeys({
volumeStep: 0.1, volumeStep: 0.1,
seekStep: 5, seekStep: 5,
enableModifiersForNumbers: false, enableModifiersForNumbers: false,
customKeys: { enableHoverScroll: true,
play: { customKeys: {
key: function(e) { // Toggle play with K Key
// Toggle play with K Key play: {
return e.which === 75; key: function(e) {
}, return e.which === 75;
handler: function(player, options, e) { },
if (player.paused()) { handler: function(player, options, e) {
player.play(); if (player.paused()) {
} else { player.play();
player.pause(); } 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]);
}
}
} }
}, });
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) { player.on('error', function(event) {
if (player.error().code === 2 || player.error().code === 4) { if (player.error().code === 2 || player.error().code === 4) {
setInterval(setTimeout(function (event) { setInterval(setTimeout(function (event) {
console.log("An error occured in the player, reloading..."); console.log('An error occured in the player, reloading...');
var currentTime = player.currentTime(); var currentTime = player.currentTime();
var playbackRate = player.playbackRate(); var playbackRate = player.playbackRate();
var paused = player.paused(); var paused = player.paused();
player.load(); 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 %> if (currentTime > 0.5) {
player.markers({ currentTime -= 0.5;
onMarkerReached: function(marker) { }
if (marker.text === "End") {
if (player.loop()) { player.currentTime(currentTime);
player.markers.prev("Start"); player.playbackRate(playbackRate);
} else {
player.pause(); if (!paused) {
} player.play();
}
}, 5000), 5000);
} }
},
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] %>); <% 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 %> <% end %>
player.volume(<%= params[:volume].to_f / 100 %>); player.volume(<%= params.volume.to_f / 100 %>);
player.playbackRate(<%= params[:speed] %>); player.playbackRate(<%= params.speed %>);
<% if params[:autoplay] %> <% if params.autoplay %>
var bpb = player.getChild('bigPlayButton'); var bpb = player.getChild('bigPlayButton');
if (bpb) { if (bpb) {
bpb.hide(); bpb.hide();
player.ready(function() {
new Promise(function(resolve, reject) {
setTimeout(() => resolve(1), 1);
}).then(function(result) {
var promise = player.play();
if (promise !== undefined) { player.ready(function() {
promise.then(_ => { new Promise(function(resolve, reject) {
}).catch(error => { setTimeout(() => resolve(1), 1);
bpb.show(); }).then(function(result) {
}); var promise = player.play();
}
if (promise !== undefined) {
promise.then(_ => {
}).catch(error => {
bpb.show();
});
}
}); });
}); });
} }
<% end %> <% end %>
<% if !params.listen && params.quality == "dash" %>
player.httpSourceSelector();
<% end %>
player.vttThumbnails({
src: 'api/v1/storyboards/<%= video.id %>?height=90'
});
<% if !params.listen && 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.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');
}
});
<% end %>
// Since videojs-share can sometimes be blocked, we try to load it last // Since videojs-share can sometimes be blocked, we try to load it last
player.share(shareOptions); player.share(shareOptions);
</script> </script>

View File

@@ -1,15 +1,22 @@
<link rel="stylesheet" href="/css/video-js.min.css"> <link rel="stylesheet" href="/css/video-js.min.css">
<link rel="stylesheet" href="/css/quality-selector.css"> <link rel="stylesheet" href="/css/videojs-http-source-selector.css">
<link rel="stylesheet" href="/css/videojs.markers.min.css"> <link rel="stylesheet" href="/css/videojs.markers.min.css">
<link rel="stylesheet" href="/css/videojs-share.css"> <link rel="stylesheet" href="/css/videojs-share.css">
<link rel="stylesheet" href="/css/videojs-vtt-thumbnails.css">
<script src="/js/video.min.js"></script> <script src="/js/video.min.js"></script>
<script src="/js/videojs-contrib-quality-levels.min.js"></script>
<script src="/js/videojs-http-source-selector.min.js"></script>
<script src="/js/videojs.hotkeys.min.js"></script> <script src="/js/videojs.hotkeys.min.js"></script>
<script src="/js/silvermine-videojs-quality-selector.min.js"></script>
<script src="/js/videojs-markers.min.js"></script> <script src="/js/videojs-markers.min.js"></script>
<script src="/js/videojs-share.min.js"></script> <script src="/js/videojs-share.min.js"></script>
<script src="/js/videojs-http-streaming.min.js"></script> <script src="/js/videojs-vtt-thumbnails.min.js"></script>
<% if params[:quality] == "dash" %>
<script src="/js/dash.mediaplayer.min.js"></script> <% if params.annotations %>
<script src="/js/videojs-dash.min.js"></script> <link rel="stylesheet" href="/css/videojs-youtube-annotations.min.css">
<script src="/js/videojs-contrib-quality-levels.min.js"></script> <script src="/js/videojs-youtube-annotations.min.js"></script>
<% end %> <% end %>
<% if params.listen || params.quality != "dash" %>
<link rel="stylesheet" href="/css/quality-selector.css">
<script src="/js/silvermine-videojs-quality-selector.min.js"></script>
<% end %>

View File

@@ -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: '<%= author %>',
sub_count_text: '<%= sub_count_text %>',
csrf_token: '<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>',
subscribe_text: '<%= translate(locale, "Subscribe").gsub("'", "\\'") %>',
unsubscribe_text: '<%= translate(locale, "Unsubscribe").gsub("'", "\\'") %>'
}
</script>
<script src="/js/subscribe_widget.js"></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 %>

View File

@@ -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);
};
}

View File

@@ -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>

View File

@@ -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>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="<%= env.get("preferences").as(Preferences).locale %>">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
@@ -9,21 +9,96 @@
<link rel="stylesheet" href="/css/default.css"> <link rel="stylesheet" href="/css/default.css">
<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" %> <%= rendered "components/player" %>
<script>
<% if plid %>
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.id %>' +
'&format=html&hl=<%= env.get("preferences").as(Preferences).locale %>';
} else {
var plid_url = '/api/v1/playlists/' + plid +
'?continuation=<%= video.id %>' +
'&format=html&hl=<%= env.get("preferences").as(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() {
location.assign('/watch?v=' + xhr.response.nextVideo +
'&list=' + plid +
<% if params.listen != preferences.listen %>
'&listen=<%= params.listen %>' +
<% end %>
<% if params.autoplay || params.continue_autoplay %>
'&autoplay=1' +
<% end %>
<% if params.speed != preferences.speed %>
'&speed=<%= params.speed %>' +
<% end %>
''
);
});
}
}
}
};
xhr.ontimeout = function() {
console.log('Pulling playlist timed out.');
get_playlist(plid, timeouts + 1);
};
}
get_playlist('<%= plid %>');
<% elsif video_series %>
player.on('ended', function() {
location.assign('/embed/<%= video_series.shift %>' +
<% if !video_series.empty? %>
'?playlist=<%= video_series.join(",") %>' +
<% end %>
<% if params.listen != preferences.listen %>
'&listen=<%= params.listen %>' +
<% end %>
<% if params.autoplay || params.continue_autoplay %>
'&autoplay=1' +
<% end %>
<% if params.speed != preferences.speed %>
'&speed=<%= params.speed %>' +
<% end %>
''
);
});
<% end %>
</script>
</body> </body>
</html> </html>

View File

@@ -3,5 +3,5 @@
<% end %> <% end %>
<div class="h-box"> <div class="h-box">
<%= error_message %> <%= error_message %>
</div> </div>

View File

@@ -3,10 +3,15 @@
<% 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>
@@ -16,50 +21,53 @@
<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="#">
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> <script>
function mark_unwatched(target) { function mark_unwatched(target) {
var tile = target.parentNode.parentNode.parentNode.parentNode; var tile = target.parentNode.parentNode.parentNode.parentNode.parentNode;
tile.style.display = "none"; tile.style.display = "none";
var count = document.getElementById("count") var count = document.getElementById('count')
count.innerText = count.innerText - 1; count.innerText = count.innerText - 1;
var url = "/mark_unwatched?redirect=false&id=" + target.getAttribute("data-id"); var url = '/watch_ajax?action_mark_unwatched=1&redirect=false' +
'&id=' + target.getAttribute('data-id');
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.responseType = "json"; xhr.responseType = 'json';
xhr.timeout = 20000; xhr.timeout = 20000;
xhr.open("GET", url, true); xhr.open('POST', url, true);
xhr.send(); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.send('csrf_token=<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>');
xhr.onreadystatechange = function() { xhr.onreadystatechange = function() {
if (xhr.readyState == 4) { if (xhr.readyState == 4) {
if (xhr.status != 200) { if (xhr.status != 200) {
count.innerText = count.innerText - 1 + 2; count.innerText = count.innerText - 1 + 2;
tile.style.display = ""; tile.style.display = '';
} }
} }
} }
@@ -67,19 +75,19 @@ function mark_unwatched(target) {
</script> </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>

View File

@@ -1,28 +1,14 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en-US">
<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">
</head> </head>
<body> <body>
<h1><%= translate(locale, "JavaScript license information") %></h1> <h1><%= translate(locale, "JavaScript license information") %></h1>
<table id="jslicense-labels1"> <table id="jslicense-labels1">
<tr>
<td>
<a href="/js/dash.mediaplayer.min.js">dash.mediaplayer.min.js</a>
</td>
<td>
<a href="http://directory.fsf.org/wiki/License:BSD_3Clause">Modified-BSD</a>
</td>
<td>
<a href="https://unpkg.com/dashjs@2.9.0/dist/dash.mediaplayer.debug.js"><%= translate(locale, "source") %></a>
</td>
</tr>
<tr> <tr>
<td> <td>
<a href="/js/silvermine-videojs-quality-selector.min.js">silvermine-videojs-quality-selector.min.js</a> <a href="/js/silvermine-videojs-quality-selector.min.js">silvermine-videojs-quality-selector.min.js</a>
@@ -33,21 +19,7 @@
</td> </td>
<td> <td>
<a href="/js/silvermine-videojs-quality-selector.js"><%= translate(locale, "source") %></a> <a href="https://github.com/omarroth/videojs-quality-selector"><%= translate(locale, "source") %></a>
</td>
</tr>
<tr>
<td>
<a href="/js/video.min.js">video.min.js</a>
</td>
<td>
<a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a>
</td>
<td>
<a href="https://unpkg.com/video.js@6.12.1/dist/video.js"><%= translate(locale, "source") %></a>
</td> </td>
</tr> </tr>
@@ -61,63 +33,7 @@
</td> </td>
<td> <td>
<a href="https://unpkg.com/videojs-contrib-quality-levels@2.0.7/dist/videojs-contrib-quality-levels.js"><%= translate(locale, "source") %></a> <a href="https://github.com/videojs/videojs-contrib-quality-levels"><%= translate(locale, "source") %></a>
</td>
</tr>
<tr>
<td>
<a href="/js/videojs-dash.min.js">videojs-dash.min.js</a>
</td>
<td>
<a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a>
</td>
<td>
<a href="https://unpkg.com/videojs-contrib-dash@2.8.2/dist/videojs-dash.js"><%= translate(locale, "source") %></a>
</td>
</tr>
<tr>
<td>
<a href="/js/videojs-http-streaming.min.js">videojs-http-streaming.min.js</a>
</td>
<td>
<a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a>
</td>
<td>
<a href="https://unpkg.com/@videojs/http-streaming@1.2.2/dist/videojs-http-streaming.js"><%= translate(locale, "source") %></a>
</td>
</tr>
<tr>
<td>
<a href="/js/videojs-markers.min.js">videojs-markers.min.js</a>
</td>
<td>
<a href="http://www.jclark.com/xml/copying.txt">Expat</a>
</td>
<td>
<a href="https://unpkg.com/videojs-markers@1.0.1/dist/videojs-markers.js"><%= translate(locale, "source") %></a>
</td>
</tr>
<tr>
<td>
<a href="/js/videojs-share.min.js">videojs-share.min.js</a>
</td>
<td>
<a href="http://www.jclark.com/xml/copying.txt">Expat</a>
</td>
<td>
<a href="https://unpkg.com/videojs-share@2.0.1/dist/videojs-share.js"><%= translate(locale, "source") %></a>
</td> </td>
</tr> </tr>
@@ -131,7 +47,91 @@
</td> </td>
<td> <td>
<a href="/js/videojs.hotkeys.js"><%= translate(locale, "source") %></a> <a href="https://github.com/ctd1500/videojs-hotkeys"><%= translate(locale, "source") %></a>
</td>
</tr>
<tr>
<td>
<a href="/js/videojs-http-source-selector.min.js">videojs-http-source-selector.min.js</a>
</td>
<td>
<a href="http://www.jclark.com/xml/copying.txt">Expat</a>
</td>
<td>
<a href="https://github.com/jfujita/videojs-http-source-selector"><%= translate(locale, "source") %></a>
</td>
</tr>
<tr>
<td>
<a href="/js/videojs-markers.min.js">videojs-markers.min.js</a>
</td>
<td>
<a href="http://www.jclark.com/xml/copying.txt">Expat</a>
</td>
<td>
<a href="https://github.com/spchuang/videojs-markers"><%= translate(locale, "source") %></a>
</td>
</tr>
<tr>
<td>
<a href="/js/videojs-share.min.js">videojs-share.min.js</a>
</td>
<td>
<a href="http://www.jclark.com/xml/copying.txt">Expat</a>
</td>
<td>
<a href="https://github.com/mkhazov/videojs-share"><%= translate(locale, "source") %></a>
</td>
</tr>
<tr>
<td>
<a href="/js/videojs-vtt-thumbnails.min.js">videojs-vtt-thumbnails.min.js</a>
</td>
<td>
<a href="http://www.jclark.com/xml/copying.txt">Expat</a>
</td>
<td>
<a href="https://github.com/chrisboustead/videojs-vtt-thumbnails"><%= translate(locale, "source") %></a>
</td>
</tr>
<tr>
<td>
<a href="/js/videojs-youtube-annotations.min.js">videojs-youtube-annotations.min.js</a>
</td>
<td>
<a href="https://www.gnu.org/licenses/gpl-3.0.html">GPL-3.0</a>
</td>
<td>
<a href="https://github.com/afrmtbl/videojs-youtube-annotations"><%= translate(locale, "source") %></a>
</td>
</tr>
<tr>
<td>
<a href="/js/video.min.js">video.min.js</a>
</td>
<td>
<a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a>
</td>
<td>
<a href="https://github.com/videojs/video.js"><%= translate(locale, "source") %></a>
</td> </td>
</tr> </tr>
@@ -150,4 +150,4 @@
</tr> </tr>
</table> </table>
</body> </body>
</html> </html>

View File

@@ -1,87 +1,116 @@
<% content_for "header" do %> <% content_for "header" do %>
<title><%= translate(locale, "Login") %> - Invidious</title> <title><%= translate(locale, "Log in") %> - Invidious</title>
<% end %> <% end %>
<div class="pure-g"> <div class="pure-g">
<div class="pure-u-1 pure-u-md-1-5"></div> <div class="pure-u-1 pure-u-lg-1-5"></div>
<div class="pure-u-1 pure-u-md-3-5"> <div class="pure-u-1 pure-u-lg-3-5">
<div class="h-box"> <div class="h-box">
<div class="pure-g"> <div class="pure-g">
<div class="pure-u-1-2"> <div class="pure-u-1-2">
<a class="pure-button <% if account_type == "invidious" %>pure-button-disabled<% end %>" href="/login"> <a class="pure-button <% if account_type == "invidious" %>pure-button-disabled<% end %>" href="/login?type=invidious">
<%= translate(locale, "Login/Register") %> <%= translate(locale, "Log in/register") %>
</a> </a>
</div> </div>
<div class="pure-u-1-2"> <div class="pure-u-1-2">
<a class="pure-button <% if account_type == "google" %>pure-button-disabled<% end %>" href="/login?type=google"> <a class="pure-button <% if account_type == "google" %>pure-button-disabled<% end %>" href="/login?type=google">
<%= translate(locale, "Login to Google") %> <%= translate(locale, "Log in with Google") %>
</a> </a>
</div> </div>
</div> </div>
<hr> <hr>
<% if account_type == "invidious" %> <% if account_type == "invidious" %>
<form class="pure-form pure-form-stacked" action="/login?referer=<%= URI.escape(referer) %>&type=invidious" method="post"> <form class="pure-form pure-form-stacked" action="/login?referer=<%= URI.escape(referer) %>&type=invidious" method="post">
<fieldset> <fieldset>
<label for="email"><%= translate(locale, "User ID:") %></label> <% if email %>
<input required class="pure-input-1" name="email" type="text" placeholder="User ID"> <input name="email" type="hidden" value="<%= email %>">
<% else %>
<label for="password"><%= translate(locale, "Password:") %></label> <label for="email"><%= translate(locale, "User ID") %> :</label>
<input required class="pure-input-1" name="password" type="password" placeholder="Password"> <input required class="pure-input-1" name="email" type="text" placeholder="<%= translate(locale, "User ID") %>">
<% if config.captcha_enabled %>
<% if captcha_type == "image" %>
<img style="width:100%" src='<%= captcha.not_nil![:image] %>'/>
<input type="hidden" name="token" value="<%= captcha.not_nil![:token] %>">
<input type="hidden" name="challenge" value="<%= captcha.not_nil![:challenge] %>">
<label for="answer"><%= translate(locale, "Time (h:mm:ss):") %></label>
<input required type="text" name="answer" type="text" placeholder="h:mm:ss">
<label>
<a href="/login?referer=<%= URI.escape(referer) %>&type=invidious&captcha=text">
<%= translate(locale, "Text CAPTCHA") %>
</a>
</label>
<% else %>
<% text_captcha.not_nil![:tokens].each_with_index do |token, i| %>
<input type="hidden" name="text_challenge<%= i %>" value="<%= token[0] %>">
<input type="hidden" name="text_token<%= i %>" value="<%= token[1] %>">
<% end %> <% end %>
<label for="text_answer"><%= text_captcha.not_nil![:question] %></label>
<input required type="text" name="text_answer" type="text" placeholder="Answer">
<label> <% if password %>
<a href="/login?referer=<%= URI.escape(referer) %>&type=invidious"> <input name="password" type="hidden" value="<%= password %>">
<%= translate(locale, "Image CAPTCHA") %> <% else %>
</a> <label for="password"><%= translate(locale, "Password") %> :</label>
</label> <input required class="pure-input-1" name="password" type="password" placeholder="<%= translate(locale, "Password") %>">
<% end %> <% end %>
<% end %>
<button type="submit" name="action" value="signin" class="pure-button pure-button-primary"><%= translate(locale, "Sign In") %></button> <% if captcha %>
<% if config.registration_enabled %> <% case captcha_type when %>
<button type="submit" name="action" value="register" class="pure-button pure-button-primary"><%= translate(locale, "Register") %></button> <% when "image" %>
<% end %> <% captcha = captcha.not_nil! %>
</fieldset> <img style="width:100%" src='<%= captcha[:question] %>'/>
</form> <% captcha[:tokens].each_with_index do |token, i| %>
<input type="hidden" name="token[<%= i %>]" value="<%= URI.escape(token) %>">
<% end %>
<input type="hidden" name="captcha_type" value="image">
<label for="answer"><%= translate(locale, "Time (h:mm:ss):") %></label>
<input type="text" name="answer" type="text" placeholder="h:mm:ss">
<% when "text" %>
<% captcha = captcha.not_nil! %>
<% captcha[:tokens].each_with_index do |token, i| %>
<input type="hidden" name="token[<%= i %>]" value="<%= URI.escape(token) %>">
<% end %>
<input type="hidden" name="captcha_type" value="text">
<label for="answer"><%= captcha[:question] %></label>
<input type="text" name="answer" type="text" placeholder="<%= translate(locale, "Answer") %>">
<% end %>
<button type="submit" name="action" value="signin" class="pure-button pure-button-primary">
<%= translate(locale, "Register") %>
</button>
<% case captcha_type when %>
<% when "image" %>
<label>
<button type="submit" name="change_type" class="pure-button pure-button-primary" value="text">
<%= translate(locale, "Text CAPTCHA") %>
</button>
</label>
<% when "text" %>
<label>
<button type="submit" name="change_type" class="pure-button pure-button-primary" value="image">
<%= translate(locale, "Image CAPTCHA") %>
</button>
</label>
<% end %>
<% else %>
<button type="submit" name="action" value="signin" class="pure-button pure-button-primary">
<%= translate(locale, "Sign In") %>/<%= translate(locale, "Register") %>
</button>
<% end %>
</fieldset>
</form>
<% elsif account_type == "google" %> <% elsif account_type == "google" %>
<form class="pure-form pure-form-stacked" action="/login?referer=<%= URI.escape(referer) %>" method="post"> <form class="pure-form pure-form-stacked" action="/login?referer=<%= URI.escape(referer) %>&type=google" method="post">
<fieldset> <fieldset>
<label for="email"><%= translate(locale, "Email:") %></label> <% if email %>
<input required class="pure-input-1" name="email" type="email" placeholder="Email"> <input name="email" type="hidden" value="<%= email %>">
<% else %>
<label for="email"><%= translate(locale, "E-mail") %> :</label>
<input required class="pure-input-1" name="email" type="email" placeholder="<%= translate(locale, "E-mail") %>">
<% end %>
<label for="password"><%= translate(locale, "Password:") %></label> <% if password %>
<input required class="pure-input-1" name="password" type="password" placeholder="Password"> <input name="password" type="hidden" value="<%= password %>">
<% else %>
<label for="password"><%= translate(locale, "Password") %> :</label>
<input required class="pure-input-1" name="password" type="password" placeholder="<%= translate(locale, "Password") %>">
<% end %>
<% if tfa %> <% if tfa %>
<label for="tfa"><%= translate(locale, "Google verification code:") %></label> <label for="tfa"><%= translate(locale, "Google verification code") %> :</label>
<input required class="pure-input-1" name="tfa" type="text" placeholder="Google verification code"> <input required class="pure-input-1" name="tfa" type="text" placeholder="<%= translate(locale, "Google verification code") %>">
<% end %> <% end %>
<button type="submit" class="pure-button pure-button-primary"><%= translate(locale, "Sign In") %></button> <button type="submit" class="pure-button pure-button-primary"><%= translate(locale, "Sign In") %></button>
</fieldset> </fieldset>
</form> </form>
<% end %> <% end %>
</div> </div>
</div> </div>
<div class="pure-u-1 pure-u-md-1-5"></div> <div class="pure-u-1 pure-u-lg-1-5"></div>
</div> </div>

View File

@@ -6,7 +6,7 @@
<div class="pure-u-2-3"> <div class="pure-u-2-3">
<h3><%= mix.title %></h3> <h3><%= mix.title %></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/playlist/<%= mix.id %>"><i class="icon ion-logo-rss"></i></a> <a href="/feed/playlist/<%= mix.id %>"><i class="icon ion-logo-rss"></i></a>
</h3> </h3>
@@ -14,9 +14,9 @@
</div> </div>
<div class="pure-g"> <div class="pure-g">
<% mix.videos.each_slice(4) do |slice| %> <% mix.videos.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>

View File

@@ -1,17 +1,19 @@
<% content_for "header" do %> <% content_for "header" do %>
<title><%= playlist.title %> - Invidious</title> <title><%= playlist.title %> - Invidious</title>
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed/playlist/<%= plid %>" />
<% 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><%= playlist.title %></h3> <h3><%= playlist.title %></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/playlist/<%= plid %>"><i class="icon ion-logo-rss"></i></a> <a href="/feed/playlist/<%= plid %>"><i class="icon ion-logo-rss"></i></a>
</h3> </h3>
</div> </div>
</div> </div>
<div class="pure-g h-box"> <div class="pure-g h-box">
<div class="pure-u-1 pure-u-md-1-4"> <div class="pure-u-1 pure-u-md-1-4">
<a href="/channel/<%= playlist.ucid %>"> <a href="/channel/<%= playlist.ucid %>">
@@ -25,27 +27,27 @@
</div> </div>
<div class="pure-g"> <div class="pure-g">
<% videos.each_slice(4) do |slice| %> <% videos.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>
<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="/playlist?list=<%= playlist.id %>&page=<%= page - 1 %>"> <a href="/playlist?list=<%= playlist.id %>&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 videos.size == 100 %> <% if videos.size == 100 %>
<a href="/playlist?list=<%= playlist.id %>&page=<%= page + 1 %>"> <a href="/playlist?list=<%= playlist.id %>&page=<%= page + 1 %>">
<%= translate(locale, "Next page") %> <%= translate(locale, "Next page") %>
</a> </a>
<% end %> <% end %>
</div> </div>
</div> </div>

View File

@@ -6,7 +6,7 @@
<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,8 +14,8 @@
</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">
@@ -28,25 +28,24 @@
</div> </div>
<div class="pure-u-1 pure-md-1-3"> <div class="pure-u-1 pure-md-1-3">
<% if !auto_generated %> <% if !auto_generated %>
<b><%= translate(locale, "Playlists") %></b> <b><%= translate(locale, "Playlists") %></b>
<% 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"> <% {"last", "oldest", "newest"}.each do |sort| %>
<div class="pure-g" style="text-align:right;"> <div class="pure-u-1 pure-md-1-3">
<% {"last", "oldest", "newest"}.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 %>/playlists?sort_by=<%= sort %>">
<% else %> <%= translate(locale, sort) %>
<a href="/channel/<%= ucid %>/playlists?sort_by=<%= sort %>"> </a>
<%= translate(locale, sort) %> <% end %>
</a> </div>
<% end %> <% end %>
</div>
<% end %>
</div> </div>
</div> </div>
</div> </div>
@@ -56,25 +55,20 @@
</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>
<div class="pure-g h-box"> <div class="pure-g h-box">
<div class="pure-u-1 pure-u-md-4-5"></div> <div class="pure-u-1 pure-u-md-4-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 items.size >= 28 %> <% if items.size >= 28 %>
<a href="/channel/<%= ucid %>/playlists?continuation=<%= continuation %><% if sort_by != "last" %>&sort_by=<%= sort_by %><% end %>"> <a href="/channel/<%= ucid %>/playlists?continuation=<%= continuation %><% if sort_by != "last" %>&sort_by=<%= sort_by %><% end %>">
<%= translate(locale, "Next page") %> <%= translate(locale, "Next page") %>
</a> </a>
<% end %> <% end %>
</div> </div>
</div> </div>
<script>
<% sub_count_text = number_to_short_text(sub_count) %>
<%= rendered "components/subscribe_widget_script" %>
</script>

View File

@@ -1,14 +1,20 @@
<% content_for "header" do %> <% content_for "header" do %>
<meta name="description" content="<%= translate(locale, "An alternative front-end to YouTube") %>"> <meta name="description" content="<%= translate(locale, "An alternative front-end to YouTube") %>">
<title><% if config.default_home != "Popular" %><%= translate(locale, "Popular") %> - <% end %>Invidious</title> <title>
<% if config.default_home != "Popular" %>
<%= translate(locale, "Popular") %> - Invidious
<% else %>
Invidious
<% end %>
</title>
<% end %> <% end %>
<%= rendered "components/feed_menu" %> <%= rendered "components/feed_menu" %>
<div class="pure-g"> <div class="pure-g">
<% popular_videos.each_slice(4) do |slice| %> <% popular_videos.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>

View File

@@ -9,7 +9,7 @@ function update_value(element) {
</script> </script>
<div class="h-box"> <div class="h-box">
<form class="pure-form pure-form-aligned" action="/preferences?referer=<%= referer %>" method="post"> <form class="pure-form pure-form-aligned" action="/preferences?referer=<%= URI.escape(referer) %>" method="post">
<fieldset> <fieldset>
<legend><%= translate(locale, "Player preferences") %></legend> <legend><%= translate(locale, "Player preferences") %></legend>
@@ -24,10 +24,20 @@ function update_value(element) {
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="continue"><%= translate(locale, "Autoplay next video: ") %></label> <label for="continue"><%= translate(locale, "Play next by default: ") %></label>
<input name="continue" id="continue" type="checkbox" <% if preferences.continue %>checked<% end %>> <input name="continue" id="continue" type="checkbox" <% if preferences.continue %>checked<% end %>>
</div> </div>
<div class="pure-control-group">
<label for="continue_autoplay"><%= translate(locale, "Autoplay next video: ") %></label>
<input name="continue_autoplay" id="continue_autoplay" type="checkbox" <% if preferences.continue_autoplay %>checked<% end %>>
</div>
<div class="pure-control-group">
<label for="local"><%= translate(locale, "Proxy videos? ") %></label>
<input name="local" id="local" type="checkbox" <% if preferences.local %>checked<% end %>>
</div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="listen"><%= translate(locale, "Listen by default: ") %></label> <label for="listen"><%= translate(locale, "Listen by default: ") %></label>
<input name="listen" id="listen" type="checkbox" <% if preferences.listen %>checked<% end %>> <input name="listen" id="listen" type="checkbox" <% if preferences.listen %>checked<% end %>>
@@ -36,18 +46,18 @@ function update_value(element) {
<div class="pure-control-group"> <div class="pure-control-group">
<label for="speed"><%= translate(locale, "Default speed: ") %></label> <label for="speed"><%= translate(locale, "Default speed: ") %></label>
<select name="speed" id="speed"> <select name="speed" id="speed">
<% {2.0, 1.5, 1.0, 0.5}.each do |option| %> <% {2.0, 1.5, 1.25, 1.0, 0.75, 0.5, 0.25}.each do |option| %>
<option <% if preferences.speed == option %> selected <% end %>><%= option %></option> <option <% if preferences.speed == option %> selected <% end %>><%= option %></option>
<% end %> <% end %>
</select> </select>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="quality"><%= translate(locale, "Preferred video quality: ") %></label> <label for="quality"><%= translate(locale, "Preferred video quality: ") %></label>
<select name="quality" id="quality"> <select name="quality" id="quality">
<% {"dash", "hd720", "medium", "small"}.each do |option| %> <% {"dash", "hd720", "medium", "small"}.each do |option| %>
<option value="<%= option %>" <% if preferences.quality == option %> selected <% end %>><%= translate(locale, option) %></option> <option value="<%= option %>" <% if preferences.quality == option %> selected <% end %>><%= translate(locale, option) %></option>
<% end %> <% end %>
</select> </select>
</div> </div>
@@ -60,22 +70,22 @@ function update_value(element) {
<div class="pure-control-group"> <div class="pure-control-group">
<label for="comments[0]"><%= translate(locale, "Default comments: ") %></label> <label for="comments[0]"><%= translate(locale, "Default comments: ") %></label>
<% preferences.comments.each_with_index do |comments, index| %> <% preferences.comments.each_with_index do |comments, index| %>
<select name="comments[<%= index %>]" id="comments[<%= index %>]"> <select name="comments[<%= index %>]" id="comments[<%= index %>]">
<% {"", "youtube", "reddit"}.each do |option| %> <% {"", "youtube", "reddit"}.each do |option| %>
<option value="<%= option %>" <% if preferences.comments[index] == option %> selected <% end %>><%= translate(locale, option) %></option> <option value="<%= option %>" <% if preferences.comments[index] == option %> selected <% end %>><%= translate(locale, option) %></option>
<% end %> <% end %>
</select> </select>
<% end %> <% end %>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="captions[0]"><%= translate(locale, "Default captions: ") %></label> <label for="captions[0]"><%= translate(locale, "Default captions: ") %></label>
<% preferences.captions.each_with_index do |caption, index| %> <% preferences.captions.each_with_index do |caption, index| %>
<select class="pure-u-1-6" name="captions[<%= index %>]" id="captions[<%= index %>]"> <select class="pure-u-1-6" name="captions[<%= index %>]" id="captions[<%= index %>]">
<% CAPTION_LANGUAGES.each do |option| %> <% CAPTION_LANGUAGES.each do |option| %>
<option value="<%= option %>" <% if preferences.captions[index] == option %> selected <% end %>><%= translate(locale, option) %></option> <option value="<%= option %>" <% if preferences.captions[index] == option %> selected <% end %>><%= translate(locale, option) %></option>
<% end %> <% end %>
</select> </select>
<% end %> <% end %>
</div> </div>
@@ -84,14 +94,19 @@ function update_value(element) {
<input name="related_videos" id="related_videos" type="checkbox" <% if preferences.related_videos %>checked<% end %>> <input name="related_videos" id="related_videos" type="checkbox" <% if preferences.related_videos %>checked<% end %>>
</div> </div>
<div class="pure-control-group">
<label for="annotations"><%= translate(locale, "Show annotations by default? ") %></label>
<input name="annotations" id="annotations" type="checkbox" <% if preferences.annotations %>checked<% end %>>
</div>
<legend><%= translate(locale, "Visual preferences") %></legend> <legend><%= translate(locale, "Visual preferences") %></legend>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="locale"><%= translate(locale, "Language: ") %></label> <label for="locale"><%= translate(locale, "Language: ") %></label>
<select name="locale" id="locale"> <select name="locale" id="locale">
<% LOCALES.each_key do |option| %> <% LOCALES.each_key do |option| %>
<option value="<%= option %>" <% if preferences.locale == option %> selected <% end %>><%= option %></option> <option value="<%= option %>" <% if preferences.locale == option %> selected <% end %>><%= option %></option>
<% end %> <% end %>
</select> </select>
</div> </div>
@@ -106,118 +121,131 @@ function update_value(element) {
</div> </div>
<% if env.get? "user" %> <% if env.get? "user" %>
<legend><%= translate(locale, "Subscription preferences") %></legend> <legend><%= translate(locale, "Subscription preferences") %></legend>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="redirect_feed"><%= translate(locale, "Redirect homepage to feed: ") %></label> <label for="annotations_subscribed"><%= translate(locale, "Show annotations by default for subscribed channels? ") %></label>
<input name="redirect_feed" id="redirect_feed" type="checkbox" <% if preferences.redirect_feed %>checked<% end %>> <input name="annotations_subscribed" id="annotations_subscribed" type="checkbox" <% if preferences.annotations_subscribed %>checked<% end %>>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="max_results"><%= translate(locale, "Number of videos shown in feed: ") %></label> <label for="redirect_feed"><%= translate(locale, "Redirect homepage to feed: ") %></label>
<input name="max_results" id="max_results" type="number" value="<%= preferences.max_results %>"> <input name="redirect_feed" id="redirect_feed" type="checkbox" <% if preferences.redirect_feed %>checked<% end %>>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="sort"><%= translate(locale, "Sort videos by: ") %></label> <label for="max_results"><%= translate(locale, "Number of videos shown in feed: ") %></label>
<select name="sort" id="sort"> <input name="max_results" id="max_results" type="number" value="<%= preferences.max_results %>">
<% {"published", "published - reverse", "alphabetically", "alphabetically - reverse", "channel name", "channel name - reverse"}.each do |option| %> </div>
<option value="<%= option %>" <% if preferences.sort == option %> selected <% end %>><%= translate(locale, option) %></option>
<% end %>
</select>
</div>
<div class="pure-control-group"> <div class="pure-control-group">
<% if preferences.unseen_only %> <label for="sort"><%= translate(locale, "Sort videos by: ") %></label>
<label for="latest_only"><%= translate(locale, "Only show latest unwatched video from channel: ") %></label> <select name="sort" id="sort">
<% else %> <% {"published", "published - reverse", "alphabetically", "alphabetically - reverse", "channel name", "channel name - reverse"}.each do |option| %>
<label for="latest_only"><%= translate(locale, "Only show latest video from channel: ") %></label> <option value="<%= option %>" <% if preferences.sort == option %> selected <% end %>><%= translate(locale, option) %></option>
<% end %> <% end %>
<input name="latest_only" id="latest_only" type="checkbox" <% if preferences.latest_only %>checked<% end %>> </select>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="unseen_only"><%= translate(locale, "Only show unwatched: ") %></label> <% if preferences.unseen_only %>
<input name="unseen_only" id="unseen_only" type="checkbox" <% if preferences.unseen_only %>checked<% end %>> <label for="latest_only"><%= translate(locale, "Only show latest unwatched video from channel: ") %></label>
</div> <% else %>
<label for="latest_only"><%= translate(locale, "Only show latest video from channel: ") %></label>
<% end %>
<input name="latest_only" id="latest_only" type="checkbox" <% if preferences.latest_only %>checked<% end %>>
</div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="notifications_only"><%= translate(locale, "Only show notifications (if there are any): ") %></label> <label for="unseen_only"><%= translate(locale, "Only show unwatched: ") %></label>
<input name="notifications_only" id="notifications_only" type="checkbox" <% if preferences.notifications_only %>checked<% end %>> <input name="unseen_only" id="unseen_only" type="checkbox" <% if preferences.unseen_only %>checked<% end %>>
</div> </div>
<div class="pure-control-group">
<label for="notifications_only"><%= translate(locale, "Only show notifications (if there are any): ") %></label>
<input name="notifications_only" id="notifications_only" type="checkbox" <% if preferences.notifications_only %>checked<% end %>>
</div>
<% end %> <% end %>
<% if env.get?("user") && config.admins.includes? env.get?("user").as(User).email %> <% if env.get?("user") && config.admins.includes? env.get?("user").as(User).email %>
<legend><%= translate(locale, "Administrator preferences") %></legend> <legend><%= translate(locale, "Administrator preferences") %></legend>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="default_home"><%= translate(locale, "Default homepage: ") %></label> <label for="default_home"><%= translate(locale, "Default homepage: ") %></label>
<select name="default_home" id="default_home"> <select name="default_home" id="default_home">
<% {"Popular", "Top", "Trending", "Subscriptions"}.each do |option| %> <% {"Popular", "Top", "Trending", "Subscriptions"}.each do |option| %>
<option value="<%= option %>" <% if config.default_home == option %> selected <% end %>><%= translate(locale, option) %></option> <option value="<%= option %>" <% if config.default_home == option %> selected <% end %>><%= translate(locale, option) %></option>
<% end %> <% end %>
</select> </select>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="feed_menu"><%= translate(locale, "Feed menu: ") %></label> <label for="feed_menu"><%= translate(locale, "Feed menu: ") %></label>
<% 4.times do |index| %> <% 4.times do |index| %>
<select name="feed_menu[<%= index %>]" id="feed_menu[<%= index %>]"> <select name="feed_menu[<%= index %>]" id="feed_menu[<%= index %>]">
<% {"", "Popular", "Top", "Trending", "Subscriptions"}.each do |option| %> <% {"", "Popular", "Top", "Trending", "Subscriptions"}.each do |option| %>
<option value="<%= option %>" <% if config.feed_menu[index]? == option %> selected <% end %>><%= translate(locale, option) %></option> <option value="<%= option %>" <% if config.feed_menu[index]? == option %> selected <% end %>><%= translate(locale, option) %></option>
<% end %> <% end %>
</select> </select>
<% end %> <% end %>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="top_enabled"><%= translate(locale, "Top enabled? ") %></label> <label for="top_enabled"><%= translate(locale, "Top enabled? ") %></label>
<input name="top_enabled" id="top_enabled" type="checkbox" <% if config.top_enabled %>checked<% end %>> <input name="top_enabled" id="top_enabled" type="checkbox" <% if config.top_enabled %>checked<% end %>>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="captcha_enabled"><%= translate(locale, "CAPTCHA enabled? ") %></label> <label for="captcha_enabled"><%= translate(locale, "CAPTCHA enabled? ") %></label>
<input name="captcha_enabled" id="captcha_enabled" type="checkbox" <% if config.captcha_enabled %>checked<% end %>> <input name="captcha_enabled" id="captcha_enabled" type="checkbox" <% if config.captcha_enabled %>checked<% end %>>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="login_enabled"><%= translate(locale, "Login enabled? ") %></label> <label for="login_enabled"><%= translate(locale, "Login enabled? ") %></label>
<input name="login_enabled" id="login_enabled" type="checkbox" <% if config.login_enabled %>checked<% end %>> <input name="login_enabled" id="login_enabled" type="checkbox" <% if config.login_enabled %>checked<% end %>>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="registration_enabled"><%= translate(locale, "Registration enabled? ") %></label> <label for="registration_enabled"><%= translate(locale, "Registration enabled? ") %></label>
<input name="registration_enabled" id="registration_enabled" type="checkbox" <% if config.registration_enabled %>checked<% end %>> <input name="registration_enabled" id="registration_enabled" type="checkbox" <% if config.registration_enabled %>checked<% end %>>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="statistics_enabled"><%= translate(locale, "Report statistics? ") %></label> <label for="statistics_enabled"><%= translate(locale, "Report statistics? ") %></label>
<input name="statistics_enabled" id="statistics_enabled" type="checkbox" <% if config.statistics_enabled %>checked<% end %>> <input name="statistics_enabled" id="statistics_enabled" type="checkbox" <% if config.statistics_enabled %>checked<% end %>>
</div> </div>
<% end %> <% end %>
<% if env.get? "user" %> <% if env.get? "user" %>
<legend><%= translate(locale, "Data preferences") %></legend> <legend><%= translate(locale, "Data preferences") %></legend>
<div class="pure-control-group"> <div class="pure-control-group">
<a href="/clear_watch_history?referer=<%= URI.escape(referer) %>"><%= translate(locale, "Clear watch history") %></a> <a href="/clear_watch_history?referer=<%= URI.escape(referer) %>"><%= translate(locale, "Clear watch history") %></a>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<a href="/data_control?referer=<%= URI.escape(referer) %>"><%= translate(locale, "Import/Export data") %></a> <a href="/change_password?referer=<%= URI.escape(referer) %>"><%= translate(locale, "Change password") %></a>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<a href="/subscription_manager"><%= translate(locale, "Manage subscriptions") %></a> <a href="/data_control?referer=<%= URI.escape(referer) %>"><%= translate(locale, "Import/export data") %></a>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<a href="/feed/history"><%= translate(locale, "Watch history") %></a> <a href="/subscription_manager"><%= translate(locale, "Manage subscriptions") %></a>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<a href="/delete_account?referer=<%= URI.escape(referer) %>"><%= translate(locale, "Delete account") %></a> <a href="/token_manager"><%= translate(locale, "Manage tokens") %></a>
</div> </div>
<div class="pure-control-group">
<a href="/feed/history"><%= translate(locale, "Watch history") %></a>
</div>
<div class="pure-control-group">
<a href="/delete_account?referer=<%= URI.escape(referer) %>"><%= translate(locale, "Delete account") %></a>
</div>
<% end %> <% end %>
<div class="pure-controls"> <div class="pure-controls">

View File

@@ -0,0 +1,75 @@
<% content_for "header" do %>
<title>Privacy Policy - Invidious</title>
<% end %>
<div class="h-box">
<%= Markdown.to_html(<<-END_PRIVACY_POLICY
## Privacy
This document concerns what data you provide to this website, the purpose of the data, how the data is stored, and how the data can be removed.
### Data you directly provide
Data that you provide to the website for the purpose of the site's operation (for example: an account name, account password, or channel subscription) will be stored in the website's database until the user decides to remove it. This data will not be intentionally shared with anyone or anything.
Information stored about a registered user is limited to:
- a list of session tokens for remaining logged in across devices
- the last time an account was updated (to provide accurate notifications)
- a list of video IDs identifying notifications from a user's subscriptions
- a list of channel UCIDs the user is subscribed to
- a user ID (for persistent storage of subscriptions and preferences)
- a json object containing user preferences
- a hashed password if applicable (not present on google accounts)
- a randomly generated token for providing an RSS feed of a user's subscriptions
- a list of video IDs identifying watched videos
The above list reflects [this code](https://github.com/omarroth/invidious/blob/master/src/invidious/users.cr#L14-L51).
Users can clear their watch history using the [clear watch history](/clear_watch_history) page.
If a user is logged in with a Google account, no password will ever be stored. This website uses the session token provided by Google to identify a user, but does not store the information required to make requests on a user's behalf without their knowledge or consent.
### Data you passively provide
When you request any resource from this website (for example: a page, a font, an image, or an API endpoint) information about the request may be logged.
Information about a request is limited to:
- the time the request was made
- the status code of the response
- the method of the request
- the requested URL
- how long it took to complete the request.
No identifying information is logged, such as the visitor's cookie, user-agent, or IP address. Here are a couple lines to serve as an example:
```
2019-01-19 16:37:47 +00:00 200 GET /api/v1/comments/xrlETJYzH-c?format=html&hl=en-US 1345.88ms
2019-01-19 16:37:53 +00:00 200 GET /vi/r5P-f5arPXE/maxres.jpg 1085.41ms
2019-01-19 16:37:54 +00:00 200 GET /watch 7.04ms
```
This website does not store the visitor's user-agent or IP address and does not use fingerprinting, advertisements, or tracking of any form.
This website provides links to googlevideo.com to provide audio and video playback. googlevideo.com is owned by Google and is subject to their [privacy policy](https://policies.google.com/privacy).
### Data stored in your browser
This website uses browser cookies to authenticate registered users. This data consists of:
- An account token to keep you logged into the website between visits, which is sent when any page is loaded while you are logged in
This website also provides an option to store site preferences, such as the theme or locale, without an account. Using this feature will store a cookie in the visitor's browser containing their preferences. This cookie is sent on every request and does not contain any identifying information.
You can remove this data from your browser by logging out of this website, or by using your browser's cookie-related controls to delete the data.
### Removal of data
To remove data stored in your browser, you can log out of the website, or you can use your browser's cookie-related controls to delete the data.
To remove data that has been stored in the website's database, you can use the [delete my account](/delete_account) page.
END_PRIVACY_POLICY
)
%>
</div>

View File

@@ -3,27 +3,27 @@
<% end %> <% end %>
<div class="pure-g"> <div class="pure-g">
<% videos.each_slice(4) do |slice| %> <% videos.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>
<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="/search?q=<%= HTML.escape(query.not_nil!) %>&page=<%= page - 1 %>"> <a href="/search?q=<%= HTML.escape(query.not_nil!) %>&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 count >= 20 %> <% if count >= 20 %>
<a href="/search?q=<%= HTML.escape(query.not_nil!) %>&page=<%= page + 1 %>"> <a href="/search?q=<%= HTML.escape(query.not_nil!) %>&page=<%= page + 1 %>">
<%= translate(locale, "Next page") %> <%= translate(locale, "Next page") %>
</a> </a>
<% end %> <% end %>
</div> </div>
</div> </div>

View File

@@ -4,68 +4,79 @@
<div class="pure-g h-box"> <div class="pure-g h-box">
<div class="pure-u-1-3"> <div class="pure-u-1-3">
<h3><%= translate(locale, "`x` subscriptions", %(<span id="count">#{subscriptions.size}</span>)) %></h3>
</div>
<div class="pure-u-1-3" style="text-align:center;">
<h3> <h3>
<a href="/feed/history"><%= translate(locale, "Watch history") %></a> <a href="/feed/subscriptions">
<%= translate(locale, "`x` subscriptions", %(<span id="count">#{subscriptions.size}</span>)) %>
</a>
</h3> </h3>
</div> </div>
<div class="pure-u-1-3" style="text-align:right;"> <div class="pure-u-1-3" style="text-align:center">
<h3> <h3>
<a href="/data_control?referer=<%= referer %>"><%= translate(locale, "Import/Export") %></a> <a href="/feed/history">
<%= translate(locale, "Watch history") %>
</a>
</h3>
</div>
<div class="pure-u-1-3" style="text-align:right">
<h3>
<a href="/data_control?referer=<%= URI.escape(referer) %>">
<%= translate(locale, "Import/export") %>
</a>
</h3> </h3>
</div> </div>
</div> </div>
<% subscriptions.each do |channel| %> <% subscriptions.each do |channel| %>
<div class="h-box"> <div class="h-box">
<div class="pure-g"> <div class="pure-g<% if channel.deleted %> deleted <% end %>">
<div class="pure-u-2-5"> <div class="pure-u-2-5">
<h3> <h3 style="padding-left:0.5em">
<a href="/channel/<%= channel.id %>"><%= channel.author %></a> <a href="/channel/<%= channel.id %>"><%= channel.author %></a>
</h3> </h3>
</div>
<div class="pure-u-2-5"></div>
<div class="pure-u-1-5" style="text-align:right">
<h3 style="padding-right:0.5em">
<form onsubmit="return false" action="/subscription_ajax?action_remove_subscriptions=1&c=<%= channel.id %>&referer=<%= env.get("current_page") %>" method="post">
<input type="hidden" name="csrf_token" value="<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>">
<a onclick="remove_subscription(this)" data-ucid="<%= channel.id %>" href="#">
<input style="all:unset" type="submit" value="<%= translate(locale, "unsubscribe") %>">
</a>
</form>
</h3>
</div>
</div> </div>
<div class="pure-u-2-5"></div>
<div class="pure-u-1-5" style="text-align: right;">
<h3>
<a onclick="remove_subscription(this)"
data-id="<%= channel.id %>"
onmouseenter='this["href"]="javascript:void(0)"'
href="/subscription_ajax?action_remove_subscriptions=1&c=<%= channel.id %>">
<%= translate(locale, "unsubscribe") %>
</a>
</h3>
</div>
</div>
<% if subscriptions[-1].author != channel.author %> <% if subscriptions[-1].author != channel.author %>
<hr> <hr>
<% end %> <% end %>
</div> </div>
<% end %> <% end %>
<script> <script>
function remove_subscription(target) { function remove_subscription(target) {
var row = target.parentNode.parentNode.parentNode.parentNode; var row = target.parentNode.parentNode.parentNode.parentNode.parentNode;
row.style.display = "none"; row.style.display = 'none';
var count = document.getElementById("count") var count = document.getElementById('count');
count.innerText = count.innerText - 1; count.innerText = count.innerText - 1;
var url = "/subscription_ajax?action_remove_subscriptions=1&redirect=false&c=" + target.getAttribute("data-id"); var url = '/subscription_ajax?action_remove_subscriptions=1&redirect=false' +
'&referer=<%= env.get("current_page") %>' +
'&c=' + target.getAttribute('data-ucid');
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.responseType = "json"; xhr.responseType = 'json';
xhr.timeout = 20000; xhr.timeout = 20000;
xhr.open("GET", url, true); xhr.open('POST', url, true);
xhr.send(); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.send('csrf_token=<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>');
xhr.onreadystatechange = function() { xhr.onreadystatechange = function() {
if (xhr.readyState == 4) { if (xhr.readyState == 4) {
if (xhr.status != 200) { if (xhr.status != 200) {
count.innerText = count.innerText - 1 + 2; count.innerText = parseInt(count.innerText) + 1;
row.style.display = ""; row.style.display = '';
} }
} }
} }
} }
</script> </script>

View File

@@ -1,5 +1,6 @@
<% content_for "header" do %> <% content_for "header" do %>
<title><%= translate(locale, "Subscriptions") %> - Invidious</title> <title><%= translate(locale, "Subscriptions") %> - Invidious</title>
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed/private?token=<%= token %>" />
<% end %> <% end %>
<%= rendered "components/feed_menu" %> <%= rendered "components/feed_menu" %>
@@ -10,32 +11,34 @@
<a href="/subscription_manager"><%= translate(locale, "Manage subscriptions") %></a> <a href="/subscription_manager"><%= translate(locale, "Manage subscriptions") %></a>
</h3> </h3>
</div> </div>
<div class="pure-u-1-3" style="text-align:center;"> <div class="pure-u-1-3" style="text-align:center">
<h3> <h3>
<a href="/feed/history"><%= translate(locale, "Watch history") %></a> <a href="/feed/history"><%= translate(locale, "Watch history") %></a>
</h3> </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/private?token=<%= user.token %>"><i class="icon ion-logo-rss"></i></a> <a href="/feed/private?token=<%= token %>"><i class="icon ion-logo-rss"></i></a>
</h3> </h3>
</div> </div>
</div> </div>
<center><%= translate(locale, "`x` unseen notifications", "#{notifications.size}") %></center> <center>
<%= translate(locale, "`x` unseen notifications", "#{notifications.size}") %>
</center>
<% if !notifications.empty? %> <% if !notifications.empty? %>
<div class="h-box"> <div class="h-box">
<hr> <hr>
</div> </div>
<% end %> <% end %>
<div class="pure-g"> <div class="pure-g">
<% notifications.each_slice(4) do |slice| %> <% notifications.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>
<div class="h-box"> <div class="h-box">
@@ -43,29 +46,31 @@
</div> </div>
<div class="pure-g"> <div class="pure-g">
<% videos.each_slice(4) do |slice| %> <% videos.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>
<script> <script>
function mark_watched(target) { function mark_watched(target) {
var tile = target.parentNode.parentNode.parentNode.parentNode; var tile = target.parentNode.parentNode.parentNode.parentNode.parentNode;
tile.style.display = "none"; tile.style.display = 'none';
var url = "/mark_watched?redirect=false&id=" + target.getAttribute("data-id"); var url = '/watch_ajax?action_mark_watched=1&redirect=false' +
'&id=' + target.getAttribute('data-id');
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.responseType = "json"; xhr.responseType = 'json';
xhr.timeout = 20000; xhr.timeout = 20000;
xhr.open("GET", url, true); xhr.open('POST', url, true);
xhr.send(); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.send('csrf_token=<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>');
xhr.onreadystatechange = function() { xhr.onreadystatechange = function() {
if (xhr.readyState == 4) { if (xhr.readyState == 4) {
if (xhr.status != 200) { if (xhr.status != 200) {
tile.style.display = ""; tile.style.display = '';
} }
} }
} }
@@ -73,15 +78,15 @@ function mark_watched(target) {
</script> </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/subscriptions?max_results=<%= max_results %>&page=<%= page - 1 %>"> <a href="/feed/subscriptions?max_results=<%= max_results %>&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 (videos.size + notifications.size) == max_results %> <% if (videos.size + notifications.size) == max_results %>
<a href="/feed/subscriptions?max_results=<%= max_results %>&page=<%= page + 1 %>"> <a href="/feed/subscriptions?max_results=<%= max_results %>&page=<%= page + 1 %>">
<%= translate(locale, "Next page") %> <%= translate(locale, "Next page") %>

View File

@@ -1,140 +1,158 @@
<!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="referrer" content="no-referrer"> <meta name="referrer" content="no-referrer">
<%= yield_content "header" %> <%= yield_content "header" %>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest"> <link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#575757"> <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#575757">
<meta name="msapplication-TileColor" content="#575757"> <meta name="msapplication-TileColor" content="#575757">
<meta name="theme-color" content="#575757"> <meta name="theme-color" content="#575757">
<link title="Invidious" type="application/opensearchdescription+xml" rel="search" href="/opensearch.xml"> <link title="Invidious" type="application/opensearchdescription+xml" rel="search" href="/opensearch.xml">
<link rel="stylesheet" href="/css/pure-min.css"> <link rel="stylesheet" href="/css/pure-min.css">
<link rel="stylesheet" href="/css/grids-responsive-min.css"> <link rel="stylesheet" href="/css/grids-responsive-min.css">
<link rel="stylesheet" href="/css/ionicons.min.css"> <link rel="stylesheet" href="/css/ionicons.min.css">
<link rel="stylesheet" href="/css/default.css"> <link rel="stylesheet" href="/css/default.css">
<% if env.get?("preferences").try &.as(Preferences).dark_mode %> <% if env.get("preferences").as(Preferences).dark_mode %>
<link rel="stylesheet" href="/css/darktheme.css"> <link rel="stylesheet" href="/css/darktheme.css">
<% else %> <% else %>
<link rel="stylesheet" href="/css/lighttheme.css"> <link rel="stylesheet" href="/css/lighttheme.css">
<% end %> <% end %>
</head> </head>
<% locale = LOCALES[env.get("locale").as(String)]? %> <% locale = LOCALES[env.get("preferences").as(Preferences).locale]? %>
<body> <body>
<div class="pure-g"> <div class="pure-g">
<div class="pure-u-1 pure-u-md-2-24"></div> <div class="pure-u-1 pure-u-md-2-24"></div>
<div class="pure-u-1 pure-u-md-20-24"> <div class="pure-u-1 pure-u-md-20-24">
<div class="pure-g navbar h-box"> <div class="pure-g navbar h-box">
<div class="pure-u-1 pure-u-md-4-24"> <div class="pure-u-1 pure-u-md-4-24">
<a href="/" class="index-link pure-menu-heading">Invidious</a> <a href="/" class="index-link pure-menu-heading">Invidious</a>
</div> </div>
<div class="pure-u-1 pure-u-md-12-24 searchbar"> <div class="pure-u-1 pure-u-md-12-24 searchbar">
<form class="pure-form" action="/search" method="get"> <form class="pure-form" action="/search" method="get">
<fieldset> <fieldset>
<input type="search" style="width:100%;" name="q" placeholder="<%= translate(locale, "search") %>" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } || env.params.query["q"]?.try {|x| HTML.escape(x)} %>"> <input type="search" style="width:100%" name="q" placeholder="<%= translate(locale, "search") %>" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } || env.params.query["q"]?.try {|x| HTML.escape(x)} %>">
</fieldset> </fieldset>
</form> </form>
</div> </div>
<div class="pure-u-1 pure-u-md-8-24 user-field"> <div class="pure-u-1 pure-u-md-8-24 user-field">
<% if env.get? "user" %> <% if env.get? "user" %>
<div class="pure-u-1-4"> <div class="pure-u-1-4">
<a href="/toggle_theme?referer=<%= env.get?("current_page") %>" class="pure-menu-heading"> <a href="/toggle_theme?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
<% preferences = env.get("user").as(User).preferences %> <% if env.get("preferences").as(Preferences).dark_mode %>
<% if preferences.dark_mode %> <i class="icon ion-ios-sunny"></i>
<i class="icon ion-ios-sunny"></i> <% else %>
<% else %> <i class="icon ion-ios-moon"></i>
<i class="icon ion-ios-moon"></i> <% end %>
</a>
</div>
<div class="pure-u-1-4">
<a title="<%= translate(locale, "Subscriptions") %>" href="/feed/subscriptions" class="pure-menu-heading">
<% notification_count = env.get("user").as(User).notifications.size %>
<% if notification_count > 0 %>
<%= notification_count %> <i class="icon ion-ios-notifications"></i>
<% else %>
<i class="icon ion-ios-notifications-outline"></i>
<% end %>
</a>
</div>
<div class="pure-u-1-4">
<a title="<%= translate(locale, "Preferences") %>" href="/preferences?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
<i class="icon ion-ios-cog"></i>
</a>
</div>
<div class="pure-u-1-4">
<form action="/signout?referer=<%= env.get?("current_page") %>" method="post">
<input type="hidden" name="csrf_token" value="<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>">
<a class="pure-menu-heading" href="#">
<input style="all:unset" type="submit" value="<%= translate(locale, "Log out") %>">
</a>
</form>
</div>
<% else %>
<div class="pure-u-1-3">
<a href="/toggle_theme?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
<% if env.get("preferences").as(Preferences).dark_mode %>
<i class="icon ion-ios-sunny"></i>
<% else %>
<i class="icon ion-ios-moon"></i>
<% end %>
</a>
</div>
<div class="pure-u-1-3">
<a title="<%= translate(locale, "Preferences") %>" href="/preferences?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
<i class="icon ion-ios-cog"></i>
</a>
</div>
<% if config.login_enabled %>
<div class="pure-u-1-3">
<a href="/login?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
<%= translate(locale, "Log in") %>
</a>
</div>
<% end %>
<% end %>
</div>
</div>
<% if CONFIG.banner %>
<div class="h-box">
<h3><%= CONFIG.banner %></h3>
</div>
<% end %> <% end %>
</a>
<%= content %>
<div class="footer">
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-3">
<a href="https://github.com/omarroth/invidious">
<%= translate(locale, "Released under the AGPLv3 by Omar Roth.") %>
</a>
</div>
<div class="pure-u-1 pure-u-md-1-3">
<i class="icon ion-logo-bitcoin"></i>
BTC: 356DpZyMXu6rYd55Yqzjs29n79kGKWcYrY
</div>
<div class="pure-u-1 pure-u-md-1-3">
<i class="icon ion-logo-bitcoin"></i>
BCH: qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk
</div>
<div class="pure-u-1 pure-u-md-1-3">
<i class="icon ion-logo-usd"></i>
<a href="https://liberapay.com/omarroth">Liberapay</a>
/
<a href="https://patreon.com/omarroth">Patreon</a>
</div>
<div class="pure-u-1 pure-u-md-1-3">
<i class="icon ion-logo-javascript"></i>
<a rel="jslicense" href="/licenses">
<%= translate(locale, "View JavaScript license information.") %>
</a>
/
<i class="icon ion-ios-paper"></i>
<a href="/privacy">
<%= translate(locale, "View privacy policy.") %>
</a>
</div>
<div class="pure-u-1 pure-u-md-1-3">
<i class="icon ion-logo-github"></i>
<%= translate(locale, "Current version: ") %> <%= CURRENT_VERSION %>-<%= CURRENT_COMMIT %>
<i class="icon ion-logo-github"></i>
<%= CURRENT_BRANCH %>
</div>
</div>
</div>
</div> </div>
<div class="pure-u-1-4"> <div class="pure-u-1 pure-u-md-2-24"></div>
<a title="<%= translate(locale, "Subscriptions") %>" href="/feed/subscriptions" class="pure-menu-heading">
<% notification_count = env.get("user").as(User).notifications.size %>
<% if notification_count > 0 %>
<%= notification_count %> <i class="icon ion-ios-notifications"></i>
<% else %>
<i class="icon ion-ios-notifications-outline"></i>
<% end %>
</a>
</div>
<div class="pure-u-1-4">
<a title="<%= translate(locale, "Preferences") %>" href="/preferences?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
<i class="icon ion-ios-cog"></i>
</a>
</div>
<div class="pure-u-1-4">
<a href="/signout?referer=<%= env.get?("current_page") %>&token=<%= env.get?("token") %>&challenge=<%= env.get?("challenge") %>" class="pure-menu-heading">
<%= translate(locale, "Sign out") %>
</a>
</div>
<% else %>
<div class="pure-u-1-3">
<a href="/toggle_theme?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
<% if env.get?("preferences").try &.as(Preferences).dark_mode %>
<i class="icon ion-ios-sunny"></i>
<% else %>
<i class="icon ion-ios-moon"></i>
<% end %>
</a>
</div>
<div class="pure-u-1-3">
<a title="<%= translate(locale, "Preferences") %>" href="/preferences?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
<i class="icon ion-ios-cog"></i>
</a>
</div>
<% if config.login_enabled %>
<div class="pure-u-1-3">
<a href="/login?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
<%= translate(locale, "Login") %>
</a>
</div>
<% end %>
<% end %>
</div>
</div>
<%= content %>
<div class="footer">
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-3">
<a href="https://github.com/omarroth/invidious">
<%= translate(locale, "Released under the AGPLv3 by Omar Roth.") %>
</a>
</div>
<div class="pure-u-1 pure-u-md-1-3">
<i class="icon ion-logo-bitcoin"></i>
<%= translate(locale, "BTC: ") %>356DpZyMXu6rYd55Yqzjs29n79kGKWcYrY</div>
<div class="pure-u-1 pure-u-md-1-3">
<i class="icon ion-logo-bitcoin"></i>
<%= translate(locale, "BCH: ") %>qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk</div>
<div class="pure-u-1 pure-u-md-1-3">
<i class="icon ion-logo-usd"></i>
<a href="https://liberapay.com/omarroth"><%= translate(locale, "Liberapay") %></a>
/
<a href="https://patreon.com/omarroth"><%= translate(locale, "Patreon") %></a>
</div>
<div class="pure-u-1 pure-u-md-1-3">
<i class="icon ion-logo-javascript"></i>
<a rel="jslicense" href="/licenses">
<%= translate(locale, "View JavaScript license information.") %>
</a>
</div>
<div class="pure-u-1 pure-u-md-1-3">
<i class="icon ion-logo-github"></i>
<%= translate(locale, "Current version: ") %> <%= CURRENT_VERSION %>-<%= CURRENT_COMMIT %>
<i class="icon ion-logo-github"></i>
<%= CURRENT_BRANCH %></div>
</div>
</div>
</div> </div>
<div class="pure-u-1 pure-u-md-2-24"></div>
</div>
</body> </body>
</html> </html>

View File

@@ -0,0 +1,74 @@
<% content_for "header" do %>
<title><%= translate(locale, "Token manager") %> - Invidious</title>
<% end %>
<div class="pure-g h-box">
<div class="pure-u-1-3">
<h3>
<%= translate(locale, "`x` tokens", %(<span id="count">#{tokens.size}</span>)) %>
</h3>
</div>
<div class="pure-u-1-3"></div>
<div class="pure-u-1-3" style="text-align:right">
<h3>
<a href="/preferences?referer=<%= URI.escape(referer) %>"><%= translate(locale, "Preferences") %></a>
</h3>
</div>
</div>
<% tokens.each do |token| %>
<div class="h-box">
<div class="pure-g<% if token[:session] == sid %> deleted <% end %>">
<div class="pure-u-3-5">
<h4 style="padding-left:0.5em">
<code><%= token[:session] %></code>
</h4>
</div>
<div class="pure-u-1-5" style="text-align:center">
<h4><%= translate(locale, "`x` ago", recode_date(token[:issued], locale)) %></h4>
</div>
<div class="pure-u-1-5" style="text-align:right">
<h3 style="padding-right:0.5em">
<form onsubmit="return false" action="/token_ajax?action_revoke_token=1&session=<%= token[:session] %>&referer=<%= env.get("current_page") %>" method="post">
<input type="hidden" name="csrf_token" value="<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>">
<a onclick="revoke_token(this)" data-session="<%= token[:session] %>" href="#">
<input style="all:unset" type="submit" value="<%= translate(locale, "revoke") %>">
</a>
</form>
</h3>
</div>
</div>
<% if tokens[-1].try &.[:session]? != token[:session] %>
<hr>
<% end %>
</div>
<% end %>
<script>
function revoke_token(target) {
var row = target.parentNode.parentNode.parentNode.parentNode.parentNode;
row.style.display = 'none';
var count = document.getElementById('count');
count.innerText = count.innerText - 1;
var url = '/token_ajax?action_revoke_token=1&redirect=false' +
'&referer=<%= env.get("current_page") %>' +
'&session=' + target.getAttribute('data-session');
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=<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>');
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
if (xhr.status != 200) {
count.innerText = parseInt(count.innerText) + 1;
row.style.display = '';
}
}
}
}
</script>

Some files were not shown because too many files have changed in this diff Show More