379 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
Omar Roth
a65998274f Defer loading videojs-share until last 2019-03-05 15:22:04 -06:00
Omar Roth
b2f4a0276a Remove "lease_seconds" from pubsub response 2019-03-05 14:43:09 -06:00
Omar Roth
99d9c3a900 Fix rows for subscribe job 2019-03-05 14:41:38 -06:00
Omar Roth
e4dc430c74 Update hub topic URL 2019-03-05 13:46:08 -06:00
Omar Roth
1435516a9c Add port number to host URL 2019-03-05 12:56:59 -06:00
Omar Roth
2a1befb41a Fix sorting for latest_only 2019-03-05 07:17:29 -06:00
Omar Roth
2840d98fd4 Fix tagging for current version 2019-03-04 15:17:09 -06:00
Omar Roth
32b9c0c840 Fix tagging for current branch 2019-03-04 14:43:17 -06:00
dimqua
f16273772e (preferences) fix word wrap 2019-03-04 23:14:24 +03:00
Omar Roth
6375a62465 Clean up handling for callback endpoint 2019-03-04 11:07:27 -06:00
Omar Roth
aa63c3f70e Update formatting and default feed menu 2019-03-04 10:46:58 -06:00
Omar Roth
004fb96b2f Add nonce to pubsub token 2019-03-04 07:53:31 -06:00
Omar Roth
5895604282 Merge pull request #394 from tmiland/contrib
Add current branch to footer
2019-03-03 21:41:03 -06:00
Tommy Miland
a1af75a87f Update template.ecr
Add current branch to footer.
Add icons to footer.
2019-03-04 04:05:09 +01:00
Tommy Miland
732bd28c92 Update invidious.cr
Add current branch.
2019-03-04 04:04:26 +01:00
Omar Roth
90715467a2 Set default value for 'subscribed' date 2019-03-03 20:44:29 -06:00
Omar Roth
7425700009 Update pubsub to support lease_seconds 2019-03-03 20:40:24 -06:00
Omar Roth
8e884fe115 Fix webhook endpoints 2019-03-03 19:50:23 -06:00
Omar Roth
96c09450b8 Fix column name ucid in jobs 2019-03-03 19:45:05 -06:00
Omar Roth
64cfd2296c Add support for subscribing to channels via PubSubHubbub 2019-03-03 19:18:23 -06:00
Omar Roth
17cf0772fb Set domain to be nil by default 2019-03-03 12:02:15 -06:00
Omar Roth
66605196ad Remove "detect_language" from dependencies 2019-03-03 11:51:28 -06:00
Omar Roth
2c9b148627 Add 'playlists' tab to channel page 2019-03-03 10:56:04 -06:00
Omar Roth
07ef48a07a Add length_seconds to playlist on watch page 2019-03-03 10:55:49 -06:00
Omar Roth
03f94db5e2 Fix watch filtering from subscription feed when watch history is empty 2019-03-02 20:13:41 -06:00
Omar Roth
9b202adebd Remove <hr> from footer 2019-03-02 20:12:36 -06:00
Omar Roth
daf8e5b8b6 Remove array from usage statistics 2019-03-01 21:03:57 -06:00
Omar Roth
25bd27ef95 Merge weblate into master 2019-03-01 19:59:30 -06:00
Allan Nordhøy
dd41e4906c Update Norwegian Bokmål translation 2019-03-02 02:57:53 +01:00
Omar Roth
20660b92f8 Add missing text to locales 2019-03-01 19:57:28 -06:00
Omar Roth
f0cc7a925c Add 'lastChannelRefreshedAt' to /api/v1/stats 2019-03-01 19:55:07 -06:00
Omar Roth
057e69fe70 Update User-Agent and statistics schema 2019-03-01 19:39:10 -06:00
Omar Roth
4be82c5ca6 Add /api/v1/stats 2019-03-01 19:25:16 -06:00
Omar Roth
0eaf8f38a1 Add support for Basque translation 2019-03-01 19:24:53 -06:00
Omar Roth
f31af18aa9 Merge weblate into master 2019-03-01 17:18:03 -06:00
Omar Roth
5859cd290c Clean up footer and add version 2019-03-01 16:52:37 -06:00
Omar Roth
a39b1583da Add administrator preferences 2019-03-01 16:06:45 -06:00
dimqua
ac0eb9acaf Update Russian translation 2019-03-01 17:45:23 +01:00
Adam Zieliński
a0d9e46c33 Update Polish translation 2019-03-01 17:45:23 +01:00
beriain
573404d3ac Update Basque translation 2019-03-01 17:45:23 +01:00
Omar Roth
2fe545e19a Add content element to RSS feeds 2019-03-01 10:44:41 -06:00
Omar Roth
ea52c05f05 Fix escaping for video filenames 2019-02-28 21:29:01 -06:00
Omar Roth
2a643e86bc Update dockerfile 2019-02-28 13:49:29 -06:00
Omar Roth
cc76428cd2 Update README 2019-02-28 13:28:02 -06:00
Omar Roth
7ffc3a0652 Set updated for deleted channels 2019-02-27 17:31:17 -06:00
Omar Roth
51df0860cc Update dependencies 2019-02-27 16:52:37 -06:00
Omar Roth
e4f397d049 Fix RSS thumbnails 2019-02-27 16:18:47 -06:00
Omar Roth
0c8dff162d Fix embed extractor for age-gated videos 2019-02-27 15:15:24 -06:00
Omar Roth
4865529fed Create views if they don't exist 2019-02-27 09:10:28 -06:00
Omar Roth
0a404cc9a6 Add fix for missing param in "/videoplayback" 2019-02-27 08:16:58 -06:00
Omar Roth
17b84f32df Fix duration in /api/v1/search 2019-02-26 14:31:37 -06:00
Omar Roth
a03958d937 Add -webkit-appearance to default.css 2019-02-26 12:21:19 -06:00
Omar Roth
27cd1e73f3 Fix feed menu on mobile 2019-02-26 09:23:16 -06:00
Omar Roth
d6bd893573 Add fix for missing hash keys 2019-02-26 08:12:56 -06:00
Omar Roth
7a7049b25b Escape video titles in download widget 2019-02-25 17:54:55 -06:00
Omar Roth
62ff9605ce Extract format streams from player response 2019-02-25 17:28:35 -06:00
Omar Roth
2847c34f58 Bump version 2019-02-25 12:16:13 -06:00
Omar Roth
b5a00f3c47 Remove duplicate information from autogenerated channel page 2019-02-25 09:52:44 -06:00
Omar Roth
09d0972ab4 Pull dash URL from player response 2019-02-25 09:11:41 -06:00
Omar Roth
6b12449be4 Show playlists for auto-generated channels 2019-02-24 16:39:44 -06:00
Omar Roth
955b36913f Add fix for spaces in content-disposition 2019-02-24 16:19:31 -06:00
Omar Roth
7e6cf7b979 Add title text for icons 2019-02-24 16:19:31 -06:00
Omar Roth
b82ae5e84a Merge pull request #380 from GauthierPLM/french-translation-update
Update translation & correct typos
2019-02-24 12:29:24 -06:00
Omar Roth
c5a17cd043 Add subscriptions to feed menu 2019-02-24 11:53:10 -06:00
Omar Roth
1692f7640c Remove JS from download widget 2019-02-24 11:04:46 -06:00
Omar Roth
ebcb21dbfe Allow user to save preferences without creating an account 2019-02-24 09:49:48 -06:00
Gauthier POGAM--LE MONTAGNER
b6d12cfb11 Update translation & correct typos 2019-02-24 15:24:53 +01:00
Omar Roth
7f75a7ca0b Add support for changing signature param 2019-02-22 20:36:16 -06:00
Omar Roth
bdc9196b4a Escape email when creating feed for Google account 2019-02-22 20:35:37 -06:00
Omar Roth
a283c3143d Adjust size of player 2019-02-21 18:17:02 -06:00
Omar Roth
57635c0d24 Add scroll to control bar when it's possible to overflow 2019-02-21 18:13:40 -06:00
Omar Roth
7ed4485717 Format CSS 2019-02-21 17:43:49 -06:00
Omar Roth
394952a86a Revert "Fix control bar overflow on mobile"
This reverts commit e25249ce4d.
2019-02-21 16:20:58 -06:00
Omar Roth
85854cac77 Add support for custom channel URLs 2019-02-21 15:07:22 -06:00
Omar Roth
5bf3c28436 Add better indicator for livestreams 2019-02-21 14:19:05 -06:00
Omar Roth
e25249ce4d Fix control bar overflow on mobile 2019-02-21 14:01:12 -06:00
Omar Roth
40073e7089 Fix sorting options for /feed/private 2019-02-21 14:01:12 -06:00
eutampieri
0e141f21e8 Applied suggestions from WebLate (#375)
* Applied suggestions from WebLate
2019-02-21 13:34:40 -06:00
Omar Roth
9a1f4de323 Convert intervals to integers 2019-02-20 09:37:33 -06:00
Omar Roth
83493237a5 Add support for translating time intervals 2019-02-20 08:49:54 -06:00
Omar Roth
fb14d9c134 Merge pull request #372 from eutampieri/it-locale
Fixed some localisation
2019-02-20 08:32:58 -06:00
eutampieri
63fca853d0 Fixed some localisation
Yesterday I was tired so I missed a few strings
2019-02-20 15:01:43 +01:00
Omar Roth
f647f7bdea Clear session ids when deleting an account 2019-02-19 18:26:33 -06:00
Allan Nordhøy
06076c683f Update Norwegian Bokmål translation 2019-02-20 00:46:42 +01:00
Omar Roth
6b61eefca7 Add support for Italian locale 2019-02-19 17:46:31 -06:00
Omar Roth
985dd65b83 Merge pull request #368 from eutampieri/it-locale
Create it.json
2019-02-19 17:44:44 -06:00
Omar Roth
f26ad00155 Add /api/v1/channels/playlists/:ucid 2019-02-19 17:05:27 -06:00
Omar Roth
a210327318 Add /api/v1/channels/latest/:ucid 2019-02-19 17:00:06 -06:00
eutampieri
5ae76bfe6c Create it.json 2019-02-19 22:15:22 +01:00
Omar Roth
58fb74179b Add fix for videos that don't have videoDetails 2019-02-19 13:54:14 -06:00
Omar Roth
92223dbee5 Fix channel RSS feed 2019-02-18 16:06:00 -06:00
Omar Roth
1ceb827a82 Check deleted channels 2019-02-18 15:44:15 -06:00
Omar Roth
f85472c0ce Fix extracting for mixes provided by YouTube Music 2019-02-18 11:43:57 -06:00
Omar Roth
4933cd46d7 Fix sorting of subscriptions with 'latest_only' 2019-02-18 11:29:57 -06:00
Omar Roth
421ad21b40 Speed up filtering watched videos from feed 2019-02-17 19:53:42 -06:00
Omar Roth
6cea83991c Format and update locales 2019-02-16 17:56:49 -06:00
Agustin Ferrari
b04a2d4f61 Just a couple of adjustments (#350)
* Added icons tooltips in local/en-US.json, corrected link tooltip to switch to video mode and changed heart symbol by icon in comments
2019-02-16 17:46:04 -06:00
Omar Roth
f8467fcda6 Fix locale text for "Show replies" 2019-02-16 14:26:08 -06:00
Omar Roth
9f00dba0cb Merge pull request #353 from Perflyst/347-screenshots
Add screenshots
2019-02-16 13:50:55 -06:00
Omar Roth
6a8a49d8ef Merge branch 'master' into 347-screenshots 2019-02-16 09:57:09 -06:00
Omar Roth
7e2954c325 Format README and optimize screenshots 2019-02-16 09:55:45 -06:00
Perflyst
da21d33d96 Merge pull request #1 from dimqua/347-screenshots
Add new screenshots
2019-02-16 12:21:12 +01:00
Omar Roth
27663b10a2 Add minor API fixes 2019-02-15 17:28:54 -06:00
Omar Roth
c099a5ad2e Speed up manage_subscriptions 2019-02-15 17:13:52 -06:00
dimqua
a4c05deb21 Add new screenshots 2019-02-15 00:22:28 +03:00
dimqua
9df77707d3 Update Russian translation 2019-02-12 22:06:51 +01:00
Omar Roth
ceea6e4597 Escape subscribe text 2019-02-12 14:59:26 -06:00
TheFrenchGhosty
b5b0599222 French Translation - By a French (#363)
* French Translation
2019-02-12 14:46:47 -06:00
Omar Roth
94152c4d17 Merge pull request #355 from dimqua/patch-3
Add MusicPiped
2019-02-12 00:33:02 -06:00
Omar Roth
f02b5e8c4d Run 'crystal tool format' 2019-02-11 20:52:47 -06:00
Omar Roth
f1820ffaf7 Add fix for user array 2019-02-11 20:47:26 -06:00
Omar Roth
52cad8d6da Update change index for channel_videos and add index for nonces 2019-02-11 10:59:17 -06:00
Omar Roth
1590393fcc Don't try to update channels in subscription manager 2019-02-11 10:52:28 -06:00
Omar Roth
64f13df99b Update README 2019-02-11 10:20:55 -06:00
Avizini
45cdb81861 fix issues page url (#352)
* fix issues page url
2019-02-11 09:18:40 -06:00
Omar Roth
ff563a70a5 Fix typo in session_ids 2019-02-10 15:08:53 -06:00
dimqua
84a5edf0eb Add MusicPiped 2019-02-11 00:06:44 +03:00
Omar Roth
5528a130b6 Mark migrate-db-3646395.sh as executable 2019-02-10 13:50:17 -06:00
Omar Roth
a384f6e5fd Add migrate script and update README 2019-02-10 12:46:58 -06:00
Omar Roth
3646395f1d Store session_ids in separate table 2019-02-10 12:33:29 -06:00
Omar Roth
8bbf351d04 Fix challenge switching for Google login 2019-02-10 12:27:33 -06:00
Perflyst
dde0292e1c Add screenshots to README.md 2019-02-10 14:44:40 +01:00
Perflyst
ff1212a188 Add screenshots 2019-02-10 14:23:28 +01:00
Omar Roth
27934dad37 Add region to latest_version 2019-02-09 12:28:43 -06:00
Omar Roth
0d509c82ee Rename migrate-db-e1aa1ce.sh to migrate-db-30e6d29.sh 2019-02-09 12:10:20 -06:00
Omar Roth
30e6d29106 Add 'deleted' to channel info 2019-02-09 10:49:48 -06:00
Omar Roth
7a9ef0d664 Add produce_channel_playlists_url 2019-02-09 10:15:14 -06:00
Omar Roth
3cce74d364 Add feed menu to popular, top, and trending 2019-02-08 10:34:32 -06:00
Omar Roth
9698988be3 Filter video streams to avoid duplicates in DASH player 2019-02-08 09:49:40 -06:00
Omar Roth
29af5fc4a6 Prune proxy list 2019-02-06 21:29:31 -06:00
Omar Roth
a7b79824de Add support for 'region' in search 2019-02-06 18:21:40 -06:00
Omar Roth
d625d0ffbd Use get_video for pulling comment token 2019-02-06 17:55:22 -06:00
Omar Roth
1dcfa90c8e Update version and bump changelog 2019-02-06 17:50:04 -06:00
Omar Roth
8170dad9bd Simplify video extractor 2019-02-06 16:12:11 -06:00
115 changed files with 12252 additions and 8552 deletions

View File

@@ -1,3 +1,260 @@
# 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)
## Version 0.14.0: Community
This last month several contributors have made improvements specifically for the people using this project. New pages have been added to the wiki, and there is now a [Matrix Server](https://riot.im/app/#/room/#invidious:matrix.org) and IRC channel so it's easier and faster for people to ask questions or chat. There have been [101 commits](https://github.com/omarroth/invidious/compare/0.13.0...0.14.0) since the last major release from 8 contributors.
It has come to my attention in the past month how many people are self-hosting, and I would like to make it easier for them to do so.
With that in mind, expect future releases to have a section for For Administrators (if any relevant changes) and For Developers (if any relevant changes).
## For Administrators
This month the most notable change for administrators is releases. As always, there will be a major release each month. However, a new minor release will be made whenever there are any critical bugs that need to be fixed.
This past month is the first time there has been a minor release - `0.13.1` - which fixes a breaking change made by YouTube. Administrators using versioning for their instances will be able to rely on the latest version, and should have a system in place to upgrade their instance as soon as a new release is available.
Several new pages have been added to the [wiki](https://github.com/omarroth/invidious/wiki#for-administrators) (as mentioned below) that will help administrators better setup their own instances. Configuration, maintenance, and instructions for updating are of note, as well as several common issues that are encountered when first setting up.
## For Developers
There's now a `pretty=1` parameter for most endpoints so you can view data easily from the browser, which is convenient for debugging and casual use. You can see an example [here](https://invidio.us/api/v1/videos/CvFH_6DNRCY?pretty=1).
Unfortunately the `/api/v1/insights/:id` endpoint is no longer functional, as YouTube removed all publicly available analytics around a month ago. The YouTube endpoint now returns a 404, so it's unlikely it will be functional again.
## Wiki
There have been a sizable number of changes to the Wiki, including a [list of public Invidious instances](https://github.com/omarroth/invidious/wiki/Invidious-Instances), the [list of extensions](https://github.com/omarroth/invidious/wiki/Extensions), and documentation for administrators (as mentioned above) and developers.
The wiki is editable by anyone so feel free to add anything you think is useful.
## Matrix & IRC
Thee is now a [Matrix Server](https://riot.im/app/#/room/#invidious:matrix.org) for Invidious, so please feel free to hop on if you have any questions or want to chat. There is also a registered IRC channel: #invidious on Freenode which is bridged to Matrix.
## Features
Several new features have been added, including a download button, creator hearts and comment colors, and a French translation.
There have been fixes for Google logins, missing text in locales, invalid links to genre channels, and better error handling in the player, among others.
Several fixes and features are omitted for space, so I'd recommend taking a look at the [compare tab](https://github.com/omarroth/invidious/compare/0.13.0...0.14.0) for more information.
## Annotations Update
Annotations were removed January 15th, 2019 around15:00 UTC. Before they were deleted we were able to archive annotations from around 1.4 billion videos. I'd very much recommend taking a look [here](https://www.reddit.com/r/DataHoarder/comments/al7exa/youtube_annotation_archive_update_and_preview/) for more information and a list of acknowledgements. I'm extremely thankful to everyone who was able to contribute and I'm glad we were able to save such a large part of internet history.
There's been large strides in supporting them in the player as well, which you can follow in [#303](https://github.com/omarroth/invidious/pull/303). You can preview the functionality at https://dev.invidio.us . Before they are added to the main site expect to see an option to disable them, both site-wide and per video.
Organizing this project has unfortunately taken up quite a bit of my time, and I've been very grateful for everyone's patience.
## Finances
### Donations
- [Patreon](https://www.patreon.com/omarroth) : \$49.42
- [Liberapay](https://liberapay.com/omarroth) : \$27.89
- Crypto : ~\$0.00 (converted from BCH, BTC)
- Total : \$77.31
### 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
As always I'm grateful for everyone's contributions and support. I'll see you all in March.
# 0.13.1 (2019-01-19)
##
# 0.13.0 (2019-01-06) # 0.13.0 (2019-01-06)
## Version 0.13.0: Translations, Annotations, and Tor ## Version 0.13.0: Translations, Annotations, and Tor

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)
@@ -34,8 +34,17 @@ Onion links:
[Alternative Invidious instances](https://github.com/omarroth/invidious/wiki/Invidious-Instances) [Alternative Invidious instances](https://github.com/omarroth/invidious/wiki/Invidious-Instances)
## Screenshots
| Player | Preferences | Subscriptions |
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| [<img src="screenshots/01_player.png?raw=true" height="140" width="280">](screenshots/01_player.png?raw=true) | [<img src="screenshots/02_preferences.png?raw=true" height="140" width="280">](screenshots/02_preferences.png?raw=true) | [<img src="screenshots/03_subscriptions.png?raw=true" height="140" width="280">](screenshots/03_subscriptions.png?raw=true) |
| [<img src="screenshots/04_description.png?raw=true" height="140" width="280">](screenshots/04_description.png?raw=true) | [<img src="screenshots/05_preferences.png?raw=true" height="140" width="280">](screenshots/05_preferences.png?raw=true) | [<img src="screenshots/06_subscriptions.png?raw=true" height="140" width="280">](screenshots/06_subscriptions.png?raw=true) |
## Installation ## Installation
See [Invidious-Updater](https://github.com/tmiland/Invidious-Updater) for a self-contained script that can automatically install and update Invidious.
### Docker: ### Docker:
#### Build and start cluster: #### Build and start cluster:
@@ -92,13 +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/nonces.sql $ psql invidious kemal < /home/invidious/invidious/config/sql/session_ids.sql
$ psql invidious kemal < /home/invidious/invidious/config/sql/nonces.sql
$ psql invidious kemal < /home/invidious/invidious/config/sql/annotations.sql
$ exit $ exit
``` ```
@@ -107,7 +118,7 @@ $ exit
```bash ```bash
$ sudo -i -u invidious $ sudo -i -u invidious
$ cd invidious $ cd invidious
$ shards $ shards update && shards install
$ crystal build src/invidious.cr --release $ crystal build src/invidious.cr --release
# test compiled binary # test compiled binary
$ ./invidious # stop with ctrl c $ ./invidious # stop with ctrl c
@@ -115,6 +126,7 @@ $ exit
``` ```
#### systemd service #### systemd service
```bash ```bash
$ sudo cp /home/invidious/invidious/invidious.service /etc/systemd/system/invidious.service $ sudo cp /home/invidious/invidious/invidious.service /etc/systemd/system/invidious.service
$ sudo systemctl enable invidious.service $ sudo systemctl enable invidious.service
@@ -132,21 +144,24 @@ $ 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/nonces.sql $ psql invidious kemal < config/sql/session_ids.sql
$ psql invidious kemal < config/sql/nonces.sql
$ psql invidious kemal < config/sql/annotations.sql
# Setup Invidious # Setup Invidious
$ shards $ shards update && shards install
$ crystal build src/invidious.cr --release $ crystal build src/invidious.cr --release
``` ```
## Update Invidious ## Update Invidious
You can find information about how to update in the wiki: [Updating](https://github.com/omarroth/invidious/wiki/Updating).
You can see how to update Invidious [here](https://github.com/omarroth/invidious/wiki/Updating).
## Usage: ## Usage:
@@ -159,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:
@@ -175,19 +187,23 @@ 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
[Documentation](https://github.com/omarroth/invidious/wiki) can be found in the wiki. [Documentation](https://github.com/omarroth/invidious/wiki) can be found in the wiki.
## Extensions ## Extensions
Extensions for Invidious and for integrating Invidious into other projects [are in the wiki](https://github.com/omarroth/invidious/wiki/Extensions)
[Extensions](https://github.com/omarroth/invidious/wiki/Extensions) can be found in the wiki, as well as documentation for integrating it into other projects.
## Made with Invidious ## Made with Invidious
- [FreeTube](https://github.com/FreeTubeApp/FreeTube): An Open Source YouTube app for privacy. - [FreeTube](https://github.com/FreeTubeApp/FreeTube): An Open Source YouTube app for privacy.
- [CloudTube](https://github.com/cloudrac3r/cadencegq): Website featuring pastebin, image host, and YouTube player - [CloudTube](https://github.com/cloudrac3r/cadencegq): Website featuring pastebin, image host, and YouTube player
- [PeerTubeify](https://gitlab.com/Ealhad/peertubeify): On YouTube, displays a link to the same video on PeerTube, if it exists. - [PeerTubeify](https://gitlab.com/Ealhad/peertubeify): On YouTube, displays a link to the same video on PeerTube, if it exists.
- [MusicPiped](https://github.com/deep-gaurav/MusicPiped): A materialistic music player that streams music from YouTube.
## Contributing ## Contributing

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,41 +1,45 @@
.deleted {
background-color: rgb(255, 0, 0, 0.5);
}
.channel-owner { .channel-owner {
background-color: #008BEC; background-color: #008bec;
color: #fff; color: #fff;
border-radius: 9px; border-radius: 9px;
padding: 1px 6px; padding: 1px 6px;
} }
.creator-heart-container { .creator-heart-container {
display: inline-block; display: inline-block;
padding: 0px 7px 6px 0px; padding: 0px 7px 6px 0px;
margin: 0px -7px -4px 0px; margin: 0px -7px -4px 0px;
} }
.creator-heart { .creator-heart {
position: relative; position: relative;
width: 16px; width: 16px;
height: 16px; height: 16px;
border: 2px none; border: 2px none;
} }
.creator-heart-background-hearted { .creator-heart-background-hearted {
width: 16px; width: 16px;
height: 16px; height: 16px;
padding: 0px; padding: 0px;
position: relative; position: relative;
} }
.creator-heart-small-hearted { .creator-heart-small-hearted {
position: absolute; position: absolute;
right: -7px; right: -7px;
bottom: -4px; bottom: -4px;
} }
.creator-heart-small-container { .creator-heart-small-container {
position: relative; position: relative;
width: 13px; width: 13px;
height: 13px; height: 13px;
color: rgb(255, 0, 0); color: rgb(255, 0, 0);
} }
.h-box { .h-box {
@@ -54,6 +58,7 @@ div {
} }
.loading { .loading {
display: inline-block;
animation: spin 2s linear infinite; animation: spin 2s linear infinite;
} }
@@ -63,7 +68,8 @@ div {
} }
button.pure-button-primary, button.pure-button-primary,
a.pure-button-primary, .channel-owner:hover { a.pure-button-primary,
.channel-owner:hover {
background-color: #a0a0a0; background-color: #a0a0a0;
color: rgba(35, 35, 35, 1); color: rgba(35, 35, 35, 1);
} }
@@ -75,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;
} }
@@ -93,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 {
@@ -149,6 +159,16 @@ img.thumbnail {
box-shadow: none; box-shadow: none;
transition: 0.1s border-bottom; transition: 0.1s border-bottom;
-webkit-appearance: none;
}
/* https://stackoverflow.com/a/55170420 */
input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
height: 14px;
width: 14px;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC);
background-size: 14px;
} }
.navbar > .searchbar .pure-form fieldset { .navbar > .searchbar .pure-form fieldset {
@@ -175,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;
@@ -201,7 +231,7 @@ img.thumbnail {
} }
} }
/* /*
* Footer * Footer
*/ */
@@ -228,6 +258,53 @@ img.thumbnail {
} }
/* Control Bar */ /* Control Bar */
@media screen and (max-width: 480px) {
.video-js .vjs-control-bar,
.vjs-menu-button-popup .vjs-menu .vjs-menu-content {
overflow: -webkit-paged-x;
}
}
.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);
@@ -295,34 +372,21 @@ img.thumbnail {
object-fit: cover; object-fit: cover;
} }
#player { .player-dimensions.vjs-fluid {
padding-top: 82vh;
}
video.video-js {
position: absolute; position: absolute;
left: 0;
top: 0;
height: 100%; height: 100%;
} }
#player-container { #player-container {
position: relative; position: relative;
padding-bottom: 55.25%; padding-bottom: 82vh;
margin-left: 2em;
margin-right: 2em;
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

@@ -1,9 +1,16 @@
a:hover, a:hover,
a:active { a:active {
color: #167ac6; color: #167ac6 !important;
} }
a { a {
color: #61809b; color: #61809b;
text-decoration: none; text-decoration: none;
} }
/* All links that do not fit with the default color goes here */
a:not([data-id]) > .icon,
.pure-u-lg-1-5 > .h-box > a[href^="/watch?"],
.playlist-restricted > ol > li > a {
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,106 +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) { 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 = "Hide replies"; target.innerHTML = inner_text;
target.setAttribute("onclick", "hide_youtube_replies(this)"); target.setAttribute("onclick", "hide_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')");
} }
function hide_youtube_replies(target) { 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 = "Show replies"; target.innerHTML = sub_text;
target.setAttribute("onclick", "show_youtube_replies(this)"); target.setAttribute("onclick", "show_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')");
} }
function download_video(target) {
var title = target.getAttribute("data-title");
var children = document.getElementById("download_widget").children;
var progress = document.getElementById("download-progress");
var url = "";
document.getElementById("progress-container").style.display = "";
for (i = 0; i < children.length; i++) {
if (children[i].selected) {
url = children[i].getAttribute("data-url");
}
}
var xhr = new XMLHttpRequest();
xhr.open("GET", url);
xhr.responseType = "arraybuffer";
xhr.onprogress = function(event) {
if (event.lengthComputable) {
progress.style.width = "" + (event.loaded / event.total)*100 + "%";
}
};
xhr.onload = function(event) {
if (event.currentTarget.status != 200) {
console.log("Downloading " + title + " failed.")
document.getElementById("progress-container").style.display = "none";
progress.style.width = "0%";
return;
}
var data = new Blob([xhr.response], {'type' : 'video/mp4'});
var videoFile = window.URL.createObjectURL(data);
var link = document.createElement('a');
link.href = videoFile;
link.setAttribute('download', title);
document.body.appendChild(link);
window.requestAnimationFrame(function() {
var event = new MouseEvent('click');
link.dispatchEvent(event);
document.body.removeChild(link);
});
document.getElementById("progress-container").style.display = "none";
progress.style.width = "0%";
};
xhr.send(null);
}

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:
@@ -10,4 +8,4 @@ db:
dbname: invidious dbname: invidious
full_refresh: false full_refresh: false
https_only: false https_only: false
domain: invidio.us domain:

View File

@@ -0,0 +1,4 @@
#!/bin/sh
psql invidious kemal -c "ALTER TABLE channels ADD COLUMN subscribed bool;"
psql invidious kemal -c "UPDATE channels SET subscribed = false;"

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

@@ -0,0 +1,4 @@
#!/bin/sh
psql invidious kemal -c "ALTER TABLE channels ADD COLUMN deleted bool;"
psql invidious kemal -c "UPDATE channels SET deleted = false;"

View File

@@ -0,0 +1,5 @@
#!/bin/sh
psql invidious < config/sql/session_ids.sql
psql invidious kemal -c "INSERT INTO session_ids (SELECT unnest(id), email, CURRENT_TIMESTAMP FROM users) ON CONFLICT (id) DO NOTHING"
psql invidious kemal -c "ALTER TABLE users DROP COLUMN id"

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

@@ -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,26 +11,19 @@ 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;
CREATE INDEX channel_videos_ucid_idx CREATE INDEX channel_videos_ucid_idx
ON public.channel_videos ON public.channel_videos
USING hash USING btree
(ucid COLLATE pg_catalog."default"); (ucid COLLATE pg_catalog."default");

View File

@@ -7,6 +7,8 @@ CREATE TABLE public.channels
id text NOT NULL, id text NOT NULL,
author text, author text,
updated timestamp with time zone, updated timestamp with time zone,
deleted boolean,
subscribed timestamp with time zone,
CONSTRAINT channels_id_key UNIQUE (id) CONSTRAINT channels_id_key UNIQUE (id)
); );

View File

@@ -5,10 +5,18 @@
CREATE TABLE public.nonces CREATE TABLE public.nonces
( (
nonce text, nonce text,
expire timestamp with time zone expire timestamp with time zone,
) CONSTRAINT nonces_id_key UNIQUE (nonce)
WITH (
OIDS=FALSE
); );
GRANT ALL ON TABLE public.nonces TO kemal; GRANT ALL ON TABLE public.nonces TO kemal;
-- Index: public.nonces_nonce_idx
-- DROP INDEX public.nonces_nonce_idx;
CREATE INDEX nonces_nonce_idx
ON public.nonces
USING btree
(nonce COLLATE pg_catalog."default");

View File

@@ -0,0 +1,23 @@
-- Table: public.session_ids
-- DROP TABLE public.session_ids;
CREATE TABLE public.session_ids
(
id text NOT NULL,
email text,
issued timestamp with time zone,
CONSTRAINT session_ids_pkey PRIMARY KEY (id)
);
GRANT ALL ON TABLE public.session_ids TO kemal;
-- Index: public.session_ids_id_idx
-- DROP INDEX public.session_ids_id_idx;
CREATE INDEX session_ids_id_idx
ON public.session_ids
USING btree
(id COLLATE pg_catalog."default");

View File

@@ -4,7 +4,6 @@
CREATE TABLE public.users CREATE TABLE public.users
( (
id text[] NOT NULL,
updated timestamp with time zone, updated timestamp with time zone,
notifications text[], notifications text[],
subscriptions text[], subscriptions text[],

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
@@ -9,7 +9,7 @@ ADD . /invidious
WORKDIR /invidious WORKDIR /invidious
RUN sed -i 's/host: localhost/host: postgres/' config/config.yml && \ RUN sed -i 's/host: localhost/host: postgres/' config/config.yml && \
shards && \ shards update && shards install && \
crystal build src/invidious.cr crystal build src/invidious.cr
CMD [ "/invidious/invidious" ] CMD [ "/invidious/invidious" ]

View File

@@ -12,11 +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/nonces.sql' su postgres -c 'psql invidious kemal < config/sql/session_ids.sql'
su postgres -c 'psql invidious kemal < config/sql/nonces.sql'
su postgres -c 'psql invidious kemal < config/sql/annotations.sql'
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,284 +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: ": "فقط اظهر اخر فيديو لم يتم رؤيتة من القناة: ",
"Save preferences": "حفظ التفضيلات", "Only show unwatched: ": "فقط اظهر الذى لم يتم رؤيتة: ",
"Subscription manager": "مدير الإشتراكات", "Only show notifications (if there are any): ": "إظهار الإشعارات فقط (إذا كان هناك أي): ",
"`x` subscriptions": "`x` مشتركين", "Data preferences": "إعدادات التفضيلات",
"Import/Export": "إضافة\\إستخراج", "Clear watch history": "حذف سجل المشاهدة",
"unsubscribe": "إلغاء الإشتراك", "Import/export data": "إضافة\\إستخراج البيانات",
"Subscriptions": "الإشتراكات", "Change password": "غير الرقم السرى",
"`x` unseen notifications": "`x` إشعارات لم تشاهدها بعد ", "Manage subscriptions": "إدارة المشتركين",
"search": "بحث", "Manage tokens": "إدارة الرموز",
"Sign out": "تسجيل الخروج", "Watch history": "سجل المشاهدة",
"Released under the AGPLv3 by Omar Roth.": "تم الإنشاء تحت AGPLv3 بواسطة عمر روث.", "Delete account": "حذف الحساب",
"Source available here.": "الأكواد متوفرة هنا.", "Administrator preferences": "إعدادات المدير",
"Liberapay: ": "ليبرباى: ", "Default homepage: ": "الصفحة الرئيسية الافتراضية ",
"Patreon: ": "باتريون: ", "Feed menu: ": "قائمة التغذية",
"BTC: ": "بيتكوين: ", "Top enabled? ": "تفعيل 'الأفضل' ؟ ",
"BCH: ": "بيتكوين كاش: ", "CAPTCHA enabled? ": "تفعيل الكابتشا ؟",
"View JavaScript license information.": "مشاهدة معلومات حول تراخيص الجافاسكريبت.", "Login enabled? ": "تفعيل تسجيل الدخول ؟",
"Trending": "الشائع", "Registration enabled? ": "تفعيل التسجيل ؟",
"Watch video on Youtube": "مشاهدة الفيديو على اليوتيوب", "Report statistics? ": "إبلاغ الإحصائيات",
"Genre: ": "النوع: ", "Save preferences": "حفظ التفضيلات",
"License: ": "التراخيص: ", "Subscription manager": "مدير الإشتراكات",
"Family friendly? ": "محتوى عائلى? ", "Token manager": "إداره الرمز",
"Wilson score: ": "درجة ويلسون: ", "Token": "الرمز",
"Engagement: ": "نسبة المشاركة (عدد المشاهدات\\عدد الإعجابات): ", "`x` subscriptions": "`x` مشتركين",
"Whitelisted regions: ": "الدول المسموح فيها هذا الفيديو: ", "`x` tokens": "`x` رموز",
"Blacklisted regions: ": "الدول الحظور فيها هذا الفيديو: ", "Import/export": "إضافة\\إستخراج",
"Shared `x`": "شارك منذ `x`", "unsubscribe": "إلغاء الإشتراك",
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "اهلا! يبدو ان الجافاسكريبت معطلة. اضغط هنا لعرض التعليقات, ضع فى إعتبارك انها ستأخذ وقت اطول للعرض.", "revoke": "مسح",
"View YouTube comments": "عرض تعليقات اليوتيوب", "Subscriptions": "الإشتراكات",
"View more comments on Reddit": "عرض المزيد من التعليقات على\\من موقع Reddit", "`x` unseen notifications": "`x` إشعارات لم تشاهدها بعد ",
"View `x` comments": "عرض `x` تعليقات", "search": "بحث",
"View Reddit comments": "عرض تعليقات ريدإت Reddit", "Log out": "تسجيل الخروج",
"Hide replies": "إخفاء الردود", "Released under the AGPLv3 by Omar Roth.": "تم الإنشاء تحت AGPLv3 بواسطة عمر روث.",
"Show replies": "عرض الردود", "Source available here.": "الأكواد متوفرة هنا.",
"Incorrect password": "الرقم السرى غير صحيح", "View JavaScript license information.": "مشاهدة معلومات حول تراخيص الجافاسكريبت.",
"Quota exceeded, try again in a few hours": "تم تجاوز عدد المرات المسموح بها, حاول مرة اخرى بعد عدة ساعات", "View privacy policy.": "عرض سياسة الخصوصية",
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "غير قادر على تسجيل الدخول, تأكد من تشغيل المصادقة الثنائية 2FA.", "Trending": "الشائع",
"Invalid TFA code": "كود مصادقة ثنائية 2FA غير صحيح", "Unlisted": "غير مصنف",
"Login failed. This may be because two-factor authentication is not enabled on your account.": "لم يتم تسجيل الدخول. هذا ربما بسبب ان المصادقة الثنائية 2FA معطلة فى حسابك.", "Watch on YouTube": "مشاهدة الفيديو على اليوتيوب",
"Invalid answer": "إجابة خاطئة", "Hide annotations": "",
"Invalid CAPTCHA": "الكابتشا CAPTCHA غير صاحلة", "Show annotations": "",
"CAPTCHA is a required field": "مكان الكابتشا CAPTCHA مطلوب", "Genre: ": "النوع: ",
"User ID is a required field": "مكان إسم المستخدم مطلوب", "License: ": "التراخيص: ",
"Password is a required field": "مكان الرقم السرى مطلوب", "Family friendly? ": "محتوى عائلى? ",
"Invalid username or password": "إسم المستخدم او الرقم السرى غير صحيح", "Wilson score: ": "درجة ويلسون: ",
"Please sign in using 'Sign in with Google'": "الرجاء تسجيل الدخول 'تسجيل الدخول بواسطة جوجل'", "Engagement: ": "نسبة المشاركة (عدد المشاهدات\\عدد الإعجابات): ",
"Password cannot be empty": "الرقم السرى لايمكن ان يكون فارغ", "Whitelisted regions: ": "الدول المسموح فيها هذا الفيديو: ",
"Password cannot be longer than 55 characters": "الرقم السرى لا يتعدى 55 حرف", "Blacklisted regions: ": "الدول الحظور فيها هذا الفيديو: ",
"Please sign in": "الرجاء تسجيل الدخول", "Shared `x`": "شارك منذ `x`",
"Invidious Private Feed for `x`": "صفحة Invidious للمشتركين الخاصة\\مخفية لـ `x`", "`x` views": "`x` مشاهدون",
"channel:`x`": "قناة:`x`", "Premieres in `x`": "يعرض فى `x`",
"Deleted or invalid channel": "قناة ممسوحة او غير صالحة", "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "اهلا! يبدو ان الجافاسكريبت معطلة. اضغط هنا لعرض التعليقات, ضع فى إعتبارك انها ستأخذ وقت اطول للعرض.",
"This channel does not exist.": "القناة غير موجودة.", "View YouTube comments": "عرض تعليقات اليوتيوب",
"Could not get channel info.": "لم يستطع الحصول على معلومات القناة.", "View more comments on Reddit": "عرض المزيد من التعليقات على\\من موقع Reddit",
"Could not fetch comments": "لم يتمكن من إحضار التعليقات", "View `x` comments": "عرض `x` تعليقات",
"View `x` replies": "عرض `x` ردود", "View Reddit comments": "عرض تعليقات ريدإت Reddit",
"`x` ago": "`x` منذ", "Hide replies": "إخفاء الردود",
"Load more": "عرض المزيد", "Show replies": "عرض الردود",
"`x` points": "`x` نقاط", "Incorrect password": "الرقم السرى غير صحيح",
"Could not create mix.": "لم يستطع عمل خلط.", "Quota exceeded, try again in a few hours": "تم تجاوز عدد المرات المسموح بها, حاول مرة اخرى بعد عدة ساعات",
"Playlist is empty": "قائمة التشغيل فارغة", "Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "غير قادر على تسجيل الدخول, تأكد من تشغيل المصادقة الثنائية 2FA.",
"Invalid playlist.": "قائمة التشغيل غير صالحة.", "Invalid TFA code": "كود مصادقة ثنائية 2FA غير صحيح",
"Playlist does not exist.": "قائمة التشغيل غير موجودة.", "Login failed. This may be because two-factor authentication is not turned on for your account.": "لم يتم تسجيل الدخول. هذا ربما بسبب ان المصادقة الثنائية 2FA معطلة فى حسابك.",
"Could not pull trending pages.": "لم يستطع عرض الصفحات الراجئة.", "Wrong answer": "إجابة خاطئة",
"Hidden field \"challenge\" is a required field": "مكان مخفى \"تحدى\" مكان مطلوب", "Erroneous CAPTCHA": "الكابتشا CAPTCHA غير صاحلة",
"Hidden field \"token\" is a required field": "مكان مخفى \"رمز\" مكان مطلوب", "CAPTCHA is a required field": "مكان الكابتشا CAPTCHA مطلوب",
"Invalid challenge": "تحدى غير صالح", "User ID is a required field": "مكان إسم المستخدم مطلوب",
"Invalid token": "روز غير صالح", "Password is a required field": "مكان الرقم السرى مطلوب",
"Invalid user": "مستخدم غير صالح", "Wrong username or password": "إسم المستخدم او الرقم السرى غير صحيح",
"Token is expired, please try again": "الرمز منتهى الصلاحية , الرجاء المحاولة مرة اخرى", "Please sign in using 'Log in with Google'": "الرجاء تسجيل الدخول 'تسجيل الدخول بواسطة جوجل'",
"English": "إنجليزى", "Password cannot be empty": "الرقم السرى لايمكن ان يكون فارغ",
"English (auto-generated)": "إنجليزى (تم إنشائة تلقائى)", "Password cannot be longer than 55 characters": "الرقم السرى لا يتعدى 55 حرف",
"Afrikaans": "الأفريكانية", "Please log in": "الرجاء تسجيل الدخول",
"Albanian": "الألبانية", "Invidious Private Feed for `x`": "صفحة Invidious للمشتركين الخاصة\\مخفية لـ `x`",
"Amharic": "الأمهرية", "channel:`x`": "قناة:`x`",
"Arabic": "العربية", "Deleted or invalid channel": "قناة ممسوحة او غير صالحة",
"Armenian": "الأرميني", "This channel does not exist.": "القناة غير موجودة.",
"Azerbaijani": "أذربيجان", "Could not get channel info.": "لم يستطع الحصول على معلومات القناة.",
"Bangla": "البنغالية", "Could not fetch comments": "لم يتمكن من إحضار التعليقات",
"Basque": "الباسكي", "View `x` replies": "عرض `x` ردود",
"Belarusian": "البيلاروسية", "`x` ago": "`x` منذ",
"Bosnian": "البوسنية", "Load more": "عرض المزيد",
"Bulgarian": "البلغارية", "`x` points": "`x` نقاط",
"Burmese": "البورمية", "Could not create mix.": "لم يستطع عمل خلط.",
"Catalan": "الكاتالونية", "Empty playlist": "قائمة التشغيل فارغة",
"Cebuano": "السيبيونو", "Not a playlist.": "قائمة التشغيل غير صالحة.",
"Chinese (Simplified)": "الصينية (المبسطة)", "Playlist does not exist.": "قائمة التشغيل غير موجودة.",
"Chinese (Traditional)": "الصينية (التقليدية)", "Could not pull trending pages.": "لم يستطع عرض الصفحات الراجئة.",
"Corsican": "الكورسيكية", "Hidden field \"challenge\" is a required field": "مكان مخفى \"تحدى\" مكان مطلوب",
"Croatian": "الكرواتية", "Hidden field \"token\" is a required field": "مكان مخفى \"رمز\" مكان مطلوب",
"Czech": "تشيكي", "Erroneous challenge": "تحدى غير صالح",
"Danish": "دانماركي", "Erroneous token": "روز غير صالح",
"Dutch": "هولندي", "No such user": "مستخدم غير صالح",
"Esperanto": "الاسبرانتو", "Token is expired, please try again": "الرمز منتهى الصلاحية , الرجاء المحاولة مرة اخرى",
"Estonian": "الإستونية", "English": "إنجليزى",
"Filipino": "الفلبينية", "English (auto-generated)": "إنجليزى (تم إنشائة تلقائى)",
"Finnish": "الفنلندية", "Afrikaans": "الأفريكانية",
"French": "الفرنسية", "Albanian": "الألبانية",
"Galician": "الجاليكية", "Amharic": "الأمهرية",
"Georgian": "الجورجية", "Arabic": "العربية",
"German": "ألمانية", "Armenian": "الأرميني",
"Greek": "الإغريقي", "Azerbaijani": "أذربيجان",
"Gujarati": "الغوجاراتية", "Bangla": "البنغالية",
"Haitian Creole": "الكاثوليكية الهايتية", "Basque": "الباسكي",
"Hausa": "الهوسا", "Belarusian": "البيلاروسية",
"Hawaiian": "هاواي", "Bosnian": "البوسنية",
"Hebrew": "العبرية", "Bulgarian": "البلغارية",
"Hindi": "الهندية", "Burmese": "البورمية",
"Hmong": "همونغ", "Catalan": "الكاتالونية",
"Hungarian": "الهنغارية", "Cebuano": "السيبيونو",
"Icelandic": "أيسلندي", "Chinese (Simplified)": "الصينية (المبسطة)",
"Igbo": "الإيبو", "Chinese (Traditional)": "الصينية (التقليدية)",
"Indonesian": "الأندونيسية", "Corsican": "الكورسيكية",
"Irish": "الأيرلندية", "Croatian": "الكرواتية",
"Italian": "الإيطالي", "Czech": "تشيكي",
"Japanese": "اليابانية", "Danish": "دانماركي",
"Javanese": "جاوي", "Dutch": "هولندي",
"Kannada": "الكانادا", "Esperanto": "الاسبرانتو",
"Kazakh": "الكازاخية", "Estonian": "الإستونية",
"Khmer": "الخمير", "Filipino": "الفلبينية",
"Korean": "الكورية", "Finnish": "الفنلندية",
"Kurdish": "كردي", "French": "الفرنسية",
"Kyrgyz": "قيرغيزستان", "Galician": "الجاليكية",
"Lao": "لاو", "Georgian": "الجورجية",
"Latin": "لاتينية", "German": "ألمانية",
"Latvian": "اللاتفية", "Greek": "الإغريقي",
"Lithuanian": "اللتوانية", "Gujarati": "الغوجاراتية",
"Luxembourgish": "اللوكسمبرجية", "Haitian Creole": "الكاثوليكية الهايتية",
"Macedonian": "المقدونية", "Hausa": "الهوسا",
"Malagasy": "مدجشقر\\مدغشقر", "Hawaiian": "هاواي",
"Malay": "الملايو", "Hebrew": "العبرية",
"Malayalam": "المالايالامية", "Hindi": "الهندية",
"Maltese": "المالطية", "Hmong": "همونغ",
"Maori": "الماوري", "Hungarian": "الهنغارية",
"Marathi": "المهاراتية", "Icelandic": "أيسلندي",
"Mongolian": "المنغولية", "Igbo": "الإيبو",
"Nepali": "النيبالية", "Indonesian": "الأندونيسية",
"Norwegian": "النرويجية", "Irish": "الأيرلندية",
"Nyanja": "نيانجا", "Italian": "الإيطالي",
"Pashto": "الباشتو", "Japanese": "اليابانية",
"Persian": "الفارسية", "Javanese": "جاوي",
"Polish": "البولندي", "Kannada": "الكانادا",
"Portuguese": "البرتغالية", "Kazakh": "الكازاخية",
"Punjabi": "البنجابية", "Khmer": "الخمير",
"Romanian": "روماني", "Korean": "الكورية",
"Russian": "الروسية", "Kurdish": "كردي",
"Samoan": "ساموا", "Kyrgyz": "قيرغيزستان",
"Scottish Gaelic": "الغيلية الاسكتلندية", "Lao": "لاو",
"Serbian": "صربي", "Latin": "لاتينية",
"Shona": "شونا", "Latvian": "اللاتفية",
"Sindhi": "السندية", "Lithuanian": "اللتوانية",
"Sinhala": "السنهالية", "Luxembourgish": "اللوكسمبرجية",
"Slovak": "السلوفاكية", "Macedonian": "المقدونية",
"Slovenian": "سلوفيني", "Malagasy": "مدجشقر\\مدغشقر",
"Somali": "الصومالية", "Malay": "الملايو",
"Southern Sotho": "جنوب سوثو", "Malayalam": "المالايالامية",
"Spanish": "الأسبانية", "Maltese": "المالطية",
"Spanish (Latin America)": "الأسبانية (أمريكا اللاتينية)", "Maori": "الماوري",
"Sundanese": "السودانية", "Marathi": "المهاراتية",
"Swahili": "السواحلية", "Mongolian": "المنغولية",
"Swedish": "السويدية", "Nepali": "النيبالية",
"Tajik": "الطاجيكية", "Norwegian Bokmål": "النرويجية",
"Tamil": "التاميل", "Nyanja": "نيانجا",
"Telugu": "التيلجو", "Pashto": "الباشتو",
"Thai": "التايلاندية", "Persian": "الفارسية",
"Turkish": "التركية", "Polish": "البولندي",
"Ukrainian": "الأوكراني", "Portuguese": "البرتغالية",
"Urdu": "الأردية", "Punjabi": "البنجابية",
"Uzbek": "الأوزبكي", "Romanian": "روماني",
"Vietnamese": "الفيتنامية", "Russian": "الروسية",
"Welsh": "الولزية", "Samoan": "ساموا",
"Western Frisian": "الفريزية الغربية", "Scottish Gaelic": "الغيلية الاسكتلندية",
"Xhosa": "زوسا", "Serbian": "صربي",
"Yiddish": "اليديشية", "Shona": "شونا",
"Yoruba": "اليوروبا", "Sindhi": "السندية",
"Zulu": "الزولو", "Sinhala": "السنهالية",
"`x` years": "`x` سنوات", "Slovak": "السلوفاكية",
"`x` months": "`x` شهور", "Slovenian": "سلوفيني",
"`x` weeks": "`x` اسابيع", "Somali": "الصومالية",
"`x` days": "`x` ايام", "Southern Sotho": "جنوب سوثو",
"`x` hours": "`x` ساعات", "Spanish": "الأسبانية",
"`x` minutes": "`x` دقائق", "Spanish (Latin America)": "الأسبانية (أمريكا اللاتينية)",
"`x` seconds": "`x` ثوانى", "Sundanese": "السودانية",
"Fallback comments: ": "التعليقات المصاحبة", "Swahili": "السواحلية",
"Popular": "لاكثر شعبية", "Swedish": "السويدية",
"Top": "الأفضل", "Tajik": "الطاجيكية",
"About": "حول", "Tamil": "التاميل",
"Rating: ": "التقييم", "Telugu": "التيلجو",
"Language: ": "اللغة", "Thai": "التايلاندية",
"Default": "الكل", "Turkish": "التركية",
"Music": "الاغانى", "Ukrainian": "الأوكراني",
"Gaming": "الألعاب", "Urdu": "الأردية",
"News": "الأخبار", "Uzbek": "الأوزبكي",
"Movies": "الأفلام", "Vietnamese": "الفيتنامية",
"Download as: ": "تحميل كـ", "Welsh": "الولزية",
"Download": "تحميل", "Western Frisian": "الفريزية الغربية",
"%A %B %-d, %Y": "", "Xhosa": "زوسا",
"(edited)": "", "Yiddish": "اليديشية",
"Youtube permalink of the comment": "", "Yoruba": "اليوروبا",
"`x` marked it with a ❤": "" "Zulu": "الزولو",
} "`x` years": "`x` سنوات",
"`x` months": "`x` شهور",
"`x` weeks": "`x` اسابيع",
"`x` days": "`x` ايام",
"`x` hours": "`x` ساعات",
"`x` minutes": "`x` دقائق",
"`x` seconds": "`x` ثوانى",
"Fallback comments: ": "التعليقات المصاحبة",
"Popular": "لاكثر شعبية",
"Top": "الأفضل",
"About": "حول",
"Rating: ": "التقييم",
"Language: ": "اللغة",
"View as playlist": "عرض كا قائمة التشغيل",
"Default": "الكل",
"Music": "الاغانى",
"Gaming": "الألعاب",
"News": "الأخبار",
"Movies": "الأفلام",
"Download": "تحميل كـ",
"Download as: ": "تحميل",
"%A %B %-d, %Y": "",
"(edited)": "(تم تعديلة)",
"YouTube comment permalink": "رابط التعليق على اليوتيوب",
"`x` marked it with a ❤": "`x` اعجب بهذا",
"Audio mode": "الوضع الصوتى",
"Video mode": "وضع الفيديو",
"Videos": "الفيديوهات",
"Playlists": "قوائم التشغيل",
"Current version: ": "الإصدار الحالى"
}

View File

@@ -1,284 +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: ",
"Save preferences": "Einstellungen speichern", "Only show unwatched: ": "Nur ungesehene anzeigen: ",
"Subscription manager": "Abonnementverwaltung", "Only show notifications (if there are any): ": "Nur Benachrichtigungen anzeigen (wenn es welche gibt): ",
"`x` subscriptions": "`x` Abonnements", "Data preferences": "Dateneinstellungen",
"Import/Export": "Importieren/Exportieren", "Clear watch history": "Verlauf löschen",
"unsubscribe": "abbestellen", "Import/export data": "Daten im- exportieren",
"Subscriptions": "Abonnements", "Change password": "",
"`x` unseen notifications": "`x` ungesehene Benachrichtigungen", "Manage subscriptions": "Abonnements verwalten",
"search": "Suchen", "Manage tokens": "",
"Sign out": "Abmelden", "Watch history": "Verlauf",
"Released under the AGPLv3 by Omar Roth.": "Veröffentlicht unter AGPLv3 von Omar Roth.", "Delete account": "Account löschen",
"Source available here.": "Quellcode verfügbar hier.", "Administrator preferences": "",
"Liberapay: ": "Liberapay: ", "Default homepage: ": "",
"Patreon: ": "Patreon: ", "Feed menu: ": "",
"BTC: ": "BTC: ", "Top enabled? ": "",
"BCH: ": "BCH: ", "CAPTCHA enabled? ": "",
"View JavaScript license information.": "Javascript Lizenzinformationen anzeigen.", "Login enabled? ": "",
"Trending": "Trending", "Registration enabled? ": "",
"Watch video on Youtube": "Video auf YouTube ansehen", "Report statistics? ": "",
"Genre: ": "Genre: ", "Save preferences": "Einstellungen speichern",
"License: ": "Lizenz: ", "Subscription manager": "Abonnementverwaltung",
"Family friendly? ": "Familienfreundlich? ", "Token manager": "",
"Wilson score: ": "Wilson-Score: ", "Token": "",
"Engagement: ": "Engagement: ", "`x` subscriptions": "`x` Abonnements",
"Whitelisted regions: ": "Erlaubte Regionen: ", "`x` tokens": "",
"Blacklisted regions: ": "Unerlaubte Regionen: ", "Import/export": "Importieren/Exportieren",
"Shared `x`": "Geteilt `x`", "unsubscribe": "abbestellen",
"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.", "revoke": "",
"View YouTube comments": "YouTube Kommentare anzeigen", "Subscriptions": "Abonnements",
"View more comments on Reddit": "Mehr Kommentare auf Reddit anzeigen", "`x` unseen notifications": "`x` ungesehene Benachrichtigungen",
"View `x` comments": "`x` Kommentare anzeigen", "search": "Suchen",
"View Reddit comments": "Reddit Kommentare anzeigen", "Log out": "Abmelden",
"Hide replies": "Antworten verstecken", "Released under the AGPLv3 by Omar Roth.": "Veröffentlicht unter AGPLv3 von Omar Roth.",
"Show replies": "Antworten anzeigen", "Source available here.": "Quellcode verfügbar hier.",
"Incorrect password": "Falsches Passwort", "View JavaScript license information.": "Javascript Lizenzinformationen anzeigen.",
"Quota exceeded, try again in a few hours": "Kontingent überschritten, versuche es in ein paar Stunden erneut", "View privacy policy.": "",
"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.", "Trending": "Trending",
"Invalid TFA code": "Ungültiger TFA Code", "Unlisted": "",
"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.", "Watch on YouTube": "Video auf YouTube ansehen",
"Invalid answer": "Ungültige Antwort", "Hide annotations": "",
"Invalid CAPTCHA": "Ungültiges CAPTCHA", "Show annotations": "",
"CAPTCHA is a required field": "CAPTCHA ist eine erforderliche Eingabe", "Genre: ": "Genre: ",
"User ID is a required field": "Benutzer ID ist eine erforderliche Eingabe", "License: ": "Lizenz: ",
"Password is a required field": "Passwort ist eine erforderliche Eingabe", "Family friendly? ": "Familienfreundlich? ",
"Invalid username or password": "Ungültiger Benutzername oder Passwort", "Wilson score: ": "Wilson-Score: ",
"Please sign in using 'Sign in with Google'": "Bitte melden sie sich mit 'Mit Google anmelden' an", "Engagement: ": "Engagement: ",
"Password cannot be empty": "Passwort darf nicht leer sein", "Whitelisted regions: ": "Erlaubte Regionen: ",
"Password cannot be longer than 55 characters": "Passwort darf nicht länger als 55 Zeichen sein", "Blacklisted regions: ": "Unerlaubte Regionen: ",
"Please sign in": "Bitte anmelden", "Shared `x`": "Geteilt `x`",
"Invidious Private Feed for `x`": "Invidious Persönlicher Feed für `x`", "`x` views": "",
"channel:`x`": "Kanal:`x`", "Premieres in `x`": "",
"Deleted or invalid channel": "Gelöschter oder ungültiger Kanal", "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.",
"This channel does not exist.": "Dieser Kanal existiert nicht.", "View YouTube comments": "YouTube Kommentare anzeigen",
"Could not get channel info.": "Kanalinformationen konnten nicht geladen werden.", "View more comments on Reddit": "Mehr Kommentare auf Reddit anzeigen",
"Could not fetch comments": "Kommentare konnten nicht geladen werden", "View `x` comments": "`x` Kommentare anzeigen",
"View `x` replies": "Zeige `x` Antworten", "View Reddit comments": "Reddit Kommentare anzeigen",
"`x` ago": "vor `x`", "Hide replies": "Antworten verstecken",
"Load more": "Mehr laden", "Show replies": "Antworten anzeigen",
"`x` points": "`x` Punkte", "Incorrect password": "Falsches Passwort",
"Could not create mix.": "Mix konnte nicht erstellt werden.", "Quota exceeded, try again in a few hours": "Kontingent überschritten, versuche es in ein paar Stunden erneut",
"Playlist is empty": "Playlist ist leer", "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.",
"Invalid playlist.": "Ungültige Playlist.", "Invalid TFA code": "Ungültiger TFA Code",
"Playlist does not exist.": "Playlist existiert nicht.", "Login failed. This may be because two-factor authentication is not turned on for your account.": "Login fehlgeschlagen. Das kann daran liegen dass two-factor Authentifizierung in ihrem Account nicht aktiviert ist.",
"Could not pull trending pages.": "Trending Seiten konnten nicht geladen werden.", "Wrong answer": "Ungültige Antwort",
"Hidden field \"challenge\" is a required field": "Verstecktes Feld \"challenge\" ist eine erforderliche Eingabe", "Erroneous CAPTCHA": "Ungültiges CAPTCHA",
"Hidden field \"token\" is a required field": "Verstecktes Feld \"token\" ist eine erforderliche Eingabe", "CAPTCHA is a required field": "CAPTCHA ist eine erforderliche Eingabe",
"Invalid challenge": "Ungültiger Test", "User ID is a required field": "Benutzer ID ist eine erforderliche Eingabe",
"Invalid token": "Ungöltige Marke", "Password is a required field": "Passwort ist eine erforderliche Eingabe",
"Invalid user": "Ungültiger Benutzer", "Wrong username or password": "Ungültiger Benutzername oder Passwort",
"Token is expired, please try again": "Marke ist abgelaufen, bitte erneut versuchen", "Please sign in using 'Log in with Google'": "Bitte melden sie sich mit 'Mit Google anmelden' an",
"English": "Englisch", "Password cannot be empty": "Passwort darf nicht leer sein",
"English (auto-generated)": "Englisch (automatisch erzeugt)", "Password cannot be longer than 55 characters": "Passwort darf nicht länger als 55 Zeichen sein",
"Afrikaans": "Afrikaans", "Please log in": "Bitte anmelden",
"Albanian": "Albanisch", "Invidious Private Feed for `x`": "Invidious Persönlicher Feed für `x`",
"Amharic": "Amharisch", "channel:`x`": "Kanal:`x`",
"Arabic": "Arabisch", "Deleted or invalid channel": "Gelöschter oder ungültiger Kanal",
"Armenian": "Armenisch", "This channel does not exist.": "Dieser Kanal existiert nicht.",
"Azerbaijani": "Aserbaidschanisch", "Could not get channel info.": "Kanalinformationen konnten nicht geladen werden.",
"Bangla": "Bengalisch", "Could not fetch comments": "Kommentare konnten nicht geladen werden",
"Basque": "Baskisch", "View `x` replies": "Zeige `x` Antworten",
"Belarusian": "Weißrussisch", "`x` ago": "vor `x`",
"Bosnian": "Bosnisch", "Load more": "Mehr laden",
"Bulgarian": "Bulgarisch", "`x` points": "`x` Punkte",
"Burmese": "Burmesisch", "Could not create mix.": "Mix konnte nicht erstellt werden.",
"Catalan": "Katalanisch", "Empty playlist": "Playlist ist leer",
"Cebuano": "Cebuano", "Not a playlist.": "Ungültige Playlist.",
"Chinese (Simplified)": "Chinesisch (vereinfacht)", "Playlist does not exist.": "Playlist existiert nicht.",
"Chinese (Traditional)": "Chinesisch (traditionell)", "Could not pull trending pages.": "Trending Seiten konnten nicht geladen werden.",
"Corsican": "Korsisch", "Hidden field \"challenge\" is a required field": "Verstecktes Feld \"challenge\" ist eine erforderliche Eingabe",
"Croatian": "Kroatisch", "Hidden field \"token\" is a required field": "Verstecktes Feld \"token\" ist eine erforderliche Eingabe",
"Czech": "Tschechisch", "Erroneous challenge": "Ungültiger Test",
"Danish": "Dänisch", "Erroneous token": "Ungöltige Marke",
"Dutch": "Niederländisch", "No such user": "Ungültiger Benutzer",
"Esperanto": "Esperanto", "Token is expired, please try again": "Marke ist abgelaufen, bitte erneut versuchen",
"Estonian": "Estnisch", "English": "Englisch",
"Filipino": "Philippinisch", "English (auto-generated)": "Englisch (automatisch erzeugt)",
"Finnish": "Finnisch", "Afrikaans": "Afrikaans",
"French": "Französisch", "Albanian": "Albanisch",
"Galician": "Galizisch", "Amharic": "Amharisch",
"Georgian": "Georgisch", "Arabic": "Arabisch",
"German": "Deutsch", "Armenian": "Armenisch",
"Greek": "Griechisch", "Azerbaijani": "Aserbaidschanisch",
"Gujarati": "Gujarati", "Bangla": "Bengalisch",
"Haitian Creole": "Haitianisches Kreolisch", "Basque": "Baskisch",
"Hausa": "Hausa", "Belarusian": "Weißrussisch",
"Hawaiian": "Hawaiianisch", "Bosnian": "Bosnisch",
"Hebrew": "Hebräisch", "Bulgarian": "Bulgarisch",
"Hindi": "Hindi", "Burmese": "Burmesisch",
"Hmong": "Hmong", "Catalan": "Katalanisch",
"Hungarian": "Ungarisch", "Cebuano": "Cebuano",
"Icelandic": "Isländisch", "Chinese (Simplified)": "Chinesisch (vereinfacht)",
"Igbo": "Igbo", "Chinese (Traditional)": "Chinesisch (traditionell)",
"Indonesian": "Indonesisch", "Corsican": "Korsisch",
"Irish": "Irisch", "Croatian": "Kroatisch",
"Italian": "Italienisch", "Czech": "Tschechisch",
"Japanese": "Japanisch", "Danish": "nisch",
"Javanese": "Javanisch", "Dutch": "Niederländisch",
"Kannada": "Kannada", "Esperanto": "Esperanto",
"Kazakh": "Kasachisch", "Estonian": "Estnisch",
"Khmer": "Khmer", "Filipino": "Philippinisch",
"Korean": "Koreanisch", "Finnish": "Finnisch",
"Kurdish": "Kurdisch", "French": "Französisch",
"Kyrgyz": "Kirgisisch", "Galician": "Galizisch",
"Lao": "Laotisch", "Georgian": "Georgisch",
"Latin": "Lateinisch", "German": "Deutsch",
"Latvian": "Lettisch", "Greek": "Griechisch",
"Lithuanian": "Litauisch", "Gujarati": "Gujarati",
"Luxembourgish": "Luxemburgisch", "Haitian Creole": "Haitianisches Kreolisch",
"Macedonian": "Mazedonisch", "Hausa": "Hausa",
"Malagasy": "Madagassisch", "Hawaiian": "Hawaiianisch",
"Malay": "Malaiisch", "Hebrew": "Hebräisch",
"Malayalam": "Malayalam", "Hindi": "Hindi",
"Maltese": "Maltesisch", "Hmong": "Hmong",
"Maori": "Maori", "Hungarian": "Ungarisch",
"Marathi": "Marathi", "Icelandic": "Isländisch",
"Mongolian": "Mongolisch", "Igbo": "Igbo",
"Nepali": "Nepalesisch", "Indonesian": "Indonesisch",
"Norwegian": "Norwegisch", "Irish": "Irisch",
"Nyanja": "Nyanja", "Italian": "Italienisch",
"Pashto": "Paschtunisch", "Japanese": "Japanisch",
"Persian": "Persisch", "Javanese": "Javanisch",
"Polish": "Polnisch", "Kannada": "Kannada",
"Portuguese": "Portugiesisch", "Kazakh": "Kasachisch",
"Punjabi": "Pandschabi", "Khmer": "Khmer",
"Romanian": "Rumänisch", "Korean": "Koreanisch",
"Russian": "Russisch", "Kurdish": "Kurdisch",
"Samoan": "Samoanisch", "Kyrgyz": "Kirgisisch",
"Scottish Gaelic": "Schottisches Gälisch", "Lao": "Laotisch",
"Serbian": "Serbisch", "Latin": "Lateinisch",
"Shona": "Schona", "Latvian": "Lettisch",
"Sindhi": "Sindhi", "Lithuanian": "Litauisch",
"Sinhala": "Singhalesisch", "Luxembourgish": "Luxemburgisch",
"Slovak": "Slowakisch", "Macedonian": "Mazedonisch",
"Slovenian": "Slowenisch", "Malagasy": "Madagassisch",
"Somali": "Somali", "Malay": "Malaiisch",
"Southern Sotho": "Südliches Sotho", "Malayalam": "Malayalam",
"Spanish": "Spanisch", "Maltese": "Maltesisch",
"Spanish (Latin America)": "Spanisch (Lateinamerika)", "Maori": "Maori",
"Sundanese": "Sundanesisch", "Marathi": "Marathi",
"Swahili": "Suaheli", "Mongolian": "Mongolisch",
"Swedish": "Schwedisch", "Nepali": "Nepalesisch",
"Tajik": "Tadschikisch", "Norwegian Bokmål": "Norwegisch",
"Tamil": "Tamilisch", "Nyanja": "Nyanja",
"Telugu": "Telugu", "Pashto": "Paschtunisch",
"Thai": "Thailändisch", "Persian": "Persisch",
"Turkish": "Türkisch", "Polish": "Polnisch",
"Ukrainian": "Ukrainisch", "Portuguese": "Portugiesisch",
"Urdu": "Urdu", "Punjabi": "Pandschabi",
"Uzbek": "Usbekisch", "Romanian": "Rumänisch",
"Vietnamese": "Vietnamesisch", "Russian": "Russisch",
"Welsh": "Walisisch", "Samoan": "Samoanisch",
"Western Frisian": "Westfriesisch", "Scottish Gaelic": "Schottisches Gälisch",
"Xhosa": "Xhosa", "Serbian": "Serbisch",
"Yiddish": "Jiddisch", "Shona": "Schona",
"Yoruba": "Joruba", "Sindhi": "Sindhi",
"Zulu": "Zulu", "Sinhala": "Singhalesisch",
"`x` years": "`x` Jahre", "Slovak": "Slowakisch",
"`x` months": "`x` Monate", "Slovenian": "Slowenisch",
"`x` weeks": "`x` Wochen", "Somali": "Somali",
"`x` days": "`x` Tage", "Southern Sotho": "Südliches Sotho",
"`x` hours": "`x` Stunden", "Spanish": "Spanisch",
"`x` minutes": "`x` Minuten", "Spanish (Latin America)": "Spanisch (Lateinamerika)",
"`x` seconds": "`x` Sekunden", "Sundanese": "Sundanesisch",
"Fallback comments: ": "", "Swahili": "Suaheli",
"Popular": "Populär", "Swedish": "Schwedisch",
"Top": "", "Tajik": "Tadschikisch",
"About": "Über", "Tamil": "Tamilisch",
"Rating: ": "Bewertung: ", "Telugu": "Telugu",
"Language: ": "Sprache: ", "Thai": "Thailändisch",
"Default": "", "Turkish": "Türkisch",
"Music": "", "Ukrainian": "Ukrainisch",
"Gaming": "", "Urdu": "Urdu",
"News": "", "Uzbek": "Usbekisch",
"Movies": "", "Vietnamese": "Vietnamesisch",
"Download": "", "Welsh": "Walisisch",
"Download as: ": "", "Western Frisian": "Westfriesisch",
"%A %B %-d, %Y": "", "Xhosa": "Xhosa",
"(edited)": "", "Yiddish": "Jiddisch",
"Youtube permalink of the comment": "", "Yoruba": "Joruba",
"`x` marked it with a ❤": "" "Zulu": "Zulu",
} "`x` years": "`x` Jahre",
"`x` months": "`x` Monate",
"`x` weeks": "`x` Wochen",
"`x` days": "`x` Tage",
"`x` hours": "`x` Stunden",
"`x` minutes": "`x` Minuten",
"`x` seconds": "`x` Sekunden",
"Fallback comments: ": "Alternative Kommentare: ",
"Popular": "Populär",
"Top": "Top",
"About": "Über",
"Rating: ": "Bewertung: ",
"Language: ": "Sprache: ",
"View as playlist": "",
"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,278 +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: ",
"Save preferences": "Save preferences", "published": "published",
"Subscription manager": "Subscription manager", "published - reverse": "published - reverse",
"`x` subscriptions": "`x` subscriptions", "alphabetically": "alphabetically",
"Import/Export": "Import/Export", "alphabetically - reverse": "alphabetically - reverse",
"unsubscribe": "unsubscribe", "channel name": "channel name",
"Subscriptions": "Subscriptions", "channel name - reverse": "channel name - reverse",
"`x` unseen notifications": "`x` unseen notifications", "Only show latest video from channel: ": "Only show latest video from channel: ",
"search": "search", "Only show latest unwatched video from channel: ": "Only show latest unwatched video from channel: ",
"Sign out": "Sign out", "Only show unwatched: ": "Only show unwatched: ",
"Released under the AGPLv3 by Omar Roth.": "Released under the AGPLv3 by Omar Roth.", "Only show notifications (if there are any): ": "Only show notifications (if there are any): ",
"Source available here.": "Source available here.", "Data preferences": "Data preferences",
"View JavaScript license information.": "View JavaScript license information.", "Clear watch history": "Clear watch history",
"Trending": "Trending", "Import/export data": "Import/export data",
"Watch video on Youtube": "Watch video on Youtube", "Change password": "Change password",
"Genre: ": "Genre: ", "Manage subscriptions": "Manage subscriptions",
"License: ": "License: ", "Manage tokens": "Manage tokens",
"Family friendly? ": "Family friendly? ", "Watch history": "Watch history",
"Wilson score: ": "Wilson score: ", "Delete account": "Delete account",
"Engagement: ": "Engagement: ", "Administrator preferences": "Administrator preferences",
"Whitelisted regions: ": "Whitelisted regions: ", "Default homepage: ": "Default homepage: ",
"Blacklisted regions: ": "Blacklisted regions: ", "Feed menu: ": "Feed menu: ",
"Shared `x`": "Shared `x`", "Top enabled? ": "Top enabled? ",
"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.", "CAPTCHA enabled? ": "CAPTCHA enabled? ",
"View YouTube comments": "View YouTube comments", "Login enabled? ": "Login enabled? ",
"View more comments on Reddit": "View more comments on Reddit", "Registration enabled? ": "Registration enabled? ",
"View `x` comments": "View `x` comments", "Report statistics? ": "Report statistics? ",
"View Reddit comments": "View Reddit comments", "Save preferences": "Save preferences",
"Hide replies": "Hide replies", "Subscription manager": "Subscription manager",
"Show replies": "Show replies", "Token manager": "Token manager",
"Incorrect password": "Incorrect password", "Token": "Token",
"Quota exceeded, try again in a few hours": "Quota exceeded, try again in a few hours", "`x` subscriptions": {
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.", "(\\D|^)1(\\D|$)": "`x` subscription",
"Invalid TFA code": "Invalid TFA code", "": "`x` subscriptions"
"Login failed. This may be because two-factor authentication is not enabled on your account.": "Login failed. This may be because two-factor authentication is not enabled on your account.", },
"Invalid answer": "Invalid answer", "`x` tokens": {
"Invalid CAPTCHA": "Invalid CAPTCHA", "(\\D|^)1(\\D|$)": "`x` token",
"CAPTCHA is a required field": "CAPTCHA is a required field", "": "`x` tokens"
"User ID is a required field": "User ID is a required field", },
"Password is a required field": "Password is a required field", "Import/export": "Import/export",
"Invalid username or password": "Invalid username or password", "unsubscribe": "unsubscribe",
"Please sign in using 'Sign in with Google'": "Please sign in using 'Sign in with Google'", "revoke": "revoke",
"Password cannot be empty": "Password cannot be empty", "Subscriptions": "Subscriptions",
"Password cannot be longer than 55 characters": "Password cannot be longer than 55 characters", "`x` unseen notifications": {
"Please sign in": "Please sign in", "(\\D|^)1(\\D|$)": "`x` unseen notification",
"Invidious Private Feed for `x`": "Invidious Private Feed for `x`", "": "`x` unseen notifications"
"channel:`x`": "channel:`x`", },
"Deleted or invalid channel": "Deleted or invalid channel", "search": "search",
"This channel does not exist.": "This channel does not exist.", "Log out": "Log out",
"Could not get channel info.": "Could not get channel info.", "Released under the AGPLv3 by Omar Roth.": "Released under the AGPLv3 by Omar Roth.",
"Could not fetch comments": "Could not fetch comments", "Source available here.": "Source available here.",
"View `x` replies": "View `x` replies", "View JavaScript license information.": "View JavaScript license information.",
"`x` ago": "`x` ago", "View privacy policy.": "View privacy policy.",
"Load more": "Load more", "Trending": "Trending",
"`x` points": "`x` points", "Unlisted": "Unlisted",
"Could not create mix.": "Could not create mix.", "Watch on YouTube": "Watch on YouTube",
"Playlist is empty": "Playlist is empty", "Hide annotations": "Hide annotations",
"Invalid playlist.": "Invalid playlist.", "Show annotations": "Show annotations",
"Playlist does not exist.": "Playlist does not exist.", "Genre: ": "Genre: ",
"Could not pull trending pages.": "Could not pull trending pages.", "License: ": "License: ",
"Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field", "Family friendly? ": "Family friendly? ",
"Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field", "Wilson score: ": "Wilson score: ",
"Invalid challenge": "Invalid challenge", "Engagement: ": "Engagement: ",
"Invalid token": "Invalid token", "Whitelisted regions: ": "Whitelisted regions: ",
"Invalid user": "Invalid user", "Blacklisted regions: ": "Blacklisted regions: ",
"Token is expired, please try again": "Token is expired, please try again", "Shared `x`": "Shared `x`",
"English": "English", "`x` views": {
"English (auto-generated)": "English (auto-generated)", "(\\D|^)1(\\D|$)": "`x` views",
"Afrikaans": "Afrikaans", "": "`x` views"
"Albanian": "Albanian", },
"Amharic": "Amharic", "Premieres in `x`": "Premieres in `x`",
"Arabic": "Arabic", "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.",
"Armenian": "Armenian", "View YouTube comments": "View YouTube comments",
"Azerbaijani": "Azerbaijani", "View more comments on Reddit": "View more comments on Reddit",
"Bangla": "Bangla", "View `x` comments": "View `x` comments",
"Basque": "Basque", "View Reddit comments": "View Reddit comments",
"Belarusian": "Belarusian", "Hide replies": "Hide replies",
"Bosnian": "Bosnian", "Show replies": "Show replies",
"Bulgarian": "Bulgarian", "Incorrect password": "Incorrect password",
"Burmese": "Burmese", "Quota exceeded, try again in a few hours": "Quota exceeded, try again in a few hours",
"Catalan": "Catalan", "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.",
"Cebuano": "Cebuano", "Invalid TFA code": "Invalid TFA code",
"Chinese (Simplified)": "Chinese (Simplified)", "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.",
"Chinese (Traditional)": "Chinese (Traditional)", "Wrong answer": "Wrong answer",
"Corsican": "Corsican", "Erroneous CAPTCHA": "Erroneous CAPTCHA",
"Croatian": "Croatian", "CAPTCHA is a required field": "CAPTCHA is a required field",
"Czech": "Czech", "User ID is a required field": "User ID is a required field",
"Danish": "Danish", "Password is a required field": "Password is a required field",
"Dutch": "Dutch", "Wrong username or password": "Wrong username or password",
"Esperanto": "Esperanto", "Please sign in using 'Log in with Google'": "Please sign in using 'Log in with Google'",
"Estonian": "Estonian", "Password cannot be empty": "Password cannot be empty",
"Filipino": "Filipino", "Password cannot be longer than 55 characters": "Password cannot be longer than 55 characters",
"Finnish": "Finnish", "Please log in": "Please log in",
"French": "French", "Invidious Private Feed for `x`": "Invidious Private Feed for `x`",
"Galician": "Galician", "channel:`x`": "channel:`x`",
"Georgian": "Georgian", "Deleted or invalid channel": "Deleted or invalid channel",
"German": "German", "This channel does not exist.": "This channel does not exist.",
"Greek": "Greek", "Could not get channel info.": "Could not get channel info.",
"Gujarati": "Gujarati", "Could not fetch comments": "Could not fetch comments",
"Haitian Creole": "Haitian Creole", "View `x` replies": {
"Hausa": "Hausa", "(\\D|^)1(\\D|$)": "View `x` reply",
"Hawaiian": "Hawaiian", "": "View `x` replies"
"Hebrew": "Hebrew", },
"Hindi": "Hindi", "`x` ago": "`x` ago",
"Hmong": "Hmong", "Load more": "Load more",
"Hungarian": "Hungarian", "`x` points": {
"Icelandic": "Icelandic", "(\\D|^)1(\\D|$)": "`x` point",
"Igbo": "Igbo", "": "`x` points"
"Indonesian": "Indonesian", },
"Irish": "Irish", "Could not create mix.": "Could not create mix.",
"Italian": "Italian", "Empty playlist": "Empty playlist",
"Japanese": "Japanese", "Not a playlist.": "Not a playlist.",
"Javanese": "Javanese", "Playlist does not exist.": "Playlist does not exist.",
"Kannada": "Kannada", "Could not pull trending pages.": "Could not pull trending pages.",
"Kazakh": "Kazakh", "Hidden field \"challenge\" is a required field": "Hidden field \"challenge\" is a required field",
"Khmer": "Khmer", "Hidden field \"token\" is a required field": "Hidden field \"token\" is a required field",
"Korean": "Korean", "Erroneous challenge": "Erroneous challenge",
"Kurdish": "Kurdish", "Erroneous token": "Erroneous token",
"Kyrgyz": "Kyrgyz", "No such user": "No such user",
"Lao": "Lao", "Token is expired, please try again": "Token is expired, please try again",
"Latin": "Latin", "English": "English",
"Latvian": "Latvian", "English (auto-generated)": "English (auto-generated)",
"Lithuanian": "Lithuanian", "Afrikaans": "Afrikaans",
"Luxembourgish": "Luxembourgish", "Albanian": "Albanian",
"Macedonian": "Macedonian", "Amharic": "Amharic",
"Malagasy": "Malagasy", "Arabic": "Arabic",
"Malay": "Malay", "Armenian": "Armenian",
"Malayalam": "Malayalam", "Azerbaijani": "Azerbaijani",
"Maltese": "Maltese", "Bangla": "Bangla",
"Maori": "Maori", "Basque": "Basque",
"Marathi": "Marathi", "Belarusian": "Belarusian",
"Mongolian": "Mongolian", "Bosnian": "Bosnian",
"Nepali": "Nepali", "Bulgarian": "Bulgarian",
"Norwegian": "Norwegian", "Burmese": "Burmese",
"Nyanja": "Nyanja", "Catalan": "Catalan",
"Pashto": "Pashto", "Cebuano": "Cebuano",
"Persian": "Persian", "Chinese (Simplified)": "Chinese (Simplified)",
"Polish": "Polish", "Chinese (Traditional)": "Chinese (Traditional)",
"Portuguese": "Portuguese", "Corsican": "Corsican",
"Punjabi": "Punjabi", "Croatian": "Croatian",
"Romanian": "Romanian", "Czech": "Czech",
"Russian": "Russian", "Danish": "Danish",
"Samoan": "Samoan", "Dutch": "Dutch",
"Scottish Gaelic": "Scottish Gaelic", "Esperanto": "Esperanto",
"Serbian": "Serbian", "Estonian": "Estonian",
"Shona": "Shona", "Filipino": "Filipino",
"Sindhi": "Sindhi", "Finnish": "Finnish",
"Sinhala": "Sinhala", "French": "French",
"Slovak": "Slovak", "Galician": "Galician",
"Slovenian": "Slovenian", "Georgian": "Georgian",
"Somali": "Somali", "German": "German",
"Southern Sotho": "Southern Sotho", "Greek": "Greek",
"Spanish": "Spanish", "Gujarati": "Gujarati",
"Spanish (Latin America)": "Spanish (Latin America)", "Haitian Creole": "Haitian Creole",
"Sundanese": "Sundanese", "Hausa": "Hausa",
"Swahili": "Swahili", "Hawaiian": "Hawaiian",
"Swedish": "Swedish", "Hebrew": "Hebrew",
"Tajik": "Tajik", "Hindi": "Hindi",
"Tamil": "Tamil", "Hmong": "Hmong",
"Telugu": "Telugu", "Hungarian": "Hungarian",
"Thai": "Thai", "Icelandic": "Icelandic",
"Turkish": "Turkish", "Igbo": "Igbo",
"Ukrainian": "Ukrainian", "Indonesian": "Indonesian",
"Urdu": "Urdu", "Irish": "Irish",
"Uzbek": "Uzbek", "Italian": "Italian",
"Vietnamese": "Vietnamese", "Japanese": "Japanese",
"Welsh": "Welsh", "Javanese": "Javanese",
"Western Frisian": "Western Frisian", "Kannada": "Kannada",
"Xhosa": "Xhosa", "Kazakh": "Kazakh",
"Yiddish": "Yiddish", "Khmer": "Khmer",
"Yoruba": "Yoruba", "Korean": "Korean",
"Zulu": "Zulu", "Kurdish": "Kurdish",
"`x` years": "`x` years", "Kyrgyz": "Kyrgyz",
"`x` months": "`x` months", "Lao": "Lao",
"`x` weeks": "`x` weeks", "Latin": "Latin",
"`x` days": "`x` days", "Latvian": "Latvian",
"`x` hours": "`x` hours", "Lithuanian": "Lithuanian",
"`x` minutes": "`x` minutes", "Luxembourgish": "Luxembourgish",
"`x` seconds": "`x` seconds", "Macedonian": "Macedonian",
"Fallback comments: ": "Fallback comments: ", "Malagasy": "Malagasy",
"Popular": "Popular", "Malay": "Malay",
"Top": "Top", "Malayalam": "Malayalam",
"About": "About", "Maltese": "Maltese",
"Rating: ": "Rating: ", "Maori": "Maori",
"Language: ": "Language: ", "Marathi": "Marathi",
"Default": "Default", "Mongolian": "Mongolian",
"Music": "Music", "Nepali": "Nepali",
"Gaming": "Gaming", "Norwegian Bokmål": "Norwegian Bokmål",
"News": "News", "Nyanja": "Nyanja",
"Movies": "Movies", "Pashto": "Pashto",
"Download": "Download", "Persian": "Persian",
"Download as: ": "Download as: ", "Polish": "Polish",
"%A %B %-d, %Y": "%A %B %-d, %Y", "Portuguese": "Portuguese",
"(edited)": "(edited)", "Punjabi": "Punjabi",
"Youtube permalink of the comment": "Youtube permalink of the comment", "Romanian": "Romanian",
"`x` marked it with a ❤": "`x` marked it with a ❤" "Russian": "Russian",
} "Samoan": "Samoan",
"Scottish Gaelic": "Scottish Gaelic",
"Serbian": "Serbian",
"Shona": "Shona",
"Sindhi": "Sindhi",
"Sinhala": "Sinhala",
"Slovak": "Slovak",
"Slovenian": "Slovenian",
"Somali": "Somali",
"Southern Sotho": "Southern Sotho",
"Spanish": "Spanish",
"Spanish (Latin America)": "Spanish (Latin America)",
"Sundanese": "Sundanese",
"Swahili": "Swahili",
"Swedish": "Swedish",
"Tajik": "Tajik",
"Tamil": "Tamil",
"Telugu": "Telugu",
"Thai": "Thai",
"Turkish": "Turkish",
"Ukrainian": "Ukrainian",
"Urdu": "Urdu",
"Uzbek": "Uzbek",
"Vietnamese": "Vietnamese",
"Welsh": "Welsh",
"Western Frisian": "Western Frisian",
"Xhosa": "Xhosa",
"Yiddish": "Yiddish",
"Yoruba": "Yoruba",
"Zulu": "Zulu",
"`x` years": {
"(\\D|^)1(\\D|$)": "`x` year",
"": "`x` years"
},
"`x` months": {
"(\\D|^)1(\\D|$)": "`x` month",
"": "`x` months"
},
"`x` weeks": {
"(\\D|^)1(\\D|$)": "`x` week",
"": "`x` weeks"
},
"`x` days": {
"(\\D|^)1(\\D|$)": "`x` day",
"": "`x` days"
},
"`x` hours": {
"(\\D|^)1(\\D|$)": "`x` hour",
"": "`x` hours"
},
"`x` minutes": {
"(\\D|^)1(\\D|$)": "`x` minute",
"": "`x` minutes"
},
"`x` seconds": {
"(\\D|^)1(\\D|$)": "`x` second",
"": "`x` seconds"
},
"Fallback comments: ": "Fallback comments: ",
"Popular": "Popular",
"Top": "Top",
"About": "About",
"Rating: ": "Rating: ",
"Language: ": "Language: ",
"View as playlist": "View as playlist",
"Default": "Default",
"Music": "Music",
"Gaming": "Gaming",
"News": "News",
"Movies": "Movies",
"Download": "Download",
"Download as: ": "Download as: ",
"%A %B %-d, %Y": "%A %B %-d, %Y",
"(edited)": "(edited)",
"YouTube comment permalink": "YouTube comment permalink",
"`x` marked it with a ❤": "`x` marked it with a ❤",
"Audio mode": "Audio mode",
"Video mode": "Video mode",
"Videos": "Videos",
"Playlists": "Playlists",
"Current version: ": "Current version: "
}

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,278 +1,312 @@
{ {
"`x` subscribers": "", "`x` subscribers": "`x` harpidedun",
"`x` videos": "", "`x` videos": "`x` bideo",
"LIVE": "", "LIVE": "ZUZENEAN",
"Shared `x` ago": "", "Shared `x` ago": "Duela `x` partekatua",
"Unsubscribe": "", "Unsubscribe": "Harpidetza kendu",
"Subscribe": "Harpidetu", "Subscribe": "Harpidetu",
"Login to subscribe to `x`": "", "View channel on YouTube": "Ikusi kanala YouTuben",
"View channel on YouTube": "Ikusi kanala YouTuben", "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)": "", "Import FreeTube subscriptions (.db)": "FreeTubeko harpidetzak inportatu (.db)",
"Export data as JSON": "", "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": "", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Harpidetzak OPML bezala esportatu (NewPipe eta FreeTuberako)",
"JavaScript license information": "", "Export data as JSON": "Datuak JSON bezala esportatu",
"source": "", "Delete account?": "Kontua ezabatu?",
"Login": "", "History": "Historia",
"Login/Register": "", "An alternative front-end to YouTube": "YouTuberako interfaze alternatibo bat",
"Login to Google": "", "JavaScript license information": "JavaScript lizentzia informazioa",
"User ID:": "", "source": "iturburua",
"Password:": "", "Log in": "Saioa hasi",
"Time (h:mm:ss):": "", "Log in/register": "Saioa hasi/Izena eman",
"Text CAPTCHA": "", "Log in with Google": "Googlekin hasi saioa",
"Image 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": "",
"Save preferences": "", "Only show latest video from channel: ": "",
"Subscription manager": "", "Only show latest unwatched video from channel: ": "",
"`x` subscriptions": "", "Only show unwatched: ": "",
"Import/Export": "", "Only show notifications (if there are any): ": "",
"unsubscribe": "", "Data preferences": "",
"Subscriptions": "", "Clear watch history": "",
"`x` unseen notifications": "", "Import/export data": "",
"search": "", "Change password": "",
"Sign out": "", "Manage subscriptions": "",
"Released under the AGPLv3 by Omar Roth.": "", "Manage tokens": "",
"Source available here.": "", "Watch history": "",
"View JavaScript license information.": "", "Delete account": "",
"Trending": "", "Administrator preferences": "",
"Watch video on Youtube": "", "Default homepage: ": "",
"Genre: ": "", "Feed menu: ": "",
"License: ": "", "Top enabled? ": "",
"Family friendly? ": "", "CAPTCHA enabled? ": "",
"Wilson score: ": "", "Login enabled? ": "",
"Engagement: ": "", "Registration enabled? ": "",
"Whitelisted regions: ": "", "Report statistics? ": "",
"Blacklisted regions: ": "", "Save preferences": "",
"Shared `x`": "", "Subscription manager": "",
"Hi! Looks like you have JavaScript disabled. Click here to view comments, keep in mind it may take a bit longer to load.": "", "Token manager": "",
"View YouTube comments": "", "Token": "",
"View more comments on Reddit": "", "`x` subscriptions": "",
"View `x` comments": "", "`x` tokens": "",
"View Reddit comments": "", "Import/export": "",
"Hide replies": "", "unsubscribe": "",
"Show replies": "", "revoke": "",
"Incorrect password": "", "Subscriptions": "",
"Quota exceeded, try again in a few hours": "", "`x` unseen notifications": "",
"Unable to login, make sure two-factor authentication (Authenticator or SMS) is enabled.": "", "search": "",
"Invalid TFA code": "", "Log out": "",
"Login failed. This may be because two-factor authentication is not enabled on your account.": "", "Released under the AGPLv3 by Omar Roth.": "",
"Invalid answer": "", "Source available here.": "",
"Invalid CAPTCHA": "", "View JavaScript license information.": "",
"CAPTCHA is a required field": "", "View privacy policy.": "",
"User ID is a required field": "", "Trending": "",
"Password is a required field": "", "Unlisted": "",
"Invalid username or password": "", "Watch on YouTube": "",
"Please sign in using 'Sign in with Google'": "", "Hide annotations": "",
"Password cannot be empty": "", "Show annotations": "",
"Password cannot be longer than 55 characters": "", "Genre: ": "",
"Please sign in": "", "License: ": "",
"Invidious Private Feed for `x`": "", "Family friendly? ": "",
"channel:`x`": "", "Wilson score: ": "",
"Deleted or invalid channel": "", "Engagement: ": "",
"This channel does not exist.": "", "Whitelisted regions: ": "",
"Could not get channel info.": "", "Blacklisted regions: ": "",
"Could not fetch comments": "", "Shared `x`": "",
"View `x` replies": "", "`x` views": "",
"`x` ago": "", "Premieres in `x`": "",
"Load more": "", "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "",
"`x` points": "", "View YouTube comments": "",
"Could not create mix.": "", "View more comments on Reddit": "",
"Playlist is empty": "", "View `x` comments": "",
"Invalid playlist.": "", "View Reddit comments": "",
"Playlist does not exist.": "", "Hide replies": "",
"Could not pull trending pages.": "", "Show replies": "",
"Hidden field \"challenge\" is a required field": "", "Incorrect password": "",
"Hidden field \"token\" is a required field": "", "Quota exceeded, try again in a few hours": "",
"Invalid challenge": "", "Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "",
"Invalid token": "", "Invalid TFA code": "",
"Invalid user": "", "Login failed. This may be because two-factor authentication is not turned on for your account.": "",
"Token is expired, please try again": "", "Wrong answer": "",
"English": "", "Erroneous CAPTCHA": "",
"English (auto-generated)": "", "CAPTCHA is a required field": "",
"Afrikaans": "", "User ID is a required field": "",
"Albanian": "", "Password is a required field": "",
"Amharic": "", "Wrong username or password": "",
"Arabic": "", "Please sign in using 'Log in with Google'": "",
"Armenian": "", "Password cannot be empty": "",
"Azerbaijani": "", "Password cannot be longer than 55 characters": "",
"Bangla": "", "Please log in": "",
"Basque": "", "Invidious Private Feed for `x`": "",
"Belarusian": "", "channel:`x`": "",
"Bosnian": "", "Deleted or invalid channel": "",
"Bulgarian": "", "This channel does not exist.": "",
"Burmese": "", "Could not get channel info.": "",
"Catalan": "", "Could not fetch comments": "",
"Cebuano": "", "View `x` replies": "",
"Chinese (Simplified)": "", "`x` ago": "",
"Chinese (Traditional)": "", "Load more": "",
"Corsican": "", "`x` points": "",
"Croatian": "", "Could not create mix.": "",
"Czech": "", "Empty playlist": "",
"Danish": "", "Not a playlist.": "",
"Dutch": "", "Playlist does not exist.": "",
"Esperanto": "", "Could not pull trending pages.": "",
"Estonian": "", "Hidden field \"challenge\" is a required field": "",
"Filipino": "", "Hidden field \"token\" is a required field": "",
"Finnish": "", "Erroneous challenge": "",
"French": "", "Erroneous token": "",
"Galician": "", "No such user": "",
"Georgian": "", "Token is expired, please try again": "",
"German": "", "English": "",
"Greek": "", "English (auto-generated)": "",
"Gujarati": "", "Afrikaans": "",
"Haitian Creole": "", "Albanian": "",
"Hausa": "", "Amharic": "",
"Hawaiian": "", "Arabic": "",
"Hebrew": "", "Armenian": "",
"Hindi": "", "Azerbaijani": "",
"Hmong": "", "Bangla": "",
"Hungarian": "", "Basque": "",
"Icelandic": "", "Belarusian": "",
"Igbo": "", "Bosnian": "",
"Indonesian": "", "Bulgarian": "",
"Irish": "", "Burmese": "",
"Italian": "", "Catalan": "",
"Japanese": "", "Cebuano": "",
"Javanese": "", "Chinese (Simplified)": "",
"Kannada": "", "Chinese (Traditional)": "",
"Kazakh": "", "Corsican": "",
"Khmer": "", "Croatian": "",
"Korean": "", "Czech": "",
"Kurdish": "", "Danish": "",
"Kyrgyz": "", "Dutch": "",
"Lao": "", "Esperanto": "",
"Latin": "", "Estonian": "",
"Latvian": "", "Filipino": "",
"Lithuanian": "", "Finnish": "",
"Luxembourgish": "", "French": "",
"Macedonian": "", "Galician": "",
"Malagasy": "", "Georgian": "",
"Malay": "", "German": "",
"Malayalam": "", "Greek": "",
"Maltese": "", "Gujarati": "",
"Maori": "", "Haitian Creole": "",
"Marathi": "", "Hausa": "",
"Mongolian": "", "Hawaiian": "",
"Nepali": "", "Hebrew": "",
"Norwegian": "", "Hindi": "",
"Nyanja": "", "Hmong": "",
"Pashto": "", "Hungarian": "",
"Persian": "", "Icelandic": "",
"Polish": "", "Igbo": "",
"Portuguese": "", "Indonesian": "",
"Punjabi": "", "Irish": "",
"Romanian": "", "Italian": "",
"Russian": "", "Japanese": "",
"Samoan": "", "Javanese": "",
"Scottish Gaelic": "", "Kannada": "",
"Serbian": "", "Kazakh": "",
"Shona": "", "Khmer": "",
"Sindhi": "", "Korean": "",
"Sinhala": "", "Kurdish": "",
"Slovak": "", "Kyrgyz": "",
"Slovenian": "", "Lao": "",
"Somali": "", "Latin": "",
"Southern Sotho": "", "Latvian": "",
"Spanish": "", "Lithuanian": "",
"Spanish (Latin America)": "", "Luxembourgish": "",
"Sundanese": "", "Macedonian": "",
"Swahili": "", "Malagasy": "",
"Swedish": "", "Malay": "",
"Tajik": "", "Malayalam": "",
"Tamil": "", "Maltese": "",
"Telugu": "", "Maori": "",
"Thai": "", "Marathi": "",
"Turkish": "", "Mongolian": "",
"Ukrainian": "", "Nepali": "",
"Urdu": "", "Norwegian Bokmål": "",
"Uzbek": "", "Nyanja": "",
"Vietnamese": "", "Pashto": "",
"Welsh": "", "Persian": "",
"Western Frisian": "", "Polish": "",
"Xhosa": "", "Portuguese": "",
"Yiddish": "", "Punjabi": "",
"Yoruba": "", "Romanian": "",
"Zulu": "", "Russian": "",
"`x` years": "", "Samoan": "",
"`x` months": "", "Scottish Gaelic": "",
"`x` weeks": "", "Serbian": "",
"`x` days": "", "Shona": "",
"`x` hours": "", "Sindhi": "",
"`x` minutes": "", "Sinhala": "",
"`x` seconds": "", "Slovak": "",
"Fallback comments: ": "", "Slovenian": "",
"Popular": "", "Somali": "",
"Top": "", "Southern Sotho": "",
"About": "", "Spanish": "",
"Rating: ": "", "Spanish (Latin America)": "",
"Language: ": "", "Sundanese": "",
"Default": "", "Swahili": "",
"Music": "", "Swedish": "",
"Gaming": "", "Tajik": "",
"News": "", "Tamil": "",
"Movies": "", "Telugu": "",
"Download": "", "Thai": "",
"Download as: ": "", "Turkish": "",
"%A %B %-d, %Y": "", "Ukrainian": "",
"(edited)": "", "Urdu": "",
"Youtube permalink of the comment": "", "Uzbek": "",
"`x` marked it with a ❤": "" "Vietnamese": "",
"Welsh": "",
"Western Frisian": "",
"Xhosa": "",
"Yiddish": "",
"Yoruba": "",
"Zulu": "",
"`x` years": "",
"`x` months": "",
"`x` weeks": "",
"`x` days": "",
"`x` hours": "",
"`x` minutes": "",
"`x` seconds": "",
"Fallback comments: ": "",
"Popular": "",
"Top": "",
"About": "",
"Rating: ": "",
"Language: ": "",
"View as playlist": "",
"Default": "",
"Music": "",
"Gaming": "",
"News": "",
"Movies": "",
"Download": "",
"Download as: ": "",
"%A %B %-d, %Y": "",
"(edited)": "",
"YouTube comment permalink": "",
"`x` marked it with a ❤": "",
"Audio mode": "",
"Video mode": "",
"Videos": ""
} }

View File

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

314
locales/it.json Normal file
View File

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

View File

@@ -1,278 +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",
"Save preferences": "Lagre innstillinger", "Only show latest video from channel: ": "Kun vis siste video fra kanal: ",
"Subscription manager": "Abonnementsbehandler", "Only show latest unwatched video from channel: ": "Kun vis siste usette video fra kanal: ",
"`x` subscriptions": "`x` abonnementer", "Only show unwatched: ": "Kun vis usette: ",
"Import/Export": "Importer/eksporter", "Only show notifications (if there are any): ": "Kun vis merknader (hvis det er noen): ",
"unsubscribe": "opphev abonnement", "Data preferences": "Datainnstillinger",
"Subscriptions": "Abonnement", "Clear watch history": "Tøm visningshistorikk",
"`x` unseen notifications": "`x` usette merknader", "Import/export data": "Importer/eksporter data",
"search": "søk", "Change password": "Endre passord",
"Sign out": "Logg ut", "Manage subscriptions": "Behandle abonnementer",
"Released under the AGPLv3 by Omar Roth.": "Utgitt med AGPLv3+lisens av Omar Roth.", "Manage tokens": "Behandle symboler",
"Source available here.": "Kildekode tilgjengelig her.", "Watch history": "Visningshistorikk",
"View JavaScript license information.": "Vis JavaScript-lisensinfo.", "Delete account": "Slett konto",
"Trending": "Trendsettende", "Administrator preferences": "Administratorinnstillinger",
"Watch video on Youtube": "Vis video på YouTube", "Default homepage: ": "Forvalgt hjemmeside: ",
"Genre: ": "Sjanger: ", "Feed menu: ": "Flyt-meny: ",
"License: ": "Lisens: ", "Top enabled? ": "Topp påskrudd? ",
"Family friendly? ": "Familievennlig? ", "CAPTCHA enabled? ": "CAPTCHA påskrudd? ",
"Wilson score: ": "Wilson-poengsum: ", "Login enabled? ": "Innlogging påskrudd? ",
"Engagement: ": "Engasjement: ", "Registration enabled? ": "Registrering påskrudd? ",
"Whitelisted regions: ": "Hvitlistede regioner: ", "Report statistics? ": "Innrapporter statistikk? ",
"Blacklisted regions: ": "Svartelistede regioner: ", "Save preferences": "Lagre innstillinger",
"Shared `x`": "Delt `x`", "Subscription manager": "Abonnementsbehandler",
"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.", "Token manager": "Symbolbehandler",
"View YouTube comments": "Vis YouTube-kommentarer", "Token": "Symbol",
"View more comments on Reddit": "Vis flere kommenterer på Reddit", "`x` subscriptions": "`x` abonnementer",
"View `x` comments": "Vis `x` kommentarer", "`x` tokens": "`x` symboler",
"View Reddit comments": "Vis Reddit-kommentarer", "Import/export": "Importer/eksporter",
"Hide replies": "Skjul svar", "unsubscribe": "opphev abonnement",
"Show replies": "Vis svar", "revoke": "tilbakekall",
"Incorrect password": "Feil passord", "Subscriptions": "Abonnement",
"Quota exceeded, try again in a few hours": "Kvote overskredet, prøv igjen om et par timer", "`x` unseen notifications": "`x` usette merknader",
"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å.", "search": "søk",
"Invalid TFA code": "Ugyldig tofaktorkode", "Log out": "Logg ut",
"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.", "Released under the AGPLv3 by Omar Roth.": "Utgitt med AGPLv3+lisens av Omar Roth.",
"Invalid answer": "Ugyldig svar", "Source available here.": "Kildekode tilgjengelig her.",
"Invalid CAPTCHA": "Ugyldig CAPTCHA", "View JavaScript license information.": "Vis JavaScript-lisensinfo.",
"CAPTCHA is a required field": "CAPTCHA er et påkrevd felt", "View privacy policy.": "Vis personvernspraksis.",
"User ID is a required field": "Bruker-ID er et påkrevd felt", "Trending": "Trendsettende",
"Password is a required field": "Passord er et påkrevd felt", "Unlisted": "Ulistet",
"Invalid username or password": "Ugyldig brukernavn eller passord", "Watch on YouTube": "Vis video på YouTube",
"Please sign in using 'Sign in with Google'": "Logg inn ved bruk av \"Google-innlogging\"", "Hide annotations": "Skjul merknader",
"Password cannot be empty": "Passordet kan ikke være tomt", "Show annotations": "Vis merknader",
"Password cannot be longer than 55 characters": "Passordet kan ikke være lengre enn 55 tegn", "Genre: ": "Sjanger: ",
"Please sign in": "Logg inn", "License: ": "Lisens: ",
"Invidious Private Feed for `x`": "Ugyldig privat flyt for `x`", "Family friendly? ": "Familievennlig? ",
"channel:`x`": "kanal `x`", "Wilson score: ": "Wilson-poengsum: ",
"Deleted or invalid channel": "Slettet eller ugyldig kanal", "Engagement: ": "Engasjement: ",
"This channel does not exist.": "Denne kanalen finnes ikke.", "Whitelisted regions: ": "Hvitlistede regioner: ",
"Could not get channel info.": "Kunne ikke innhente kanalinfo.", "Blacklisted regions: ": "Svartelistede regioner: ",
"Could not fetch comments": "Kunne ikke hente kommentarer", "Shared `x`": "Delt `x`",
"View `x` replies": "Vis `x` svar", "`x` views": "`x` visninger",
"`x` ago": "`x` siden", "Premieres in `x`": "Premiere om `x`",
"Load more": "Last inn flere", "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.",
"`x` points": "`x` poeng", "View YouTube comments": "Vis YouTube-kommentarer",
"Could not create mix.": "Kunne ikke opprette miks.", "View more comments on Reddit": "Vis flere kommenterer på Reddit",
"Playlist is empty": "Spillelisten er tom", "View `x` comments": "Vis `x` kommentarer",
"Invalid playlist.": "Ugyldig spilleliste.", "View Reddit comments": "Vis Reddit-kommentarer",
"Playlist does not exist.": "Spillelisten finnes ikke.", "Hide replies": "Skjul svar",
"Could not pull trending pages.": "Kunne ikke hente trendsettende sider.", "Show replies": "Vis svar",
"Hidden field \"challenge\" is a required field": "Skjult felt \"utfordring\" er et påkrevd felt", "Incorrect password": "Feil passord",
"Hidden field \"token\" is a required field": "Skjult felt \"symbol\" er et påkrevd felt", "Quota exceeded, try again in a few hours": "Kvote overskredet, prøv igjen om et par timer",
"Invalid challenge": "Ugyldig utfordring", "Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Kunne ikke logge inn, forsikre deg om at tofaktor-identitetsbekreftelse (Authenticator eller SMS) er skrudd på.",
"Invalid token": "Ugyldig symbol", "Invalid TFA code": "Ugyldig tofaktorkode",
"Invalid user": "Ugyldig bruker", "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.",
"Token is expired, please try again": "Symbol utløpt, prøv igjen", "Wrong answer": "Ugyldig svar",
"English": "Engelsk", "Erroneous CAPTCHA": "Ugyldig CAPTCHA",
"English (auto-generated)": "Engelsk (auto-generert)", "CAPTCHA is a required field": "CAPTCHA er et påkrevd felt",
"Afrikaans": "", "User ID is a required field": "Bruker-ID er et påkrevd felt",
"Albanian": "Albansk", "Password is a required field": "Passord er et påkrevd felt",
"Amharic": "", "Wrong username or password": "Ugyldig brukernavn eller passord",
"Arabic": "Arabisk", "Please sign in using 'Log in with Google'": "Logg inn ved bruk av \"Google-innlogging\"",
"Armenian": "Armensk", "Password cannot be empty": "Passordet kan ikke være tomt",
"Azerbaijani": "", "Password cannot be longer than 55 characters": "Passordet kan ikke være lengre enn 55 tegn",
"Bangla": "", "Please log in": "Logg inn",
"Basque": "", "Invidious Private Feed for `x`": "Ugyldig privat flyt for `x`",
"Belarusian": "Hviterussisk", "channel:`x`": "kanal `x`",
"Bosnian": "Bosnisk", "Deleted or invalid channel": "Slettet eller ugyldig kanal",
"Bulgarian": "Bulgarsk", "This channel does not exist.": "Denne kanalen finnes ikke.",
"Burmese": "Burmesisk", "Could not get channel info.": "Kunne ikke innhente kanalinfo.",
"Catalan": "Katalansk", "Could not fetch comments": "Kunne ikke hente kommentarer",
"Cebuano": "", "View `x` replies": "Vis `x` svar",
"Chinese (Simplified)": "", "`x` ago": "`x` siden",
"Chinese (Traditional)": "", "Load more": "Last inn flere",
"Corsican": "", "`x` points": "`x` poeng",
"Croatian": "", "Could not create mix.": "Kunne ikke opprette miks.",
"Czech": "Tsjekkisk", "Empty playlist": "Spillelisten er tom",
"Danish": "Dansk", "Not a playlist.": "Ugyldig spilleliste.",
"Dutch": "", "Playlist does not exist.": "Spillelisten finnes ikke.",
"Esperanto": "Esperanto", "Could not pull trending pages.": "Kunne ikke hente trendsettende sider.",
"Estonian": "", "Hidden field \"challenge\" is a required field": "Skjult felt \"utfordring\" er et påkrevd felt",
"Filipino": "", "Hidden field \"token\" is a required field": "Skjult felt \"symbol\" er et påkrevd felt",
"Finnish": "Finsk", "Erroneous challenge": "Ugyldig utfordring",
"French": "Fransk", "Erroneous token": "Ugyldig symbol",
"Galician": "", "No such user": "Ugyldig bruker",
"Georgian": "", "Token is expired, please try again": "Symbol utløpt, prøv igjen",
"German": "", "English": "Engelsk",
"Greek": "", "English (auto-generated)": "Engelsk (auto-generert)",
"Gujarati": "", "Afrikaans": "",
"Haitian Creole": "", "Albanian": "Albansk",
"Hausa": "", "Amharic": "",
"Hawaiian": "", "Arabic": "Arabisk",
"Hebrew": "", "Armenian": "Armensk",
"Hindi": "", "Azerbaijani": "",
"Hmong": "", "Bangla": "",
"Hungarian": "Ungarsk", "Basque": "",
"Icelandic": "Islandsk", "Belarusian": "Hviterussisk",
"Igbo": "", "Bosnian": "Bosnisk",
"Indonesian": "Indonesisk", "Bulgarian": "Bulgarsk",
"Irish": "Irsk", "Burmese": "Burmesisk",
"Italian": "Italiensk", "Catalan": "Katalansk",
"Japanese": "Japansk", "Cebuano": "",
"Javanese": "", "Chinese (Simplified)": "",
"Kannada": "", "Chinese (Traditional)": "",
"Kazakh": "", "Corsican": "",
"Khmer": "", "Croatian": "",
"Korean": "", "Czech": "Tsjekkisk",
"Kurdish": "", "Danish": "Dansk",
"Kyrgyz": "", "Dutch": "",
"Lao": "", "Esperanto": "Esperanto",
"Latin": "", "Estonian": "",
"Latvian": "", "Filipino": "",
"Lithuanian": "", "Finnish": "Finsk",
"Luxembourgish": "", "French": "Fransk",
"Macedonian": "", "Galician": "",
"Malagasy": "", "Georgian": "",
"Malay": "", "German": "",
"Malayalam": "", "Greek": "",
"Maltese": "", "Gujarati": "",
"Maori": "", "Haitian Creole": "",
"Marathi": "", "Hausa": "",
"Mongolian": "", "Hawaiian": "",
"Nepali": "", "Hebrew": "",
"Norwegian": "Norsk bokmål", "Hindi": "",
"Nyanja": "", "Hmong": "",
"Pashto": "", "Hungarian": "Ungarsk",
"Persian": "", "Icelandic": "Islandsk",
"Polish": "", "Igbo": "",
"Portuguese": "", "Indonesian": "Indonesisk",
"Punjabi": "", "Irish": "Irsk",
"Romanian": "", "Italian": "Italiensk",
"Russian": "Russisk", "Japanese": "Japansk",
"Samoan": "", "Javanese": "",
"Scottish Gaelic": "", "Kannada": "",
"Serbian": "Serbisk", "Kazakh": "",
"Shona": "", "Khmer": "",
"Sindhi": "", "Korean": "",
"Sinhala": "", "Kurdish": "",
"Slovak": "Slovakisk", "Kyrgyz": "",
"Slovenian": "Slovensk", "Lao": "",
"Somali": "Somali", "Latin": "",
"Southern Sotho": "", "Latvian": "",
"Spanish": "Spansk", "Lithuanian": "",
"Spanish (Latin America)": "", "Luxembourgish": "",
"Sundanese": "", "Macedonian": "",
"Swahili": "", "Malagasy": "",
"Swedish": "Svensk", "Malay": "",
"Tajik": "", "Malayalam": "",
"Tamil": "", "Maltese": "",
"Telugu": "", "Maori": "",
"Thai": "", "Marathi": "",
"Turkish": "Tyrkisk", "Mongolian": "",
"Ukrainian": "Ukrainsk", "Nepali": "",
"Urdu": "", "Norwegian Bokmål": "Norsk bokmål",
"Uzbek": "", "Nyanja": "",
"Vietnamese": "Vietnamesisk", "Pashto": "",
"Welsh": "", "Persian": "",
"Western Frisian": "", "Polish": "",
"Xhosa": "", "Portuguese": "",
"Yiddish": "", "Punjabi": "",
"Yoruba": "", "Romanian": "",
"Zulu": "", "Russian": "Russisk",
"`x` years": "`x` år", "Samoan": "",
"`x` months": "`x` måneder", "Scottish Gaelic": "",
"`x` weeks": "`x` uker", "Serbian": "Serbisk",
"`x` days": "`x` dager", "Shona": "",
"`x` hours": "`x` timer", "Sindhi": "",
"`x` minutes": "`x` minutter", "Sinhala": "",
"`x` seconds": "`x` sekunder", "Slovak": "Slovakisk",
"Fallback comments: ": "Tilbakefallskommentarer: ", "Slovenian": "Slovensk",
"Popular": "Pupulært", "Somali": "Somali",
"Top": "Topp", "Southern Sotho": "",
"About": "Om", "Spanish": "Spansk",
"Rating: ": "Vurdering: ", "Spanish (Latin America)": "",
"Language: ": "Språk: ", "Sundanese": "",
"Default": "", "Swahili": "",
"Music": "", "Swedish": "Svensk",
"Gaming": "", "Tajik": "",
"News": "", "Tamil": "",
"Movies": "", "Telugu": "",
"Download": "", "Thai": "",
"Download as: ": "", "Turkish": "Tyrkisk",
"%A %B %-d, %Y": "", "Ukrainian": "Ukrainsk",
"(edited)": "", "Urdu": "",
"Youtube permalink of the comment": "", "Uzbek": "",
"`x` marked it with a ❤": "" "Vietnamese": "Vietnamesisk",
"Welsh": "",
"Western Frisian": "",
"Xhosa": "",
"Yiddish": "",
"Yoruba": "",
"Zulu": "",
"`x` years": "`x` år",
"`x` months": "`x` måneder",
"`x` weeks": "`x` uker",
"`x` days": "`x` dager",
"`x` hours": "`x` timer",
"`x` minutes": "`x` minutter",
"`x` seconds": "`x` sekunder",
"Fallback comments: ": "Tilbakefallskommentarer: ",
"Popular": "Pupulært",
"Top": "Topp",
"About": "Om",
"Rating: ": "Vurdering: ",
"Language: ": "Språk: ",
"View as playlist": "Vis som spilleliste",
"Default": "Forvalg",
"Music": "Musikk",
"Gaming": "Spill",
"News": "Nyheter",
"Movies": "Filmer",
"Download": "Last ned",
"Download as: ": "Last ned som: ",
"%A %B %-d, %Y": "",
"(edited)": "(redigert)",
"YouTube comment permalink": "Permanent YouTube-lenke til innholdet",
"`x` marked it with a ❤": "`x` levnet et ❤",
"Audio mode": "Lydmodus",
"Video mode": "Video-modus",
"Videos": "Videoer",
"Playlists": "Spillelister",
"Current version: ": "Nåværende versjon: "
} }

View File

@@ -1,278 +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",
"Save preferences": "Opslaan voorkeuren", "Only show latest video from channel: ": "Laat alleen laatste video van kanaal zien: ",
"Subscription manager": "Abonnees beheerder", "Only show latest unwatched video from channel: ": "Laat alleen de laatste onbekeken video zien van kanaal: ",
"`x` subscriptions": "`x` abonnees", "Only show unwatched: ": "Laat alleen onbekeken videos zien: ",
"Import/Export": "Importeer/Exporteer", "Only show notifications (if there are any): ": "Laat alleen notificaties zien (als die er zijn): ",
"unsubscribe": "abonnement opzeggen", "Data preferences": "Gegevens voorkeuren",
"Subscriptions": "Abonnees", "Clear watch history": "Kijkgeschiedenis wissen",
"`x` unseen notifications": "`x` onbekeken notificaties", "Import/export data": "Importeer/Exporteer gegevens",
"search": "zoeken", "Change password": "",
"Sign out": "Afmelden", "Manage subscriptions": "Abonnees beheren",
"Released under the AGPLv3 by Omar Roth.": "Uitgegeven onder AGPLv3 door Omar Roth.", "Manage tokens": "",
"Source available here.": "Bron beschikbaar hier.", "Watch history": "Kijkgeschiedenis",
"View JavaScript license information.": "Bekijk JavaScript licentie informatie.", "Delete account": "Account verwijderen",
"Trending": "Trending", "Administrator preferences": "",
"Watch video on Youtube": "Bekijk video op Youtube", "Default homepage: ": "",
"Genre: ": "Genre: ", "Feed menu: ": "",
"License: ": "Licentie: ", "Top enabled? ": "",
"Family friendly? ": "Gezinsvriendelijk? ", "CAPTCHA enabled? ": "",
"Wilson score: ": "Wilson score: ", "Login enabled? ": "",
"Engagement: ": "Betrokkenheid: ", "Registration enabled? ": "",
"Whitelisted regions: ": "Toegestane regio's: ", "Report statistics? ": "",
"Blacklisted regions: ": "Geblokkeerde regio's: ", "Save preferences": "Opslaan voorkeuren",
"Shared `x`": "`x` gedeeld", "Subscription manager": "Abonnees beheerder",
"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.", "Token manager": "",
"View YouTube comments": "Bekijk YouTube reacties", "Token": "",
"View more comments on Reddit": "Bekijk meer reacties op Reddit", "`x` subscriptions": "`x` abonnees",
"View `x` comments": "`x` reacties zien", "`x` tokens": "",
"View Reddit comments": "Bekijk Reddit reacties", "Import/export": "Importeer/Exporteer",
"Hide replies": "Verberg antwoorden", "unsubscribe": "abonnement opzeggen",
"Show replies": "Laat antwoorden zien", "revoke": "",
"Incorrect password": "Onjuist wachtwoord", "Subscriptions": "Abonnees",
"Quota exceeded, try again in a few hours": "Quota overschreden, probeer het over een paar uur opnieuw", "`x` unseen notifications": "`x` onbekeken notificaties",
"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.", "search": "zoeken",
"Invalid TFA code": "Onjuiste TFA code", "Log out": "Afmelden",
"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.", "Released under the AGPLv3 by Omar Roth.": "Uitgegeven onder AGPLv3 door Omar Roth.",
"Invalid answer": "Onjuist antwoord", "Source available here.": "Bron beschikbaar hier.",
"Invalid CAPTCHA": "Onjuiste CAPTCHA", "View JavaScript license information.": "Bekijk JavaScript licentie informatie.",
"CAPTCHA is a required field": "CAPTCHA is een vereist veld", "View privacy policy.": "",
"User ID is a required field": "Gebruiker ID is een vereist veld", "Trending": "Trending",
"Password is a required field": "Wachtwoord is een vereist veld", "Unlisted": "",
"Invalid username or password": "Ongeldige gebruikersnaam of wachtwoord", "Watch on YouTube": "Bekijk video op Youtube",
"Please sign in using 'Sign in with Google'": "Meld u aan met 'Aanmelden met Google'", "Hide annotations": "",
"Password cannot be empty": "Wachtwoord mag niet leeg zijn", "Show annotations": "",
"Password cannot be longer than 55 characters": "Wachtwoord mag niet langer dan 55 tekens zijn", "Genre: ": "Genre: ",
"Please sign in": "Meld u aan", "License: ": "Licentie: ",
"Invidious Private Feed for `x`": "Invidious Privé Feed voor `x`", "Family friendly? ": "Gezinsvriendelijk? ",
"channel:`x`": "kanaal:`x`", "Wilson score: ": "Wilson score: ",
"Deleted or invalid channel": "Verwijderd of ongeldig kanaal", "Engagement: ": "Betrokkenheid: ",
"This channel does not exist.": "Dit kanaal bestaat niet.", "Whitelisted regions: ": "Toegestane regio's: ",
"Could not get channel info.": "Kan kanaal informatie niet verkrijgen.", "Blacklisted regions: ": "Geblokkeerde regio's: ",
"Could not fetch comments": "Kan reacties niet verkrijgen", "Shared `x`": "`x` gedeeld",
"View `x` replies": "`x` antwoorden zien", "`x` views": "",
"`x` ago": "`x` geleden", "Premieres in `x`": "",
"Load more": "Meer laden", "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.",
"`x` points": "`x` punten", "View YouTube comments": "Bekijk YouTube reacties",
"Could not create mix.": "Kon mix niet maken.", "View more comments on Reddit": "Bekijk meer reacties op Reddit",
"Playlist is empty": "Afspeellijst is leeg", "View `x` comments": "`x` reacties zien",
"Invalid playlist.": "Ongeldige afspeellijst.", "View Reddit comments": "Bekijk Reddit reacties",
"Playlist does not exist.": "Afspeellijst bestaat niet.", "Hide replies": "Verberg antwoorden",
"Could not pull trending pages.": "Kon trending paginas niet verkrijgen.", "Show replies": "Laat antwoorden zien",
"Hidden field \"challenge\" is a required field": "Verborgen veld \"uitdaging\" is een vereist veld", "Incorrect password": "Onjuist wachtwoord",
"Hidden field \"token\" is a required field": "Verborgen veld \"token\" is een vereist veld", "Quota exceeded, try again in a few hours": "Quota overschreden, probeer het over een paar uur opnieuw",
"Invalid challenge": "Ongeldige uitdaging", "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.",
"Invalid token": "Ongeldige token", "Invalid TFA code": "Onjuiste TFA code",
"Invalid user": "Ongeldige gebruiker", "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.",
"Token is expired, please try again": "Token is verlopen, probeer het opnieuw", "Wrong answer": "Onjuist antwoord",
"English": "", "Erroneous CAPTCHA": "Onjuiste CAPTCHA",
"English (auto-generated)": "", "CAPTCHA is a required field": "CAPTCHA is een vereist veld",
"Afrikaans": "", "User ID is a required field": "Gebruiker ID is een vereist veld",
"Albanian": "", "Password is a required field": "Wachtwoord is een vereist veld",
"Amharic": "", "Wrong username or password": "Ongeldige gebruikersnaam of wachtwoord",
"Arabic": "", "Please sign in using 'Log in with Google'": "Meld u aan met 'Aanmelden met Google'",
"Armenian": "", "Password cannot be empty": "Wachtwoord mag niet leeg zijn",
"Azerbaijani": "", "Password cannot be longer than 55 characters": "Wachtwoord mag niet langer dan 55 tekens zijn",
"Bangla": "", "Please log in": "Meld u aan",
"Basque": "", "Invidious Private Feed for `x`": "Invidious Privé Feed voor `x`",
"Belarusian": "", "channel:`x`": "kanaal:`x`",
"Bosnian": "", "Deleted or invalid channel": "Verwijderd of ongeldig kanaal",
"Bulgarian": "", "This channel does not exist.": "Dit kanaal bestaat niet.",
"Burmese": "", "Could not get channel info.": "Kan kanaal informatie niet verkrijgen.",
"Catalan": "", "Could not fetch comments": "Kan reacties niet verkrijgen",
"Cebuano": "", "View `x` replies": "`x` antwoorden zien",
"Chinese (Simplified)": "", "`x` ago": "`x` geleden",
"Chinese (Traditional)": "", "Load more": "Meer laden",
"Corsican": "", "`x` points": "`x` punten",
"Croatian": "", "Could not create mix.": "Kon mix niet maken.",
"Czech": "", "Empty playlist": "Afspeellijst is leeg",
"Danish": "", "Not a playlist.": "Ongeldige afspeellijst.",
"Dutch": "", "Playlist does not exist.": "Afspeellijst bestaat niet.",
"Esperanto": "", "Could not pull trending pages.": "Kon trending paginas niet verkrijgen.",
"Estonian": "", "Hidden field \"challenge\" is a required field": "Verborgen veld \"uitdaging\" is een vereist veld",
"Filipino": "", "Hidden field \"token\" is a required field": "Verborgen veld \"token\" is een vereist veld",
"Finnish": "", "Erroneous challenge": "Ongeldige uitdaging",
"French": "", "Erroneous token": "Ongeldige token",
"Galician": "", "No such user": "Ongeldige gebruiker",
"Georgian": "", "Token is expired, please try again": "Token is verlopen, probeer het opnieuw",
"German": "", "English": "",
"Greek": "", "English (auto-generated)": "",
"Gujarati": "", "Afrikaans": "",
"Haitian Creole": "", "Albanian": "",
"Hausa": "", "Amharic": "",
"Hawaiian": "", "Arabic": "",
"Hebrew": "", "Armenian": "",
"Hindi": "", "Azerbaijani": "",
"Hmong": "", "Bangla": "",
"Hungarian": "", "Basque": "",
"Icelandic": "", "Belarusian": "",
"Igbo": "", "Bosnian": "",
"Indonesian": "", "Bulgarian": "",
"Irish": "", "Burmese": "",
"Italian": "", "Catalan": "",
"Japanese": "", "Cebuano": "",
"Javanese": "", "Chinese (Simplified)": "",
"Kannada": "", "Chinese (Traditional)": "",
"Kazakh": "", "Corsican": "",
"Khmer": "", "Croatian": "",
"Korean": "", "Czech": "",
"Kurdish": "", "Danish": "",
"Kyrgyz": "", "Dutch": "",
"Lao": "", "Esperanto": "",
"Latin": "", "Estonian": "",
"Latvian": "", "Filipino": "",
"Lithuanian": "", "Finnish": "",
"Luxembourgish": "", "French": "",
"Macedonian": "", "Galician": "",
"Malagasy": "", "Georgian": "",
"Malay": "", "German": "",
"Malayalam": "", "Greek": "",
"Maltese": "", "Gujarati": "",
"Maori": "", "Haitian Creole": "",
"Marathi": "", "Hausa": "",
"Mongolian": "", "Hawaiian": "",
"Nepali": "", "Hebrew": "",
"Norwegian": "", "Hindi": "",
"Nyanja": "", "Hmong": "",
"Pashto": "", "Hungarian": "",
"Persian": "", "Icelandic": "",
"Polish": "", "Igbo": "",
"Portuguese": "", "Indonesian": "",
"Punjabi": "", "Irish": "",
"Romanian": "", "Italian": "",
"Russian": "", "Japanese": "",
"Samoan": "", "Javanese": "",
"Scottish Gaelic": "", "Kannada": "",
"Serbian": "", "Kazakh": "",
"Shona": "", "Khmer": "",
"Sindhi": "", "Korean": "",
"Sinhala": "", "Kurdish": "",
"Slovak": "", "Kyrgyz": "",
"Slovenian": "", "Lao": "",
"Somali": "", "Latin": "",
"Southern Sotho": "", "Latvian": "",
"Spanish": "", "Lithuanian": "",
"Spanish (Latin America)": "", "Luxembourgish": "",
"Sundanese": "", "Macedonian": "",
"Swahili": "", "Malagasy": "",
"Swedish": "", "Malay": "",
"Tajik": "", "Malayalam": "",
"Tamil": "", "Maltese": "",
"Telugu": "", "Maori": "",
"Thai": "", "Marathi": "",
"Turkish": "", "Mongolian": "",
"Ukrainian": "", "Nepali": "",
"Urdu": "", "Norwegian Bokmål": "",
"Uzbek": "", "Nyanja": "",
"Vietnamese": "", "Pashto": "",
"Welsh": "", "Persian": "",
"Western Frisian": "", "Polish": "",
"Xhosa": "", "Portuguese": "",
"Yiddish": "", "Punjabi": "",
"Yoruba": "", "Romanian": "",
"Zulu": "", "Russian": "",
"`x` years": "`x` jaar", "Samoan": "",
"`x` months": "`x` maanden", "Scottish Gaelic": "",
"`x` weeks": "`x` weken", "Serbian": "",
"`x` days": "`x` dagen", "Shona": "",
"`x` hours": "`x` uur", "Sindhi": "",
"`x` minutes": "`x` minuten", "Sinhala": "",
"`x` seconds": "`x` seconden", "Slovak": "",
"Fallback comments: ": "", "Slovenian": "",
"Popular": "", "Somali": "",
"Top": "", "Southern Sotho": "",
"About": "", "Spanish": "",
"Rating: ": "", "Spanish (Latin America)": "",
"Language: ": "", "Sundanese": "",
"Default": "", "Swahili": "",
"Music": "", "Swedish": "",
"Gaming": "", "Tajik": "",
"News": "", "Tamil": "",
"Movies": "", "Telugu": "",
"Download": "", "Thai": "",
"Download as: ": "", "Turkish": "",
"%A %B %-d, %Y": "", "Ukrainian": "",
"(edited)": "", "Urdu": "",
"Youtube permalink of the comment": "", "Uzbek": "",
"`x` marked it with a ❤": "" "Vietnamese": "",
} "Welsh": "",
"Western Frisian": "",
"Xhosa": "",
"Yiddish": "",
"Yoruba": "",
"Zulu": "",
"`x` years": "`x` jaar",
"`x` months": "`x` maanden",
"`x` weeks": "`x` weken",
"`x` days": "`x` dagen",
"`x` hours": "`x` uur",
"`x` minutes": "`x` minuten",
"`x` seconds": "`x` seconden",
"Fallback comments: ": "",
"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,278 +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": "", "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",
"Save preferences": "Zapisz preferencje", "Only show latest video from channel: ": "Pokazuj tylko najnowszy film z kanału: ",
"Subscription manager": "Manager subskrybcji", "Only show latest unwatched video from channel: ": "Pokazuj tylko najnowszy nie obejrzany film z kanału: ",
"`x` subscriptions": "`x` subskrybcji", "Only show unwatched: ": "Pokazuj tylko nie obejrzane: ",
"Import/Export": "Import/Eksport", "Only show notifications (if there are any): ": "Pokazuj tylko powiadomienia (jeśli są): ",
"unsubscribe": "odsubskrybuj", "Data preferences": "Preferencje danych",
"Subscriptions": "Subskrybcje", "Clear watch history": "Wyczyść historię",
"`x` unseen notifications": "`x` niewidzianych powiadomień", "Import/export data": "Import/Eksport danych",
"search": "szukaj", "Change password": "",
"Sign out": "Wyloguj", "Manage subscriptions": "Organizuj subskrybcje",
"Released under the AGPLv3 by Omar Roth.": "Wydano na licencji AGPLv3 przez Omar Roth.", "Manage tokens": "",
"Source available here.": "Kod źródłowy dostępny tutaj.", "Watch history": "Historia",
"View JavaScript license information.": "Wyświetl informację o licencji JavaScript.", "Delete account": "Usuń konto",
"Trending": "Na czasie", "Administrator preferences": "Preferencje administratora",
"Watch video on Youtube": "Zobacz film na YouTube", "Default homepage: ": "Domyślna strona główna: ",
"Genre: ": "Gatunek: ", "Feed menu: ": "",
"License: ": "Licencja: ", "Top enabled? ": "",
"Family friendly? ": "Przyjazny rodzinie? ", "CAPTCHA enabled? ": "CAPTCHA aktywna? ",
"Wilson score: ": "Punktacja Wilsona: ", "Login enabled? ": "Logowanie włączone? ",
"Engagement: ": "Zaangażowanie: ", "Registration enabled? ": "Rejestracja włączona? ",
"Whitelisted regions: ": "Dostępny na obszarach: ", "Report statistics? ": "Raportować statystyki? ",
"Blacklisted regions: ": "Niedostępny na obszarach: ", "Save preferences": "Zapisz preferencje",
"Shared `x`": "Udostępniono `x`", "Subscription manager": "Manager subskrybcji",
"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.", "Token manager": "",
"View YouTube comments": "Wyświetl komentarze z YouTube", "Token": "",
"View more comments on Reddit": "Wyświetl więcej komentarzy na Reddicie", "`x` subscriptions": "`x` subskrybcji",
"View `x` comments": "Wyświetl `x` komentarzy", "`x` tokens": "",
"View Reddit comments": "Wyświetl komentarze z Redditta", "Import/export": "Import/Eksport",
"Hide replies": "Ukryj odpowiedzi", "unsubscribe": "odsubskrybuj",
"Show replies": "Pokaż odpowiedzi", "revoke": "",
"Incorrect password": "Niepoprawne hasło", "Subscriptions": "Subskrybcje",
"Quota exceeded, try again in a few hours": "Przekroczony limit zapytań, spróbuj ponownie za kilka godzin", "`x` unseen notifications": "`x` nowych powiadomień",
"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.", "search": "szukaj",
"Invalid TFA code": "Niepoprawny kod TFA", "Log out": "Wyloguj",
"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.", "Released under the AGPLv3 by Omar Roth.": "Wydano na licencji AGPLv3 przez Omar Roth.",
"Invalid answer": "Niepoprawna odpowiedź", "Source available here.": "Kod źródłowy dostępny tutaj.",
"Invalid CAPTCHA": "CAPTCHA wykonane błędnie", "View JavaScript license information.": "Wyświetl informację o licencji JavaScript.",
"CAPTCHA is a required field": "CAPTCHA jest polem wymaganym", "View privacy policy.": "Polityka prywatności.",
"User ID is a required field": "ID użytkownika jest polem wymaganym", "Trending": "Na czasie",
"Password is a required field": "Hasło jest polem wymaganym", "Unlisted": "",
"Invalid username or password": "Niepoprawny login lub hasło", "Watch on YouTube": "Zobacz film na YouTube",
"Please sign in using 'Sign in with Google'": "Zaloguj się używając \"Zaloguj się przez Google\"", "Hide annotations": "",
"Password cannot be empty": "Hasło nie może być puste", "Show annotations": "",
"Password cannot be longer than 55 characters": "Hasło nie może być dłuższe niż 55 znaków", "Genre: ": "Gatunek: ",
"Please sign in": "Proszę się zalogować", "License: ": "Licencja: ",
"Invidious Private Feed for `x`": "", "Family friendly? ": "Przyjazny rodzinie? ",
"channel:`x`": "kanał:`x", "Wilson score: ": "Punktacja Wilsona: ",
"Deleted or invalid channel": "Usunięty lub niepoprawny kanał", "Engagement: ": "Zaangażowanie: ",
"This channel does not exist.": "Ten kanał nie istnieje.", "Whitelisted regions: ": "Dostępny na obszarach: ",
"Could not get channel info.": "Nie udało się uzyskać informacji o kanale.", "Blacklisted regions: ": "Niedostępny na obszarach: ",
"Could not fetch comments": "Nie udało się pobrać komentarzy", "Shared `x`": "Udostępniono `x`",
"View `x` replies": "Wyświetl `x` odpowiedzi", "`x` views": "`x` wyświetl",
"`x` ago": "`x` temu", "Premieres in `x`": "Publikacja za `x`",
"Load more": "Wczytaj więcej", "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.",
"`x` points": "`x` punktów", "View YouTube comments": "Wyświetl komentarze z YouTube",
"Could not create mix.": "Nie udało się utworzyć miksu.", "View more comments on Reddit": "Wyświetl więcej komentarzy na Reddicie",
"Playlist is empty": "Lista odtwarzania jest pusta", "View `x` comments": "Wyświetl `x` komentarzy",
"Invalid playlist.": "Niepoprawna lista.", "View Reddit comments": "Wyświetl komentarze z Redditta",
"Playlist does not exist.": "Lista odtwarzania nie istnieje.", "Hide replies": "Ukryj odpowiedzi",
"Could not pull trending pages.": "Nie udało się pobrać strony na czasie.", "Show replies": "Pokaż odpowiedzi",
"Hidden field \"challenge\" is a required field": "Ukryte pole \"wyzwanie\" jest polem wymaganym", "Incorrect password": "Niepoprawne hasło",
"Hidden field \"token\" is a required field": "Ukryte pole \"token\" jest polem wymaganym", "Quota exceeded, try again in a few hours": "Przekroczony limit zapytań, spróbuj ponownie za kilka godzin",
"Invalid challenge": "Niepoprawne wyzwanie", "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.",
"Invalid token": "Niepoprawny token", "Invalid TFA code": "Niepoprawny kod TFA",
"Invalid user": "Niepoprawny użytkownik", "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.",
"Token is expired, please try again": "Token wygasł, spróbuj ponownie", "Wrong answer": "Niepoprawna odpowie",
"English": "", "Erroneous CAPTCHA": "CAPTCHA wykonane błędnie",
"English (auto-generated)": "", "CAPTCHA is a required field": "CAPTCHA jest polem wymaganym",
"Afrikaans": "", "User ID is a required field": "ID użytkownika jest polem wymaganym",
"Albanian": "", "Password is a required field": "Hasło jest polem wymaganym",
"Amharic": "", "Wrong username or password": "Niepoprawny login lub hasło",
"Arabic": "", "Please sign in using 'Log in with Google'": "Zaloguj się używając \"Zaloguj się przez Google\"",
"Armenian": "", "Password cannot be empty": "Hasło nie może być puste",
"Azerbaijani": "", "Password cannot be longer than 55 characters": "Hasło nie może być dłuższe niż 55 znaków",
"Bangla": "", "Please log in": "Proszę się zalogować",
"Basque": "", "Invidious Private Feed for `x`": "",
"Belarusian": "", "channel:`x`": "kanał:`x",
"Bosnian": "", "Deleted or invalid channel": "Usunięty lub niepoprawny kanał",
"Bulgarian": "", "This channel does not exist.": "Ten kanał nie istnieje.",
"Burmese": "", "Could not get channel info.": "Nie udało się uzyskać informacji o kanale.",
"Catalan": "", "Could not fetch comments": "Nie udało się pobrać komentarzy",
"Cebuano": "", "View `x` replies": "Wyświetl `x` odpowiedzi",
"Chinese (Simplified)": "", "`x` ago": "`x` temu",
"Chinese (Traditional)": "", "Load more": "Wczytaj więcej",
"Corsican": "", "`x` points": "`x` punktów",
"Croatian": "", "Could not create mix.": "Nie udało się utworzyć miksu.",
"Czech": "", "Empty playlist": "Lista odtwarzania jest pusta",
"Danish": "", "Not a playlist.": "Niepoprawna lista.",
"Dutch": "", "Playlist does not exist.": "Lista odtwarzania nie istnieje.",
"Esperanto": "", "Could not pull trending pages.": "Nie udało się pobrać strony na czasie.",
"Estonian": "", "Hidden field \"challenge\" is a required field": "Ukryte pole \"wyzwanie\" jest polem wymaganym",
"Filipino": "", "Hidden field \"token\" is a required field": "Ukryte pole \"token\" jest polem wymaganym",
"Finnish": "", "Erroneous challenge": "Niepoprawne wyzwanie",
"French": "", "Erroneous token": "Niepoprawny token",
"Galician": "", "No such user": "Niepoprawny użytkownik",
"Georgian": "", "Token is expired, please try again": "Token wygasł, spróbuj ponownie",
"German": "", "English": "angielski",
"Greek": "", "English (auto-generated)": "angielski (automatycznie generowane)",
"Gujarati": "", "Afrikaans": "afrykanerski",
"Haitian Creole": "", "Albanian": "albański",
"Hausa": "", "Amharic": "amharski",
"Hawaiian": "", "Arabic": "arabski",
"Hebrew": "", "Armenian": "armeński",
"Hindi": "", "Azerbaijani": "azerski",
"Hmong": "", "Bangla": "bengalski",
"Hungarian": "", "Basque": "baskijski",
"Icelandic": "", "Belarusian": "białoruski",
"Igbo": "", "Bosnian": "bośniacki",
"Indonesian": "", "Bulgarian": "bułgarski",
"Irish": "", "Burmese": "birmański",
"Italian": "", "Catalan": "kataloński",
"Japanese": "", "Cebuano": "cebuański",
"Javanese": "", "Chinese (Simplified)": "chiński (uproszczony)",
"Kannada": "", "Chinese (Traditional)": "chiński (tradycyjny)",
"Kazakh": "", "Corsican": "korsykański",
"Khmer": "", "Croatian": "chorwacki",
"Korean": "", "Czech": "czeski",
"Kurdish": "", "Danish": "duński",
"Kyrgyz": "", "Dutch": "holenderski",
"Lao": "", "Esperanto": "esperanto",
"Latin": "", "Estonian": "estoński",
"Latvian": "", "Filipino": "filipiński",
"Lithuanian": "", "Finnish": "fiński",
"Luxembourgish": "", "French": "francuski",
"Macedonian": "", "Galician": "galicyjski",
"Malagasy": "", "Georgian": "gruziński",
"Malay": "", "German": "niemiecki",
"Malayalam": "", "Greek": "grecki",
"Maltese": "", "Gujarati": "gudźarati",
"Maori": "", "Haitian Creole": "kreolski haitański",
"Marathi": "", "Hausa": "hausa",
"Mongolian": "", "Hawaiian": "hawajski",
"Nepali": "", "Hebrew": "hebrajski",
"Norwegian": "", "Hindi": "hindi",
"Nyanja": "", "Hmong": "hmong",
"Pashto": "", "Hungarian": "węgierski",
"Persian": "", "Icelandic": "islandzki",
"Polish": "", "Igbo": "ibo",
"Portuguese": "", "Indonesian": "indonezyjski",
"Punjabi": "", "Irish": "irlandzki",
"Romanian": "", "Italian": "włoski",
"Russian": "", "Japanese": "japoński",
"Samoan": "", "Javanese": "jawajski",
"Scottish Gaelic": "", "Kannada": "kannada",
"Serbian": "", "Kazakh": "kazachski",
"Shona": "", "Khmer": "khmerski",
"Sindhi": "", "Korean": "koreański",
"Sinhala": "", "Kurdish": "kurdyjski",
"Slovak": "", "Kyrgyz": "kirgiski",
"Slovenian": "", "Lao": "laotański",
"Somali": "", "Latin": "łaciński",
"Southern Sotho": "", "Latvian": "łotewski",
"Spanish": "", "Lithuanian": "litewski",
"Spanish (Latin America)": "", "Luxembourgish": "luksemburski",
"Sundanese": "", "Macedonian": "macedoński",
"Swahili": "", "Malagasy": "malgaski",
"Swedish": "", "Malay": "malajski",
"Tajik": "", "Malayalam": "malajalam",
"Tamil": "", "Maltese": "maltański",
"Telugu": "", "Maori": "maoryski",
"Thai": "", "Marathi": "marathi",
"Turkish": "", "Mongolian": "mongolski",
"Ukrainian": "", "Nepali": "nepalski",
"Urdu": "", "Norwegian Bokmål": "norweski",
"Uzbek": "", "Nyanja": "njandża",
"Vietnamese": "", "Pashto": "paszto",
"Welsh": "", "Persian": "perski",
"Western Frisian": "", "Polish": "polski",
"Xhosa": "", "Portuguese": "portugalski",
"Yiddish": "", "Punjabi": "pendżabski",
"Yoruba": "", "Romanian": "rumuński",
"Zulu": "", "Russian": "rosyjski",
"`x` years": "`x` lat", "Samoan": "samoański",
"`x` months": "`x` miesięcy", "Scottish Gaelic": "gaelicki szkocki",
"`x` weeks": "`x` tygodni", "Serbian": "serbski",
"`x` days": "`x` dni", "Shona": "shona",
"`x` hours": "`x` godzin", "Sindhi": "sindhi",
"`x` minutes": "`x` minut", "Sinhala": "syngaleski",
"`x` seconds": "`x` sekund", "Slovak": "słowacki",
"Fallback comments: ": "", "Slovenian": "słoweński",
"Popular": "", "Somali": "somalijski",
"Top": "", "Southern Sotho": "sotho południowy",
"About": "", "Spanish": "hiszpański",
"Rating: ": "", "Spanish (Latin America)": "hiszpański (ameryka łacińska)",
"Language: ": "", "Sundanese": "sundajski",
"Default": "", "Swahili": "suahili",
"Music": "", "Swedish": "szwedzki",
"Gaming": "", "Tajik": "tadżycki",
"News": "", "Tamil": "tamilski",
"Movies": "", "Telugu": "telugu",
"Download": "", "Thai": "tajski",
"Download as: ": "", "Turkish": "turecki",
"%A %B %-d, %Y": "", "Ukrainian": "ukraiński",
"(edited)": "", "Urdu": "urdu",
"Youtube permalink of the comment": "", "Uzbek": "uzbecki",
"`x` marked it with a ❤": "" "Vietnamese": "wietnamski",
} "Welsh": "walijski",
"Western Frisian": "zachodniofryzyjski",
"Xhosa": "xhosa",
"Yiddish": "jidysz",
"Yoruba": "joruba",
"Zulu": "zuluski",
"`x` years": "`x` lat",
"`x` months": "`x` miesięcy",
"`x` weeks": "`x` tygodni",
"`x` days": "`x` dni",
"`x` hours": "`x` godzin",
"`x` minutes": "`x` minut",
"`x` seconds": "`x` sekund",
"Fallback comments: ": "Zastępcze komentarze: ",
"Popular": "Popularne",
"Top": "Najczęściej oglądane",
"About": "Informacje",
"Rating: ": "Ocena: ",
"Language: ": "Język: ",
"View as playlist": "Obejrzyj w playliście",
"Default": "Domyślnie",
"Music": "Muzyka",
"Gaming": "Gry",
"News": "Wiadomości",
"Movies": "Filmy",
"Download": "Pobierz",
"Download as: ": "Pobierz jako: ",
"%A %B %-d, %Y": "",
"(edited)": "(edytowany)",
"YouTube comment permalink": "Odnośnik bezpośredni do komentarza na YouTube",
"`x` marked it with a ❤": "`x` oznaczonych ❤",
"Audio mode": "Tryb audio",
"Video mode": "Tryb wideo",
"Videos": "Filmy",
"Playlists": "Playlisty",
"Current version: ": "Aktualna wersja: "
}

View File

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

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: ": "Поточна версія: "
}

BIN
screenshots/01_player.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 889 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@@ -1,24 +1,21 @@
name: invidious name: invidious
version: 0.13.1 version: 0.17.0
authors: authors:
- Omar Roth <omarroth@hotmail.com> - Omar Roth <omarroth@protonmail.com>
targets: targets:
invidious: invidious:
main: src/invidious.cr main: src/invidious.cr
dependencies: dependencies:
detect_language:
github: detectlanguage/detectlanguage-crystal
kemal: kemal:
github: kemalcr/kemal github: kemalcr/kemal
commit: afd17fc
pg: pg:
github: will/crystal-pg github: will/crystal-pg
sqlite3: sqlite3:
github: crystal-lang/crystal-sqlite3 github: crystal-lang/crystal-sqlite3
crystal: 0.27.1 crystal: 0.28.0
license: AGPLv3 license: AGPLv3

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=4qmFsgJIEhhVQy05LWt5VFc4WmtaTkRIUUo2Rmdwd1EaLEVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQTJlZ294TlRRNU5qQXpOelE1&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=4qmFsgJOEhhVQy05LWt5VFc4WmtaTkRIUUo2Rmdwd1EaMkVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQTJlZ294TkRrNU5Ea3hOelE1R0FFJTNE&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,47 +1,86 @@
class InvidiousChannel struct InvidiousChannel
add_mapping({ db_mapping({
id: String, id: String,
author: String, author: String,
updated: Time, updated: Time,
deleted: Bool,
subscribed: Time?,
}) })
end end
class ChannelVideo struct ChannelVideo
add_mapping({ def to_json(locale, config, kemal_config, json : JSON::Builder)
id: String, json.object do
title: String, json.field "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, json.field "lengthSeconds", self.length_seconds
default: 0,
}, 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
@@ -49,13 +88,11 @@ def get_batch_channels(channels, db, refresh = false, pull_all_videos = true, ma
end end
def get_channel(id, db, refresh = true, pull_all_videos = true) def get_channel(id, db, refresh = true, pull_all_videos = true)
client = make_client(YT_URL)
if db.query_one?("SELECT EXISTS (SELECT true FROM channels WHERE id = $1)", id, as: Bool) if db.query_one?("SELECT EXISTS (SELECT true FROM channels WHERE id = $1)", id, as: Bool)
channel = db.query_one("SELECT * FROM channels WHERE id = $1", id, as: InvidiousChannel) channel = db.query_one("SELECT * FROM channels WHERE id = $1", id, as: InvidiousChannel)
if refresh && Time.now - channel.updated > 10.minutes if refresh && Time.now - channel.updated > 10.minutes
channel = fetch_channel(id, client, db, pull_all_videos: pull_all_videos) channel = fetch_channel(id, db, pull_all_videos: pull_all_videos)
channel_array = channel.to_a channel_array = channel.to_a
args = arg_array(channel_array) args = arg_array(channel_array)
@@ -63,7 +100,7 @@ def get_channel(id, db, refresh = true, pull_all_videos = true)
ON CONFLICT (id) DO UPDATE SET author = $2, updated = $3", channel_array) ON CONFLICT (id) DO UPDATE SET author = $2, updated = $3", channel_array)
end end
else else
channel = fetch_channel(id, client, db, pull_all_videos: pull_all_videos) channel = fetch_channel(id, db, pull_all_videos: pull_all_videos)
channel_array = channel.to_a channel_array = channel.to_a
args = arg_array(channel_array) args = arg_array(channel_array)
@@ -73,7 +110,9 @@ def get_channel(id, db, refresh = true, pull_all_videos = true)
return channel return channel
end end
def fetch_channel(ucid, client, db, pull_all_videos = true, locale = nil) def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
client = make_client(YT_URL)
rss = client.get("/feeds/videos.xml?channel_id=#{ucid}").body rss = client.get("/feeds/videos.xml?channel_id=#{ucid}").body
rss = XML.parse_html(rss) rss = XML.parse_html(rss)
@@ -90,51 +129,72 @@ def fetch_channel(ucid, client, 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
@@ -149,16 +209,26 @@ def fetch_channel(ucid, client, 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
@@ -171,12 +241,14 @@ def fetch_channel(ucid, client, 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
@@ -187,11 +259,90 @@ def fetch_channel(ucid, client, db, pull_all_videos = true, locale = nil)
db.exec("DELETE FROM channel_videos * WHERE NOT id = ANY ('{#{ids.map { |id| %("#{id}") }.join(",")}}') AND ucid = $1", ucid) db.exec("DELETE FROM channel_videos * WHERE NOT id = ANY ('{#{ids.map { |id| %("#{id}") }.join(",")}}') AND ucid = $1", ucid)
end end
channel = InvidiousChannel.new(ucid, author, Time.now) channel = InvidiousChannel.new(ucid, author, Time.now, false, nil)
return channel return channel
end end
def subscribe_pubsub(ucid, key, config)
client = make_client(PUBSUB_URL)
time = Time.now.to_unix.to_s
nonce = Random::Secure.hex(4)
signature = "#{time}:#{nonce}"
host_url = make_host_url(config, Kemal.config)
body = {
"hub.callback" => "#{host_url}/feed/webhook/v1:#{time}:#{nonce}:#{OpenSSL::HMAC.hexdigest(:sha1, key, signature)}",
"hub.topic" => "https://www.youtube.com/xml/feeds/videos.xml?channel_id=#{ucid}",
"hub.verify" => "async",
"hub.mode" => "subscribe",
"hub.lease_seconds" => "432000",
"hub.secret" => key.to_s,
}
return client.post("/subscribe", form: body)
end
def fetch_channel_playlists(ucid, author, auto_generated, continuation, sort_by)
client = make_client(YT_URL)
if continuation
url = produce_channel_playlists_url(ucid, continuation, sort_by, auto_generated)
response = client.get(url)
json = JSON.parse(response.body)
if json["load_more_widget_html"].as_s.empty?
return [] of SearchItem, nil
end
continuation = XML.parse_html(json["load_more_widget_html"].as_s)
continuation = continuation.xpath_node(%q(//button[@data-uix-load-more-href]))
if continuation
continuation = extract_channel_playlists_cursor(continuation["data-uix-load-more-href"], auto_generated)
end
html = XML.parse_html(json["content_html"].as_s)
nodeset = html.xpath_nodes(%q(//li[contains(@class, "feed-item-container")]))
else
url = "/channel/#{ucid}/playlists?disable_polymer=1&flow=list"
if auto_generated
url += "&view=50"
else
url += "&view=1"
end
case sort_by
when "last", "last_added"
#
when "oldest", "oldest_created"
url += "&sort=da"
when "newest", "newest_created"
url += "&sort=dd"
end
response = client.get(url)
html = XML.parse_html(response.body)
continuation = html.xpath_node(%q(//button[@data-uix-load-more-href]))
if continuation
continuation = extract_channel_playlists_cursor(continuation["data-uix-load-more-href"], auto_generated)
end
nodeset = html.xpath_nodes(%q(//ul[@id="browse-items-primary"]/li[contains(@class, "feed-item-container")]))
end
if auto_generated
items = extract_shelf_items(nodeset, ucid, author)
else
items = extract_items(nodeset, ucid, author)
end
return items, continuation
end
def produce_channel_videos_url(ucid, page = 1, auto_generated = nil, sort_by = "newest") def produce_channel_videos_url(ucid, page = 1, auto_generated = nil, sort_by = "newest")
if auto_generated if auto_generated
seed = Time.unix(1525757349) seed = Time.unix(1525757349)
@@ -218,7 +369,8 @@ def produce_channel_videos_url(ucid, page = 1, auto_generated = nil, sort_by = "
meta.write(Bytes[0x6a, 0x00]) meta.write(Bytes[0x6a, 0x00])
meta.write(Bytes[0xb8, 0x01, 0x00]) meta.write(Bytes[0xb8, 0x01, 0x00])
meta.write(Bytes[0x20, switch, 0x7a, page.size]) meta.write(Bytes[0x20, switch])
meta.write(Bytes[0x7a, page.size])
meta.print(page) meta.print(page)
case sort_by case sort_by
@@ -258,6 +410,132 @@ def produce_channel_videos_url(ucid, page = 1, auto_generated = nil, sort_by = "
return url return url
end end
def produce_channel_playlists_url(ucid, cursor, sort = "newest", auto_generated = false)
if !auto_generated
cursor = Base64.urlsafe_encode(cursor, false)
end
meta = IO::Memory.new
if auto_generated
meta.write(Bytes[0x08, 0x0a])
end
meta.write(Bytes[0x12, 0x09])
meta.print("playlists")
if auto_generated
meta.write(Bytes[0x20, 0x32])
else
# TODO: Look at 0x01, 0x00
case sort
when "oldest", "oldest_created"
meta.write(Bytes[0x18, 0x02])
when "newest", "newest_created"
meta.write(Bytes[0x18, 0x03])
when "last", "last_added"
meta.write(Bytes[0x18, 0x04])
end
meta.write(Bytes[0x20, 0x01])
end
meta.write(Bytes[0x30, 0x02])
meta.write(Bytes[0x38, 0x01])
meta.write(Bytes[0x60, 0x01])
meta.write(Bytes[0x6a, 0x00])
meta.write(Bytes[0x7a, cursor.size])
meta.print(cursor)
meta.write(Bytes[0xb8, 0x01, 0x00])
meta.rewind
meta = Base64.urlsafe_encode(meta.to_slice)
meta = URI.escape(meta)
continuation = IO::Memory.new
continuation.write(Bytes[0x12, ucid.size])
continuation.print(ucid)
continuation.write(Bytes[0x1a])
continuation.write(write_var_int(meta.size))
continuation.print(meta)
continuation.rewind
continuation = continuation.gets_to_end
wrapper = IO::Memory.new
wrapper.write(Bytes[0xe2, 0xa9, 0x85, 0xb2, 0x02])
wrapper.write(write_var_int(continuation.size))
wrapper.print(continuation)
wrapper.rewind
wrapper = Base64.urlsafe_encode(wrapper.to_slice)
wrapper = URI.escape(wrapper)
url = "/browse_ajax?continuation=#{wrapper}&gl=US&hl=en"
return url
end
def extract_channel_playlists_cursor(url, auto_generated)
wrapper = HTTP::Params.parse(URI.parse(url).query.not_nil!)["continuation"]
wrapper = URI.unescape(wrapper)
wrapper = Base64.decode(wrapper)
# 0xe2 0xa9 0x85 0xb2 0x02
wrapper += 5
continuation_size = read_var_int(wrapper[0, 4])
wrapper += write_var_int(continuation_size).size
continuation = wrapper[0, continuation_size]
# 0x12
continuation += 1
ucid_size = continuation[0]
continuation += 1
ucid = continuation[0, ucid_size]
continuation += ucid_size
# 0x1a
continuation += 1
meta_size = read_var_int(continuation[0, 4])
continuation += write_var_int(meta_size).size
meta = continuation[0, meta_size]
continuation += meta_size
meta = String.new(meta)
meta = URI.unescape(meta)
meta = Base64.decode(meta)
# 0x12 0x09 playlists
meta += 11
until meta[0] == 0x7a
tag = read_var_int(meta[0, 4])
meta += write_var_int(tag).size
value = meta[0]
meta += 1
end
# 0x7a
meta += 1
cursor_size = meta[0]
meta += 1
cursor = meta[0, cursor_size]
cursor = String.new(cursor)
if !auto_generated
cursor = URI.unescape(cursor)
cursor = Base64.decode_string(cursor)
end
return cursor
end
def get_about_info(ucid, locale) def get_about_info(ucid, locale)
client = make_client(YT_URL) client = make_client(YT_URL)
@@ -288,7 +566,7 @@ def get_about_info(ucid, locale)
sub_count ||= 0 sub_count ||= 0
author = about.xpath_node(%q(//span[contains(@class,"qualified-channel-title-text")]/a)).not_nil!.content author = about.xpath_node(%q(//span[contains(@class,"qualified-channel-title-text")]/a)).not_nil!.content
ucid = about.xpath_node(%q(//link[@rel="canonical"])).not_nil!["href"].split("/")[-1] ucid = about.xpath_node(%q(//meta[@itemprop="channelId"])).not_nil!["content"]
# Auto-generated channels # Auto-generated channels
# https://support.google.com/youtube/answer/2579942 # https://support.google.com/youtube/answer/2579942
@@ -332,3 +610,21 @@ def get_60_videos(ucid, page, auto_generated, sort_by = "newest")
return videos, count return videos, count
end end
def get_latest_videos(ucid)
client = make_client(YT_URL)
videos = [] of SearchVideo
url = produce_channel_videos_url(ucid, 0)
response = client.get(url)
json = JSON.parse(response.body)
if json["content_html"]? && !json["content_html"].as_s.empty?
document = XML.parse_html(json["content_html"].as_s)
nodeset = document.xpath_nodes(%q(//li[contains(@class, "feed-item-container")]))
videos = extract_videos(nodeset, ucid)
end
return videos
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,72 +56,31 @@ class RedditListing
}) })
end end
def fetch_youtube_comments(id, continuation, proxies, format, locale) def fetch_youtube_comments(id, db, continuation, proxies, format, locale, thin_mode, region, sort_by = "top")
client = make_client(YT_URL) video = get_video(id, db, proxies, region: region)
html = client.get("/watch?v=#{id}&gl=US&hl=en&disable_polymer=1&has_verified=1&bpctr=9999999999") session_token = video.info["session_token"]?
headers = HTTP::Headers.new
headers["cookie"] = html.cookies.add_request_headers(headers)["cookie"]
body = html.body
session_token = body.match(/'XSRF_TOKEN': "(?<session_token>[A-Za-z0-9\_\-\=]+)"/).not_nil!["session_token"] ctoken = produce_comment_continuation(id, cursor: "", sort_by: sort_by)
itct = body.match(/itct=(?<itct>[^"]+)"/).not_nil!["itct"] continuation ||= ctoken
ctoken = body.match(/'COMMENTS_TOKEN': "(?<ctoken>[^"]+)"/)
if body.match(/<meta itemprop="regionsAllowed" content="">/) && !body.match(/player-age-gate-content\">/) if !continuation || !session_token
bypass_channel = Channel({String, HTTPClient, HTTP::Headers} | Nil).new
proxies.each do |proxy_region, list|
spawn do
proxy_client = make_client(YT_URL, proxies, proxy_region)
response = proxy_client.get("/watch?v=#{id}&gl=US&hl=en&disable_polymer=1&has_verified=1&bpctr=9999999999")
proxy_headers = HTTP::Headers.new
proxy_headers["Cookie"] = response.cookies.add_request_headers(headers)["cookie"]
proxy_html = response.body
if !proxy_html.match(/<meta itemprop="regionsAllowed" content="">/) && !proxy_html.match(/player-age-gate-content\">/)
bypass_channel.send({proxy_html, proxy_client, proxy_headers})
else
bypass_channel.send(nil)
end
end
end
proxies.size.times do
response = bypass_channel.receive
if response
html, client, headers = response
session_token = html.match(/'XSRF_TOKEN': "(?<session_token>[A-Za-z0-9\_\-\=]+)"/).not_nil!["session_token"]
itct = html.match(/itct=(?<itct>[^"]+)"/).not_nil!["itct"]
ctoken = html.match(/'COMMENTS_TOKEN': "(?<ctoken>[^"]+)"/)
break
end
end
end
if !ctoken
if format == "json" if format == "json"
return {"comments" => [] of String}.to_json return {"comments" => [] of String}.to_json
else else
return {"contentHtml" => "", "commentCount" => 0}.to_json return {"contentHtml" => "", "commentCount" => 0}.to_json
end end
end end
ctoken = ctoken["ctoken"]
if !continuation.empty?
ctoken = continuation
else
continuation = ctoken
end
post_req = { post_req = {
"session_token" => session_token, "session_token" => session_token,
} }
post_req = HTTP::Params.encode(post_req) post_req = HTTP::Params.encode(post_req)
client = make_client(YT_URL, proxies, video.info["region"]?)
headers = HTTP::Headers.new
headers["content-type"] = "application/x-www-form-urlencoded" headers["content-type"] = "application/x-www-form-urlencoded"
headers["cookie"] = video.info["cookie"]
headers["x-client-data"] = "CIi2yQEIpbbJAQipncoBCNedygEIqKPKAQ==" headers["x-client-data"] = "CIi2yQEIpbbJAQipncoBCNedygEIqKPKAQ=="
headers["x-spf-previous"] = "https://www.youtube.com/watch?v=#{id}&gl=US&hl=en&disable_polymer=1&has_verified=1&bpctr=9999999999" headers["x-spf-previous"] = "https://www.youtube.com/watch?v=#{id}&gl=US&hl=en&disable_polymer=1&has_verified=1&bpctr=9999999999"
@@ -129,7 +88,8 @@ def fetch_youtube_comments(id, continuation, proxies, format, locale)
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=#{ctoken}&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"]?
@@ -223,7 +183,7 @@ def fetch_youtube_comments(id, continuation, proxies, format, locale)
json.field "content", content json.field "content", content
json.field "contentHtml", content_html json.field "contentHtml", content_html
json.field "published", published.to_unix json.field "published", published.to_unix
json.field "publishedText", translate(locale, "`x` ago", recode_date(published)) json.field "publishedText", translate(locale, "`x` ago", recode_date(published, locale))
json.field "likeCount", node_comment["likeCount"] json.field "likeCount", node_comment["likeCount"]
json.field "commentId", node_comment["commentId"] json.field "commentId", node_comment["commentId"]
json.field "authorIsChannelOwner", node_comment["authorIsChannelOwner"] json.field "authorIsChannelOwner", node_comment["authorIsChannelOwner"]
@@ -271,7 +231,7 @@ def fetch_youtube_comments(id, continuation, proxies, format, locale)
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
@@ -289,9 +249,9 @@ def fetch_youtube_comments(id, continuation, proxies, format, locale)
return comments return comments
end end
def fetch_reddit_comments(id) def fetch_reddit_comments(id, sort_by = "confidence")
client = make_client(REDDIT_URL) client = make_client(REDDIT_URL)
headers = HTTP::Headers{"User-Agent" => "web:invidio.us:v0.13.1 (by /u/omarroth)"} headers = HTTP::Headers{"User-Agent" => "web:invidious:v#{CURRENT_VERSION} (by /u/omarroth)"}
query = "(url:3D#{id}%20OR%20url:#{id})%20(site:youtube.com%20OR%20site:youtu.be)" query = "(url:3D#{id}%20OR%20url:#{id})%20(site:youtube.com%20OR%20site:youtu.be)"
search_results = client.get("/search.json?q=#{query}", headers) search_results = client.get("/search.json?q=#{query}", headers)
@@ -299,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)
@@ -317,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
@@ -336,34 +300,43 @@ 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)))} #{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">
<img class="creator-heart-background-hearted" src="#{creator_thumbnail}"></img> <img class="creator-heart-background-hearted" src="#{creator_thumbnail}"></img>
<div class="creator-heart-small-hearted"> <div class="creator-heart-small-hearted">
<div class="creator-heart-small-container">🖤</div> <div class="icon ion-ios-heart creator-heart-small-container"></div>
</div> </div>
</div> </div>
</span> </span>
@@ -411,10 +384,10 @@ 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))} #{translate(locale, "`x` ago", recode_date(child.created_utc, locale))}
</p> </p>
<div> <div>
#{body_html} #{body_html}
@@ -472,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)
@@ -490,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)
@@ -546,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,9 +1,104 @@
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({
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
video_threads: Int32, # Number of threads to use for updating videos in cache (mostly non-functional)
db: NamedTuple( # Database configuration db: NamedTuple( # Database configuration
user: String, user: String,
password: String, password: String,
@@ -11,62 +106,32 @@ user: String,
port: Int32, port: Int32,
dbname: String, dbname: String,
), ),
dl_api_key: String?, # DetectLanguage API Key (used to filter non-English results from "top" page), mostly non-functional 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 hmac_key: String?, # HMAC signing key for CSRF tokens and verifying pubsub subscriptions
full_refresh: Bool, # Used for crawling channels: threads should check all videos uploaded by a channel domain: String?, # Domain to be used for links to resources on the site where an absolute URL is required
domain: String, # Domain to be used for links to resources on the site where an absolute URL is required use_pubsub_feeds: {type: Bool | Int32, default: false}, # Subscribe to channels using PubSubHubbub (requires domain, hmac_key)
default_home: {type: String, default: "Top"},
feed_menu: {type: Array(String), default: ["Popular", "Top", "Trending", "Subscriptions"]},
top_enabled: {type: Bool, default: true},
captcha_enabled: {type: Bool, default: true},
login_enabled: {type: Bool, default: true},
registration_enabled: {type: Bool, default: true},
statistics_enabled: {type: Bool, default: false},
admins: {type: Array(String), default: [] of String},
external_port: {type: Int32?, default: nil},
default_user_preferences: {type: Preferences,
default: Preferences.new(*ConfigPreferences.from_yaml("").to_tuple),
converter: ConfigPreferencesConverter,
},
dmca_content: {type: Array(String), default: [] of String}, # For compliance with DMCA, disables download widget using list of video IDs
check_tables: {type: Bool, default: false}, # Check table integrity, automatically try to add any missing columns, create tables, etc.
cache_annotations: {type: Bool, default: false}, # Cache annotations requested from IA, will not cache empty annotations or annotations that only contain cards
banner: {type: String?, default: nil}, # Optional banner to be displayed along top of page for announcements, etc.
}) })
end end
class FilteredCompressHandler < Kemal::Handler def rank_videos(db, n)
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, filter, url)
top = [] of {Float64, String} top = [] of {Float64, String}
db.query("SELECT id, wilson_score, published FROM videos WHERE views > 5000 ORDER BY published DESC LIMIT 1000") do |rs| db.query("SELECT id, wilson_score, published FROM videos WHERE views > 5000 ORDER BY published DESC LIMIT 1000") do |rs|
@@ -87,41 +152,7 @@ def rank_videos(db, n, filter, url)
top.reverse! top.reverse!
top = top.map { |a, b| b } top = top.map { |a, b| b }
if filter return top[0..n - 1]
language_list = [] of String
top.each do |id|
if language_list.size == n
break
else
client = make_client(url)
begin
video = get_video(id, db)
rescue ex
next
end
if video.language
language = video.language
else
description = XML.parse(video.description)
content = [video.title, description.content].join(" ")
content = content[0, 10000]
results = DetectLanguage.detect(content)
language = results[0].language
db.exec("UPDATE videos SET language = $1 WHERE id = $2", language, id)
end
if language == "en"
language_list << id
end
end
end
return language_list
else
return top[0..n - 1]
end
end end
def login_req(login_form, f_req) def login_req(login_form, f_req)
@@ -160,35 +191,17 @@ 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
def extract_items(nodeset, ucid = nil) def extract_items(nodeset, ucid = nil, author_name = nil)
# TODO: Make this a 'common', so it makes more sense to be used here # TODO: Make this a 'common', so it makes more sense to be used here
items = [] of SearchItem items = [] of SearchItem
nodeset.each do |node| nodeset.each do |node|
anchor = node.xpath_node(%q(.//h3[contains(@class,"yt-lockup-title")]/a))
if !anchor
next
end
if anchor["href"].starts_with? "https://www.googleadservices.com"
next
end
anchor = node.xpath_node(%q(.//div[contains(@class, "yt-lockup-byline")]/a))
if !anchor
author = ""
author_id = ""
else
author = anchor.content.strip
author_id = anchor["href"].split("/")[-1]
end
anchor = node.xpath_node(%q(.//h3[contains(@class, "yt-lockup-title")]/a)) anchor = node.xpath_node(%q(.//h3[contains(@class, "yt-lockup-title")]/a))
if !anchor if !anchor
next next
@@ -196,6 +209,22 @@ def extract_items(nodeset, ucid = nil)
title = anchor.content.strip title = anchor.content.strip
id = anchor["href"] id = anchor["href"]
if anchor["href"].starts_with? "https://www.googleadservices.com"
next
end
anchor = node.xpath_node(%q(.//div[contains(@class, "yt-lockup-byline")]/a))
if anchor
author = anchor.content.strip
author_id = anchor["href"].split("/")[-1]
end
author ||= author_name
author_id ||= ucid
author ||= ""
author_id ||= ""
description_html = node.xpath_node(%q(.//div[contains(@class, "yt-lockup-description")])) description_html = node.xpath_node(%q(.//div[contains(@class, "yt-lockup-description")]))
description_html, description = html_to_content(description_html) description_html, description = html_to_content(description_html)
@@ -224,7 +253,7 @@ def extract_items(nodeset, ucid = 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
@@ -251,13 +280,22 @@ def extract_items(nodeset, ucid = 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
@@ -267,12 +305,18 @@ def extract_items(nodeset, ucid = 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(
@@ -335,6 +379,11 @@ def extract_items(nodeset, ucid = 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,
@@ -347,10 +396,235 @@ def extract_items(nodeset, ucid = 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
return items return items
end end
def extract_shelf_items(nodeset, ucid = nil, author_name = nil)
items = [] of SearchPlaylist
nodeset.each do |shelf|
shelf_anchor = shelf.xpath_node(%q(.//h2[contains(@class, "branded-page-module-title")]))
if !shelf_anchor
next
end
title = shelf_anchor.xpath_node(%q(.//span[contains(@class, "branded-page-module-title-text")]))
if title
title = title.content.strip
end
title ||= ""
id = shelf_anchor.xpath_node(%q(.//a)).try &.["href"]
if !id
next
end
is_playlist = false
videos = [] of SearchPlaylistVideo
shelf.xpath_nodes(%q(.//ul[contains(@class, "yt-uix-shelfslider-list")]/li)).each do |child_node|
type = child_node.xpath_node(%q(./div))
if !type
next
end
case type["class"]
when .includes? "yt-lockup-video"
is_playlist = true
anchor = child_node.xpath_node(%q(.//h3[contains(@class, "yt-lockup-title")]/a))
if anchor
video_title = anchor.content.strip
video_id = HTTP::Params.parse(URI.parse(anchor["href"]).query.not_nil!)["v"]
end
video_title ||= ""
video_id ||= ""
anchor = child_node.xpath_node(%q(.//span[@class="video-time"]))
if anchor
length_seconds = decode_length_seconds(anchor.content)
end
length_seconds ||= 0
videos << SearchPlaylistVideo.new(
video_title,
video_id,
length_seconds
)
when .includes? "yt-lockup-playlist"
anchor = child_node.xpath_node(%q(.//h3[contains(@class, "yt-lockup-title")]/a))
if anchor
playlist_title = anchor.content.strip
params = HTTP::Params.parse(URI.parse(anchor["href"]).query.not_nil!)
plid = params["list"]
end
playlist_title ||= ""
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(
playlist_title,
plid,
author_name,
ucid,
video_count,
Array(SearchPlaylistVideo).new,
thumbnail_id
)
end
end
if is_playlist
plid = HTTP::Params.parse(URI.parse(id).query.not_nil!)["list"]
items << SearchPlaylist.new(
title,
plid,
author_name,
ucid,
videos.size,
videos,
videos[0].try &.id
)
end
end
return items
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

@@ -0,0 +1,235 @@
def refresh_channels(db, logger, max_threads = 1, full_refresh = false)
max_channel = Channel(Int32).new
spawn do
max_threads = max_channel.receive
active_threads = 0
active_channel = Channel(Bool).new
loop do
db.query("SELECT id FROM channels ORDER BY updated") do |rs|
rs.each do
id = rs.read(String)
if active_threads >= max_threads
if active_channel.receive
active_threads -= 1
end
end
active_threads += 1
spawn do
begin
channel = fetch_channel(id, db, full_refresh)
db.exec("UPDATE channels SET updated = $1, author = $2, deleted = false WHERE id = $3", Time.now, channel.author, id)
rescue ex
if ex.message == "Deleted or invalid channel"
db.exec("UPDATE channels SET updated = $1, deleted = true WHERE id = $2", Time.now, id)
end
logger.write("#{id} : #{ex.message}\n")
end
active_channel.send(true)
end
end
end
sleep 1.minute
end
end
max_channel.send(max_threads)
end
def refresh_feeds(db, logger, max_threads = 1)
max_channel = Channel(Int32).new
spawn do
max_threads = max_channel.receive
active_threads = 0
active_channel = Channel(Bool).new
loop do
db.query("SELECT email FROM users") do |rs|
rs.each do
email = rs.read(String)
view_name = "subscriptions_#{sha256(email)}"
if active_threads >= max_threads
if active_channel.receive
active_threads -= 1
end
end
active_threads += 1
spawn do
begin
# Drop outdated views
column_array = get_column_array(db, view_name)
ChannelVideo.to_type_tuple.each_with_index do |name, i|
if name != column_array[i]?
logger.write("DROP MATERIALIZED VIEW #{view_name}\n")
db.exec("DROP MATERIALIZED VIEW #{view_name}")
raise "view does not exist"
end
end
db.exec("REFRESH MATERIALIZED VIEW #{view_name}")
rescue ex
# Rename old views
begin
legacy_view_name = "subscriptions_#{sha256(email)[0..7]}"
db.exec("SELECT * FROM #{legacy_view_name} LIMIT 0")
logger.write("RENAME MATERIALIZED VIEW #{legacy_view_name}\n")
db.exec("ALTER MATERIALIZED VIEW #{legacy_view_name} RENAME TO #{view_name}")
rescue ex
begin
# While iterating through, we may have an email stored from a deleted account
if db.query_one?("SELECT true FROM users WHERE email = $1", email, as: Bool)
logger.write("CREATE #{view_name}\n")
db.exec("CREATE MATERIALIZED VIEW #{view_name} AS \
SELECT * FROM channel_videos WHERE \
ucid = 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
active_channel.send(true)
end
end
end
sleep 1.minute
end
end
max_channel.send(max_threads)
end
def subscribe_to_feeds(db, logger, key, config)
if config.use_pubsub_feeds
case config.use_pubsub_feeds
when Bool
max_threads = config.use_pubsub_feeds.as(Bool).to_unsafe
when Int32
max_threads = config.use_pubsub_feeds.as(Int32)
end
max_channel = Channel(Int32).new
spawn do
max_threads = max_channel.receive
active_threads = 0
active_channel = Channel(Bool).new
loop do
db.query_all("SELECT id FROM channels WHERE CURRENT_TIMESTAMP - subscribed > interval '4 days' OR subscribed IS NULL") do |rs|
rs.each do
ucid = rs.read(String)
if active_threads >= max_threads.as(Int32)
if active_channel.receive
active_threads -= 1
end
end
active_threads += 1
spawn do
begin
response = subscribe_pubsub(ucid, key, config)
if response.status_code >= 400
logger.write("#{ucid} : #{response.body}\n")
end
rescue ex
end
active_channel.send(true)
end
end
end
sleep 1.minute
end
end
max_channel.send(max_threads.as(Int32))
end
end
def pull_top_videos(config, db)
loop do
begin
top = rank_videos(db, 40)
rescue ex
next
end
if top.size > 0
args = arg_array(top)
else
next
end
videos = [] of Video
top.each do |id|
begin
videos << get_video(id, db)
rescue ex
next
end
end
yield videos
sleep 1.minute
end
end
def pull_popular_videos(db)
loop do
subscriptions = db.query_all("SELECT channel FROM \
(SELECT UNNEST(subscriptions) AS channel FROM users) AS d \
GROUP BY channel ORDER BY COUNT(channel) DESC LIMIT 40", as: String)
videos = db.query_all("SELECT DISTINCT ON (ucid) * FROM \
channel_videos WHERE ucid IN (#{arg_array(subscriptions)}) \
ORDER BY ucid, published DESC", subscriptions, as: ChannelVideo).sort_by { |video| video.published }.reverse
yield videos
sleep 1.minute
end
end
def update_decrypt_function
loop do
begin
decrypt_function = fetch_decrypt_function
rescue ex
next
end
yield decrypt_function
sleep 1.minute
end
end
def find_working_proxies(regions)
loop do
regions.each do |region|
proxies = get_proxies(region).first(20)
proxies = proxies.map { |proxy| {ip: proxy[:ip], port: proxy[:port]} }
# proxies = filter_proxies(proxies)
yield region, proxies
end
sleep 1.minute
end
end

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

File diff suppressed because one or more lines are too long

View File

@@ -39,7 +39,12 @@ def fetch_decrypt_function(id = "CvFH_6DNRCY")
return decrypt_function return decrypt_function
end end
def decrypt_signature(a, code) def decrypt_signature(fmt, code)
if !fmt["s"]?
return ""
end
a = fmt["s"]
a = a.split("") a = a.split("")
code.each do |item| code.each do |item|
@@ -53,7 +58,8 @@ def decrypt_signature(a, code)
end end
end end
return a.join("") signature = a.join("")
return "&#{fmt["sp"]?}=#{signature}"
end end
def splice(a, b) def splice(a, b)

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
@@ -136,37 +141,49 @@ def decode_date(string : String)
return Time.now - delta return Time.now - delta
end end
def recode_date(time : Time) def recode_date(time : Time, locale)
span = Time.now - time span = Time.now - time
if span.total_days > 365.0 if span.total_days > 365.0
span = {span.total_days / 365, "year"} span = translate(locale, "`x` years", (span.total_days.to_i / 365).to_s)
elsif span.total_days > 30.0 elsif span.total_days > 30.0
span = {span.total_days / 30, "month"} span = translate(locale, "`x` months", (span.total_days.to_i / 30).to_s)
elsif span.total_days > 7.0 elsif span.total_days > 7.0
span = {span.total_days / 7, "week"} span = translate(locale, "`x` weeks", (span.total_days.to_i / 7).to_s)
elsif span.total_hours > 24.0 elsif span.total_hours > 24.0
span = {span.total_days, "day"} span = translate(locale, "`x` days", (span.total_days.to_i).to_s)
elsif span.total_minutes > 60.0 elsif span.total_minutes > 60.0
span = {span.total_hours, "hour"} span = translate(locale, "`x` hours", (span.total_hours.to_i).to_s)
elsif span.total_seconds > 60.0 elsif span.total_seconds > 60.0
span = {span.total_minutes, "minute"} span = translate(locale, "`x` minutes", (span.total_minutes.to_i).to_s)
else else
span = {span.total_seconds, "second"} span = translate(locale, "`x` seconds", (span.total_seconds.to_i).to_s)
end end
span = {span[0].to_i, span[1]} return span
if span[0] > 1
span = {span[0], span[1] + "s"}
end
return span.join(" ")
end end
def number_with_separator(number) 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
@@ -177,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"
@@ -198,14 +217,30 @@ def arg_array(array, start = 1)
return args return args
end end
def make_host_url(ssl, host) def make_host_url(config, kemal_config)
ssl = config.https_only || kemal_config.ssl
port = config.external_port || kemal_config.port
if ssl if ssl
scheme = "https://" scheme = "https://"
else else
scheme = "http://" scheme = "http://"
end end
return "#{scheme}#{host}" # Add if non-standard port
if port != 80 && port != 443
port = ":#{kemal_config.port}"
else
port = ""
end
if !config.domain
return ""
end
host = config.domain.not_nil!.lchop(".")
return "#{scheme}#{host}#{port}"
end end
def get_referer(env, fallback = "/") def get_referer(env, fallback = "/")
@@ -240,21 +275,21 @@ def get_referer(env, fallback = "/")
end end
def read_var_int(bytes) def read_var_int(bytes)
numRead = 0 num_read = 0
result = 0 result = 0
read = bytes[numRead] read = bytes[num_read]
if bytes.size == 1 if bytes.size == 1
result = bytes[0].to_i32 result = bytes[0].to_i32
else else
while ((read & 0b10000000) != 0) while ((read & 0b10000000) != 0)
read = bytes[numRead].to_u64 read = bytes[num_read].to_u64
value = (read & 0b01111111) value = (read & 0b01111111)
result |= (value << (7 * numRead)) result |= (value << (7 * num_read))
numRead += 1 num_read += 1
if numRead > 5 if num_read > 5
raise "VarInt is too big" raise "VarInt is too big"
end end
end end

View File

@@ -1,221 +0,0 @@
def crawl_videos(db, logger)
ids = Deque(String).new
random = Random.new
search(random.base64(3)).as(Tuple)[1].each do |video|
if video.is_a?(SearchVideo)
ids << video.id
end
end
loop do
if ids.empty?
search(random.base64(3)).as(Tuple)[1].each do |video|
if video.is_a?(SearchVideo)
ids << video.id
end
end
end
begin
id = ids[0]
video = get_video(id, db)
rescue ex
logger.write("#{id} : #{ex.message}\n")
next
ensure
ids.delete(id)
end
rvs = [] of Hash(String, String)
video.info["rvs"]?.try &.split(",").each do |rv|
rvs << HTTP::Params.parse(rv).to_h
end
rvs.each do |rv|
if rv.has_key?("id") && !db.query_one?("SELECT EXISTS (SELECT true FROM videos WHERE id = $1)", rv["id"], as: Bool)
ids.delete(id)
ids << rv["id"]
if ids.size == 150
ids.shift
end
end
end
Fiber.yield
end
end
def refresh_channels(db, logger, max_threads = 1, full_refresh = false)
max_channel = Channel(Int32).new
spawn do
max_threads = max_channel.receive
active_threads = 0
active_channel = Channel(Bool).new
loop do
db.query("SELECT id FROM channels ORDER BY updated") do |rs|
rs.each do
id = rs.read(String)
if active_threads >= max_threads
if active_channel.receive
active_threads -= 1
end
end
active_threads += 1
spawn do
begin
client = make_client(YT_URL)
channel = fetch_channel(id, client, db, full_refresh)
db.exec("UPDATE channels SET updated = $1, author = $2 WHERE id = $3", Time.now, channel.author, id)
rescue ex
logger.write("#{id} : #{ex.message}\n")
end
active_channel.send(true)
end
end
end
end
end
max_channel.send(max_threads)
end
def refresh_videos(db, logger)
loop do
db.query("SELECT id FROM videos ORDER BY updated") do |rs|
rs.each do
begin
id = rs.read(String)
video = get_video(id, db)
rescue ex
logger.write("#{id} : #{ex.message}\n")
next
end
end
end
Fiber.yield
end
end
def refresh_feeds(db, logger, max_threads = 1)
max_channel = Channel(Int32).new
spawn do
max_threads = max_channel.receive
active_threads = 0
active_channel = Channel(Bool).new
loop do
db.query("SELECT email FROM users") do |rs|
rs.each do
email = rs.read(String)
view_name = "subscriptions_#{sha256(email)[0..7]}"
if active_threads >= max_threads
if active_channel.receive
active_threads -= 1
end
end
active_threads += 1
spawn do
begin
db.exec("REFRESH MATERIALIZED VIEW #{view_name}")
rescue ex
logger.write("REFRESH #{email} : #{ex.message}\n")
end
active_channel.send(true)
end
end
end
end
end
max_channel.send(max_threads)
end
def pull_top_videos(config, db)
if config.dl_api_key
DetectLanguage.configure do |dl_config|
dl_config.api_key = config.dl_api_key.not_nil!
end
filter = true
end
filter ||= false
loop do
begin
top = rank_videos(db, 40, filter, YT_URL)
rescue ex
next
end
if top.size > 0
args = arg_array(top)
else
next
end
videos = [] of Video
top.each do |id|
begin
videos << get_video(id, db)
rescue ex
next
end
end
yield videos
Fiber.yield
end
end
def pull_popular_videos(db)
loop do
subscriptions = PG_DB.query_all("SELECT channel FROM \
(SELECT UNNEST(subscriptions) AS channel FROM users) AS d \
GROUP BY channel ORDER BY COUNT(channel) DESC LIMIT 40", as: String)
videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM \
channel_videos WHERE ucid IN (#{arg_array(subscriptions)}) \
ORDER BY ucid, published DESC", subscriptions, as: ChannelVideo).sort_by { |video| video.published }.reverse
yield videos
Fiber.yield
end
end
def update_decrypt_function
loop do
begin
decrypt_function = fetch_decrypt_function
rescue ex
next
end
yield decrypt_function
end
end
def find_working_proxies(regions)
loop do
regions.each do |region|
proxies = get_proxies(region).first(20)
proxies = proxies.map { |proxy| {ip: proxy[:ip], port: proxy[:port]} }
# proxies = filter_proxies(proxies)
yield region, proxies
Fiber.yield
end
end
end

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),
@@ -43,8 +43,10 @@ def fetch_mix(rdid, video_id, cookies = nil, locale = nil)
mix_title = playlist["title"].as_s mix_title = playlist["title"].as_s
contents = playlist["contents"].as_a contents = playlist["contents"].as_a
until contents[0]["playlistPanelVideoRenderer"]["videoId"].as_s == video_id if contents.map { |video| video["playlistPanelVideoRenderer"]["videoId"] }.includes? video_id
contents.shift until contents[0]["playlistPanelVideoRenderer"]["videoId"].as_s == video_id
contents.shift
end
end end
videos = [] of MixVideo videos = [] of MixVideo
@@ -52,7 +54,10 @@ def fetch_mix(rdid, video_id, cookies = nil, locale = nil)
item = item["playlistPanelVideoRenderer"] item = item["playlistPanelVideoRenderer"]
id = item["videoId"].as_s id = item["videoId"].as_s
title = item["title"]["simpleText"].as_s title = item["title"]?.try &.["simpleText"].as_s
if !title
next
end
author = item["longBylineText"]["runs"][0]["text"].as_s author = item["longBylineText"]["runs"][0]["text"].as_s
ucid = item["longBylineText"]["runs"][0]["navigationEndpoint"]["browseEndpoint"]["browseId"].as_s ucid = item["longBylineText"]["runs"][0]["navigationEndpoint"]["browseEndpoint"]["browseId"].as_s
length_seconds = decode_length_seconds(item["lengthText"]["simpleText"].as_s) length_seconds = decode_length_seconds(item["lengthText"]["simpleText"].as_s)
@@ -94,10 +99,13 @@ def template_mix(mix)
html += <<-END_HTML html += <<-END_HTML
<li class="pure-menu-item"> <li class="pure-menu-item">
<a href="/watch?v=#{video["videoId"]}&list=#{mix["mixId"]}"> <a href="/watch?v=#{video["videoId"]}&list=#{mix["mixId"]}">
<img style="width:100%;" src="/vi/#{video["videoId"]}/mqdefault.jpg"> <div class="thumbnail">
<img class="thumbnail" src="/vi/#{video["videoId"]}/mqdefault.jpg">
<p class="length">#{recode_length_seconds(video["lengthSeconds"].as_i)}</p>
</div>
<p style="width:100%">#{video["title"]}</p> <p style="width:100%">#{video["title"]}</p>
<p> <p>
<b style="width: 100%">#{video["author"]}</b> <b style="width:100%">#{video["author"]}</b>
</p> </p>
</a> </a>
</li> </li>

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,
@@ -234,10 +242,13 @@ def template_playlist(playlist)
html += <<-END_HTML html += <<-END_HTML
<li class="pure-menu-item"> <li class="pure-menu-item">
<a href="/watch?v=#{video["videoId"]}&list=#{playlist["playlistId"]}"> <a href="/watch?v=#{video["videoId"]}&list=#{playlist["playlistId"]}">
<img style="width:100%;" src="/vi/#{video["videoId"]}/mqdefault.jpg"> <div class="thumbnail">
<img class="thumbnail" src="/vi/#{video["videoId"]}/mqdefault.jpg">
<p class="length">#{recode_length_seconds(video["lengthSeconds"].as_i)}</p>
</div>
<p style="width:100%">#{video["title"]}</p> <p style="width:100%">#{video["title"]}</p>
<p> <p>
<b style="width: 100%">#{video["author"]}</b> <b style="width:100%">#{video["author"]}</b>
</p> </p>
</a> </a>
</li> </li>

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
@@ -85,8 +93,8 @@ def channel_search(query, page, channel)
return count, items return count, items
end end
def search(query, page = 1, search_params = produce_search_params(content_type: "all")) def search(query, page = 1, search_params = produce_search_params(content_type: "all"), proxies = nil, region = nil)
client = make_client(YT_URL) client = make_client(YT_URL, proxies, region)
if query.empty? if query.empty?
return {0, [] of SearchItem} return {0, [] of SearchItem}
end end
@@ -188,7 +196,7 @@ def produce_search_params(sort : String = "relevance", date : String = "", conte
end end
end end
if body.size > 0 if !body.empty?
token = head + "\x12" + body.size.unsafe_chr + body token = head + "\x12" + body.size.unsafe_chr + body
else else
token = head token = head

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,25 +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({
id: Array(String),
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?,
@@ -28,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
@@ -72,103 +48,118 @@ 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
def get_user(sid, headers, db, refresh = true) def get_user(sid, headers, db, refresh = true)
if db.query_one?("SELECT EXISTS (SELECT true FROM users WHERE $1 = ANY(id))", sid, as: Bool) if email = db.query_one?("SELECT email FROM session_ids WHERE id = $1", sid, as: String)
user = db.query_one("SELECT * FROM users WHERE $1 = ANY(id)", sid, as: User) user = db.query_one("SELECT * FROM users WHERE email = $1", email, as: User)
if refresh && Time.now - user.updated > 1.minute if refresh && Time.now - user.updated > 1.minute
user = fetch_user(sid, headers, db) user, sid = fetch_user(sid, headers, db)
user_array = user.to_a user_array = user.to_a
user_array[5] = user_array[5].to_json user_array[4] = user_array[4].to_json
args = arg_array(user_array) args = arg_array(user_array)
db.exec("INSERT INTO users VALUES (#{args}) \ db.exec("INSERT INTO users VALUES (#{args}) \
ON CONFLICT (email) DO UPDATE SET id = users.id || $1, updated = $2, subscriptions = $4", user_array) ON CONFLICT (email) DO UPDATE SET updated = $1, subscriptions = $3", user_array)
db.exec("INSERT INTO session_ids VALUES ($1,$2,$3) \
ON CONFLICT (id) DO NOTHING", sid, user.email, Time.now)
begin begin
view_name = "subscriptions_#{sha256(user.email)[0..7]}" view_name = "subscriptions_#{sha256(user.email)}"
PG_DB.exec("CREATE MATERIALIZED VIEW #{view_name} AS \ db.exec("CREATE MATERIALIZED VIEW #{view_name} AS \
SELECT * FROM channel_videos WHERE \ SELECT * FROM channel_videos WHERE \
ucid = ANY ((SELECT subscriptions FROM users WHERE email = '#{user.email}')::text[]) \ ucid = ANY ((SELECT subscriptions FROM users WHERE email = E'#{user.email.gsub("'", "\\'")}')::text[]) \
ORDER BY published DESC;") ORDER BY published DESC;")
rescue ex rescue ex
end end
end end
else else
user = fetch_user(sid, headers, db) user, sid = fetch_user(sid, headers, db)
user_array = user.to_a user_array = user.to_a
user_array[5] = user_array[5].to_json user_array[4] = user_array[4].to_json
args = arg_array(user.to_a) args = arg_array(user.to_a)
db.exec("INSERT INTO users VALUES (#{args}) \ db.exec("INSERT INTO users VALUES (#{args}) \
ON CONFLICT (email) DO UPDATE SET id = users.id || $1, updated = $2, subscriptions = $4", user_array) ON CONFLICT (email) DO UPDATE SET updated = $1, subscriptions = $3", user_array)
db.exec("INSERT INTO session_ids VALUES ($1,$2,$3) \
ON CONFLICT (id) DO NOTHING", sid, user.email, Time.now)
begin begin
view_name = "subscriptions_#{sha256(user.email)[0..7]}" view_name = "subscriptions_#{sha256(user.email)}"
PG_DB.exec("CREATE MATERIALIZED VIEW #{view_name} AS \ db.exec("CREATE MATERIALIZED VIEW #{view_name} AS \
SELECT * FROM channel_videos WHERE \ SELECT * FROM channel_videos WHERE \
ucid = ANY ((SELECT subscriptions FROM users WHERE email = '#{user.email}')::text[]) \ ucid = ANY ((SELECT subscriptions FROM users WHERE email = E'#{user.email.gsub("'", "\\'")}')::text[]) \
ORDER BY published DESC;") ORDER BY published DESC;")
rescue ex rescue ex
end end
end end
return user return user, sid
end end
def fetch_user(sid, headers, db) def fetch_user(sid, headers, db)
@@ -196,76 +187,17 @@ 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([sid], 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 return user, sid
end end
def create_user(sid, email, password) 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([sid], 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 return user, sid
end
def create_response(user_id, operation, key, db, expire = 6.hours)
expire = Time.now + expire
nonce = Random::Secure.hex(16)
db.exec("INSERT INTO nonces VALUES ($1, $2) ON CONFLICT DO NOTHING", nonce, expire)
challenge = "#{expire.to_unix}-#{nonce}-#{user_id}-#{operation}"
token = OpenSSL::HMAC.digest(:sha256, key, challenge)
challenge = Base64.urlsafe_encode(challenge)
token = Base64.urlsafe_encode(token)
return challenge, token
end
def validate_response(challenge, token, user_id, operation, key, db, locale)
if !challenge
raise translate(locale, "Hidden field \"challenge\" is a required field")
end
if !token
raise translate(locale, "Hidden field \"token\" is a required field")
end
challenge = Base64.decode_string(challenge)
if challenge.split("-").size == 4
expire, nonce, challenge_user_id, challenge_operation = challenge.split("-")
expire = expire.to_i?
expire ||= 0
else
raise translate(locale, "Invalid challenge")
end
challenge = OpenSSL::HMAC.digest(:sha256, HMAC_KEY, challenge)
challenge = Base64.urlsafe_encode(challenge)
if db.query_one?("SELECT EXISTS (SELECT true FROM nonces WHERE nonce = $1)", nonce, as: Bool)
db.exec("DELETE FROM nonces * WHERE nonce = $1", nonce)
else
raise translate(locale, "Invalid token")
end
if challenge != token
raise translate(locale, "Invalid token")
end
if challenge_operation != operation
raise translate(locale, "Invalid token")
end
if challenge_user_id != user_id
raise translate(locale, "Invalid user")
end
if expire < Time.now.to_unix
raise translate(locale, "Token is expired, please try again")
end
end end
def generate_captcha(key, db) def generate_captcha(key, db)
@@ -286,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>
@@ -318,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

File diff suppressed because it is too large Load Diff

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,29 +15,40 @@
</div> </div>
<div class="h-box"> <div class="h-box">
<% sub_count_text = number_to_short_text(sub_count) %> <% sub_count_text = number_to_short_text(sub_count) %>
<%= rendered "components/subscribe_widget" %> <%= rendered "components/subscribe_widget" %>
</div> </div>
<div class="pure-g h-box"> <div class="pure-g h-box">
<div class="pure-u-1-3"> <div class="pure-u-1-3">
<a href="https://www.youtube.com/channel/<%= ucid %>"><%= translate(locale, "View channel on YouTube") %></a> <a href="https://www.youtube.com/channel/<%= ucid %>"><%= translate(locale, "View channel on YouTube") %></a>
</div> <% if !auto_generated %>
<div class="pure-u-1-3">
</div>
<div class="pure-u-1-3">
<div class="pure-g" style="text-align:right;">
<% {"newest", "oldest", "popular"}.each do |sort| %>
<div class="pure-u-1 pure-md-1-3"> <div class="pure-u-1 pure-md-1-3">
<% if sort_by == sort %> <b><%= translate(locale, "Videos") %></b>
<b><%= translate(locale, sort) %></b>
<% else %>
<a href="/channel/<%= ucid %>?page=<%= page %>&sort_by=<%= sort %>">
<%= translate(locale, sort) %>
</a>
<% end %>
</div> </div>
<% end %> <% end %>
<div class="pure-u-1 pure-md-1-3">
<% if auto_generated %>
<b><%= translate(locale, "Playlists") %></b>
<% else %>
<a href="/channel/<%= ucid %>/playlists"><%= translate(locale, "Playlists") %></a>
<% end %>
</div>
</div>
<div class="pure-u-1-3"></div>
<div class="pure-u-1-3">
<div class="pure-g" style="text-align:right">
<% sort_options.each do |sort| %>
<div class="pure-u-1 pure-md-1-3">
<% if sort_by == sort %>
<b><%= translate(locale, sort) %></b>
<% else %>
<a href="/channel/<%= ucid %>?page=<%= page %>&sort_by=<%= sort %>">
<%= translate(locale, sort) %>
</a>
<% end %>
</div>
<% end %>
</div> </div>
</div> </div>
</div> </div>
@@ -46,32 +58,27 @@
</div> </div>
<div class="pure-g"> <div class="pure-g">
<% videos.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

@@ -0,0 +1,19 @@
<div class="h-box pure-g">
<div class="pure-u-1 pure-u-md-1-4"></div>
<div class="pure-u-1 pure-u-md-1-2">
<div class="pure-g">
<% feed_menu = config.feed_menu.dup %>
<% if !env.get?("user") %>
<% feed_menu.reject! {|feed| feed == "Subscriptions"} %>
<% end %>
<% feed_menu.each do |feed| %>
<div class="pure-u-1-2 pure-u-md-1-<%= feed_menu.size %>">
<a href="/feed/<%= feed.downcase %>" class="pure-menu-heading" style="text-align:center">
<%= translate(locale, feed) %>
</a>
</div>
<% end %>
</div>
</div>
<div class="pure-u-1 pure-u-md-1-4"></div>
</div>

View File

@@ -1,107 +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 %>
<% else %> <center>
<center> <img style="width:56.25%" src="/ggpht<%= URI.parse(item.author_thumbnail).full_path %>"/>
<img style="width:56.25%;" src="/ggpht<%= URI.parse(item.author_thumbnail).full_path %>"/> </center>
</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.videos[0]?.try &.id}" %>
<% else %>
<% url = "/playlist?list=#{item.id}" %>
<% end %>
<a style="width:100%;" href="<%= url %>">
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
<% else %>
<div class="thumbnail">
<img class="thumbnail" src="/vi/<%= item.videos[0]?.try &.id %>/mqdefault.jpg"/>
<p class="length"><%= number_with_separator(item.video_count) %> videos</p>
</div>
<% end %>
<p><%= item.title %></p>
</a>
<p>
<b><a style="width:100%;" href="/channel/<%= item.ucid %>"><%= item.author %></a></b>
</p>
<% when MixVideo %>
<a style="width:100%;" href="/watch?v=<%= item.id %>&list=<%= item.mixes[0] %>">
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
<% else %>
<div class="thumbnail">
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p>
</div>
<% end %>
<p><%= item.title %></p>
</a>
<p>
<b><a style="width:100%;" href="/channel/<%= item.ucid %>"><%= item.author %></a></b>
</p>
<% when PlaylistVideo %>
<a style="width:100%;" href="/watch?v=<%= item.id %>&list=<%= item.playlists[0] %>">
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
<% else %>
<div class="thumbnail">
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p>
</div>
<% end %>
<p><%= item.title %></p>
</a>
<% if item.responds_to?(:live_now) && item.live_now %>
<p><%= translate(locale, "LIVE") %></p>
<% end %>
<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)) %></h5>
<% end %>
<% else %>
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
<% else %>
<a style="width:100%;" href="/watch?v=<%= item.id %>">
<div class="thumbnail">
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
<% if env.get? "show_watched" %>
<p class="watched">
<a onclick="mark_watched(this)"
data-id="<%= item.id %>"
onmouseenter='this["href"]="javascript:void(0)"'
href="/mark_watched?id=<%= item.id %>">
<i onmouseenter='this.setAttribute("class", "icon ion-ios-eye-off")'
onmouseleave='this.setAttribute("class", "icon ion-ios-eye")'
class="icon ion-ios-eye">
</i>
</a>
</p>
<% end %> <% end %>
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p> <p><%= item.author %></p>
</div> </a>
</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 %>
<% url = "/playlist?list=#{item.id}" %>
<% end %>
<a style="width:100%" href="<%= url %>">
<% if !env.get("preferences").as(Preferences).thin_mode %>
<div class="thumbnail">
<img class="thumbnail" src="/vi/<%= item.thumbnail_id %>/mqdefault.jpg"/>
<p class="length"><%= number_with_separator(item.video_count) %> videos</p>
</div>
<% end %>
<p><%= item.title %></p>
</a>
<p>
<b>
<a style="width:100%" href="/channel/<%= item.ucid %>"><%= item.author %></a>
</b>
</p>
<% when MixVideo %>
<a style="width:100%" href="/watch?v=<%= item.id %>&list=<%= item.mixes[0] %>">
<% if !env.get("preferences").as(Preferences).thin_mode %>
<div class="thumbnail">
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
<% if item.length_seconds != 0 %>
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p>
<% end %>
</div>
<% end %>
<p><%= item.title %></p>
</a>
<p>
<b>
<a style="width:100%" href="/channel/<%= item.ucid %>"><%= item.author %></a>
</b>
</p>
<% when PlaylistVideo %>
<a style="width:100%" href="/watch?v=<%= item.id %>&list=<%= item.playlists[0] %>">
<% if !env.get("preferences").as(Preferences).thin_mode %>
<div class="thumbnail">
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
<% 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>
<% end %>
<p><%= item.title %></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 %>
<div class="pure-u-2-3"></div>
<% end %>
<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>
<% else %>
<% if !env.get("preferences").as(Preferences).thin_mode %>
<a style="width:100%" href="/watch?v=<%= item.id %>">
<div class="thumbnail">
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
<% if env.get? "show_watched" %>
<form onsubmit="return false" action="/watch_ajax?action_mark_watched=1&id=<%= item.id %>&referer=<%= env.get("current_page") %>" method="post">
<input type="hidden" name="csrf_token" value="<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>">
<p class="watched">
<a onclick="mark_watched(this)" data-id="<%= item.id %>" href="#">
<button type="submit" style="all:unset">
<i onmouseenter='this.setAttribute("class", "icon ion-ios-eye-off")'
onmouseleave='this.setAttribute("class", "icon ion-ios-eye")'
class="icon ion-ios-eye">
</i>
</button>
</a>
</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 %>
<div class="pure-u-2-3"></div>
<% end %>
<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>
<% if item.responds_to?(:live_now) && item.live_now %>
<p><%= translate(locale, "LIVE") %></p>
<% end %>
<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)) %></h5>
<% end %>
<% end %>
</div> </div>
</div> </div>

View File

@@ -1,191 +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);
}
});
player.share(shareOptions); if (currentTime > 0.5) {
currentTime -= 0.5;
}
<% if params[:video_start] > 0 || params[:video_end] > 0 %> player.currentTime(currentTime);
player.markers({ player.playbackRate(playbackRate);
onMarkerReached: function(marker) {
if (marker.text === "End") { if (!paused) {
if (player.loop()) { player.play();
player.markers.prev("Start"); }
} else { }, 5000), 5000);
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] %>); <% 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
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") %> | <%= 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") %> | <%= 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,36 +0,0 @@
<% content_for "header" do %>
<meta name="description" content="<%= translate(locale, "An alternative front-end to YouTube") %>">
<title>Invidious</title>
<% end %>
<div class="h-box pure-g">
<div class="pure-u-1-4"></div>
<div class="pure-u-1 pure-u-md-1-2">
<div class="pure-g">
<div class="pure-u-1-3">
<a href="/feed/popular" style="text-align:center;" class="pure-menu-heading">
<%= translate(locale, "Popular") %>
</a>
</div>
<div class="pure-u-1-3">
<a href="/feed/top" style="text-align:center;" class="pure-menu-heading">
<%= translate(locale, "Top") %>
</a>
</div>
<div class="pure-u-1-3">
<a href="/feed/trending" style="text-align:center;" class="pure-menu-heading">
<%= translate(locale, "Trending") %>
</a>
</div>
</div>
</div>
<div class="pure-u-1-4"></div>
</div>
<div class="pure-g">
<% top_videos.each_slice(4) do |slice| %>
<% slice.each do |item| %>
<%= rendered "components/item" %>
<% end %>
<% end %>
</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>

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