diff options
101 files changed, 4459 insertions, 1889 deletions
@@ -77,10 +77,6 @@ Metrics/CyclomaticComplexity: # process_video_params(query, preferences) => [20/10] - src/invidious/videos.cr - # produce_search_params(page, sort, ...) => [29/10] - # process_search_query(query, page, ...) => [14/10] - - src/invidious/search.cr - #src/invidious/playlists.cr:327:5 @@ -31,7 +31,7 @@ • <a href="https://instances.invidious.io/">Instances list</a> • - <a href="https://docs.invidious.io/FAQ.md">FAQ</a> + <a href="https://docs.invidious.io/faq/">FAQ</a> • <a href="https://docs.invidious.io/">Documentation</a> • @@ -88,7 +88,7 @@ **Technical features** - Embedded video support -- [Developer API](https://docs.invidious.io/API.md) +- [Developer API](https://docs.invidious.io/api/) - Does not use official YouTube APIs - No Contributor License Agreement (CLA) @@ -101,7 +101,7 @@ **Hosting invidious:** -- [Follow the installation instructions](https://docs.invidious.io/Installation.md) +- [Follow the installation instructions](https://docs.invidious.io/installation/) ## Documentation @@ -119,7 +119,7 @@ embedded youtube videos on other websites with invidious. The documentation contains a list of browser extensions that we recommended to use along with Invidious. -You can read more here: https://docs.invidious.io/Extensions.md +You can read more here: https://docs.invidious.io/applications/ ## Contribute @@ -150,6 +150,7 @@ Weblate also allows you to log-in with major SSO providers like Github, Gitlab, - [PeerTubeify](https://gitlab.com/Cha_deL/peertubeify): On YouTube, displays a link to the same video on PeerTube, if it exists. - [MusicPiped](https://github.com/deep-gaurav/MusicPiped): A material design music player that streams music from YouTube. - [HoloPlay](https://github.com/stephane-r/HoloPlay): Funny Android application connecting on Invidious API's with search, playlists and favorites. +- [WatchTube](https://github.com/WatchTubeTeam/WatchTube): Powerful YouTube client for Apple Watch. ## Liability diff --git a/assets/css/default.css b/assets/css/default.css index 8b2b3578..49069c92 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -15,6 +15,11 @@ body { background-color: rgb(255, 0, 0, 0.5); } +.underlined { + border-bottom: 1px solid; + margin-bottom: 20px; +} + .channel-profile > * { font-size: 1.17em; font-weight: bold; @@ -475,30 +480,6 @@ body.dark-theme { } } -#filters { - display: inline; - margin-top: 15px; -} - -#filters > div { - display: inline-block; -} - -#filters > summary { - display: block; - margin-bottom: 15px; -} - -#filters > summary::before { - content: "[ + ]"; - font-size: 1.5em; -} - -#filters[open] > summary::before { - content: "[ - ]"; - font-size: 1.5em; -} - /*With commit d9528f5 all contents of the page is now within a flexbox. However, the hr element is rendered improperly within one. See https://stackoverflow.com/a/34372979 for more info */ diff --git a/assets/css/search.css b/assets/css/search.css new file mode 100644 index 00000000..a5996362 --- /dev/null +++ b/assets/css/search.css @@ -0,0 +1,117 @@ +summary { + /* This should hide the marker */ + display: block; + + font-size: 1.17em; + font-weight: bold; + margin: 0 auto 10px auto; +} + +summary::-webkit-details-marker, +summary::marker { display: none; } + +summary:before { + border-radius: 5px; + content: "[ + ]"; + margin: -2px 10px 0 10px; + padding: 1px 0 3px 0; + text-align: center; + width: 40px; +} + +details[open] > summary:before { content: "[ ‒ ]"; } + + +#filters-box { + padding: 10px 20px 20px 10px; + margin: 10px 15px; +} +#filters-flex { + display: flex; + flex-wrap: wrap; + flex-direction: row; + align-items: flex-start; + align-content: flex-start; + justify-content: flex-start; +} + + +fieldset, legend { + display: contents !important; + border: none !important; + margin: 0 !important; + padding: 0 !important; +} + + +.filter-column { + display: inline-block; + display: inline-flex; + width: max-content; + min-width: max-content; + max-width: 16em; + margin: 15px; + flex-grow: 2; + flex-basis: auto; + flex-direction: column; +} +.filter-name, .filter-options { + display: block; + padding: 5px 10px; + margin: 0; + text-align: start; +} + +.filter-options div { margin: 6px 0; } +.filter-options div * { vertical-align: middle; } +.filter-options label { margin: 0 10px; } + + +#filters-apply { text-align: end; } + +/* Error message */ + +.no-results-error { + text-align: center; + line-height: 180%; + font-size: 110%; + padding: 15px 15px 125px 15px; +} + +/* Responsive rules */ + +@media only screen and (max-width: 800px) { + summary { font-size: 1.30em; } + #filters-box { + margin: 10px 0 0 0; + padding: 0; + } + #filters-apply { + text-align: center; + padding: 15px; + } +} + +/* Light theme */ + +.light-theme #filters-box { + background: #dfdfdf; +} + +@media (prefers-color-scheme: light) { + .no-theme #filters-box { + background: #dfdfdf; + } +} + +/* Dark theme */ + +.dark-theme #filters-box { + background: #373737; +} + +@media (prefers-color-scheme: dark) { + .no-theme #filters-box { + background: #373737; + } +} diff --git a/assets/js/player.js b/assets/js/player.js index a1a2cd16..e478fb8f 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -200,6 +200,68 @@ if (video_data.params.video_start > 0 || video_data.params.video_end > 0) { player.volume(video_data.params.volume / 100); player.playbackRate(video_data.params.speed); +/** + * Method for getting the contents of a cookie + * + * @param {String} name Name of cookie + * @returns cookieValue + */ +function getCookieValue(name) { + var value = document.cookie.split(";").filter(item => item.includes(name + "=")); + + return (value != null && value.length >= 1) + ? value[0].substring((name + "=").length, value[0].length) + : null; +} + +/** + * Method for updating the "PREFS" cookie (or creating it if missing) + * + * @param {number} newVolume New volume defined (null if unchanged) + * @param {number} newSpeed New speed defined (null if unchanged) + */ +function updateCookie(newVolume, newSpeed) { + var volumeValue = newVolume != null ? newVolume : video_data.params.volume; + var speedValue = newSpeed != null ? newSpeed : video_data.params.speed; + + var cookieValue = getCookieValue('PREFS'); + var cookieData; + + if (cookieValue != null) { + var cookieJson = JSON.parse(decodeURIComponent(cookieValue)); + cookieJson.volume = volumeValue; + cookieJson.speed = speedValue; + cookieData = encodeURIComponent(JSON.stringify(cookieJson)); + } else { + cookieData = encodeURIComponent(JSON.stringify({ 'volume': volumeValue, 'speed': speedValue })); + } + + // Set expiration in 2 year + var date = new Date(); + date.setTime(date.getTime() + 63115200); + + var ipRegex = /^((\d+\.){3}\d+|[A-Fa-f0-9]*:[A-Fa-f0-9:]*:[A-Fa-f0-9:]+)$/; + var domainUsed = window.location.hostname; + + // Fix for a bug in FF where the leading dot in the FQDN is not ignored + if (domainUsed.charAt(0) != '.' && !ipRegex.test(domainUsed) && domainUsed != 'localhost') + domainUsed = '.' + window.location.hostname; + + document.cookie = 'PREFS=' + cookieData + '; SameSite=Strict; path=/; domain=' + + domainUsed + '; expires=' + date.toGMTString() + ';'; + + video_data.params.volume = volumeValue; + video_data.params.speed = speedValue; +} + +player.on('ratechange', function () { + updateCookie(null, player.playbackRate()); +}); + +player.on('volumechange', function () { + updateCookie(Math.ceil(player.volume() * 100), null); +}); + player.on('waiting', function () { if (player.playbackRate() > 1 && player.liveTracker.isLive() && player.liveTracker.atLiveEdge()) { console.log('Player has caught up to source, resetting playbackRate.') @@ -675,8 +737,8 @@ if (player_data.preferred_caption_found) { if (navigator.vendor == "Apple Computer, Inc." && video_data.params.listen) { player.on('loadedmetadata', function () { player.on('timeupdate', function () { - if (player.remainingTime() < player.duration() / 2) { - player.currentTime(player.duration() + 1); + if (player.remainingTime() < player.duration() / 2 && player.remainingTime() >= 2) { + player.currentTime(player.duration() - 1); } }); }); diff --git a/config/config.example.yml b/config/config.example.yml index 59cb486b..ae9509d2 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -315,6 +315,15 @@ https_only: false channel_threads: 1 ## +## Time interval between two executions of the job that crawls +## channel videos (subscriptions update). +## +## Accepted values: a valid time interval (like 1h30m or 90m) +## Default: 30m +## +#channel_refresh_interval: 30m + +## ## Forcefully dump and re-download the entire list of uploaded ## videos when crawling channel (during subscriptions update). ## @@ -847,3 +856,13 @@ default_user_preferences: ## Default: false ## #automatic_instance_redirect: false + + ## + ## Show the entire video description by default (when set to 'false', + ## only the first few lines of the description are shown and a + ## "show more" button allows to expand it). + ## + ## Accepted values: true, false + ## Default: false + ## + #extend_desc: false diff --git a/docker-compose.yml b/docker-compose.yml index c76c314c..fa14a8e8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,18 +1,12 @@ -version: '3' +# Warning: This docker-compose file is made for development purposes. +# Using it will build an image from the locally cloned repository. +# +# If you want to use Invidious in production, see the docker-compose.yml file provided +# in the installation documentation: https://docs.invidious.io/Installation.md + +version: "3" services: - postgres: - image: postgres:10 - restart: unless-stopped - volumes: - - postgresdata:/var/lib/postgresql/data - - ./config/sql:/config/sql - - ./docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh - environment: - POSTGRES_DB: invidious - POSTGRES_PASSWORD: kemal - POSTGRES_USER: kemal - healthcheck: - test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] + invidious: build: context: . @@ -21,27 +15,42 @@ services: ports: - "127.0.0.1:3000:3000" environment: - # Adapted from ./config/config.yml + # Please read the following file for a comprehensive list of all available + # configuration options and their associated syntax: + # https://github.com/iv-org/invidious/blob/master/config/config.example.yml INVIDIOUS_CONFIG: | - channel_threads: 1 - check_tables: true - feed_threads: 1 db: + dbname: invidious user: kemal password: kemal - host: postgres + host: invidious-db port: 5432 - dbname: invidious - full_refresh: false - https_only: false - domain: + check_tables: true + # external_port: + # domain: + # https_only: false + # statistics_enabled: false healthcheck: test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1 interval: 30s timeout: 5s retries: 2 depends_on: - - postgres + - invidious-db + + invidious-db: + image: docker.io/library/postgres:13 + restart: unless-stopped + volumes: + - postgresdata:/var/lib/postgresql/data + - ./config/sql:/config/sql + - ./docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh + environment: + POSTGRES_DB: invidious + POSTGRES_USER: kemal + POSTGRES_PASSWORD: kemal + healthcheck: + test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] volumes: postgresdata: diff --git a/docker/Dockerfile b/docker/Dockerfile index f336abcd..df35a179 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -42,7 +42,7 @@ RUN addgroup -g 1000 -S invidious && \ adduser -u 1000 -S invidious -G invidious COPY --chown=invidious ./config/config.* ./config/ RUN mv -n config/config.example.yml config/config.yml -RUN sed -i 's/host: \(127.0.0.1\|localhost\)/host: postgres/' config/config.yml +RUN sed -i 's/host: \(127.0.0.1\|localhost\)/host: invidious-db/' config/config.yml COPY ./config/sql/ ./config/sql/ COPY ./locales/ ./locales/ COPY --from=builder /invidious/assets ./assets/ diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64 index 686a9278..5f4d3793 100644 --- a/docker/Dockerfile.arm64 +++ b/docker/Dockerfile.arm64 @@ -41,7 +41,7 @@ RUN addgroup -g 1000 -S invidious && \ adduser -u 1000 -S invidious -G invidious COPY --chown=invidious ./config/config.* ./config/ RUN mv -n config/config.example.yml config/config.yml -RUN sed -i 's/host: \(127.0.0.1\|localhost\)/host: postgres/' config/config.yml +RUN sed -i 's/host: \(127.0.0.1\|localhost\)/host: invidious-db/' config/config.yml COPY ./config/sql/ ./config/sql/ COPY ./locales/ ./locales/ COPY --from=builder /invidious/assets ./assets/ diff --git a/kubernetes/Chart.lock b/kubernetes/Chart.lock index 1799798b..37fcdbbd 100644 --- a/kubernetes/Chart.lock +++ b/kubernetes/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: postgresql - repository: https://kubernetes-charts.storage.googleapis.com/ - version: 8.3.0 -digest: sha256:1feec3c396cbf27573dc201831ccd3376a4a6b58b2e7618ce30a89b8f5d707fd -generated: "2020-02-07T13:39:38.624846+01:00" + repository: https://charts.bitnami.com/bitnami/ + version: 11.1.3 +digest: sha256:79061645472b6fb342d45e8e5b3aacd018ef5067193e46a060bccdc99fe7f6e1 +generated: "2022-03-02T05:57:20.081432389+13:00" diff --git a/kubernetes/Chart.yaml b/kubernetes/Chart.yaml index 9e4b793e..ca44f4b7 100644 --- a/kubernetes/Chart.yaml +++ b/kubernetes/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: invidious description: Invidious is an alternative front-end to YouTube -version: 1.1.0 +version: 1.1.1 appVersion: 0.20.1 keywords: - youtube @@ -17,6 +17,6 @@ maintainers: email: mail@leonklingele.de dependencies: - name: postgresql - version: ~8.3.0 - repository: "https://kubernetes-charts.storage.googleapis.com/" + version: ~11.1.3 + repository: "https://charts.bitnami.com/bitnami/" engine: gotpl diff --git a/kubernetes/values.yaml b/kubernetes/values.yaml index f241970c..2dc4db2c 100644 --- a/kubernetes/values.yaml +++ b/kubernetes/values.yaml @@ -14,7 +14,7 @@ autoscaling: targetCPUUtilizationPercentage: 50 service: - type: clusterIP + type: ClusterIP port: 3000 #loadBalancerIP: @@ -32,14 +32,19 @@ securityContext: runAsGroup: 1000 fsGroup: 1000 -# See https://github.com/helm/charts/tree/master/stable/postgresql +# See https://github.com/bitnami/charts/tree/master/bitnami/postgresql postgresql: - postgresqlUsername: kemal - postgresqlPassword: kemal - postgresqlDatabase: invidious - initdbUsername: kemal - initdbPassword: kemal - initdbScriptsConfigMap: invidious-postgresql-init + image: + registry: quay.io + auth: + username: kemal + password: kemal + database: invidious + primary: + initdb: + username: kemal + password: kemal + scriptsConfigMap: invidious-postgresql-init # Adapted from ../config/config.yml config: diff --git a/locales/ar.json b/locales/ar.json index 306566d7..f009fd46 100644 --- a/locales/ar.json +++ b/locales/ar.json @@ -21,15 +21,15 @@ "No": "لا", "Import and Export Data": "اِستيراد البيانات وتصديرها", "Import": "استيراد", - "Import Invidious data": "استيراد بيانات انفيدياس", - "Import YouTube subscriptions": "استيراد اشتراكات يوتيوب", + "Import Invidious data": "استيراد بيانات JSON Invidious", + "Import YouTube subscriptions": "استيراد اشتراكات YouTube/OPML", "Import FreeTube subscriptions (.db)": "استيراد اشتراكات فريتيوب (.db)", "Import NewPipe subscriptions (.json)": "استيراد اشتراكات نيو بايب (.json)", "Import NewPipe data (.zip)": "استيراد بيانات نيو بايب (.zip)", "Export": "تصدير", "Export subscriptions as OPML": "تصدير الاشتراكات كـOPML", "Export subscriptions as OPML (for NewPipe & FreeTube)": "تصدير الاشتراكات كـOPML (لِنيو بايب و فريتيوب)", - "Export data as JSON": "تصدير البيانات بتنسيق JSON", + "Export data as JSON": "تصدير بيانات Invidious كـ JSON", "Delete account?": "حذف الحساب؟", "History": "السِّجل", "An alternative front-end to YouTube": "واجهة أمامية بديلة لموقع يوتيوب", @@ -66,7 +66,7 @@ "preferences_related_videos_label": "اعرض الفيديوهات ذات الصلة: ", "preferences_annotations_label": "اعرض الملاحظات في الفيديو تلقائيا: ", "preferences_extend_desc_label": "توسيع وصف الفيديو تلقائيا: ", - "preferences_vr_mode_label": "مقاطع فيديو تفاعلية ب درجة 360: ", + "preferences_vr_mode_label": "مقاطع فيديو تفاعلية بزاوية 360 درجة (تتطلب WebGL): ", "preferences_category_visual": "التفضيلات المرئية", "preferences_player_style_label": "شكل مشغل الفيديوهات: ", "Dark mode: ": "الوضع الليلي: ", @@ -108,9 +108,9 @@ "preferences_show_nick_label": "إظهار اللقب في الأعلى: ", "Top enabled: ": "تفعيل 'الأفضل' ؟ ", "CAPTCHA enabled: ": "تفعيل الكابتشا: ", - "Login enabled: ": "تفعيل الولوج: ", + "Login enabled: ": "تمكين تسجيل الدخول: ", "Registration enabled: ": "تفعيل التسجيل: ", - "Report statistics: ": "الإبلاغ عن الإحصائيات: ", + "Report statistics: ": "تقرير الإحصائيات: ", "Save preferences": "حفظ الإعدادات", "Subscription manager": "مدير الاشتراكات", "Token manager": "إداره الرمز", @@ -121,7 +121,7 @@ "Subscriptions": "الاشتراكات", "search": "بحث", "Log out": "تسجيل الخروج", - "Released under the AGPLv3 on Github.": "صدر تحت AGPLv3 على Github.", + "Released under the AGPLv3 on Github.": "صدر تحت AGPLv3 على GitHub.", "Source available here.": "الأكواد متوفرة هنا.", "View JavaScript license information.": "مشاهدة معلومات حول تراخيص الجافاسكريبت.", "View privacy policy.": "عرض سياسة الخصوصية.", @@ -175,7 +175,7 @@ "User ID is a required field": "مكان اسم المستخدم مطلوب", "Password is a required field": "مكان كلمة السر مطلوب", "Wrong username or password": "اسم المستخدم او كلمة السر غير صحيح", - "Please sign in using 'Log in with Google'": "الرجاء تسجيل الدخول 'تسجيل الدخول بواسطة جوجل'", + "Please sign in using 'Log in with Google'": "الرجاء تسجيل الدخول باستخدام \"تسجيل الدخول باستخدام Google\"", "Password cannot be empty": "لا يمكن أن تكون كلمة السر فارغة", "Password cannot be longer than 55 characters": "يجب أن لا تتعدى كلمة السر 55 حرفًا", "Please log in": "الرجاء تسجيل الدخول", @@ -187,7 +187,7 @@ "Could not fetch comments": "لم يتمكن من إحضار التعليقات", "`x` ago": "`x` منذ", "Load more": "عرض المزيد", - "Could not create mix.": "لم يستطع عمل خلط.", + "Could not create mix.": "تعذر إنشاء مزيج.", "Empty playlist": "قائمة التشغيل فارغة", "Not a playlist.": "قائمة التشغيل غير صالحة.", "Playlist does not exist.": "قائمة التشغيل غير موجودة.", @@ -195,7 +195,7 @@ "Hidden field \"challenge\" is a required field": "مكان مخفي \"تحدي\" مكان مطلوب", "Hidden field \"token\" is a required field": "مكان مخفي \"رمز\" مكان مطلوب", "Erroneous challenge": "تحدي غير صالح", - "Erroneous token": "روز غير صالح", + "Erroneous token": "رمز مميز خاطئ", "No such user": "مستخدم غير صالح", "Token is expired, please try again": "الرمز منتهى الصلاحية، الرجاء المحاولة مرة اخرى", "English": "إنجليزي", @@ -329,41 +329,41 @@ "Videos": "الفيديوهات", "Playlists": "قوائم التشغيل", "Community": "المجتمع", - "relevance": "ملاؤم", - "rating": "تقييم", - "date": "التاريخ", - "views": "مشاهدات", - "content_type": "نوع المحتوى", - "duration": "المدة الزمنية", - "features": "الميزات", - "sort": "فرز", - "hour": "ساعة", - "today": "اليوم", - "week": "هذا الأسبوع", - "month": "هذا الشهر", - "year": "هذه السنة", - "video": "فيديو", - "channel": "قناة", - "playlist": "قائمة التشغيل", - "movie": "فيلم", - "show": "عرض", - "hd": "عالية الدقة", - "subtitles": "ترجمات", - "creative_commons": "المشاع الإبداعي", - "3d": "ثلاثي الأبعاد", - "live": "مباشر", - "4k": "4k", - "location": "الأماكن", - "hdr": "وضع التباين العالي", - "filter": "معامل الفرز", + "search_filters_sort_option_relevance": "ملاؤم", + "search_filters_sort_option_rating": "تقييم", + "search_filters_sort_option_date": "التاريخ", + "search_filters_sort_option_views": "مشاهدات", + "search_filters_type_label": "نوع المحتوى", + "search_filters_duration_label": "المدة الزمنية", + "search_filters_features_label": "الميزات", + "search_filters_sort_label": "فرز", + "search_filters_date_option_hour": "آخر ساعة", + "search_filters_date_option_today": "اليوم", + "search_filters_date_option_week": "هذا الأسبوع", + "search_filters_date_option_month": "هذا الشهر", + "search_filters_date_option_year": "هذه السنة", + "search_filters_type_option_video": "فيديو", + "search_filters_type_option_channel": "قناة", + "search_filters_type_option_playlist": "قائمة التشغيل", + "search_filters_type_option_movie": "فيلم", + "search_filters_type_option_show": "عرض", + "search_filters_features_option_hd": "عالية الدقة", + "search_filters_features_option_subtitles": "ترجمات", + "search_filters_features_option_c_commons": "المشاع الإبداعي", + "search_filters_features_option_three_d": "ثلاثي الأبعاد", + "search_filters_features_option_live": "مباشر", + "search_filters_features_option_four_k": "4k", + "search_filters_features_option_location": "الأماكن", + "search_filters_features_option_hdr": "وضع التباين العالي", + "search_filters_label": "معامل الفرز", "Current version: ": "الإصدار الحالي: ", "next_steps_error_message": "بعد ذلك يجب أن تحاول: ", "next_steps_error_message_refresh": "تحديث", "next_steps_error_message_go_to_youtube": "انتقل إلى يوتيوب", - "short": "قصير (< 4 دقائق)", - "long": "طويل (> 20 دقيقة)", + "search_filters_duration_option_short": "قصير (< 4 دقائق)", + "search_filters_duration_option_long": "طويل (> 20 دقيقة)", "footer_source_code": "شفرة المصدر", - "footer_original_source_code": "شفرة المصدر الأصلية", + "footer_original_source_code": "كود المصدر الأصلي", "footer_modfied_source_code": "شفرة المصدر المعدلة", "adminprefs_modified_source_code_url_label": "URL إلى مستودع التعليمات البرمجية المصدرية المعدلة", "footer_documentation": "التوثيق", @@ -386,7 +386,7 @@ "preferences_quality_dash_option_360p": "360p", "preferences_quality_dash_option_240p": "240p", "preferences_quality_dash_option_144p": "144p", - "purchased": "تم شراؤها", + "search_filters_features_option_purchased": "تم شراؤها", "none": "لاشيء", "videoinfo_started_streaming_x_ago": "بدأ البث منذ `x`", "videoinfo_watch_on_youTube": "مشاهدة على يوتيوب", @@ -395,10 +395,10 @@ "user_created_playlists": "'x' إنشاء قوائم التشغيل", "user_saved_playlists": "قوائم التشغيل المحفوظة 'x'", "Video unavailable": "الفيديو غير متوفر", - "360": "360°", + "search_filters_features_option_three_sixty": "360°", "download_subtitles": "ترجمات - 'x' (.vtt)", "invidious": "الخيالي", - "preferences_save_player_pos_label": "احفظ وقت الفيديو الحالي: ", + "preferences_save_player_pos_label": "حفظ موضع التشغيل: ", "crash_page_you_found_a_bug": "يبدو أنك قد وجدت خطأً برمجيًّا في Invidious!", "generic_videos_count_0": "لا فيديوهات", "generic_videos_count_1": "فيديو واحد", @@ -429,5 +429,35 @@ "generic_playlists_count_2": "قائمتا تشغيل", "generic_playlists_count_3": "{{count}} قوائم تشغيل", "generic_playlists_count_4": "{{count}} قائمة تشغيل", - "generic_playlists_count_5": "{{count}} قائمة تشغيل" + "generic_playlists_count_5": "{{count}} قائمة تشغيل", + "English (United States)": "الإنجليزية (الولايات المتحدة)", + "Indonesian (auto-generated)": "إندونيسي (مُنشأ تلقائيًا)", + "Interlingue": "إنترلينغوي", + "Italian (auto-generated)": "الإيطالية (مُنشأة تلقائيًا)", + "Spanish (auto-generated)": "الأسبانية (تم إنشاؤه تلقائيًا)", + "crash_page_before_reporting": "قبل الإبلاغ عن خطأ، تأكد من وجود:", + "French (auto-generated)": "الفرنسية (مُنشأة تلقائيًا)", + "Portuguese (auto-generated)": "البرتغالية (تم إنشاؤه تلقائيًا)", + "Turkish (auto-generated)": "التركية (تم إنشاؤها تلقائيًا)", + "crash_page_refresh": "حاول <a href=\"`x`\"> تحديث الصفحة </a>", + "crash_page_switch_instance": "حاول <a href=\"`x`\"> استخدام مثيل آخر </a>", + "Korean (auto-generated)": "كوري (تم إنشاؤه تلقائيًا)", + "Spanish (Mexico)": "الإسبانية (المكسيك)", + "Vietnamese (auto-generated)": "فيتنامي (تم إنشاؤه تلقائيًا)", + "crash_page_report_issue": "إذا لم يساعد أي مما سبق، يرجى فتح <a href=\"`x`\"> مشكلة جديدة على GitHub </a> (ويفضل أن يكون باللغة الإنجليزية) وتضمين النص التالي في رسالتك (لا تترجم هذا النص):", + "crash_page_read_the_faq": "قراءة <a href=\"`x`\"> الأسئلة المتكررة (الأسئلة الشائعة) </a>", + "preferences_watch_history_label": "تمكين سجل المشاهدة: ", + "English (United Kingdom)": "الإنجليزية (المملكة المتحدة)", + "Cantonese (Hong Kong)": "الكانتونية (هونغ كونغ)", + "Chinese": "الصينية", + "Chinese (China)": "الصينية (الصين)", + "Chinese (Hong Kong)": "الصينية (هونج كونج)", + "Chinese (Taiwan)": "الصينية (تايوان)", + "Dutch (auto-generated)": "هولندي (تم إنشاؤه تلقائيًا)", + "German (auto-generated)": "ألماني (تم إنشاؤه تلقائيًا)", + "Japanese (auto-generated)": "اليابانية (مُنشأة تلقائيًا)", + "Portuguese (Brazil)": "البرتغالية (البرازيل)", + "Russian (auto-generated)": "الروسية (منشأة تلقائيا)", + "Spanish (Spain)": "الإسبانية (إسبانيا)", + "crash_page_search_issue": "بحثت عن <a href=\"`x`\"> المشكلات الموجودة على GitHub </a>" } diff --git a/locales/ca.json b/locales/ca.json index 1fa7cc1f..741414d2 100644 --- a/locales/ca.json +++ b/locales/ca.json @@ -52,16 +52,16 @@ "Download": "Descarrega", "Download as: ": "Descarrega com: ", "Videos": "Vídeos", - "content_type": "Tipus", - "duration": "Duració", - "sort": "Ordena per", - "week": "Aquesta setmana", - "month": "Aquest mes", - "year": "Aquest any", - "video": "Vídeo", - "channel": "Canal", - "short": "Curt (< 4 minuts)", - "long": "Llarg (> 20 minuts)", + "search_filters_type_label": "Tipus", + "search_filters_duration_label": "Duració", + "search_filters_sort_label": "Ordena per", + "search_filters_date_option_week": "Aquesta setmana", + "search_filters_date_option_month": "Aquest mes", + "search_filters_date_option_year": "Aquest any", + "search_filters_type_option_video": "Vídeo", + "search_filters_type_option_channel": "Canal", + "search_filters_duration_option_short": "Curt (< 4 minuts)", + "search_filters_duration_option_long": "Llarg (> 20 minuts)", "Current version: ": "Versió actual: ", "Malay": "Malai", "Persian": "Persa", @@ -93,11 +93,11 @@ "Spanish": "Castellà", "Vietnamese": "Vietnamita", "News": "Notícies", - "show": "Mostra", + "search_filters_type_option_show": "Mostra", "footer_documentation": "Documentació", "Thai": "Tailandès", "Music": "Música", - "relevance": "Rellevància", - "hour": "Última hora", - "today": "Avui" + "search_filters_sort_option_relevance": "Rellevància", + "search_filters_date_option_hour": "Última hora", + "search_filters_date_option_today": "Avui" } diff --git a/locales/cs.json b/locales/cs.json index 7dc24cbc..f8af17d2 100644 --- a/locales/cs.json +++ b/locales/cs.json @@ -1,6 +1,6 @@ { "LIVE": "ŽIVĚ", - "Shared `x` ago": "Sdíleno před `x`", + "Shared `x` ago": "Zveřejněno před `x`", "Unsubscribe": "Odhlásit odběr", "Subscribe": "Odebírat", "View channel on YouTube": "Otevřít kanál na YouTube", @@ -19,17 +19,17 @@ "Authorize token for `x`?": "Autorizovat token pro `x`?", "Yes": "Ano", "No": "Ne", - "Import and Export Data": "Import a Export údajů", - "Import": "Inport", - "Import Invidious data": "Importovat údaje Invidious", - "Import YouTube subscriptions": "Importovat odběry z YouTube", + "Import and Export Data": "Import a export dat", + "Import": "Importovat", + "Import Invidious data": "Importovat JSON údaje Invidious", + "Import YouTube subscriptions": "Importovat odběry z YouTube/OPML", "Import FreeTube subscriptions (.db)": "Importovat odběry z FreeTube (.db)", "Import NewPipe subscriptions (.json)": "Importovat odběry z NewPipe (.json)", "Import NewPipe data (.zip)": "Importovat údeje z NewPipe (.zip)", "Export": "Exportovat", "Export subscriptions as OPML": "Exportovat odběry jako OPML", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Exportovat údaje jako OPML (na NewPipe a FreeTube)", - "Export data as JSON": "Exportovat data jako JSON", + "Export data as JSON": "Exportovat data Invidious jako JSON", "Delete account?": "Smazat účet?", "History": "Historie", "An alternative front-end to YouTube": "Alternativní front-end pro YouTube", @@ -38,7 +38,7 @@ "Log in": "Přihlásit se", "Log in/register": "Přihlásit se/vytvořit účet", "Log in with Google": "Přihlásit se s Googlem", - "User ID": "Uživatelské IČ", + "User ID": "ID uživatele", "Password": "Heslo", "Time (h:mm:ss):": "Čas (h:mm:ss):", "Text CAPTCHA": "Textové CAPTCHA", @@ -51,16 +51,16 @@ "preferences_category_player": "Nastavení přehravače", "preferences_video_loop_label": "Vždy opakovat: ", "preferences_autoplay_label": "Automatické přehrávání: ", - "preferences_continue_label": "Přehrát další ve výchozím stavu: ", + "preferences_continue_label": "Automaticky přehrát další: ", "preferences_continue_autoplay_label": "Automaticky přehrát další video: ", "preferences_listen_label": "Poslouchat ve výchozím nastavení: ", "preferences_local_label": "Video přes proxy: ", - "preferences_speed_label": "Základní Rychlost: ", + "preferences_speed_label": "Výchozí rychlost: ", "preferences_quality_label": "Preferovaná kvalita videa: ", "preferences_volume_label": "Hlasitost přehrávače: ", "preferences_comments_label": "Předpřipravené komentáře: ", "youtube": "YouTube", - "reddit": "reddit", + "reddit": "Reddit", "preferences_captions_label": "Standartní Titulky: ", "Fallback captions: ": "Záložní titulky: ", "preferences_related_videos_label": "Zobrazit podobné videa: ", @@ -93,23 +93,23 @@ "`x` is live": "`x` je živě", "preferences_category_data": "Nastavení dat", "Clear watch history": "Smazat historii", - "Import/export data": "importovat/exportovat data", + "Import/export data": "Importovat/exportovat data", "Change password": "Změnit heslo", "Manage subscriptions": "Spravovat odebírané kanály", - "Manage tokens": "Spravovat klíče", - "Watch history": "Historie Sledování", - "Delete account": "Smazat Účet", + "Manage tokens": "Spravovat tokeny", + "Watch history": "Historie sledování", + "Delete account": "Smazat účet", "preferences_category_admin": "Administrátorská nastavení", "preferences_default_home_label": "Základní domovská stránka: ", "preferences_feed_menu_label": "Menu doporučených: ", - "CAPTCHA enabled: ": "CAPTCHA povolen: ", + "CAPTCHA enabled: ": "CAPTCHA povolena: ", "Login enabled: ": "Přihlášení povoleno: ", "Registration enabled: ": "Registrace povolena ", "Report statistics: ": "Oznámit statistiky: ", "Save preferences": "Uložit nastavení", - "Subscription manager": "Správa Odběrů", - "Token manager": "Správa klíčů", - "Token": "Klíč", + "Subscription manager": "Správa odběrů", + "Token manager": "Správa tokenů", + "Token": "Token", "Import/export": "Importovat/exportovat", "unsubscribe": "odhlásit odběr", "revoke": "vrátit zpět", @@ -118,10 +118,10 @@ "Log out": "Odhlásit se", "Source available here.": "Zdrojový kód dostupný zde.", "View JavaScript license information.": "Zobrazit informace o licenci JavaScript .", - "View privacy policy.": "Zobrazit Zásady ochrany osobních údajů.", + "View privacy policy.": "Zobrazit zásady ochrany osobních údajů.", "Trending": "Trendy", "Public": "Veřejné", - "Unlisted": "Nevypsáno", + "Unlisted": "Neveřejné", "Private": "Soukromé", "View all playlists": "Zobrazit všechny playlisty", "Updated `x` ago": "Aktualizováno před `x`", @@ -133,12 +133,12 @@ "Show more": "Zobrazit více", "Show less": "Zobrazit méně", "Watch on YouTube": "Sledovat na YouTube", - "Hide annotations": "Skrýt vysvětlivky", - "Show annotations": "Zobrazit vysvětlivky", + "Hide annotations": "Skrýt poznámky", + "Show annotations": "Zobrazit poznámky", "Genre: ": "Žánr: ", "License: ": "Licence: ", - "Family friendly? ": "Vhodné pro děti? ", - "Engagement: ": "Závaznost: ", + "Family friendly? ": "Vhodné pro rodiny? ", + "Engagement: ": "Zapojení: ", "English": "Angličtina", "English (auto-generated)": "Angličtina (automaticky generováno)", "Afrikaans": "Afrikánština", @@ -262,27 +262,220 @@ "Video mode": "Videový režim", "Videos": "Videa", "Community": "Komunita", - "rating": "hodnocení", - "date": "datum", - "views": "zhlédnutí", - "duration": "délka", - "hour": "hodina", - "today": "dnes", - "week": "týden", - "month": "měsíc", - "year": "rok", - "video": "video", - "channel": "kanál", - "playlist": "playlist", - "movie": "film", - "show": "zobrazit", - "hd": "HD", - "subtitles": "titulky", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "živě", - "4k": "4k", - "location": "umístění", - "hdr": "HDR", - "filter": "filtr" + "search_filters_sort_option_rating": "hodnocení", + "search_filters_sort_option_date": "datum", + "search_filters_sort_option_views": "zhlédnutí", + "search_filters_duration_label": "délka", + "search_filters_date_option_hour": "hodina", + "search_filters_date_option_today": "dnes", + "search_filters_date_option_week": "týden", + "search_filters_date_option_month": "měsíc", + "search_filters_date_option_year": "rok", + "search_filters_type_option_video": "video", + "search_filters_type_option_channel": "kanál", + "search_filters_type_option_playlist": "playlist", + "search_filters_type_option_movie": "film", + "search_filters_type_option_show": "zobrazit", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "titulky", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "živě", + "search_filters_features_option_four_k": "4k", + "search_filters_features_option_location": "umístění", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "Filtr", + "generic_count_days_0": "{{count}} dnem", + "generic_count_days_1": "{{count}} dny", + "generic_count_days_2": "{{count}} dny", + "generic_count_hours_0": "{{count}} hodinou", + "generic_count_hours_1": "{{count}} hodinami", + "generic_count_hours_2": "{{count}} hodinami", + "crash_page_refresh": "zkusili <a href=\"`x`\">obnovit stránku</a>", + "crash_page_switch_instance": "zkusili <a href=\"`x`\">použít jinou instanci</a>", + "preferences_vr_mode_label": "Interaktivní 360-stupňová videa (vyžaduje WebGL): ", + "English (United Kingdom)": "Angličtina (Spojené království)", + "Chinese (China)": "Čínština (Čína)", + "Chinese (Hong Kong)": "Čínština (Hong Kong)", + "Chinese (Taiwan)": "Čínština (Taiwan)", + "Portuguese (auto-generated)": "Portugalština (automaticky generováno)", + "Spanish (auto-generated)": "Španělština (automaticky generováno)", + "Spanish (Mexico)": "Španělština (Mexiko)", + "Spanish (Spain)": "Španělština (Španělsko)", + "generic_count_years_0": "{{count}} rokem", + "generic_count_years_1": "{{count}} lety", + "generic_count_years_2": "{{count}} lety", + "Fallback comments: ": "Záložní komentáře: ", + "Search": "Hledat", + "Top": "Nejlepší", + "Playlists": "Playlisty", + "videoinfo_started_streaming_x_ago": "Stream spuštěn před `x`", + "videoinfo_watch_on_youTube": "Sledovat na YouTube", + "videoinfo_youTube_embed_link": "Vložení", + "crash_page_read_the_faq": "si přečetli <a href=\"`x`\">často kladené otázky (FAQ)</a>", + "crash_page_before_reporting": "Před nahlášením chyby se ujistěte, že jste:", + "preferences_quality_option_hd720": "HD720", + "preferences_quality_option_dash": "DASH (adaptivní kvalita)", + "generic_views_count_0": "{{count}} zhlédnutí", + "generic_views_count_1": "{{count}} zhlédnutí", + "generic_views_count_2": "{{count}} zhlédnutí", + "generic_subscriptions_count_0": "{{count}} odběr", + "generic_subscriptions_count_1": "{{count}} odběry", + "generic_subscriptions_count_2": "{{count}} odběrů", + "preferences_quality_dash_option_4320p": "4320p", + "generic_videos_count_0": "{{count}} video", + "generic_videos_count_1": "{{count}} videa", + "generic_videos_count_2": "{{count}} videí", + "preferences_quality_option_small": "Nízká", + "preferences_quality_dash_option_2160p": "2160p", + "preferences_quality_dash_option_1080p": "1080p", + "preferences_quality_dash_option_720p": "720p", + "preferences_quality_dash_option_360p": "360p", + "preferences_quality_dash_option_144p": "144p", + "preferences_quality_option_medium": "Střední", + "preferences_quality_dash_option_1440p": "1440p", + "invidious": "Invidious", + "View more comments on Reddit": "Zobrazit více komentářů na Redditu", + "Invalid TFA code": "Nesprávný TFA kód", + "generic_playlists_count_0": "{{count}} playlist", + "generic_playlists_count_1": "{{count}} playlisty", + "generic_playlists_count_2": "{{count}} playlistů", + "generic_subscribers_count_0": "{{count}} odběratel", + "generic_subscribers_count_1": "{{count}} odběratelé", + "generic_subscribers_count_2": "{{count}} odběratelů", + "preferences_watch_history_label": "Povolit historii sledování: ", + "preferences_quality_dash_option_240p": "240p", + "preferences_region_label": "Země obsahu: ", + "subscriptions_unseen_notifs_count_0": "{{count}} nezobrazené oznámení", + "subscriptions_unseen_notifs_count_1": "{{count}} nezobrazená oznámení", + "subscriptions_unseen_notifs_count_2": "{{count}} nezobrazených oznámení", + "Show replies": "Zobrazit odpovědi", + "Quota exceeded, try again in a few hours": "Kvóta překročena, zkuste to znovu za pár hodin", + "Password cannot be longer than 55 characters": "Heslo nesmí být delší než 55 znaků", + "comments_view_x_replies_0": "Zobrazit {{count}} odpověď", + "comments_view_x_replies_1": "Zobrazit {{count}} odpovědi", + "comments_view_x_replies_2": "Zobrazit {{count}} odpovědí", + "comments_points_count_0": "{{count}} bod", + "comments_points_count_1": "{{count}} body", + "comments_points_count_2": "{{count}} bodů", + "German (auto-generated)": "Němčina (automaticky generováno)", + "Indonesian (auto-generated)": "Indonéština (automaticky generováno)", + "Interlingue": "Interlingue", + "Italian (auto-generated)": "Italština (automaticky generováno)", + "Japanese (auto-generated)": "Japonština (automaticky generováno)", + "Korean (auto-generated)": "Korejština (automaticky generováno)", + "Russian (auto-generated)": "Ruština (automaticky generováno)", + "generic_count_months_0": "{{count}} měsícem", + "generic_count_months_1": "{{count}} měsíci", + "generic_count_months_2": "{{count}} měsíci", + "generic_count_weeks_0": "{{count}} týdnem", + "generic_count_weeks_1": "{{count}} týdny", + "generic_count_weeks_2": "{{count}} týdny", + "generic_count_minutes_0": "{{count}} minutou", + "generic_count_minutes_1": "{{count}} minutami", + "generic_count_minutes_2": "{{count}} minutami", + "short": "Krátké (< 4 minuty)", + "long": "Dlouhé (> 20 minut)", + "footer_documentation": "Dokumentace", + "next_steps_error_message_refresh": "Obnovit stránku", + "Chinese": "Čínština", + "360": "360°", + "Dutch (auto-generated)": "Nizozemština (automaticky generováno)", + "Erroneous token": "Chybný token", + "tokens_count_0": "{{count}} token", + "tokens_count_1": "{{count}} tokeny", + "tokens_count_2": "{{count}} tokenů", + "Portuguese (Brazil)": "Portugalština (Brazílie)", + "content_type": "Typ", + "sort": "Řazení", + "Token is expired, please try again": "Token vypršel, zkuste to prosím znovu", + "English (United States)": "Angličtina (Spojené státy)", + "Cantonese (Hong Kong)": "Kantonština (Hong Kong)", + "French (auto-generated)": "Francouzština (automaticky generováno)", + "Turkish (auto-generated)": "Turečtina (automaticky generováno)", + "Vietnamese (auto-generated)": "Vietnamština (automaticky generováno)", + "Current version: ": "Aktuální verze: ", + "next_steps_error_message": "Měli byste zkusit: ", + "footer_donate_page": "Přispět", + "download_subtitles": "Titulky - `x` (.vtt)", + "%A %B %-d, %Y": "%A %B %-d, %Y", + "YouTube comment permalink": "Permanentní odkaz YouTube komentáře", + "permalink": "permalink", + "purchased": "Zakoupeno", + "footer_original_source_code": "Původní zdrojový kód", + "adminprefs_modified_source_code_url_label": "URL repozitáře s upraveným zdrojovým kódem", + "Video unavailable": "Video není dostupné", + "next_steps_error_message_go_to_youtube": "Jít na YouTube", + "footer_modfied_source_code": "Upravený zdrojový kód", + "none": "žádné", + "videoinfo_invidious_embed_link": "Odkaz na vložení", + "user_saved_playlists": "`x` uložených playlistů", + "crash_page_you_found_a_bug": "Vypadá to, že jste našli chybu v Invidious!", + "user_created_playlists": "`x` vytvořených playlistů", + "crash_page_search_issue": "vyhledali <a href=\"`x`\">existující problémy na GitHubu</a>", + "crash_page_report_issue": "Pokud nepomohlo nic z výše uvedeného, <a href=\"`x`\">otevřete prosím nový problém na GitHubu</a> (pokud možno v angličtině) a zahrňte do zprávy následující text (NEpřekládejte jej):", + "preferences_quality_dash_label": "Preferovaná kvalita videí DASH: ", + "preferences_quality_dash_option_auto": "Automatická", + "preferences_quality_dash_option_best": "Nejlepší", + "preferences_quality_dash_option_worst": "Nejhorší", + "preferences_quality_dash_option_480p": "480p", + "Top enabled: ": "Povoleny nejlepší: ", + "generic_count_seconds_0": "{{count}} sekundou", + "generic_count_seconds_1": "{{count}} sekundami", + "generic_count_seconds_2": "{{count}} sekundami", + "preferences_save_player_pos_label": "Uložit pozici přehrávání: ", + "Incorrect password": "Nesprávné heslo", + "View as playlist": "Zobrazit jako playlist", + "View Reddit comments": "Zobrazit komentáře z Redditu", + "No such user": "Uživatel nenalezen", + "Playlist privacy": "Soukromí playlistu", + "Wrong answer": "Špatná odpověď", + "Could not pull trending pages.": "Nepodařilo se získat trendy stránky.", + "Erroneous CAPTCHA": "Chybná CAPTCHA", + "Password is a required field": "Heslo je vyžadované pole", + "preferences_automatic_instance_redirect_label": "Automatické přesměrování instance (fallback na redirect.invidious.io): ", + "Broken? Try another Invidious Instance": "Je něco rozbité? Zkuste jinou instanci Invidious", + "Switch Invidious Instance": "Přepnout instanci Invidious", + "Empty playlist": "Prázdný playlist", + "footer_source_code": "Zdrojový kód", + "relevance": "Relevantnost", + "View YouTube comments": "Zobrazit YouTube komentáře", + "Blacklisted regions: ": "Oblasti na černé listině: ", + "Wrong username or password": "Nesprávné uživatelské jméno nebo heslo", + "Please sign in using 'Log in with Google'": "Přihlaste se prosím pomocí Googlu", + "Password cannot be empty": "Heslo nemůže být prázné", + "preferences_category_misc": "Různá nastavení", + "preferences_show_nick_label": "Zobrazit přezdívku na vrchu: ", + "Whitelisted regions: ": "Oblasti na bílé listině: ", + "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Zdravíme! Zdá se, že máte vypnutý JavaScript. Klikněte sem pro zobrazení komentářů - nezapomeňte, že se mohou načítat trochu déle.", + "User ID is a required field": "ID uživatele je vyžadované pole", + "Please log in": "Přihlaste se prosím", + "Invidious Private Feed for `x`": "Soukromý kanál Invidious pro `x`", + "Deleted or invalid channel": "Smazaný nebo neplatný kanál", + "This channel does not exist.": "Tento kanál neexistuje.", + "Hidden field \"token\" is a required field": "Skryté pole \"token\" je vyžadované", + "features": "Funkce", + "Wilson score: ": "Skóre Wilson: ", + "Shared `x`": "Zveřejněno `x`", + "Premieres in `x`": "Premiéra za `x`", + "View `x` comments": { + "([^.,0-9]|^)1([^.,0-9]|$)": "Zobrazit `x` komentář", + "": "Zobrazit `x` komentářů" + }, + "Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Nepodařilo se přihlásit, ujistěte se, že je povoleno dvoufázové ověřování (autentifikátor nebo SMS).", + "Login failed. This may be because two-factor authentication is not turned on for your account.": "Přihlášení selhalo. Toto se může stát, když není na vašem účtu povolené dvoufázové ověřování.", + "Could not get channel info.": "Nepodařilo se získat informace o kanálu.", + "Could not fetch comments": "Nepodařilo se získat komentáře", + "Could not create mix.": "Nepodařilo se vytvořit mix.", + "Hidden field \"challenge\" is a required field": "Skryté pole \"challenge\" je vyžadované", + "Released under the AGPLv3 on Github.": "Vydáno pod licencí AGPLv3 na GitHubu.", + "Hide replies": "Skrýt odpovědi", + "channel:`x`": "kanál: `x`", + "Load more": "Načíst další", + "Not a playlist.": "Není playlist.", + "Playlist does not exist.": "Playlist neexistuje.", + "Erroneous challenge": "Chybná výzva", + "Premieres `x`": "Premiéra `x`", + "CAPTCHA is a required field": "CAPTCHA je vyžadované pole", + "`x` ago": "Před `x`" } diff --git a/locales/da.json b/locales/da.json index 92e4e9f9..9e221145 100644 --- a/locales/da.json +++ b/locales/da.json @@ -21,15 +21,15 @@ "No": "Nej", "Import and Export Data": "Importer og Eksporter Data", "Import": "Importer", - "Import Invidious data": "Importer Invidious data", - "Import YouTube subscriptions": "Importer YouTube abonnementer", + "Import Invidious data": "Importer Invidious JSON-data", + "Import YouTube subscriptions": "Importer YouTube/OPML-abonnementer", "Import FreeTube subscriptions (.db)": "Importer FreeTube abonnementer (.db)", "Import NewPipe subscriptions (.json)": "Importer NewPipe abonnementer (.json)", "Import NewPipe data (.zip)": "Importer NewPipe data (.zip)", "Export": "Exporter", "Export subscriptions as OPML": "Exporter abonnementer som OPML", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Exporter abonnementer som OPML (til NewPipe & FreeTube)", - "Export data as JSON": "Exporter data som JSON", + "Export data as JSON": "Eksporter Invidious-data som JSON", "Delete account?": "Slet konto?", "History": "Historik", "An alternative front-end to YouTube": "Et alternativt front-end til YouTube", @@ -66,7 +66,7 @@ "preferences_related_videos_label": "Vis relaterede videoer: ", "preferences_annotations_label": "Vis annotationer som standard: ", "preferences_extend_desc_label": "Automatisk udvid videoens beskrivelse: ", - "preferences_vr_mode_label": "Interaktiv 360 graders videoer: ", + "preferences_vr_mode_label": "Interaktive 360 graders videoer (kræver WebGL): ", "preferences_category_visual": "Visuelle præferencer", "preferences_player_style_label": "Afspiller stil: ", "Dark mode: ": "Mørk tilstand: ", @@ -202,7 +202,7 @@ "Hidden field \"challenge\" is a required field": "Det skjulte felt \"challenge\" er et påkrævet felt", "Albanian": "Albansk", "preferences_quality_dash_label": "Fortrukket DASH video kvalitet: ", - "live": "Direkte", + "search_filters_features_option_live": "Direkte", "Lao": "Lao-tse", "Filipino": "Filippinsk", "Greek": "Græsk", @@ -213,23 +213,23 @@ "preferences_locale_label": "Sprog: ", "News": "Nyheder", "permalink": "permalink", - "date": "Upload dato", - "features": "Funktioner", - "filter": "Filter", + "search_filters_sort_option_date": "Upload dato", + "search_filters_features_label": "Funktioner", + "search_filters_label": "Filter", "Khmer": "Khmer", "Finnish": "Finsk", - "week": "Denne uge", + "search_filters_date_option_week": "Denne uge", "Korean": "Koreansk", "Telugu": "Telugu", "Malayalam": "Malayalam", "View as playlist": "Se som spilleliste", "Hungarian": "Ungarsk", "Welsh": "Walisisk", - "subtitles": "Undertekster/CC", + "search_filters_features_option_subtitles": "Undertekster/CC", "Bosnian": "Bosnisk", "Yiddish": "Jiddisch", "Belarusian": "Belarussisk", - "today": "I dag", + "search_filters_date_option_today": "I dag", "Shona": "Shona", "Slovenian": "Slovensk", "Gaming": "Gaming", @@ -246,35 +246,35 @@ "footer_documentation": "Dokumentation", "Pashto": "Pashto", "footer_modfied_source_code": "Modificeret Kildekode", - "Released under the AGPLv3 on Github.": "Udgivet under AGPLv3 på Github.", + "Released under the AGPLv3 on Github.": "Udgivet under AGPLv3 på GitHub.", "Tajik": "Tadsjikisk", - "month": "Denne måned", + "search_filters_date_option_month": "Denne måned", "Hebrew": "Hebraisk", "Kannada": "Kannada", "Current version: ": "Nuværende version: ", "Amharic": "Amharisk", "Swedish": "Svensk", "Corsican": "Korsikansk", - "movie": "Film", + "search_filters_type_option_movie": "Film", "Could not pull trending pages.": "Kunne ikke hente trending sider.", "English": "Engelsk", - "hd": "HD", + "search_filters_features_option_hd": "HD", "Hausa": "Islandsk", - "year": "Dette år", + "search_filters_date_option_year": "Dette år", "Japanese": "Japansk", - "content_type": "Type", + "search_filters_type_label": "Type", "Icelandic": "Islandsk", "Basque": "Baskisk", - "rating": "Bedømmelse", + "search_filters_sort_option_rating": "Bedømmelse", "Yoruba": "Yoruba", "Erroneous token": "Fejlagtig token", "Videos": "Videoer", - "show": "Vis", + "search_filters_type_option_show": "Vis", "Luxembourgish": "Luxemboursk", "Vietnamese": "Vietnamesisk", "Latvian": "Lettisk", "Indonesian": "Indonesisk", - "duration": "Varighed", + "search_filters_duration_label": "Varighed", "footer_original_source_code": "Original kildekode", "Search": "Søg", "Serbian": "Serbisk", @@ -289,8 +289,8 @@ "Rating: ": "Bedømmelse: ", "Movies": "Film", "YouTube comment permalink": "Youtube kommentarer permalink", - "location": "Lokation", - "hdr": "HDR", + "search_filters_features_option_location": "Lokation", + "search_filters_features_option_hdr": "HDR", "Cebuano": "Cebuano (Sugbuanon)", "Nyanja": "Nyanja", "Chinese (Simplified)": "Kinesisk (forenklet)", @@ -306,11 +306,11 @@ "German": "Tysk", "Maori": "Maori", "Slovak": "Slovakisk", - "relevance": "Relevans", - "hour": "Sidste time", - "playlist": "Spilleliste", - "long": "Lang (> 20 minutter)", - "creative_commons": "Creative Commons", + "search_filters_sort_option_relevance": "Relevans", + "search_filters_date_option_hour": "Sidste time", + "search_filters_type_option_playlist": "Spilleliste", + "search_filters_duration_option_long": "Lang (> 20 minutter)", + "search_filters_features_option_c_commons": "Creative Commons", "Marathi": "Marathi", "Sindhi": "Sindhi", "preferences_category_misc": "Diverse indstillinger", @@ -327,8 +327,8 @@ "Western Frisian": "Vestfrisisk", "Top": "Top", "Music": "Musik", - "views": "Antal visninger", - "sort": "Sorter efter", + "search_filters_sort_option_views": "Antal visninger", + "search_filters_sort_label": "Sorter efter", "Zulu": "Zulu", "Invidious Private Feed for `x`": "Invidious Privat Feed til `x`", "English (auto-generated)": "Engelsk (autogenereret)", @@ -359,16 +359,16 @@ "Scottish Gaelic": "Skotsk Gælisk", "Default": "Standard", "Video mode": "Videotilstand", - "short": "Kort (< 4 minutter)", + "search_filters_duration_option_short": "Kort (< 4 minutter)", "Hidden field \"token\" is a required field": "Det skjulte felt \"token\" er et påkrævet felt", "Azerbaijani": "Aserbajdsjansk", "Georgian": "Georgisk", "Italian": "Italiensk", "Audio mode": "Lydtilstand", - "video": "Video", - "channel": "Kanal", - "3d": "3D", - "4k": "4K", + "search_filters_type_option_video": "Video", + "search_filters_type_option_channel": "Kanal", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_four_k": "4K", "Hmong": "Hmong", "preferences_quality_option_medium": "Medium", "preferences_quality_option_small": "Lille", @@ -381,8 +381,8 @@ "preferences_quality_dash_option_360p": "360p", "preferences_quality_dash_option_144p": "144p", "invidious": "Invidious", - "purchased": "Købt", - "360": "360°", + "search_filters_features_option_purchased": "Købt", + "search_filters_features_option_three_sixty": "360°", "none": "ingen", "videoinfo_started_streaming_x_ago": "Streamen blev startet for `x`siden", "videoinfo_watch_on_youTube": "Se på YouTube", @@ -392,11 +392,74 @@ "user_created_playlists": "`x`opretede spillelister", "user_saved_playlists": "´x`gemte spillelister", "Video unavailable": "Video ikke tilgængelig", - "preferences_save_player_pos_label": "Gem den nuværende videotid: ", + "preferences_save_player_pos_label": "Gem afspilningsposition: ", "preferences_quality_dash_option_auto": "Auto", "preferences_quality_option_hd720": "HD720", "preferences_quality_dash_option_2160p": "2160p", "preferences_quality_option_dash": "DASH (adaptiv kvalitet)", "preferences_quality_dash_option_1440p": "1440p", - "preferences_quality_dash_option_240p": "240p" + "preferences_quality_dash_option_240p": "240p", + "subscriptions_unseen_notifs_count": "{{count}} uset notifikation", + "subscriptions_unseen_notifs_count_plural": "{{count}} usete notifikationer", + "comments_view_x_replies": "Vis {{count}} svar", + "comments_view_x_replies_plural": "Vis {{count}} svar", + "comments_points_count": "{{count}} point", + "comments_points_count_plural": "{{count}} point", + "generic_count_years": "{{count}} år", + "generic_count_years_plural": "{{count}} år", + "generic_count_months": "{{count}} måned", + "generic_count_months_plural": "{{count}} måneder", + "generic_count_days": "{{count}} dag", + "generic_count_days_plural": "{{count}} dage", + "generic_count_minutes": "{{count}} minut", + "generic_count_minutes_plural": "{{count}} minutter", + "generic_count_seconds": "{{count}} sekund", + "generic_count_seconds_plural": "{{count}} sekunder", + "generic_subscribers_count": "{{count}} abonnent", + "generic_subscribers_count_plural": "{{count}} abonnenter", + "generic_subscriptions_count": "{{count}} abonnement", + "generic_subscriptions_count_plural": "{{count}} abonnementer", + "generic_videos_count": "{{count}} video", + "generic_videos_count_plural": "{{count}} videoer", + "English (United States)": "Engelsk (USA)", + "French (auto-generated)": "Fransk (autogenereret)", + "Spanish (auto-generated)": "Spansk (autogenereret)", + "crash_page_before_reporting": "Før du rapporterer en fejl, skal du sikre dig, at du har:", + "crash_page_refresh": "forsøgte at <a href=\"`x`\">opdatere siden</a>", + "generic_playlists_count": "{{count}} spilleliste", + "generic_playlists_count_plural": "{{count}} spillelister", + "preferences_watch_history_label": "Aktiver afspilningshistorik: ", + "tokens_count": "{{count}} token", + "tokens_count_plural": "{{count}} tokens", + "Cantonese (Hong Kong)": "Kantonesisk (Hongkong)", + "Chinese": "Kinesisk", + "Chinese (China)": "Kinesisk (Kina)", + "Chinese (Hong Kong)": "Kinesisk (Hongkong)", + "Chinese (Taiwan)": "Kinesisk (Taiwan)", + "Dutch (auto-generated)": "Hollandsk (autogenereret)", + "Indonesian (auto-generated)": "Indonesisk (autogenereret)", + "Interlingue": "Interlingue", + "Japanese (auto-generated)": "Japansk (autogenereret)", + "Korean (auto-generated)": "Koreansk (autogenereret)", + "Russian (auto-generated)": "Russisk (autogenereret)", + "Turkish (auto-generated)": "Tyrkisk (autogenereret)", + "Vietnamese (auto-generated)": "Vietnamesisk (autogenereret)", + "crash_page_report_issue": "Hvis intet af ovenstående hjalp, bedes du <a href=\"`x`\">åbne et nyt problem på GitHub</a> (helst på engelsk) og inkludere følgende tekst i din besked (oversæt IKKE denne tekst):", + "English (United Kingdom)": "Engelsk (Storbritannien)", + "Italian (auto-generated)": "Italiensk (autogenereret)", + "Portuguese (auto-generated)": "Portugisisk (autogenereret)", + "Portuguese (Brazil)": "Portugisisk (Brasilien)", + "generic_views_count": "{{count}} visning", + "generic_views_count_plural": "{{count}} visninger", + "generic_count_hours": "{{count}} time", + "generic_count_hours_plural": "{{count}} timer", + "Spanish (Spain)": "Spansk (Spanien)", + "crash_page_switch_instance": "forsøgte at <a href=\"`x`\">bruge en anden instans</a>", + "German (auto-generated)": "Tysk (autogenereret)", + "Spanish (Mexico)": "Spansk (Mexico)", + "generic_count_weeks": "{{count}} uge", + "generic_count_weeks_plural": "{{count}} uger", + "crash_page_you_found_a_bug": "Det ser ud til, at du har fundet en fejl i Invidious!", + "crash_page_read_the_faq": "læs <a href=\"`x`\">Ofte stillede spørgsmål (FAQ)</a>", + "crash_page_search_issue": "søgte efter <a href=\"`x`\">eksisterende problemer på GitHub</a>" } diff --git a/locales/de.json b/locales/de.json index 8381016b..b46b7ec4 100644 --- a/locales/de.json +++ b/locales/de.json @@ -21,15 +21,15 @@ "No": "Nein", "Import and Export Data": "Daten importieren und exportieren", "Import": "Importieren", - "Import Invidious data": "Invidious Daten importieren", - "Import YouTube subscriptions": "YouTube Abonnements importieren", + "Import Invidious data": "Invidious-JSON-Daten importieren", + "Import YouTube subscriptions": "YouTube-/OPML-Abonnements importieren", "Import FreeTube subscriptions (.db)": "FreeTube Abonnements importieren (.db)", "Import NewPipe subscriptions (.json)": "NewPipe Abonnements importieren (.json)", "Import NewPipe data (.zip)": "NewPipe Daten importieren (.zip)", "Export": "Exportieren", "Export subscriptions as OPML": "Abonnements als OPML exportieren", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Abonnements als OPML exportieren (für NewPipe & FreeTube)", - "Export data as JSON": "Daten als JSON exportieren", + "Export data as JSON": "Invidious-Daten als JSON exportieren", "Delete account?": "Konto löschen?", "History": "Verlauf", "An alternative front-end to YouTube": "Eine alternative Oberfläche für YouTube", @@ -51,10 +51,10 @@ "preferences_category_player": "Wiedergabeeinstellungen", "preferences_video_loop_label": "Immer wiederholen: ", "preferences_autoplay_label": "Automatisch abspielen: ", - "preferences_continue_label": "Immer automatisch nächstes Video spielen: ", - "preferences_continue_autoplay_label": "nächstes Video automatisch abspielen: ", + "preferences_continue_label": "Immer automatisch nächstes Video abspielen: ", + "preferences_continue_autoplay_label": "Nächstes Video automatisch abspielen: ", "preferences_listen_label": "Nur Ton als Standard: ", - "preferences_local_label": "Proxy-Videos: ", + "preferences_local_label": "Videos durch Proxy leiten: ", "preferences_speed_label": "Standardgeschwindigkeit: ", "preferences_quality_label": "Bevorzugte Videoqualität: ", "preferences_volume_label": "Wiedergabelautstärke: ", @@ -63,12 +63,12 @@ "reddit": "Reddit", "preferences_captions_label": "Standarduntertitel: ", "Fallback captions: ": "Ersatzuntertitel: ", - "preferences_related_videos_label": "Ähnliche Videos anzeigen? ", - "preferences_annotations_label": "Standardmäßig Anmerkungen anzeigen? ", + "preferences_related_videos_label": "Ähnliche Videos anzeigen: ", + "preferences_annotations_label": "Anmerkungen standardmäßig anzeigen: ", "preferences_extend_desc_label": "Videobeschreibung automatisch erweitern: ", - "preferences_vr_mode_label": "Interaktive 360 Grad Videos: ", + "preferences_vr_mode_label": "Interaktive 360-Grad-Videos (erfordert WebGL): ", "preferences_category_visual": "Anzeigeeinstellungen", - "preferences_player_style_label": "Abspielgeräterstil: ", + "preferences_player_style_label": "Player-Stil: ", "Dark mode: ": "Nachtmodus: ", "preferences_dark_mode_label": "Modus: ", "dark": "Nachtmodus", @@ -121,7 +121,7 @@ "Subscriptions": "Abonnements", "search": "Suchen", "Log out": "Abmelden", - "Released under the AGPLv3 on Github.": "Auf Github unter der AGPLv3 Lizenz veröffentlicht.", + "Released under the AGPLv3 on Github.": "Auf GitHub unter der AGPLv3 Lizenz veröffentlicht.", "Source available here.": "Quellcode verfügbar hier.", "View JavaScript license information.": "Javascript Lizenzinformationen anzeigen.", "View privacy policy.": "Datenschutzerklärung einsehen.", @@ -141,7 +141,7 @@ "Show less": "Weniger anzeigen", "Watch on YouTube": "Video auf YouTube ansehen", "Switch Invidious Instance": "Invidious Instanz wechseln", - "Broken? Try another Invidious Instance": "Funktioniert nicht? Probiere eine andere Invidious Instanz aus", + "Broken? Try another Invidious Instance": "Kaputt? Versuche eine andere Invidious Instanz", "Hide annotations": "Anmerkungen ausblenden", "Show annotations": "Anmerkungen anzeigen", "Genre: ": "Genre: ", @@ -329,45 +329,45 @@ "Videos": "Videos", "Playlists": "Wiedergabelisten", "Community": "Gemeinschaft", - "relevance": "Relevanz", - "rating": "Bewertung", - "date": "Datum", - "views": "Aufrufe", - "content_type": "Inhaltstyp", - "duration": "Dauer", - "features": "Eigenschaften", - "sort": "sortieren", - "hour": "Letzte Stunde", - "today": "Heute", - "week": "Diese Woche", - "month": "Diesen Monat", - "year": "Dieses Jahr", - "video": "Video", - "channel": "Kanal", - "playlist": "Wiedergabeliste", - "movie": "Film", - "show": "Anzeigen", - "hd": "HD", - "subtitles": "Untertitel / CC", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "Live", - "4k": "4K", - "location": "Standort", - "hdr": "HDR", - "filter": "Filtern", + "search_filters_sort_option_relevance": "Relevanz", + "search_filters_sort_option_rating": "Bewertung", + "search_filters_sort_option_date": "Datum", + "search_filters_sort_option_views": "Aufrufe", + "search_filters_type_label": "Inhaltstyp", + "search_filters_duration_label": "Dauer", + "search_filters_features_label": "Eigenschaften", + "search_filters_sort_label": "sortieren", + "search_filters_date_option_hour": "Letzte Stunde", + "search_filters_date_option_today": "Heute", + "search_filters_date_option_week": "Diese Woche", + "search_filters_date_option_month": "Diesen Monat", + "search_filters_date_option_year": "Dieses Jahr", + "search_filters_type_option_video": "Video", + "search_filters_type_option_channel": "Kanal", + "search_filters_type_option_playlist": "Wiedergabeliste", + "search_filters_type_option_movie": "Film", + "search_filters_type_option_show": "Anzeigen", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "Untertitel / CC", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "Live", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "Standort", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "Filtern", "Current version: ": "Aktuelle Version: ", "next_steps_error_message": "Danach folgendes versuchen: ", "next_steps_error_message_refresh": "Aktualisieren", "next_steps_error_message_go_to_youtube": "Zu YouTube gehen", "footer_donate_page": "Spende", - "long": "Lang (> 20 Minuten)", + "search_filters_duration_option_long": "Lang (> 20 Minuten)", "footer_original_source_code": "Original Quellcode", "footer_modfied_source_code": "Modifizierter Quellcode", "footer_documentation": "Dokumentation", "footer_source_code": "Quellcode", "adminprefs_modified_source_code_url_label": "URL zum Repositorie des modifizierten Quellcodes", - "short": "Kurz (< 4 Minuten)", + "search_filters_duration_option_short": "Kurz (< 4 Minuten)", "preferences_region_label": "Land der Inhalte: ", "preferences_quality_option_dash": "DASH (automatische Qualität)", "preferences_quality_option_hd720": "HD720", @@ -388,15 +388,78 @@ "Video unavailable": "Video nicht verfügbar", "user_created_playlists": "`x` Wiedergabelisten erstellt", "user_saved_playlists": "`x` Wiedergabelisten gespeichert", - "preferences_save_player_pos_label": "Aktuelle Position speichern: ", - "360": "360°", + "preferences_save_player_pos_label": "Wiedergabeposition speichern: ", + "search_filters_features_option_three_sixty": "360°", "preferences_quality_dash_option_best": "Höchste", "preferences_quality_dash_option_worst": "Niedrigste", "preferences_quality_dash_option_1440p": "1440p", "videoinfo_youTube_embed_link": "Eingebettet", - "purchased": "Gekauft", + "search_filters_features_option_purchased": "Gekauft", "none": "keine", "videoinfo_started_streaming_x_ago": "Stream begann vor `x`", "videoinfo_watch_on_youTube": "Auf YouTube ansehen", - "preferences_quality_dash_label": "Bevorzugte DASH-Videoqualität: " + "preferences_quality_dash_label": "Bevorzugte DASH-Videoqualität: ", + "generic_subscribers_count": "{{count}} Abonnent", + "generic_subscribers_count_plural": "{{count}} Abonnenten", + "generic_videos_count": "{{count}} Video", + "generic_videos_count_plural": "{{count}} Videos", + "subscriptions_unseen_notifs_count": "{{count}} ungesehene Benachrichtung", + "subscriptions_unseen_notifs_count_plural": "{{count}} ungesehene Benachrichtungen", + "crash_page_refresh": "Versucht haben, <a href=\"`x`\">die Seite neu zu laden</a>", + "comments_view_x_replies": "{{count}} Antwort anzeigen", + "comments_view_x_replies_plural": "{{count}} Antworten anzeigen", + "generic_count_years": "{{count}} Jahr", + "generic_count_years_plural": "{{count}} Jahre", + "generic_count_weeks": "{{count}} Woche", + "generic_count_weeks_plural": "{{count}} Wochen", + "generic_count_days": "{{count}} Tag", + "generic_count_days_plural": "{{count}} Tage", + "crash_page_before_reporting": "Bevor Sie einen Bug melden, stellen Sie sicher, dass Sie:", + "crash_page_switch_instance": "Eine <a href=\"`x`\">andere Instanz</a> versucht haben", + "generic_count_hours": "{{count}} Stunde", + "generic_count_hours_plural": "{{count}} Stunden", + "generic_count_minutes": "{{count}} Minute", + "generic_count_minutes_plural": "{{count}} Minuten", + "crash_page_read_the_faq": "Das <a href=\"`x`\">FAQ</a> gelesen haben", + "crash_page_search_issue": "Nach <a href=\"`x`\">bereits gemeldeten Bugs auf GitHub</a> gesucht haben", + "crash_page_report_issue": "Wenn all dies nicht geholfen hat, <a href=\"`x`\">öffnen Sie bitte ein neues Problem (issue) auf Github</a> (vorzugsweise auf Englisch) und fügen Sie den folgenden Text in Ihre Nachricht ein (bitte übersetzen Sie diesen Text NICHT):", + "generic_views_count": "{{count}} Aufruf", + "generic_views_count_plural": "{{count}} Aufrufe", + "generic_count_seconds": "{{count}} Sekunde", + "generic_count_seconds_plural": "{{count}} Sekunden", + "generic_subscriptions_count": "{{count}} Abo", + "generic_subscriptions_count_plural": "{{count}} Abos", + "tokens_count": "{{count}} Token", + "tokens_count_plural": "{{count}} Tokens", + "comments_points_count": "{{count}} Punkt", + "comments_points_count_plural": "{{count}} Punkte", + "crash_page_you_found_a_bug": "Anscheinend haben Sie einen Fehler in Invidious gefunden!", + "generic_count_months": "{{count}} Monat", + "generic_count_months_plural": "{{count}} Monate", + "Cantonese (Hong Kong)": "Kantonesisch (Hong Kong)", + "Chinese (Hong Kong)": "Chinesisch (Hong Kong)", + "generic_playlists_count": "{{count}} Wiedergabeliste", + "generic_playlists_count_plural": "{{count}} Wiedergabelisten", + "preferences_watch_history_label": "Wiedergabeverlauf aktivieren: ", + "English (United Kingdom)": "Englisch (Vereinigtes Königreich)", + "English (United States)": "Englisch (Vereinigte Staaten)", + "Dutch (auto-generated)": "Niederländisch (automatisch generiert)", + "French (auto-generated)": "Französisch (automatisch generiert)", + "German (auto-generated)": "Deutsch (automatisch generiert)", + "Indonesian (auto-generated)": "Indonesisch (automatisch generiert)", + "Interlingue": "Interlingue", + "Italian (auto-generated)": "Italienisch (automatisch generiert)", + "Japanese (auto-generated)": "Japanisch (automatisch generiert)", + "Spanish (Mexico)": "Spanisch (Mexiko)", + "Spanish (Spain)": "Spanisch (Spanien)", + "Vietnamese (auto-generated)": "Vietnamesisch (automatisch generiert)", + "Russian (auto-generated)": "Russisch (automatisch generiert)", + "Chinese": "Chinesisch", + "Portuguese (Brazil)": "Portugiesisch (Brasilien)", + "Spanish (auto-generated)": "Spanisch (automatisch generiert)", + "Turkish (auto-generated)": "Türkisch (automatisch generiert)", + "Chinese (China)": "Chinesisch (China)", + "Chinese (Taiwan)": "Chinesisch (Taiwan)", + "Korean (auto-generated)": "Koreanisch (automatisch generiert)", + "Portuguese (auto-generated)": "Portugiesisch (automatisch generiert)" } diff --git a/locales/el.json b/locales/el.json index 36fc695b..29beb75c 100644 --- a/locales/el.json +++ b/locales/el.json @@ -358,7 +358,7 @@ "crash_page_before_reporting": "Πριν αναφέρετε ένα σφάλμα, βεβαιωθείτε ότι έχετε:", "crash_page_refresh": "προσπαθήσει να <a href=\"`x`\">ανανεώσετε τη σελίδα</a>", "crash_page_read_the_faq": "διαβάσει τις <a href=\"`x`\">Συχνές Ερωτήσεις (ΣΕ)</a>", - "crash_page_search_issue": "αναζητήσει για <a href=\"`x`\">υπάρχοντα θέματα στο Github</a>", + "crash_page_search_issue": "αναζητήσει για <a href=\"`x`\">υπάρχοντα θέματα στο GitHub</a>", "generic_views_count": "{{count}} προβολή", "generic_views_count_plural": "{{count}} προβολές", "generic_videos_count": "{{count}} βίντεο", @@ -373,51 +373,51 @@ "preferences_region_label": "Χώρα περιεχομένου: ", "preferences_category_misc": "Διάφορες προτιμήσεις", "Show more": "Εμφάνιση περισσότερων", - "today": "Σήμερα", - "360": "360°", + "search_filters_date_option_today": "Σήμερα", + "search_filters_features_option_three_sixty": "360°", "videoinfo_started_streaming_x_ago": "Ξεκίνησε η ροή `x` πριν από", "videoinfo_watch_on_youTube": "Παρακολουθήστε στο YouTube", "download_subtitles": "Υπότιτλοι - `x` (.vtt)", "user_created_playlists": "`x` δημιουργημένες λίστες αναπαραγωγής", "user_saved_playlists": "`x` αποθηκευμένες λίστες αναπαραγωγής", - "rating": "Αξιολόγηση", - "relevance": "Συνάφεια", - "purchased": "Αγορασμένο", - "date": "Ημερομηνία μεταφόρτωσης", - "content_type": "Τύπος", - "duration": "Διάρκεια", - "week": "Αυτή την εβδομάδα", - "year": "Φέτος", - "channel": "Κανάλι", - "playlist": "Λίστα αναπαραγωγής", - "long": "Μεγάλο (> 20 λεπτά)", - "hd": "HD", - "location": "Τοποθεσία", - "3d": "3D", + "search_filters_sort_option_rating": "Αξιολόγηση", + "search_filters_sort_option_relevance": "Συνάφεια", + "search_filters_features_option_purchased": "Αγορασμένο", + "search_filters_sort_option_date": "Ημερομηνία μεταφόρτωσης", + "search_filters_type_label": "Τύπος", + "search_filters_duration_label": "Διάρκεια", + "search_filters_date_option_week": "Αυτή την εβδομάδα", + "search_filters_date_option_year": "Φέτος", + "search_filters_type_option_channel": "Κανάλι", + "search_filters_type_option_playlist": "Λίστα αναπαραγωγής", + "search_filters_duration_option_long": "Μεγάλο (> 20 λεπτά)", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_location": "Τοποθεσία", + "search_filters_features_option_three_d": "3D", "next_steps_error_message": "Μετά από αυτό θα πρέπει να προσπαθήσετε να: ", "next_steps_error_message_go_to_youtube": "Μεταβείτε στο YouTube", "footer_donate_page": "Δωρεά", "footer_original_source_code": "Πρωτότυπος πηγαίος κώδικας", "preferences_show_nick_label": "Εμφάνιση ψευδώνυμου στην κορυφή: ", - "hour": "Τελευταία ώρα", + "search_filters_date_option_hour": "Τελευταία ώρα", "adminprefs_modified_source_code_url_label": "URL σε αποθετήριο τροποποιημένου πηγαίου κώδικα", - "subtitles": "Υπότιτλοι/CC", - "month": "Αυτόν τον μήνα", - "Released under the AGPLv3 on Github.": "Κυκλοφορεί υπό την AGPLv3 στο Github.", - "sort": "Ταξινόμηση κατά", - "filter": "Φίλτρο", - "movie": "Ταινία", + "search_filters_features_option_subtitles": "Υπότιτλοι/CC", + "search_filters_date_option_month": "Αυτόν τον μήνα", + "Released under the AGPLv3 on Github.": "Κυκλοφορεί υπό την AGPLv3 στο GitHub.", + "search_filters_sort_label": "Ταξινόμηση κατά", + "search_filters_label": "Φίλτρο", + "search_filters_type_option_movie": "Ταινία", "footer_modfied_source_code": "Τροποποιημένος πηγαίος κώδικας", - "features": "Χαρακτηριστικά", - "4k": "4K", + "search_filters_features_label": "Χαρακτηριστικά", + "search_filters_features_option_four_k": "4K", "footer_documentation": "Τεκμηρίωση", - "short": "Σύντομο (< 4 λεπτά)", + "search_filters_duration_option_short": "Σύντομο (< 4 λεπτά)", "next_steps_error_message_refresh": "Ανανέωση", - "video": "Βίντεο", - "live": "Ζωντανά", - "creative_commons": "Creative Commons", + "search_filters_type_option_video": "Βίντεο", + "search_filters_features_option_live": "Ζωντανά", + "search_filters_features_option_c_commons": "Creative Commons", "Search": "Αναζήτηση", - "hdr": "HDR", + "search_filters_features_option_hdr": "HDR", "preferences_extend_desc_label": "Αυτόματη επέκταση της περιγραφής του βίντεο: ", "preferences_vr_mode_label": "Διαδραστικά βίντεο 360 μοιρών (απαιτεί WebGL): ", "Show less": "Εμφάνιση λιγότερων", @@ -448,5 +448,6 @@ "none": "κανένα", "videoinfo_youTube_embed_link": "Ενσωμάτωση", "videoinfo_invidious_embed_link": "Σύνδεσμος Ενσωμάτωσης", - "show": "Μπάρα προόδου διαβάσματος" + "search_filters_type_option_show": "Μπάρα προόδου διαβάσματος", + "preferences_watch_history_label": "Ενεργοποίηση ιστορικού παρακολούθησης: " } diff --git a/locales/en-US.json b/locales/en-US.json index c924c8aa..c57670fc 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -65,6 +65,7 @@ "preferences_continue_autoplay_label": "Autoplay next video: ", "preferences_listen_label": "Listen by default: ", "preferences_local_label": "Proxy videos: ", + "preferences_watch_history_label": "Enable watch history: ", "preferences_speed_label": "Default speed: ", "preferences_quality_label": "Preferred video quality: ", "preferences_quality_option_dash": "DASH (adaptative quality)", @@ -154,7 +155,7 @@ "subscriptions_unseen_notifs_count_plural": "{{count}} unseen notifications", "search": "search", "Log out": "Log out", - "Released under the AGPLv3 on Github.": "Released under the AGPLv3 on Github.", + "Released under the AGPLv3 on Github.": "Released under the AGPLv3 on GitHub.", "Source available here.": "Source available here.", "View JavaScript license information.": "View JavaScript license information.", "View privacy policy.": "View privacy policy.", @@ -174,7 +175,9 @@ "Show less": "Show less", "Watch on YouTube": "Watch on YouTube", "Switch Invidious Instance": "Switch Invidious Instance", - "Broken? Try another Invidious Instance": "Broken? Try another Invidious Instance", + "search_message_no_results": "No results found.", + "search_message_change_filters_or_query": "Try widening your search query and/or changing the filters.", + "search_message_use_another_instance": " You can also <a href=\"`x`\">search on another instance</a>.", "Hide annotations": "Hide annotations", "Show annotations": "Show annotations", "Genre: ": "Genre: ", @@ -403,37 +406,44 @@ "Videos": "Videos", "Playlists": "Playlists", "Community": "Community", - "relevance": "Relevance", - "rating": "Rating", - "date": "Upload date", - "views": "View count", - "content_type": "Type", - "duration": "Duration", - "features": "Features", - "sort": "Sort By", - "hour": "Last Hour", - "today": "Today", - "week": "This week", - "month": "This month", - "year": "This year", - "video": "Video", - "channel": "Channel", - "playlist": "Playlist", - "movie": "Movie", - "show": "Show", - "short": "Short (< 4 minutes)", - "long": "Long (> 20 minutes)", - "hd": "HD", - "subtitles": "Subtitles/CC", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "Live", - "4k": "4K", - "location": "Location", - "hdr": "HDR", - "purchased": "Purchased", - "360": "360°", - "filter": "Filter", + "search_filters_title": "Filters", + "search_filters_date_label": "Upload date", + "search_filters_date_option_none": "Any date", + "search_filters_date_option_hour": "Last Hour", + "search_filters_date_option_today": "Today", + "search_filters_date_option_week": "This week", + "search_filters_date_option_month": "This month", + "search_filters_date_option_year": "This year", + "search_filters_type_label": "Type", + "search_filters_type_option_all": "Any type", + "search_filters_type_option_video": "Video", + "search_filters_type_option_channel": "Channel", + "search_filters_type_option_playlist": "Playlist", + "search_filters_type_option_movie": "Movie", + "search_filters_type_option_show": "Show", + "search_filters_duration_label": "Duration", + "search_filters_duration_option_none": "Any duration", + "search_filters_duration_option_short": "Short (< 4 minutes)", + "search_filters_duration_option_medium": "Medium (4 - 20 minutes)", + "search_filters_duration_option_long": "Long (> 20 minutes)", + "search_filters_features_label": "Features", + "search_filters_features_option_live": "Live", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "Subtitles/CC", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_sixty": "360°", + "search_filters_features_option_vr180": "VR180", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_hdr": "HDR", + "search_filters_features_option_location": "Location", + "search_filters_features_option_purchased": "Purchased", + "search_filters_sort_label": "Sort By", + "search_filters_sort_option_relevance": "Relevance", + "search_filters_sort_option_rating": "Rating", + "search_filters_sort_option_date": "Upload Date", + "search_filters_sort_option_views": "View count", + "search_filters_apply_button": "Apply selected filters", "Current version: ": "Current version: ", "next_steps_error_message": "After which you should try to: ", "next_steps_error_message_refresh": "Refresh", @@ -458,7 +468,7 @@ "crash_page_before_reporting": "Before reporting a bug, make sure that you have:", "crash_page_refresh": "tried to <a href=\"`x`\">refresh the page</a>", "crash_page_switch_instance": "tried to <a href=\"`x`\">use another instance</a>", - "crash_page_read_the_faq": "read the <a href=\"`x`\">Frenquently Asked Questions (FAQ)</a>", - "crash_page_search_issue": "searched for <a href=\"`x`\">existing issues on Github</a>", + "crash_page_read_the_faq": "read the <a href=\"`x`\">Frequently Asked Questions (FAQ)</a>", + "crash_page_search_issue": "searched for <a href=\"`x`\">existing issues on GitHub</a>", "crash_page_report_issue": "If none of the above helped, please <a href=\"`x`\">open a new issue on GitHub</a> (preferably in English) and include the following text in your message (do NOT translate that text):" } diff --git a/locales/eo.json b/locales/eo.json index e7a8453e..cd3447a7 100644 --- a/locales/eo.json +++ b/locales/eo.json @@ -121,7 +121,7 @@ "Subscriptions": "Abonoj", "search": "serĉi", "Log out": "Elsaluti", - "Released under the AGPLv3 on Github.": "Eldonita sub la AGPLv3 en Github.", + "Released under the AGPLv3 on Github.": "Eldonita sub la AGPLv3 en GitHub.", "Source available here.": "Fonto havebla ĉi tie.", "View JavaScript license information.": "Vidi Ĝavoskriptan licencan informon.", "View privacy policy.": "Vidi regularon pri privateco.", @@ -329,39 +329,39 @@ "Videos": "Filmetoj", "Playlists": "Ludlistoj", "Community": "Komunumo", - "relevance": "rilateco", - "rating": "takso", - "date": "dato", - "views": "vidoj", - "content_type": "enhavtipo", - "duration": "daŭro", - "features": "trajtoj", - "sort": "ordigi", - "hour": "horo", - "today": "hodiaŭ", - "week": "semajno", - "month": "monato", - "year": "jaro", - "video": "filmeto", - "channel": "kanalo", - "playlist": "ludlisto", - "movie": "filmo", - "show": "spektaĵo", - "hd": "altdistingiva", - "subtitles": "subtekstoj", - "creative_commons": "Krea Komunaĵo", - "3d": "3D", - "live": "nuna", - "4k": "4k", - "location": "loko", - "hdr": "granddinamikgama", - "filter": "filtri", + "search_filters_sort_option_relevance": "rilateco", + "search_filters_sort_option_rating": "takso", + "search_filters_sort_option_date": "dato", + "search_filters_sort_option_views": "vidoj", + "search_filters_type_label": "enhavtipo", + "search_filters_duration_label": "daŭro", + "search_filters_features_label": "trajtoj", + "search_filters_sort_label": "ordigi", + "search_filters_date_option_hour": "horo", + "search_filters_date_option_today": "hodiaŭ", + "search_filters_date_option_week": "semajno", + "search_filters_date_option_month": "monato", + "search_filters_date_option_year": "jaro", + "search_filters_type_option_video": "filmeto", + "search_filters_type_option_channel": "kanalo", + "search_filters_type_option_playlist": "ludlisto", + "search_filters_type_option_movie": "filmo", + "search_filters_type_option_show": "spektaĵo", + "search_filters_features_option_hd": "altdistingiva", + "search_filters_features_option_subtitles": "subtekstoj", + "search_filters_features_option_c_commons": "Krea Komunaĵo", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "nuna", + "search_filters_features_option_four_k": "4k", + "search_filters_features_option_location": "loko", + "search_filters_features_option_hdr": "granddinamikgama", + "search_filters_label": "filtri", "Current version: ": "Nuna versio: ", "next_steps_error_message": "Poste, vi provu: ", "next_steps_error_message_refresh": "Reŝargi", "next_steps_error_message_go_to_youtube": "Iri al JuTubo", - "long": "Longa (> 20 minutos)", - "short": "Mallonga (< 4 minutos)", + "search_filters_duration_option_long": "Longa (> 20 minutos)", + "search_filters_duration_option_short": "Mallonga (< 4 minutos)", "footer_documentation": "Dokumentaro", "footer_source_code": "Fontkodo", "adminprefs_modified_source_code_url_label": "URL al modifita deponejo de fontkodo", diff --git a/locales/es.json b/locales/es.json index 24f8dbdf..28ca0bf5 100644 --- a/locales/es.json +++ b/locales/es.json @@ -121,7 +121,7 @@ "Subscriptions": "Suscripciones", "search": "buscar", "Log out": "Cerrar la sesión", - "Released under the AGPLv3 on Github.": "Publicado bajo la AGPLv3 en Github.", + "Released under the AGPLv3 on Github.": "Publicado bajo la AGPLv3 en GitHub.", "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.", @@ -196,7 +196,7 @@ "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", + "No such user": "Usuario no existe", "Token is expired, please try again": "El símbolo ha caducado, inténtelo de nuevo", "English": "Inglés", "English (auto-generated)": "Inglés (generados automáticamente)", @@ -329,39 +329,39 @@ "Videos": "Vídeos", "Playlists": "Listas de reproducción", "Community": "Comunidad", - "relevance": "relevancia", - "rating": "valoración", - "date": "fecha", - "views": "visualizaciones", - "content_type": "content_type", - "duration": "duración", - "features": "funcionalidades", - "sort": "ordenar", - "hour": "hora", - "today": "hoy", - "week": "semana", - "month": "mes", - "year": "año", - "video": "vídeo", - "channel": "canal", - "playlist": "lista de reproducción", - "movie": "película", - "show": "programa", - "hd": "hd", - "subtitles": "subtítulos", - "creative_commons": "creative_commons", - "3d": "3d", - "live": "directo", - "4k": "4k", - "location": "ubicación", - "hdr": "hdr", - "filter": "filtro", + "search_filters_sort_option_relevance": "relevancia", + "search_filters_sort_option_rating": "valoración", + "search_filters_sort_option_date": "fecha", + "search_filters_sort_option_views": "visualizaciones", + "search_filters_type_label": "content_type", + "search_filters_duration_label": "duración", + "search_filters_features_label": "funcionalidades", + "search_filters_sort_label": "ordenar", + "search_filters_date_option_hour": "hora", + "search_filters_date_option_today": "hoy", + "search_filters_date_option_week": "semana", + "search_filters_date_option_month": "mes", + "search_filters_date_option_year": "año", + "search_filters_type_option_video": "vídeo", + "search_filters_type_option_channel": "canal", + "search_filters_type_option_playlist": "lista de reproducción", + "search_filters_type_option_movie": "película", + "search_filters_type_option_show": "programa", + "search_filters_features_option_hd": "hd", + "search_filters_features_option_subtitles": "subtítulos", + "search_filters_features_option_c_commons": "creative_commons", + "search_filters_features_option_three_d": "3d", + "search_filters_features_option_live": "directo", + "search_filters_features_option_four_k": "4k", + "search_filters_features_option_location": "ubicación", + "search_filters_features_option_hdr": "hdr", + "search_filters_label": "filtro", "Current version: ": "Versión actual: ", "next_steps_error_message": "Después de lo cual deberías intentar: ", - "next_steps_error_message_refresh": "Recargar", + "next_steps_error_message_refresh": "Recargar la página", "next_steps_error_message_go_to_youtube": "Ir a YouTube", - "short": "Corto (< 4 minutos)", - "long": "Largo (> 20 minutos)", + "search_filters_duration_option_short": "Corto (< 4 minutos)", + "search_filters_duration_option_long": "Largo (> 20 minutos)", "footer_documentation": "Documentación", "footer_original_source_code": "Código fuente original", "adminprefs_modified_source_code_url_label": "URL al repositorio de código fuente modificado", @@ -395,8 +395,8 @@ "preferences_quality_dash_option_worst": "La peor", "videoinfo_invidious_embed_link": "Enlace para Insertar", "preferences_quality_dash_option_1080p": "1080p", - "purchased": "Comprado", - "360": "360°", + "search_filters_features_option_purchased": "Comprado", + "search_filters_features_option_three_sixty": "360°", "videoinfo_watch_on_youTube": "Ver en YouTube", "preferences_save_player_pos_label": "Guardar posición de reproducción: ", "generic_views_count": "{{count}} visualización", @@ -432,7 +432,7 @@ "crash_page_before_reporting": "Antes de notificar un error asegúrate de que has:", "crash_page_switch_instance": "probado a <a href=\"`x`\">usar otra instancia</a>", "crash_page_read_the_faq": "leído las <a href=\"`x`\">Preguntas Frecuentes</a>", - "crash_page_search_issue": "buscado <a href=\"`x`\">problemas existentes en Github</a>", + "crash_page_search_issue": "buscado <a href=\"`x`\">problemas existentes en GitHub</a>", "crash_page_you_found_a_bug": "¡Parece que has encontrado un error en Invidious!", "crash_page_refresh": "probado a <a href=\"`x`\">recargar la página</a>", "crash_page_report_issue": "Si nada de lo anterior ha sido de ayuda, por favor, <a href=\"`x`\">abre una nueva incidencia en GitHub</a> (preferiblemente en inglés) e incluye el siguiente texto en tu mensaje (NO traduzcas este texto):", @@ -458,5 +458,6 @@ "Chinese (China)": "Chino (China)", "Korean (auto-generated)": "Coreano (generados automáticamente)", "Spanish (Mexico)": "Español (Méjico)", - "Spanish (auto-generated)": "Español (generados automáticamente)" + "Spanish (auto-generated)": "Español (generados automáticamente)", + "preferences_watch_history_label": "Habilitar historial de reproducciones: " } diff --git a/locales/eu.json b/locales/eu.json index a5c7c562..041e9195 100644 --- a/locales/eu.json +++ b/locales/eu.json @@ -20,15 +20,15 @@ "No": "Ez", "Import and Export Data": "Datuak inportatu eta esportatu", "Import": "Inportatu", - "Import Invidious data": "Inportatu Invidiouseko datuak", - "Import YouTube subscriptions": "Inportatu YouTubeko harpidetzak", + "Import Invidious data": "Inportatu Invidiouseko JSON datuak", + "Import YouTube subscriptions": "Inportatu YouTubeko/OPML harpidetzak", "Import FreeTube subscriptions (.db)": "Inportatu FreeTubeko harpidetzak (.db)", "Import NewPipe subscriptions (.json)": "Inportatu NewPipeko harpidetzak (.json)", "Import NewPipe data (.zip)": "Inportatu NewPipeko datuak (.zip)", "Export": "Esportatu", "Export subscriptions as OPML": "Esportatu harpidetzak OPML bezala", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Esportatu harpidetzak OPML bezala (NewPipe eta FreeTuberako)", - "Export data as JSON": "Esportatu datuak JSON bezala", + "Export data as JSON": "Esportatu Invidious datuak JSON gisa", "Delete account?": "Kontua ezabatu?", "History": "Historia", "An alternative front-end to YouTube": "YouTuberako interfaze alternatibo bat", @@ -53,7 +53,7 @@ "preferences_volume_label": "Erreproduzigailuaren bolumena: ", "preferences_comments_label": "Lehenetsitako iruzkinak: ", "youtube": "YouTube", - "reddit": "reddit", + "reddit": "Reddit", "preferences_captions_label": "Lehenetsitako azpitituluak: ", "preferences_related_videos_label": "Erakutsi erlazionatutako bideoak: ", "preferences_annotations_label": "Erakutsi oharrak modu lehenetsian: ", @@ -62,5 +62,217 @@ "Dark mode: ": "Gai iluna: ", "preferences_dark_mode_label": "Gaia: ", "dark": "iluna", - "light": "argia" + "light": "argia", + "generic_subscriptions_count": "{{count}} harpidetza", + "generic_subscriptions_count_plural": "{{count}} harpidetzak", + "tokens_count": "{{count}} tokena", + "tokens_count_plural": "{{count}} tokenak", + "comments_points_count": "{{count}} puntua", + "comments_points_count_plural": "{{count}} puntuak", + "View more comments on Reddit": "Iruzkin gehiago Redditen", + "Fallback captions: ": "Ordezko azpitituluak: ", + "generic_subscribers_count": "{{count}} harpidedun", + "generic_subscribers_count_plural": "{{count}} harpidedunak", + "preferences_quality_option_dash": "DASH (kalitate egokitua)", + "preferences_listen_label": "Lehenetsiz jo: ", + "preferences_speed_label": "Abiadura lehenetsia: ", + "preferences_quality_dash_option_2160p": "2160p", + "preferences_quality_dash_option_144p": "144p", + "preferences_quality_dash_option_auto": "Auto", + "preferences_quality_dash_option_worst": "Txarrena", + "preferences_quality_dash_option_best": "Hoberena", + "preferences_quality_dash_option_4320p": "4320p", + "preferences_quality_dash_option_480p": "480p", + "preferences_quality_dash_option_240p": "240p", + "preferences_extend_desc_label": "Bideoaren azalpena automatikoki zabaldu: ", + "preferences_annotations_subscribed_label": "Harpidetutako kanalen oharrak erakutsi lehenetsiz? ", + "Redirect homepage to feed: ": "Hasierako orrira bidali jarraitzeko: ", + "channel name - reverse": "kanalaren izena - alderantziz", + "preferences_notifications_only_label": "Jakinarazpenak soilik erakutsi (baldin badago): ", + "Top enabled: ": "Goikoa gaitu: ", + "Import/export data": "Inportatu/exportatu data", + "Create playlist": "Zerrenda sortu", + "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Aditu! JavaScript itzalita dakazula ematen du. Hemen sakatu iruzkinak ikusteko. Denbora luza leikeela kontuan hartu.", + "Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Ezinezkoa izena eman. Ziurtatu berresteko bi faktoreak (Authenticator edo SMS) piztuta daudela.", + "generic_views_count": "{{count}}ikusia", + "generic_views_count_plural": "{{count}}ikusiak", + "generic_playlists_count": "{{count}}zerrenda", + "generic_playlists_count_plural": "{{count}}zerrendak", + "Could not fetch comments": "Iruzkinei ezin heldu", + "Erroneous token": "Token okerra", + "Albanian": "Albaniarra", + "Azerbaijani": "Azerbaitarra", + "No such user": "Ez dago erabiltzailerik", + "Bulgarian": "Bulgariarra", + "Filipino": "Filipinera", + "French": "Frantsesa", + "French (auto-generated)": "Frantsesa (auto-sortua)", + "Show more": "Erakutsi gehiago", + "Show less": "Erakutsi gutxiago", + "Delete playlist": "Zerrenda ezabatu", + "Delete account": "Kontua ezabatu", + "User ID is a required field": "Erabiltzailearen IDa beharrezkoa da", + "English (United Kingdom)": "Ingelesa (Britania Handia", + "preferences_vr_mode_label": "360 graduko bideo interaktiboak (WebGL beharko): ", + "English (United States)": "Estatu batuarra (AEB)", + "English (auto-generated)": "Ingelesa (autosortua)", + "Arabic": "Arabiarra", + "Armenian": "Armeniarra", + "Bangla": "Banglera", + "Belarusian": "Bielorrusiara", + "Burmese": "Burmesera", + "Chinese (Simplified)": "Txinera (sinplifikatua)", + "preferences_watch_history_label": "Baimendu historia ikusi ", + "generic_videos_count": "{{count}}bideo", + "generic_videos_count_plural": "{{count}}bideoak", + "View privacy policy.": "Pribatutasun politika ikusi.", + "Cantonese (Hong Kong)": "Kantoniera (Hong Kong)", + "subscriptions_unseen_notifs_count": "{{count}} ezikusitako oharra", + "subscriptions_unseen_notifs_count_plural": "{{count}} ezikusitako oharrak", + "Trending": "Joera", + "Playlist privacy": "Zerrendaren privatutasuna", + "Switch Invidious Instance": "Invidious adibidea aldatu", + "Genre: ": "Genero: ", + "License: ": "Lizentzia: ", + "Family friendly? ": "Adeikorra familiarekin? ", + "Wilson score: ": "Wilsonen puntuazioa: ", + "Quota exceeded, try again in a few hours": "Kuota gaindituta, ordu batzuren bueltan berriro saiatu", + "comments_view_x_replies": "{{count}} erantzuna ikusi", + "comments_view_x_replies_plural": "{{count}} erantzunak ikusi", + "Catalan": "Katalaniera", + "Chinese": "Txinera", + "Chinese (China)": "Txinatarra", + "Chinese (Hong Kong)": "Hongkondarra", + "Chinese (Taiwan)": "Taiwandarra", + "Corsican": "Korsikera", + "Dutch (auto-generated)": "Alemaniera (auto-sortua)", + "Estonian": "Estoniera", + "Finnish": "Finlandiera", + "Galician": "Galizera", + "German (auto-generated)": "Alemaiera (auto-sortua)", + "Greek": "Greziera", + "crash_page_report_issue": "Aurreko ezerk ez badizu lagundu, arren <a href=\"`x`\"> GitHuben gai berri bat zabaldu </a> (ingelesez ahal bada) eta zure mezuan hurrengo testua sartu (testuari EZ itzulpena egin):", + "crash_page_search_issue": "GitHuben dauden gaiak <a href=\"`x`\"> buruz</a>", + "preferences_quality_option_medium": "Erdixka", + "preferences_quality_option_small": "Txikia", + "preferences_quality_dash_label": "DASH bideo kalitate lehenetsia: ", + "preferences_quality_dash_option_1440p": "1440p", + "preferences_quality_dash_option_1080p": "1080p", + "preferences_quality_dash_option_720p": "720p", + "preferences_quality_option_hd720": "HD720", + "preferences_quality_dash_option_360p": "360p", + "invidious": "Invidious", + "Source available here.": "Iturburua hemen eskura.", + "View JavaScript license information.": "JavaScriptaren lizentzi adierazpena ikusi.", + "Blacklisted regions: ": "zerrenda beltzaren zonaldeak: ", + "Premieres `x`": "'x' estrenaldiak", + "Wrong answer": "Erantzun ez zuzena", + "Password is a required field": "Pasahitza beharrezkoa da", + "Wrong username or password": "Pasahitza edo ezizena gaizki", + "Password cannot be longer than 55 characters": "Pasahitza 55 karaktere baino luzeagoa ezin da izan", + "This channel does not exist.": "Kanal hau ez dago.", + "`x` ago": "duela 'x'", + "Czech": "Txekiera", + "preferences_region_label": "Herrialdeko edukiera: ", + "preferences_sort_label": "Bideoak ordenatu: ", + "published": "argitaratuta", + "Only show latest video from channel: ": "Kanalaren azken bideoa soilik erakutsi ", + "preferences_category_admin": "Administratzailearen lehentasunak", + "Registration enabled: ": "Harpidetza gaituta: ", + "Save preferences": "Baloreak gorde", + "Token manager": "Token kudeatzailea", + "unsubscribe": "Baja eman", + "search": "Bilatu", + "Log out": "Irten", + "English": "Ingelesa", + "Afrikaans": "Afrikarra", + "Amharic": "Amharerra", + "Basque": "Euskera", + "Bosnian": "Bosniarra", + "Cebuano": "Zebuera", + "Chinese (Traditional)": "Txinera (Tradizionala)", + "Croatian": "Croaziera", + "Danish": "Daniera", + "Dutch": "Alemaniera", + "Esperanto": "Esperanto", + "Erroneous challenge": "Erronka okerra", + "View all playlists": "Zerrenda guztiak ikusi", + "Show annotations": "Oharrak erakutsi", + "Empty playlist": "Zerrenda hutsik", + "Please log in": "Sartu, mesedez", + "CAPTCHA is a required field": "CAPTCHA beharrezko eremua da", + "preferences_category_data": "Dataren lehentasunak", + "preferences_default_home_label": "Homepage lehenetsia: ", + "preferences_automatic_instance_redirect_label": "berbideratze adibide automatikoa (atzera egin berbideratzeko: invidious.io) ", + "Please sign in using 'Log in with Google'": "'Log in Googlerekin' erabili", + "`x` uploaded a video": "' x'(e)k bideo bat igo du", + "published - reverse": "argitaratuta - alderantziz", + "Could not get channel info.": "Kanalaren adierazpena ezin lortu.", + "alphabetically - reverse": "alfabetikoki - alderantziz", + "Public": "Orokorra", + "Unlisted": "Ez zerrendatua", + "Subscription manager": "Harpidetzen kudeatzailea", + "Updated `x` ago": "Duela 'x' eguneratua", + "Hide replies": "Erantzunak izkutatu", + "preferences_thin_mode_label": "Urri eran: ", + "Show replies": "Erantzunak erakutsi", + "Watch on YouTube": "YouTuben ikusi", + "Premieres in `x`": "'x'eko estrenaldiak", + "Delete playlist `x`?": "'x' zerrenda ezabatu nahi?", + "Token is expired, please try again": "Token kadukatua, saiatu berriro", + "Invalid TFA code": "TFA kodea ez da zuzena", + "CAPTCHA enabled: ": "CAPTCHA gaitu: ", + "Released under the AGPLv3 on Github.": "GitHubeko AGPLv3pean argitaratuta.", + "channel:`x`": "Kanal: 'x'", + "Georgian": "Georgiera", + "Incorrect password": "Pasahitza gaizki", + "Playlist does not exist.": "Zerrenda ez da existitzen.", + "preferences_category_misc": "Askotariko lehentasunak", + "View `x` comments": { + "([^.,0-9]|^)1([^.,0-9]|$)": "'x' iruzkina ikusi", + "": "'x' iruzkinak ikusi" + }, + "Report statistics: ": "Estatistikak adierazi: ", + "preferences_max_results_label": "Jotzeko bideo zerrendaren luzera: ", + "Subscriptions": "Harpidetzak", + "Load more": "Gehiago atera", + "Change password": "Pasahitza aldatu", + "preferences_show_nick_label": "Erakutsi ezizena goian: ", + "View Reddit comments": "Redditeko iruzkinak ikusi", + "preferences_category_subscription": "Harpidetzaren lehentasunak", + "Hidden field \"challenge\" is a required field": "\"challenge\" eremu ezkutua beharrezkoa da", + "German": "Alemaniarra", + "Login failed. This may be because two-factor authentication is not turned on for your account.": "Ezin izena eman. Izan leike zure konturako berresteko bi faktoreak piztuta ez daudela.", + "Broken? Try another Invidious Instance": "Akatsaren bat? Invidiouseko beste adibide bat saiatu", + "View YouTube comments": "YouTubeko iruzkinak ikusi", + "Google verification code": "Googleren berresteko kodea", + "`x` is live": "'x' bizirik darrai", + "Password cannot be empty": "Pasahitza ezin da hutsik utzi", + "preferences_video_loop_label": "Beti begiztatu: ", + "Only show latest unwatched video from channel: ": "kanalaren azken bideo ezikusia erakutsi soilik ", + "Enable web notifications": "Webaren jakinarazpenak baimendu", + "revoke": "ukatu", + "preferences_continue_label": "Hurrengo lehenetsia jo: ", + "Whitelisted regions: ": "Zuri zerrendaren zonaldeak: ", + "Erroneous CAPTCHA": "CAPTCHA gaizki", + "Deleted or invalid channel": "Ezgai edota ezabatutako kanala", + "Could not create mix.": "Nahastea ezin sortu.", + "Not a playlist.": "Ez da zerrenda.", + "Hidden field \"token\" is a required field": "\"token\" eremu ezkutua beharrezkoa da", + "Import/export": "Inportatu/esportatu", + "alphabetically": "alfabetikoki", + "preferences_unseen_only_label": "Ezikusiak besterik ez erakutsi: ", + "Clear watch history": "Historia ezabatu", + "Manage subscriptions": "Harpidetzak kudeatu", + "Manage tokens": "Fitxak kudeatu", + "Watch history": "Historia ikusi", + "Login enabled: ": "Login gaitu: ", + "Hide annotations": "Oharrak izkutatu", + "Title": "Titulua", + "channel name": "Kanalaren izena", + "Authorize token for `x`?": "Baimendu tokena 'x'tzako?", + "Private": "Pribatua", + "Editing playlist `x`": "'x' zerrenda editatu", + "Could not pull trending pages.": "Ezin ekarri orri arrakastatsuak.", + "crash_page_read_the_faq": "Bide <a href=\"`x`\"> (FAQ) ohiko galderak</a>" } diff --git a/locales/fa.json b/locales/fa.json index 48b5a17d..26f1b220 100644 --- a/locales/fa.json +++ b/locales/fa.json @@ -345,33 +345,33 @@ "Videos": "ویدیو ها", "Playlists": "سیاهههای پخش", "Community": "اجتماع", - "relevance": "مرتبط بودن", - "rating": "امتیاز", - "date": "تاریخ بارگذاری", - "views": "تعداد بازدید", - "content_type": "نوع", - "duration": "مدت", - "features": "ویژگیها", - "sort": "به ترتیب", - "hour": "یک ساعت گذشته", - "today": "امروز", - "week": "این هفته", - "month": "این ماه", - "year": "امسال", - "video": "ویدئو", - "channel": "کانال", - "playlist": "سیاههٔ پخش", - "movie": "فیلم", - "show": "نمایش", - "hd": "HD", - "subtitles": "زیرنویس", - "creative_commons": "کریتیو کامونز", - "3d": "سهبعدی", - "live": "زنده", - "4k": "4K", - "location": "مکان", - "hdr": "HDR", - "filter": "پالایه", + "search_filters_sort_option_relevance": "مرتبط بودن", + "search_filters_sort_option_rating": "امتیاز", + "search_filters_sort_option_date": "تاریخ بارگذاری", + "search_filters_sort_option_views": "تعداد بازدید", + "search_filters_type_label": "نوع", + "search_filters_duration_label": "مدت", + "search_filters_features_label": "ویژگیها", + "search_filters_sort_label": "به ترتیب", + "search_filters_date_option_hour": "یک ساعت گذشته", + "search_filters_date_option_today": "امروز", + "search_filters_date_option_week": "این هفته", + "search_filters_date_option_month": "این ماه", + "search_filters_date_option_year": "امسال", + "search_filters_type_option_video": "ویدئو", + "search_filters_type_option_channel": "کانال", + "search_filters_type_option_playlist": "سیاههٔ پخش", + "search_filters_type_option_movie": "فیلم", + "search_filters_type_option_show": "نمایش", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "زیرنویس", + "search_filters_features_option_c_commons": "کریتیو کامونز", + "search_filters_features_option_three_d": "سهبعدی", + "search_filters_features_option_live": "زنده", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "مکان", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "پالایه", "Current version: ": "نسخه فعلی: ", "next_steps_error_message": "اکنون بایستی یکی از این موارد را امتحان کنید: ", "next_steps_error_message_refresh": "تازهسازی", @@ -393,7 +393,7 @@ "preferences_quality_dash_option_240p": "240p", "preferences_quality_dash_option_144p": "144p", "invidious": "اینویدیوس", - "360": "360°", + "search_filters_features_option_three_sixty": "360°", "footer_donate_page": "کمک مالی", "footer_source_code": "کد منبع", "footer_modfied_source_code": "کد منبع ویرایش شده", @@ -405,12 +405,12 @@ "download_subtitles": "زیرنویسها - `x` (.vtt)", "Video unavailable": "ویدئو دردسترس نیست", "preferences_save_player_pos_label": "ذخیره زمان کنونی ویدئو: ", - "purchased": "خریداری شده", + "search_filters_features_option_purchased": "خریداری شده", "preferences_quality_dash_label": "کیفیت ترجیحی ویدئو DASH: ", "preferences_region_label": "کشور محتوا: ", "footer_documentation": "مستندات", "footer_original_source_code": "کد منبع اصلی", - "long": "بلند (> 20 دقیقه)", + "search_filters_duration_option_long": "بلند (> 20 دقیقه)", "adminprefs_modified_source_code_url_label": "URL مخزن کد منبع ویریش شده", - "short": "کوتاه (< 4 دقیقه)" + "search_filters_duration_option_short": "کوتاه (< 4 دقیقه)" } diff --git a/locales/fi.json b/locales/fi.json index 7f97e869..ce1fbee7 100644 --- a/locales/fi.json +++ b/locales/fi.json @@ -21,15 +21,15 @@ "No": "Ei", "Import and Export Data": "Tuo ja vie tietoja", "Import": "Tuo", - "Import Invidious data": "Tuo Invidious-tietoja", - "Import YouTube subscriptions": "Tuo YouTube-tilaukset", + "Import Invidious data": "Tuo Invidiousin JSON-tietoja", + "Import YouTube subscriptions": "Tuo YouTube/OPML-tilaukset", "Import FreeTube subscriptions (.db)": "Tuo FreeTube-tilaukset (.db)", "Import NewPipe subscriptions (.json)": "Tuo NewPipe-tilaukset (.json)", "Import NewPipe data (.zip)": "Tuo NewPipe-tietoja (.zip)", "Export": "Vie", "Export subscriptions as OPML": "Vie tilaukset OPML-muodossa", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Vie tilaukset OPML-muodossa (NewPipe & FreeTube)", - "Export data as JSON": "Vie data JSON-muodossa", + "Export data as JSON": "Vie Invidious-data JSON-muodossa", "Delete account?": "Poista tili?", "History": "Historia", "An alternative front-end to YouTube": "Vaihtoehtoinen front-end YouTubelle", @@ -66,7 +66,7 @@ "preferences_related_videos_label": "Näytä aiheeseen liittyviä videoita: ", "preferences_annotations_label": "Näytä huomautukset oletuksena: ", "preferences_extend_desc_label": "Laajenna automaattisesti videon kuvausta: ", - "preferences_vr_mode_label": "Interaktiiviset 360-asteiset videot: ", + "preferences_vr_mode_label": "Interaktiiviset 360-asteiset videot (vaatii WebGL:n): ", "preferences_category_visual": "Visuaaliset asetukset", "preferences_player_style_label": "Soittimen tyyli: ", "Dark mode: ": "Tumma tila: ", @@ -328,33 +328,33 @@ "Videos": "Videot", "Playlists": "Soittolistat", "Community": "Yhteisö", - "relevance": "Osuvuus", - "rating": "Arvostelu", - "date": "Latauspäivämäärä", - "views": "Katselukerrat", - "content_type": "Tyyppi", - "duration": "Kesto", - "features": "Ominaisuudet", - "sort": "Luokittele", - "hour": "Viimeisin tunti", - "today": "Tänään", - "week": "Tämä viikko", - "month": "Tämä kuukausi", - "year": "Tämä vuosi", - "video": "Video", - "channel": "Kanava", - "playlist": "Soittolista", - "movie": "Elokuva", - "show": "Ohjelma", - "hd": "HD", - "subtitles": "Tekstitys/CC", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "Suora lähetys", - "4k": "4K", - "location": "Sijainti", - "hdr": "HDR", - "filter": "Suodatin", + "search_filters_sort_option_relevance": "Osuvuus", + "search_filters_sort_option_rating": "Arvostelu", + "search_filters_sort_option_date": "Latauspäivämäärä", + "search_filters_sort_option_views": "Katselukerrat", + "search_filters_type_label": "Tyyppi", + "search_filters_duration_label": "Kesto", + "search_filters_features_label": "Ominaisuudet", + "search_filters_sort_label": "Luokittele", + "search_filters_date_option_hour": "Viimeisin tunti", + "search_filters_date_option_today": "Tänään", + "search_filters_date_option_week": "Tämä viikko", + "search_filters_date_option_month": "Tämä kuukausi", + "search_filters_date_option_year": "Tämä vuosi", + "search_filters_type_option_video": "Video", + "search_filters_type_option_channel": "Kanava", + "search_filters_type_option_playlist": "Soittolista", + "search_filters_type_option_movie": "Elokuva", + "search_filters_type_option_show": "Ohjelma", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "Tekstitys/CC", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "Suora lähetys", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "Sijainti", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "Suodatin", "Current version: ": "Tämänhetkinen versio: ", "next_steps_error_message": "Sinun tulisi kokeilla seuraavia: ", "next_steps_error_message_refresh": "Päivitä", @@ -390,7 +390,7 @@ "crash_page_before_reporting": "Varmista ennen bugin ilmoittamista, että sinä olet:", "crash_page_refresh": "yrittänyt <a href=\"`x`\">päivittää sivun</a>", "crash_page_read_the_faq": "lukenut <a href=\"`x`\">Usein kysytyt kysymykset (FAQ)</a>", - "crash_page_search_issue": "etsinyt <a href=\"`x`\">olemassa olevia issueita Githubissa</a>", + "crash_page_search_issue": "etsinyt <a href=\"`x`\">olemassa olevia issueita GitHubissa</a>", "generic_views_count": "{{count}} katselu", "generic_views_count_plural": "{{count}} katselua", "preferences_quality_dash_option_720p": "720p", @@ -423,8 +423,8 @@ "preferences_quality_dash_label": "Haluttava DASH-videolaatu: ", "generic_count_years": "{{count}} vuosi", "generic_count_years_plural": "{{count}} vuotta", - "purchased": "Ostettu", - "360": "360°", + "search_filters_features_option_purchased": "Ostettu", + "search_filters_features_option_three_sixty": "360°", "videoinfo_watch_on_youTube": "Katso YouTubessa", "none": "ei mikään", "videoinfo_started_streaming_x_ago": "Striimaaminen aloitettu `x` sitten", @@ -433,9 +433,33 @@ "footer_source_code": "Lähdekoodi", "adminprefs_modified_source_code_url_label": "URL muokattuun lähdekoodirepositoryyn", "Released under the AGPLv3 on Github.": "Julkaistu AGPLv3-lisenssin alla GitHubissa.", - "short": "Lyhyt (< 4 minuuttia)", - "long": "Pitkä (> 20 minuuttia)", + "search_filters_duration_option_short": "Lyhyt (< 4 minuuttia)", + "search_filters_duration_option_long": "Pitkä (> 20 minuuttia)", "footer_documentation": "Dokumentaatio", "footer_original_source_code": "Alkuperäinen lähdekoodi", - "footer_modfied_source_code": "Muokattu lähdekoodi" + "footer_modfied_source_code": "Muokattu lähdekoodi", + "Japanese (auto-generated)": "Japani (automaattisesti luotu)", + "German (auto-generated)": "Saksa (automaattisesti luotu)", + "Portuguese (auto-generated)": "portugali (automaattisesti luotu)", + "Russian (auto-generated)": "Venäjä (automaattisesti luotu)", + "preferences_watch_history_label": "Ota katseluhistoria käyttöön: ", + "English (United Kingdom)": "Englanti (Iso-Britannia)", + "English (United States)": "Englanti (Yhdysvallat)", + "Cantonese (Hong Kong)": "Kantoninkiina (Hong Kong)", + "Chinese": "Kiina", + "Chinese (China)": "Kiina (Kiina)", + "Chinese (Hong Kong)": "Kiina (Hong Kong)", + "Chinese (Taiwan)": "Kiina (Taiwan)", + "Dutch (auto-generated)": "Hollanti (automaattisesti luotu)", + "French (auto-generated)": "Ranska (automaattisesti luotu)", + "Indonesian (auto-generated)": "Indonesia (automaattisesti luotu)", + "Interlingue": "Interlingue", + "Italian (auto-generated)": "Italia (automaattisesti luotu)", + "Korean (auto-generated)": "Korea (automaattisesti luotu)", + "Portuguese (Brazil)": "portugali (Brasilia)", + "Spanish (auto-generated)": "Espanja (automaattisesti luotu)", + "Spanish (Mexico)": "Espanja (Meksiko)", + "Spanish (Spain)": "Espanja (Espanja)", + "Turkish (auto-generated)": "Turkki (automaattisesti luotu)", + "Vietnamese (auto-generated)": "Vietnam (automaattisesti luotu)" } diff --git a/locales/fr.json b/locales/fr.json index 41b672b2..7684f13e 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -39,7 +39,7 @@ "Export": "Exporter", "Export subscriptions as OPML": "Exporter les abonnements au format OPML", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Exporter les abonnements au format OPML (pour NewPipe & FreeTube)", - "Export data as JSON": "Exporter les données au format JSON", + "Export data as JSON": "Exporter les données Invidious au format JSON", "Delete account?": "Êtes-vous sûr de vouloir supprimer votre compte ?", "History": "Historique", "An alternative front-end to YouTube": "Un front-end alternatif à YouTube", @@ -135,7 +135,7 @@ "subscriptions_unseen_notifs_count_plural": "{{count}} notifications non vues", "search": "rechercher", "Log out": "Se déconnecter", - "Released under the AGPLv3 on Github.": "Publié sous licence AGPLv3 sur Github.", + "Released under the AGPLv3 on Github.": "Publié sous licence AGPLv3 sur GitHub.", "Source available here.": "Code source disponible ici.", "View JavaScript license information.": "Informations des licences JavaScript.", "View privacy policy.": "Politique de confidentialité.", @@ -361,33 +361,33 @@ "Videos": "Vidéos", "Playlists": "Listes de lecture", "Community": "Communauté", - "relevance": "pertinence", - "rating": "évaluation", - "date": "date", - "views": "nombre de vues", - "content_type": "type", - "duration": "durée", - "features": "fonctionnalités", - "sort": "Trier par", - "hour": "dernière heure", - "today": "aujourd'hui", - "week": "semaine", - "month": "mois", - "year": "année", - "video": "vidéo", - "channel": "chaîne", - "playlist": "liste de lecture", - "movie": "film", - "show": "émission", - "hd": "HD", - "subtitles": "sous-titres / CC", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "en direct", - "4k": "4K", - "location": "emplacement", - "hdr": "HDR", - "filter": "filtrer", + "search_filters_sort_option_relevance": "pertinence", + "search_filters_sort_option_rating": "évaluation", + "search_filters_sort_option_date": "date", + "search_filters_sort_option_views": "nombre de vues", + "search_filters_type_label": "type", + "search_filters_duration_label": "durée", + "search_filters_features_label": "fonctionnalités", + "search_filters_sort_label": "Trier par", + "search_filters_date_option_hour": "dernière heure", + "search_filters_date_option_today": "aujourd'hui", + "search_filters_date_option_week": "semaine", + "search_filters_date_option_month": "mois", + "search_filters_date_option_year": "année", + "search_filters_type_option_video": "vidéo", + "search_filters_type_option_channel": "chaîne", + "search_filters_type_option_playlist": "liste de lecture", + "search_filters_type_option_movie": "film", + "search_filters_type_option_show": "émission", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "sous-titres / CC", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "en direct", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "emplacement", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "filtrer", "Current version: ": "Version actuelle : ", "next_steps_error_message": "Vous pouvez essayer de : ", "next_steps_error_message_refresh": "Rafraîchir la page", @@ -397,8 +397,8 @@ "preferences_region_label": "Pays du contenu : ", "footer_donate_page": "Faire un don", "footer_modfied_source_code": "Code source modifié", - "short": "Courte (< 4 minutes)", - "long": "Longue (> 20 minutes)", + "search_filters_duration_option_short": "Courte (< 4 minutes)", + "search_filters_duration_option_long": "Longue (> 20 minutes)", "adminprefs_modified_source_code_url_label": "URL du dépôt du code source modifié", "footer_documentation": "Documentation", "footer_original_source_code": "Code source original", @@ -415,12 +415,12 @@ "preferences_quality_dash_option_240p": "240p", "preferences_quality_dash_option_144p": "144p", "invidious": "Invidious", - "360": "360°", + "search_filters_features_option_three_sixty": "360°", "none": "aucun", "videoinfo_started_streaming_x_ago": "En stream depuis `x`", "videoinfo_watch_on_youTube": "Regarder sur YouTube", "videoinfo_youTube_embed_link": "Intégrer", - "purchased": "Acheter", + "search_filters_features_option_purchased": "Acheter", "videoinfo_invidious_embed_link": "Lien intégré", "download_subtitles": "Sous-titres - `x` (.vtt)", "user_saved_playlists": "`x` listes de lecture sauvegardées", @@ -435,7 +435,7 @@ "crash_page_refresh": "tenté de <a href=\"`x`\">rafraîchir la page</a>", "crash_page_switch_instance": "essayé d'<a href=\"`x`\">utiliser une autre instance</a>", "crash_page_read_the_faq": "lu la <a href=\"`x`\">Foire Aux Questions (FAQ)</a>", - "crash_page_search_issue": "<a href=\"`x`\">cherché ce bug sur Github</a>", + "crash_page_search_issue": "<a href=\"`x`\">cherché ce bug sur GitHub</a>", "crash_page_before_reporting": "Avant de signaler un bug, veuillez vous assurez que vous avez :", "crash_page_report_issue": "Si aucune des solutions proposées ci-dessus ne vous a aidé, veuillez <a href=\"`x`\">ouvrir une \"issue\" sur GitHub</a> (de préférence en anglais) et d'y inclure le message suivant (ne PAS traduire le texte) :", "English (United States)": "Anglais (Etats-Unis)", @@ -460,5 +460,6 @@ "Italian (auto-generated)": "Italien (auto-généré)", "Vietnamese (auto-generated)": "Vietnamien (auto-généré)", "Russian (auto-generated)": "Russe (auto-généré)", - "Spanish (Spain)": "Espagnol (Espagne)" + "Spanish (Spain)": "Espagnol (Espagne)", + "preferences_watch_history_label": "Activer l'historique de visionnage : " } diff --git a/locales/he.json b/locales/he.json index 2c9258b9..fc75b953 100644 --- a/locales/he.json +++ b/locales/he.json @@ -274,32 +274,32 @@ "Videos": "סרטונים", "Playlists": "פלייליסטים", "Community": "קהילה", - "relevance": "רלוונטיות", - "rating": "דירוג", - "date": "תאריך העלאה", - "views": "מספר צפיות", - "content_type": "סוג", - "duration": "משך זמן", - "features": "תכונות", - "sort": "מיון לפי", - "hour": "השעה האחרונה", - "today": "היום", - "week": "השבוע", - "month": "החודש", - "year": "השנה", - "video": "סרטון", - "channel": "ערוץ", - "playlist": "פלייליסט", - "movie": "סרט", - "show": "תכנית טלוויזיה", - "hd": "HD", - "subtitles": "כתוביות", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "Live", - "4k": "4K", - "location": "מיקום", - "hdr": "HDR", - "filter": "סינון", + "search_filters_sort_option_relevance": "רלוונטיות", + "search_filters_sort_option_rating": "דירוג", + "search_filters_sort_option_date": "תאריך העלאה", + "search_filters_sort_option_views": "מספר צפיות", + "search_filters_type_label": "סוג", + "search_filters_duration_label": "משך זמן", + "search_filters_features_label": "תכונות", + "search_filters_sort_label": "מיון לפי", + "search_filters_date_option_hour": "השעה האחרונה", + "search_filters_date_option_today": "היום", + "search_filters_date_option_week": "השבוע", + "search_filters_date_option_month": "החודש", + "search_filters_date_option_year": "השנה", + "search_filters_type_option_video": "סרטון", + "search_filters_type_option_channel": "ערוץ", + "search_filters_type_option_playlist": "פלייליסט", + "search_filters_type_option_movie": "סרט", + "search_filters_type_option_show": "תכנית טלוויזיה", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "כתוביות", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "Live", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "מיקום", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "סינון", "Current version: ": "הגרסה הנוכחית: " } diff --git a/locales/hr.json b/locales/hr.json index 1de3fa79..d6c8d6aa 100644 --- a/locales/hr.json +++ b/locales/hr.json @@ -88,7 +88,7 @@ "channel name": "ime kanala", "channel name - reverse": "ime kanala – obrnuto", "Only show latest video from channel: ": "Prikaži samo najnovija videa kanala: ", - "Only show latest unwatched video from channel: ": "Prikaži samo najnovija nepogledana videa kanala: ", + "Only show latest unwatched video from channel: ": "Prikaži samo najnovija nepogledana videa od kanala: ", "preferences_unseen_only_label": "Prikaži samo nepogledane: ", "preferences_notifications_only_label": "Prikaži samo obavijesti (ako ih ima): ", "Enable web notifications": "Aktiviraj web-obavijesti", @@ -121,7 +121,7 @@ "Subscriptions": "Pretplate", "search": "traži", "Log out": "Odjavi se", - "Released under the AGPLv3 on Github.": "Izdano pod licencom AGPLv3 na Github-u.", + "Released under the AGPLv3 on Github.": "Izdano pod licencom AGPLv3 na GitHub-u.", "Source available here.": "Izvor je ovdje dostupan.", "View JavaScript license information.": "Prikaži informacije o JavaScript licenci.", "View privacy policy.": "Prikaži politiku privatnosti.", @@ -329,41 +329,41 @@ "Videos": "Videa", "Playlists": "Zbirke", "Community": "Zajednica", - "relevance": "značaj", - "rating": "ocjena", - "date": "datum", - "views": "prikazi", - "content_type": "vrsta_sadržaja", - "duration": "trajanje", - "features": "funkcije", - "sort": "redoslijed", - "hour": "sat", - "today": "danas", - "week": "tjedan", - "month": "mjesec", - "year": "godina", - "video": "video", - "channel": "kanal", - "playlist": "Zbirka", - "movie": "film", - "show": "emisija", - "hd": "hd", - "subtitles": "titlovi", - "creative_commons": "creative_commons", - "3d": "3d", - "live": "uživo", - "4k": "4k", - "location": "lokacija", - "hdr": "hdr", - "filter": "filtar", + "search_filters_sort_option_relevance": "značaj", + "search_filters_sort_option_rating": "ocjena", + "search_filters_sort_option_date": "datum", + "search_filters_sort_option_views": "prikazi", + "search_filters_type_label": "vrsta_sadržaja", + "search_filters_duration_label": "trajanje", + "search_filters_features_label": "funkcije", + "search_filters_sort_label": "redoslijed", + "search_filters_date_option_hour": "sat", + "search_filters_date_option_today": "danas", + "search_filters_date_option_week": "tjedan", + "search_filters_date_option_month": "mjesec", + "search_filters_date_option_year": "godina", + "search_filters_type_option_video": "video", + "search_filters_type_option_channel": "kanal", + "search_filters_type_option_playlist": "Zbirka", + "search_filters_type_option_movie": "film", + "search_filters_type_option_show": "emisija", + "search_filters_features_option_hd": "hd", + "search_filters_features_option_subtitles": "titlovi", + "search_filters_features_option_c_commons": "creative_commons", + "search_filters_features_option_three_d": "3d", + "search_filters_features_option_live": "uživo", + "search_filters_features_option_four_k": "4k", + "search_filters_features_option_location": "lokacija", + "search_filters_features_option_hdr": "hdr", + "search_filters_label": "filtar", "Current version: ": "Trenutačna verzija: ", "next_steps_error_message": "Nakon toga bi trebali pokušati sljedeće: ", "next_steps_error_message_refresh": "Aktualiziraj stranicu", "next_steps_error_message_go_to_youtube": "Idi na YouTube", "footer_donate_page": "Doniraj", "adminprefs_modified_source_code_url_label": "URL do repozitorija izmijenjenog izvornog koda", - "short": "Kratki (< 4 minute)", - "long": "Dugi (> 20 minute)", + "search_filters_duration_option_short": "Kratki (< 4 minute)", + "search_filters_duration_option_long": "Dugi (> 20 minute)", "footer_source_code": "Izvorni kod", "footer_modfied_source_code": "Izmijenjeni izvorni kod", "footer_documentation": "Dokumentacija", @@ -382,8 +382,8 @@ "preferences_quality_dash_option_240p": "240 p", "preferences_quality_dash_option_144p": "144 p", "invidious": "Invidious", - "purchased": "Kupljeno", - "360": "360 °", + "search_filters_features_option_purchased": "Kupljeno", + "search_filters_features_option_three_sixty": "360 °", "none": "bez", "videoinfo_youTube_embed_link": "Ugradi", "user_created_playlists": "`x` stvorene zbirke", @@ -452,7 +452,7 @@ "crash_page_refresh": "pokušaj <a href=\"`x`\">aktualizirati stranicu</a>", "crash_page_switch_instance": "pokušaj <a href=\"`x`\">koristiti jednu drugu instancu</a>", "crash_page_read_the_faq": "pročitaj <a href=\"`x`\">Često postavljena pitanja (ČPP)</a>", - "crash_page_search_issue": "pretraži <a href=\"`x`\">postojeće probleme na Github-u</a>", + "crash_page_search_issue": "pretraži <a href=\"`x`\">postojeće probleme na GitHub-u</a>", "crash_page_report_issue": "Ako ništa od gore navedenog ne pomaže, <a href=\"`x`\">prijavi novi problem na GitHub-u</a> (po mogućnosti na engleskom) i uključi sljedeći tekst u poruku (NEMOJ prevoditi taj tekst):", "English (United Kingdom)": "Engleski (Ujedinjeno Kraljevstvo)", "English (United States)": "Engleski (Sjedinjene Američke Države)", @@ -476,5 +476,6 @@ "Chinese (Hong Kong)": "Kineski (Hong Kong)", "Korean (auto-generated)": "Korejski (automatski generiran)", "Portuguese (auto-generated)": "Portugalski (automatski generiran)", - "Spanish (auto-generated)": "Španjolski (automatski generiran)" + "Spanish (auto-generated)": "Španjolski (automatski generiran)", + "preferences_watch_history_label": "Aktiviraj povijest gledanja: " } diff --git a/locales/hu-HU.json b/locales/hu-HU.json index d1948a47..1c1d9598 100644 --- a/locales/hu-HU.json +++ b/locales/hu-HU.json @@ -365,9 +365,9 @@ "preferences_quality_dash_option_144p": "144p", "invidious": "Invidious", "videoinfo_started_streaming_x_ago": "`x` ezelőtt kezdte streamelni", - "views": "Mennyien látták", - "purchased": "Megvásárolva", - "360": "360°-os", + "search_filters_sort_option_views": "Mennyien látták", + "search_filters_features_option_purchased": "Megvásárolva", + "search_filters_features_option_three_sixty": "360°-os", "footer_original_source_code": "Eredeti forráskód", "none": "egyik sem", "videoinfo_watch_on_youTube": "YouTube-on megnézni", @@ -382,14 +382,14 @@ "preferences_quality_dash_option_1440p": "1440p", "preferences_quality_dash_label": "DASH-videó minősége: ", "preferences_quality_option_small": "Rossz", - "date": "Feltöltés dátuma", + "search_filters_sort_option_date": "Feltöltés dátuma", "Video unavailable": "A videó nem érhető el", "preferences_save_player_pos_label": "A videó folytatása onnan, ahol félbe lett hagyva: ", "preferences_show_nick_label": "Becenév mutatása felül: ", "Released under the AGPLv3 on Github.": "AGPLv3 licenc alapján a GitHubon", - "3d": "3D-ben", - "live": "Élőben", - "filter": "Szűrők", + "search_filters_features_option_three_d": "3D-ben", + "search_filters_features_option_live": "Élőben", + "search_filters_label": "Szűrők", "next_steps_error_message_refresh": "Újratöltés", "footer_donate_page": "Adakozás", "footer_source_code": "Forráskód", @@ -397,40 +397,40 @@ "adminprefs_modified_source_code_url_label": "A módosított forráskód repositoryjának URL-je:", "preferences_automatic_instance_redirect_label": "Váltáskor másik Invidious oldal automatikus betöltése (redirect.invidious.io töltődik, ha nem működne): ", "preferences_region_label": "Ország tartalmainak mutatása: ", - "relevance": "Relevancia", - "rating": "Pontszám", - "content_type": "Típus", - "today": "Mai napon", - "channel": "Csatorna", - "video": "Videó", - "playlist": "Lejátszási lista", - "creative_commons": "Creative Commons", - "features": "Jellemzők", - "sort": "Rendezés módja", + "search_filters_sort_option_relevance": "Relevancia", + "search_filters_sort_option_rating": "Pontszám", + "search_filters_type_label": "Típus", + "search_filters_date_option_today": "Mai napon", + "search_filters_type_option_channel": "Csatorna", + "search_filters_type_option_video": "Videó", + "search_filters_type_option_playlist": "Lejátszási lista", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_label": "Jellemzők", + "search_filters_sort_label": "Rendezés módja", "preferences_category_misc": "További beállítások", "%A %B %-d, %Y": "%Y. %B %-d %A", - "long": "Hosszú (20 percnél hosszabb)", - "year": "Ebben az évben", - "hour": "Az elmúlt órában", - "movie": "Film", - "hdr": "HDR", + "search_filters_duration_option_long": "Hosszú (20 percnél hosszabb)", + "search_filters_date_option_year": "Ebben az évben", + "search_filters_date_option_hour": "Az elmúlt órában", + "search_filters_type_option_movie": "Film", + "search_filters_features_option_hdr": "HDR", "Broken? Try another Invidious Instance": "Nem működik? Próbáld meg egy másik Invidious oldallal.", - "duration": "Játékidő", + "search_filters_duration_label": "Játékidő", "next_steps_error_message": "Az alábbi lehetőségek állnak rendelkezésre: ", "Xhosa": "xhosza", "Switch Invidious Instance": "Váltás másik Invidious-oldalra", "Urdu": "urdu", - "week": "Ezen a héten", + "search_filters_date_option_week": "Ezen a héten", "Invalid TFA code": "A kétlépéses hitelesítés kódja nem megfelelő", "footer_documentation": "Dokumentáció", - "hd": "HD", + "search_filters_features_option_hd": "HD", "next_steps_error_message_go_to_youtube": "Ugrás a YouTube-ra", - "show": "Műsor", - "4k": "4K", - "short": "Rövid (4 percnél nem több)", - "month": "Ebben a hónapban", - "subtitles": "Felirattal", - "location": "Közelben", + "search_filters_type_option_show": "Műsor", + "search_filters_features_option_four_k": "4K", + "search_filters_duration_option_short": "Rövid (4 percnél nem több)", + "search_filters_date_option_month": "Ebben a hónapban", + "search_filters_features_option_subtitles": "Felirattal", + "search_filters_features_option_location": "Közelben", "crash_page_you_found_a_bug": "Úgy néz ki, találtál egy hibát az Invidiousban.", "crash_page_before_reporting": "Mielőtt jelentenéd a hibát:", "crash_page_read_the_faq": "olvasd el a <a href=\"`x`\">Gyakran Ismételt Kérdéseket (GYIK)</a>", diff --git a/locales/id.json b/locales/id.json index be15e8e1..3053d69c 100644 --- a/locales/id.json +++ b/locales/id.json @@ -26,15 +26,15 @@ "No": "Tidak", "Import and Export Data": "Impor dan Ekspor Data", "Import": "Impor", - "Import Invidious data": "Impor data Invidious", - "Import YouTube subscriptions": "Impor langganan YouTube", + "Import Invidious data": "Impor JSON data Invidious", + "Import YouTube subscriptions": "Impor langganan YouTube/OPML", "Import FreeTube subscriptions (.db)": "Impor langganan FreeTube (.db)", "Import NewPipe subscriptions (.json)": "Impor langganan NewPipe (.json)", "Import NewPipe data (.zip)": "Impor data NewPipe (.zip)", "Export": "Ekspor", "Export subscriptions as OPML": "Ekspor langganan sebagai OPML", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Ekspor langganan sebagai OPML (untuk NewPipe & FreeTube)", - "Export data as JSON": "Ekspor data sebagai JSON", + "Export data as JSON": "Ekspor data Invidious sebagai JSON", "Delete account?": "Hapus akun?", "History": "Riwayat", "An alternative front-end to YouTube": "Sebuah alternatif layar depan untuk YouTube", @@ -71,7 +71,7 @@ "preferences_related_videos_label": "Tampilkan video terkait: ", "preferences_annotations_label": "Tampilkan anotasi secara baku: ", "preferences_extend_desc_label": "Perluas deskripsi video secara otomatis: ", - "preferences_vr_mode_label": "Video interaktif 360°: ", + "preferences_vr_mode_label": "Video interaktif 360° (memerlukan WebGL): ", "preferences_category_visual": "Preferensi visual", "preferences_player_style_label": "Gaya pemutar: ", "Dark mode: ": "Mode gelap: ", @@ -128,7 +128,7 @@ "subscriptions_unseen_notifs_count_0": "{{count}} pemberitahuan belum dilihat", "search": "cari", "Log out": "Keluar", - "Released under the AGPLv3 on Github.": "Dirilis di bawah AGPLv3 di Github.", + "Released under the AGPLv3 on Github.": "Dirilis di bawah AGPLv3 di GitHub.", "Source available here.": "Sumber tersedia di sini.", "View JavaScript license information.": "Tampilkan informasi lisensi JavaScript.", "View privacy policy.": "Lihat kebijakan privasi.", @@ -345,33 +345,33 @@ "Videos": "Video", "Playlists": "Daftar putar", "Community": "Komunitas", - "relevance": "Relevansi", - "rating": "Penilaian", - "date": "Tanggal unggah", - "views": "Jumlah ditonton", - "content_type": "Tipe", - "duration": "Durasi", - "features": "Fitur", - "sort": "Urut Berdasarkan", - "hour": "Jam Terakhir", - "today": "Hari Ini", - "week": "Pekan Ini", - "month": "Bulan Ini", - "year": "Tahun Ini", - "video": "Video", - "channel": "Kanal", - "playlist": "Daftar Putar", - "movie": "Film", - "show": "Pertunjukan/Acara", - "hd": "HD", - "subtitles": "Takarir", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "Siaran Langsung", - "4k": "4K", - "location": "Lokasi", - "hdr": "HDR", - "filter": "Saring", + "search_filters_sort_option_relevance": "Relevansi", + "search_filters_sort_option_rating": "Penilaian", + "search_filters_sort_option_date": "Tanggal unggah", + "search_filters_sort_option_views": "Jumlah ditonton", + "search_filters_type_label": "Tipe", + "search_filters_duration_label": "Durasi", + "search_filters_features_label": "Fitur", + "search_filters_sort_label": "Urut Berdasarkan", + "search_filters_date_option_hour": "Jam Terakhir", + "search_filters_date_option_today": "Hari Ini", + "search_filters_date_option_week": "Pekan Ini", + "search_filters_date_option_month": "Bulan Ini", + "search_filters_date_option_year": "Tahun Ini", + "search_filters_type_option_video": "Video", + "search_filters_type_option_channel": "Kanal", + "search_filters_type_option_playlist": "Daftar Putar", + "search_filters_type_option_movie": "Film", + "search_filters_type_option_show": "Pertunjukan/Acara", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "Takarir", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "Siaran Langsung", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "Lokasi", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "Saring", "Current version: ": "Versi saat ini: ", "next_steps_error_message": "Setelah itu Anda harus mencoba: ", "next_steps_error_message_refresh": "Segarkan", @@ -380,8 +380,8 @@ "adminprefs_modified_source_code_url_label": "URL ke repositori kode sumber yang dimodifikasi", "footer_source_code": "Kode sumber", "footer_original_source_code": "Kode sumber yang asli", - "short": "Pendek (< 4 menit)", - "long": "Panjang (> 20 menit)", + "search_filters_duration_option_short": "Pendek (< 4 menit)", + "search_filters_duration_option_long": "Panjang (> 20 menit)", "footer_modfied_source_code": "Kode sumber yang dimodifikasi", "footer_documentation": "Dokumentasi", "preferences_region_label": "Konten dari negara: ", @@ -398,8 +398,8 @@ "preferences_quality_dash_option_240p": "240p", "preferences_quality_dash_option_144p": "144p", "invidious": "Invidious", - "purchased": "Dibeli", - "360": "360°", + "search_filters_features_option_purchased": "Dibeli", + "search_filters_features_option_three_sixty": "360°", "none": "tidak ada", "videoinfo_watch_on_youTube": "Tonton di YouTube", "videoinfo_youTube_embed_link": "Tersemat", @@ -416,5 +416,8 @@ "Video unavailable": "Video tidak tersedia", "preferences_save_player_pos_label": "Simpan posisi pemutaran: ", "crash_page_you_found_a_bug": "Sepertinya kamu telah menemukan masalah di invidious!", - "crash_page_before_reporting": "Sebelum melaporkan masalah, pastikan anda memiliki:" + "crash_page_before_reporting": "Sebelum melaporkan masalah, pastikan anda memiliki:", + "English (United States)": "Inggris (US)", + "preferences_watch_history_label": "Aktifkan riwayat tontonan: ", + "English (United Kingdom)": "Inggris (UK)" } diff --git a/locales/is.json b/locales/is.json index 9258154e..99bd6574 100644 --- a/locales/is.json +++ b/locales/is.json @@ -318,5 +318,6 @@ "Videos": "Myndbönd", "Playlists": "Spilunarlistar", "Community": "Samfélag", - "Current version: ": "Núverandi útgáfa: " + "Current version: ": "Núverandi útgáfa: ", + "preferences_watch_history_label": "Virkja áhorfssögu: " } diff --git a/locales/it.json b/locales/it.json index c80f4d96..69699f05 100644 --- a/locales/it.json +++ b/locales/it.json @@ -27,7 +27,7 @@ "No": "No", "Import and Export Data": "Importazione ed esportazione dati", "Import": "Importa", - "Import Invidious data": "Importa dati Invidious", + "Import Invidious data": "Importa dati Invidious in formato JSON", "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)", @@ -35,7 +35,7 @@ "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", + "Export data as JSON": "Esporta i dati Invidious in formato JSON", "Delete account?": "Eliminare l'account?", "History": "Cronologia", "An alternative front-end to YouTube": "Un'interfaccia alternativa per YouTube", @@ -347,32 +347,32 @@ "Videos": "Video", "Playlists": "Playlist", "Community": "Comunità", - "relevance": "Pertinenza", - "rating": "Valutazione", - "date": "Data di caricamento", - "views": "Numero di visualizzazioni", - "content_type": "Tipo", - "duration": "Durata", - "features": "Caratteristiche", - "sort": "Ordina per", - "hour": "Ultima ora", - "today": "Oggi", - "week": "Questa settimana", - "month": "Questo mese", - "year": "Quest'anno", - "video": "Video", - "channel": "Canale", - "playlist": "Playlist", - "movie": "Film", - "hd": "AD", - "subtitles": "Sottotitoli / CC", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "In diretta", - "4k": "4K", - "location": "Posizione", - "hdr": "HDR", - "filter": "Filtra", + "search_filters_sort_option_relevance": "Pertinenza", + "search_filters_sort_option_rating": "Valutazione", + "search_filters_sort_option_date": "Data di caricamento", + "search_filters_sort_option_views": "Numero di visualizzazioni", + "search_filters_type_label": "Tipo", + "search_filters_duration_label": "Durata", + "search_filters_features_label": "Caratteristiche", + "search_filters_sort_label": "Ordina per", + "search_filters_date_option_hour": "Ultima ora", + "search_filters_date_option_today": "Oggi", + "search_filters_date_option_week": "Questa settimana", + "search_filters_date_option_month": "Questo mese", + "search_filters_date_option_year": "Quest'anno", + "search_filters_type_option_video": "Video", + "search_filters_type_option_channel": "Canale", + "search_filters_type_option_playlist": "Playlist", + "search_filters_type_option_movie": "Film", + "search_filters_features_option_hd": "AD", + "search_filters_features_option_subtitles": "Sottotitoli / CC", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "In diretta", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "Posizione", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "Filtra", "Current version: ": "Versione attuale: ", "preferences_quality_dash_option_240p": "240p", "preferences_quality_dash_option_360p": "360p", @@ -382,15 +382,49 @@ "preferences_quality_dash_option_1440p": "1440p", "preferences_quality_dash_option_2160p": "2160p", "preferences_quality_dash_option_4320p": "4320p", - "360": "360°", + "search_filters_features_option_three_sixty": "360°", "preferences_quality_dash_option_144p": "144p", - "Released under the AGPLv3 on Github.": "Rilasciato su Github con licenza AGPLv3.", + "Released under the AGPLv3 on Github.": "Rilasciato su GitHub con licenza AGPLv3.", "preferences_quality_option_medium": "Media", "preferences_quality_option_small": "Piccola", "preferences_quality_dash_option_best": "Migliore", "preferences_quality_dash_option_worst": "Peggiore", "invidious": "Invidious", - "preferences_quality_dash_label": "Qualità video DASH preferita ", + "preferences_quality_dash_label": "Qualità video DASH preferita: ", "preferences_quality_option_hd720": "HD720", - "preferences_quality_dash_option_auto": "Automatica" + "preferences_quality_dash_option_auto": "Automatica", + "videoinfo_watch_on_youTube": "Guarda su YouTube", + "preferences_extend_desc_label": "Espandi automaticamente la descrizione del video: ", + "preferences_vr_mode_label": "Video interattivi a 360 gradi: ", + "Show less": "Mostra di meno", + "Switch Invidious Instance": "Cambia istanza Invidious", + "next_steps_error_message_go_to_youtube": "Andare su YouTube", + "footer_documentation": "Documentazione", + "footer_original_source_code": "Codice sorgente originale", + "footer_modfied_source_code": "Codice sorgente modificato", + "none": "nessuno", + "videoinfo_started_streaming_x_ago": "Ha iniziato a trasmettere `x` fa", + "download_subtitles": "Sottotitoli - `x` (.vtt)", + "user_saved_playlists": "playlist salvate da `x`", + "preferences_automatic_instance_redirect_label": "Reindirizzamento automatico dell'istanza (ripiego su redirect.invidious.io): ", + "Video unavailable": "Video non disponibile", + "preferences_show_nick_label": "Mostra nickname in alto: ", + "short": "Corto (< 4 minuti)", + "videoinfo_youTube_embed_link": "Incorpora", + "videoinfo_invidious_embed_link": "Incorpora collegamento", + "user_created_playlists": "playlist create da `x`", + "preferences_save_player_pos_label": "Memorizza il minutaggio raggiunto dal video: ", + "purchased": "Acquistato", + "preferences_quality_option_dash": "DASH (qualità adattiva)", + "preferences_region_label": "Nazione del contenuto: ", + "preferences_category_misc": "Preferenze varie", + "show": "Serie", + "long": "Lungo (> 20 minuti)", + "next_steps_error_message": "Dopodiché dovresti provare a: ", + "next_steps_error_message_refresh": "Aggiornare", + "footer_donate_page": "Dona", + "footer_source_code": "Codice sorgente", + "adminprefs_modified_source_code_url_label": "Link per il repository del codice sorgente modificato", + "Show more": "Mostra di più", + "Broken? Try another Invidious Instance": "Non funzionante? Prova un’altra istanza Invidious" } diff --git a/locales/ja.json b/locales/ja.json index e3014152..977efd53 100644 --- a/locales/ja.json +++ b/locales/ja.json @@ -26,15 +26,15 @@ "No": "いいえ", "Import and Export Data": "データのインポートとエクスポート", "Import": "インポート", - "Import Invidious data": "Invidious データをインポート", - "Import YouTube subscriptions": "YouTube 登録チャンネルをインポート", + "Import Invidious data": "Invidious JSONデータをインポート", + "Import YouTube subscriptions": "YouTube/OPML 登録チャンネルをインポート", "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 でエクスポート", + "Export data as JSON": "Invidious のデータを JSON でエクスポート", "Delete account?": "アカウントを削除しますか?", "History": "履歴", "An alternative front-end to YouTube": "YouTube 向けの代用フロントエンド", @@ -71,7 +71,7 @@ "preferences_related_videos_label": "関連動画を表示: ", "preferences_annotations_label": "デフォルトでアノテーションを表示: ", "preferences_extend_desc_label": "動画の説明文を自動的に拡張: ", - "preferences_vr_mode_label": "対話的な360°動画: ", + "preferences_vr_mode_label": "対話的な360°動画 (WebGL が必要): ", "preferences_category_visual": "外観設定", "preferences_player_style_label": "プレイヤースタイル: ", "Dark mode: ": "ダークモード: ", @@ -345,44 +345,44 @@ "Videos": "動画", "Playlists": "プレイリスト", "Community": "コミュニティ", - "relevance": "関連", - "rating": "評価", - "date": "時刻", - "views": "再生回数", - "content_type": "コンテンツの種類", - "duration": "再生時間", - "features": "機能", - "sort": "順番", - "hour": "1時間前", - "today": "今日", - "week": "今週", - "month": "今月", - "year": "今年", - "video": "動画", - "channel": "チャンネル", - "playlist": "再生リスト", - "movie": "映画", - "show": "番組", - "hd": "HD", - "subtitles": "字幕", - "creative_commons": "クリエイティブ・コモンズ", - "3d": "3D", - "live": "生配信", - "4k": "4K", - "location": "場所", - "hdr": "HDR", - "filter": "フィルタ", + "search_filters_sort_option_relevance": "関連", + "search_filters_sort_option_rating": "評価", + "search_filters_sort_option_date": "時刻", + "search_filters_sort_option_views": "再生回数", + "search_filters_type_label": "コンテンツの種類", + "search_filters_duration_label": "再生時間", + "search_filters_features_label": "機能", + "search_filters_sort_label": "順番", + "search_filters_date_option_hour": "1時間前", + "search_filters_date_option_today": "今日", + "search_filters_date_option_week": "今週", + "search_filters_date_option_month": "今月", + "search_filters_date_option_year": "今年", + "search_filters_type_option_video": "動画", + "search_filters_type_option_channel": "チャンネル", + "search_filters_type_option_playlist": "再生リスト", + "search_filters_type_option_movie": "映画", + "search_filters_type_option_show": "番組", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "字幕", + "search_filters_features_option_c_commons": "クリエイティブ・コモンズ", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "生配信", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "場所", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "フィルタ", "Current version: ": "現在のバージョン: ", "next_steps_error_message": "下記のものを試して下さい: ", "next_steps_error_message_refresh": "再読込", "next_steps_error_message_go_to_youtube": "YouTubeへ", - "short": "4 分未満", + "search_filters_duration_option_short": "4 分未満", "footer_documentation": "文書", "footer_source_code": "ソースコード", "footer_original_source_code": "ソースコード(元)", "footer_modfied_source_code": "ソースコード(編集)", "adminprefs_modified_source_code_url_label": "編集したソースコードのレポジトリーURL", - "long": "20 分以上", + "search_filters_duration_option_long": "20 分以上", "preferences_region_label": "地域: ", "footer_donate_page": "寄付する", "preferences_quality_dash_label": "優先するDash画質 : ", @@ -404,12 +404,35 @@ "videoinfo_invidious_embed_link": "埋め込みリンク", "none": "なし", "download_subtitles": "字幕 - `x` (.vtt)", - "purchased": "購入済み", + "search_filters_features_option_purchased": "購入済み", "preferences_quality_option_dash": "DASH (適切な品質)", "preferences_quality_dash_option_worst": "最悪", "preferences_quality_dash_option_best": "最高", "videoinfo_started_streaming_x_ago": "`x`分前に配信を開始", "videoinfo_watch_on_youTube": "YouTube上で見る", "user_created_playlists": "`x`が作成したプレイリスト", - "Video unavailable": "ビデオは利用できません" + "Video unavailable": "ビデオは利用できません", + "Chinese": "中国語", + "Chinese (Taiwan)": "中国語 (台湾)", + "Korean (auto-generated)": "韓国語 (自動生成)", + "Portuguese (auto-generated)": "ポルトガル語 (自動生成)", + "Turkish (auto-generated)": "トルコ語 (自動生成)", + "English (United Kingdom)": "英語 (イギリス)", + "Cantonese (Hong Kong)": "広東語 (香港)", + "Chinese (China)": "中国語 (中国)", + "Chinese (Hong Kong)": "中国語 (香港)", + "Dutch (auto-generated)": "オランダ語 (自動生成)", + "French (auto-generated)": "フランス語 (自動生成)", + "German (auto-generated)": "ドイツ語 (自動生成)", + "Indonesian (auto-generated)": "インドネシア語 (自動生成)", + "Italian (auto-generated)": "イタリア語 (自動生成)", + "Japanese (auto-generated)": "日本語 (自動生成)", + "Interlingue": "インターリング", + "Portuguese (Brazil)": "ポルトガル語 (ブラジル)", + "Russian (auto-generated)": "ロシア語 (自動生成)", + "Spanish (auto-generated)": "スペイン語 (自動生成)", + "Spanish (Mexico)": "スペイン語 (メキシコ)", + "Spanish (Spain)": "スペイン語 (スペイン)", + "Vietnamese (auto-generated)": "ベトナム語 (自動生成)", + "360": "360°" } diff --git a/locales/ko.json b/locales/ko.json index a579fe56..616380cf 100644 --- a/locales/ko.json +++ b/locales/ko.json @@ -86,7 +86,7 @@ "generic_playlists_count_0": "{{count}} 재생목록", "generic_subscribers_count_0": "{{count}} 구독자", "generic_subscriptions_count_0": "{{count}} 구독", - "playlist": "재생목록", + "search_filters_type_option_playlist": "재생목록", "Korean": "한국어", "Japanese": "일본어", "Greek": "그리스어", @@ -129,7 +129,7 @@ "Delete playlist": "재생목록 삭제", "Delete playlist `x`?": "재생목록 `x` 를 삭제 하시겠습니까?", "Updated `x` ago": "`x` 전에 업데이트됨", - "Released under the AGPLv3 on Github.": "Github에 AGPLv3 으로 배포됩니다.", + "Released under the AGPLv3 on Github.": "GitHub에 AGPLv3 으로 배포됩니다.", "View all playlists": "모든 재생목록 보기", "Private": "비공개", "Unlisted": "목록에 없음", @@ -195,16 +195,16 @@ "Maori": "마오리어", "Maltese": "몰타어", "Wrong answer": "잘못된 답변", - "live": "실시간", - "3d": "3D", - "location": "지역", - "4k": "4K", - "filter": "필터", - "hdr": "HDR", + "search_filters_features_option_live": "실시간", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_location": "지역", + "search_filters_features_option_four_k": "4K", + "search_filters_label": "필터", + "search_filters_features_option_hdr": "HDR", "Current version: ": "현재 버전: ", "next_steps_error_message_refresh": "새로 고침", "next_steps_error_message_go_to_youtube": "YouTube로 가기", - "subtitles": "자막", + "search_filters_features_option_subtitles": "자막", "`x` marked it with a ❤": "`x`님의 ❤", "Download as: ": "다음으로 다운로드: ", "Download": "다운로드", @@ -219,7 +219,7 @@ "Latvian": "라트비아어", "Latin": "라틴어", "Lao": "라오어", - "channel": "채널", + "search_filters_type_option_channel": "채널", "Kyrgyz": "키르기스어", "Kurdish": "쿠르드어", "Khmer": "크메르어", @@ -279,7 +279,7 @@ "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가 꺼져 있는 것 같습니다! 댓글을 보려면 여기를 클릭하세요. 댓글을 로드하는 데 시간이 조금 더 걸릴 수 있습니다.", "Shared `x`": "공유된 `x`", "Whitelisted regions: ": "차단되지 않은 지역: ", - "views": "조회수", + "search_filters_sort_option_views": "조회수", "Please log in": "로그인하세요", "Password cannot be longer than 55 characters": "비밀번호는 55자 이하여야 합니다", "Password cannot be empty": "비밀번호는 비워둘 수 없습니다", @@ -343,12 +343,12 @@ "Premieres `x`": "최초 공개 `x`", "Premieres in `x`": "`x` 에 최초 공개", "next_steps_error_message": "다음 방법을 시도해 보세요: ", - "creative_commons": "크리에이티브 커먼즈", - "duration": "길이", - "content_type": "구분", - "date": "업로드 날짜", - "rating": "평점", - "relevance": "관련성", + "search_filters_features_option_c_commons": "크리에이티브 커먼즈", + "search_filters_duration_label": "길이", + "search_filters_type_label": "구분", + "search_filters_sort_option_date": "업로드 날짜", + "search_filters_sort_option_rating": "평점", + "search_filters_sort_option_relevance": "관련성", "Community": "커뮤니티", "Videos": "동영상", "Video mode": "비디오 모드", @@ -365,19 +365,19 @@ "Rating: ": "평점: ", "About": "정보", "Top": "최고", - "hd": "HD", - "show": "쇼", - "movie": "영화", - "video": "동영상", - "year": "올해", - "month": "이번 달", - "week": "이번 주", - "today": "오늘", - "hour": "지난 1시간", - "sort": "정렬기준", - "features": "기능별", - "short": "4분 미만", - "long": "20분 초과", + "search_filters_features_option_hd": "HD", + "search_filters_type_option_show": "쇼", + "search_filters_type_option_movie": "영화", + "search_filters_type_option_video": "동영상", + "search_filters_date_option_year": "올해", + "search_filters_date_option_month": "이번 달", + "search_filters_date_option_week": "이번 주", + "search_filters_date_option_today": "오늘", + "search_filters_date_option_hour": "지난 1시간", + "search_filters_sort_label": "정렬기준", + "search_filters_features_label": "기능별", + "search_filters_duration_option_short": "4분 미만", + "search_filters_duration_option_long": "20분 초과", "footer_documentation": "문서", "footer_source_code": "소스 코드", "footer_original_source_code": "원본 소스 코드", diff --git a/locales/lt.json b/locales/lt.json index 5b27eae4..7ecf60cf 100644 --- a/locales/lt.json +++ b/locales/lt.json @@ -121,7 +121,7 @@ "Subscriptions": "Prenumeratos", "search": "ieškoti", "Log out": "Atsijungti", - "Released under the AGPLv3 on Github.": "Išleista pagal AGPLv3 licenciją Github.", + "Released under the AGPLv3 on Github.": "Išleista pagal AGPLv3 licenciją GitHub.", "Source available here.": "Kodas prieinamas čia.", "View JavaScript license information.": "Žiūrėti JavaScript licencijos informaciją.", "View privacy policy.": "Žiūrėti privatumo politiką.", @@ -329,39 +329,39 @@ "Videos": "Vaizdo įrašai", "Playlists": "Grojaraiščiai", "Community": "Bendruomenė", - "relevance": "Aktualumas", - "rating": "Reitingas", - "date": "Įkėlimo data", - "views": "Peržiūrų skaičius", - "content_type": "Tipas", - "duration": "Trukmė", - "features": "Funkcijos", - "sort": "Rūšiuoti pagal", - "hour": "Per paskutinę valandą", - "today": "Šiandien", - "week": "Šią savaitę", - "month": "Šį mėnesį", - "year": "Šiais metais", - "video": "Vaizdo įrašas", - "channel": "Kanalas", - "playlist": "Grojaraštis", - "movie": "Filmas", - "show": "Serialas", - "hd": "HD", - "subtitles": "Subtitrai/CC", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "Tiesiogiai", - "4k": "4K", - "location": "Vietovė", - "hdr": "HDR", - "filter": "Filtras", + "search_filters_sort_option_relevance": "Aktualumas", + "search_filters_sort_option_rating": "Reitingas", + "search_filters_sort_option_date": "Įkėlimo data", + "search_filters_sort_option_views": "Peržiūrų skaičius", + "search_filters_type_label": "Tipas", + "search_filters_duration_label": "Trukmė", + "search_filters_features_label": "Funkcijos", + "search_filters_sort_label": "Rūšiuoti pagal", + "search_filters_date_option_hour": "Per paskutinę valandą", + "search_filters_date_option_today": "Šiandien", + "search_filters_date_option_week": "Šią savaitę", + "search_filters_date_option_month": "Šį mėnesį", + "search_filters_date_option_year": "Šiais metais", + "search_filters_type_option_video": "Vaizdo įrašas", + "search_filters_type_option_channel": "Kanalas", + "search_filters_type_option_playlist": "Grojaraštis", + "search_filters_type_option_movie": "Filmas", + "search_filters_type_option_show": "Serialas", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "Subtitrai/CC", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "Tiesiogiai", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "Vietovė", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "Filtras", "Current version: ": "Dabartinė versija: ", "next_steps_error_message": "Po to turėtumėte pabandyti: ", "next_steps_error_message_refresh": "Atnaujinti", "next_steps_error_message_go_to_youtube": "Eiti į YouTube", - "short": "Trumpas (< 4 minučių)", - "long": "Ilgas (> 20 minučių)", + "search_filters_duration_option_short": "Trumpas (< 4 minučių)", + "search_filters_duration_option_long": "Ilgas (> 20 minučių)", "footer_documentation": "Dokumentacija", "footer_source_code": "Pirminis kodas", "footer_original_source_code": "Pradinis pirminis kodas", @@ -369,5 +369,8 @@ "footer_modfied_source_code": "Pakeistas pirminis kodas", "footer_donate_page": "Paaukoti", "preferences_region_label": "Turinio šalis: ", - "preferences_quality_dash_label": "Pageidaujama DASH vaizdo kokybė: " + "preferences_quality_dash_label": "Pageidaujama DASH vaizdo kokybė: ", + "preferences_quality_dash_option_best": "Geriausia", + "preferences_quality_dash_option_worst": "Blogiausia", + "preferences_quality_dash_option_auto": "Automatinis" } diff --git a/locales/nb-NO.json b/locales/nb-NO.json index 1c5ffbc8..dee0c94b 100644 --- a/locales/nb-NO.json +++ b/locales/nb-NO.json @@ -29,7 +29,7 @@ "Export": "Eksporter", "Export subscriptions as OPML": "Eksporter abonnementer som OPML", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksporter abonnementer som OPML (for NewPipe og FreeTube)", - "Export data as JSON": "Eksporter data som JSON", + "Export data as JSON": "Eksporter Invidiousdata som JSON", "Delete account?": "Slett konto?", "History": "Historikk", "An alternative front-end to YouTube": "En alternativ grenseflate for YouTube", @@ -66,7 +66,7 @@ "preferences_related_videos_label": "Vis relaterte videoer? ", "preferences_annotations_label": "Vis merknader som forvalg? ", "preferences_extend_desc_label": "Utvid videobeskrivelse automatisk: ", - "preferences_vr_mode_label": "Interaktive 360-gradersfilmer: ", + "preferences_vr_mode_label": "Interaktive 360-gradersfilmer (krever WebGL): ", "preferences_category_visual": "Visuelle innstillinger", "preferences_player_style_label": "Avspillerstil: ", "Dark mode: ": "Mørk drakt: ", @@ -121,7 +121,7 @@ "Subscriptions": "Abonnement", "search": "søk", "Log out": "Logg ut", - "Released under the AGPLv3 on Github.": "Tilgjengelig med AGPLv3-lisens på Github.", + "Released under the AGPLv3 on Github.": "Tilgjengelig med AGPLv3-lisens på GitHub.", "Source available here.": "Kildekode tilgjengelig her.", "View JavaScript license information.": "Vis JavaScript-lisensinfo.", "View privacy policy.": "Vis personvernspraksis.", @@ -199,7 +199,7 @@ "No such user": "Ugyldig bruker", "Token is expired, please try again": "Symbol utløpt, prøv igjen", "English": "Engelsk", - "English (auto-generated)": "Engelsk (auto-generert)", + "English (auto-generated)": "Engelsk (laget automatisk)", "Afrikaans": "Afrikansk", "Albanian": "Albansk", "Amharic": "Amharisk", @@ -329,40 +329,40 @@ "Videos": "Videoer", "Playlists": "Spillelister", "Community": "Gemenskap", - "relevance": "relevans", - "rating": "vurdering", - "date": "dato", - "views": "visninger", - "content_type": "innholdstype", - "duration": "varighet", - "features": "funksjoner", - "sort": "sorter", - "hour": "time", - "today": "i dag", - "week": "uke", - "month": "måned", - "year": "år", - "video": "video", - "channel": "kanal", - "playlist": "spilleliste", - "movie": "film", - "show": "vis", - "hd": "HD", - "subtitles": "undertekster", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "direkte", - "4k": "4k", - "location": "sted", - "hdr": "HDR", - "filter": "filtrer", + "search_filters_sort_option_relevance": "relevans", + "search_filters_sort_option_rating": "vurdering", + "search_filters_sort_option_date": "dato", + "search_filters_sort_option_views": "visninger", + "search_filters_type_label": "innholdstype", + "search_filters_duration_label": "varighet", + "search_filters_features_label": "funksjoner", + "search_filters_sort_label": "sorter", + "search_filters_date_option_hour": "time", + "search_filters_date_option_today": "i dag", + "search_filters_date_option_week": "uke", + "search_filters_date_option_month": "måned", + "search_filters_date_option_year": "år", + "search_filters_type_option_video": "video", + "search_filters_type_option_channel": "kanal", + "search_filters_type_option_playlist": "spilleliste", + "search_filters_type_option_movie": "film", + "search_filters_type_option_show": "vis", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "undertekster", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "direkte", + "search_filters_features_option_four_k": "4k", + "search_filters_features_option_location": "sted", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "filtrer", "Current version: ": "Gjeldende versjon: ", "next_steps_error_message": "Etterpå bør du prøve dette: ", "next_steps_error_message_refresh": "Gjenoppfrisk", "next_steps_error_message_go_to_youtube": "Gå til YouTube", - "long": "Lang (> 20 minutter)", + "search_filters_duration_option_long": "Lang (> 20 minutter)", "footer_donate_page": "Doner", - "short": "Kort (< 4 minutter)", + "search_filters_duration_option_short": "Kort (< 4 minutter)", "footer_documentation": "Dokumentasjon", "footer_source_code": "Kildekode", "footer_original_source_code": "Opprinnelig kildekode", @@ -384,8 +384,8 @@ "preferences_quality_dash_option_240p": "240p", "preferences_quality_dash_option_144p": "144p", "invidious": "Invidious", - "purchased": "Kjøpt", - "360": "360°", + "search_filters_features_option_purchased": "Kjøpt", + "search_filters_features_option_three_sixty": "360°", "none": "intet", "videoinfo_watch_on_youTube": "Se på YouTube", "videoinfo_youTube_embed_link": "Bak inn", @@ -432,10 +432,34 @@ "generic_count_years": "{{count}} år", "generic_count_years_plural": "{{count}} år", "crash_page_read_the_faq": "lest de <a href=\"`x`\">Ofte stilte spørsmålene (OSS/FAQ)</a>", - "crash_page_search_issue": "søkt etter <a href=\"`x`\">eksisterende utfordringer på Github</a>", + "crash_page_search_issue": "søkt etter <a href=\"`x`\">eksisterende utfordringer på GitHub</a>", "crash_page_you_found_a_bug": "Det ser ut til at du fant en feil i Invidious!", "crash_page_refresh": "forsøkt å <a href=\"`x`\">laste siden på nytt</a>", "crash_page_switch_instance": "forsøkt et <a href=\"`x`\">annet eksemplar</a>", "crash_page_before_reporting": "Før du rapporterer en feil, sikre at du har:", - "crash_page_report_issue": "Hvis intet av det overnevnte hjalp, <a href=\"`x`\">lag en ny utfordring på Github</a> (fortrinnsvis på engelsk) og ta med følgende tekstbit i meldingen dit (IKKE oversett denne teksten):" + "crash_page_report_issue": "Sett at det overnevnte ikke hjalp, <a href=\"`x`\">lag en ny utfordring på GitHub</a> (fortrinnsvis på engelsk) og få med følgende tekstbit i meldingen dithen (IKKE oversett denne teksten):", + "English (United Kingdom)": "Engelsk (Storbritannia)", + "English (United States)": "Engelsk (USA)", + "Cantonese (Hong Kong)": "Kantonesisk (Hong Kong)", + "Portuguese (Brazil)": "Portugisisk (Brasil)", + "Spanish (Mexico)": "Spansk (Mexico)", + "Spanish (Spain)": "Spansk (Spania)", + "Spanish (auto-generated)": "Spansk (laget automatisk)", + "Vietnamese (auto-generated)": "Vietnamesisk (laget automatisk)", + "preferences_watch_history_label": "Aktiver seerhistorikk: ", + "Chinese": "Kinesisk", + "Chinese (China)": "Kinesisk (Kina)", + "Chinese (Hong Kong)": "Kinesisk (Hong Kong)", + "Chinese (Taiwan)": "Kinesisk (Taiwan)", + "French (auto-generated)": "Fransk (laget automatisk)", + "German (auto-generated)": "Tysk (laget automatisk)", + "Indonesian (auto-generated)": "Indonesisk (laget automatisk)", + "Interlingue": "Interlingue", + "Italian (auto-generated)": "Italiensk (laget automatisk)", + "Japanese (auto-generated)": "Japansk (laget automatisk)", + "Korean (auto-generated)": "Koreansk (laget automatisk)", + "Portuguese (auto-generated)": "Portugisisk (laget automatisk)", + "Russian (auto-generated)": "Russisk (laget automatisk)", + "Dutch (auto-generated)": "Nederlandsk (laget automatisk)", + "Turkish (auto-generated)": "Tyrkisk (laget automatisk)" } diff --git a/locales/nl.json b/locales/nl.json index d148d872..99ae7f8e 100644 --- a/locales/nl.json +++ b/locales/nl.json @@ -323,33 +323,33 @@ "Videos": "Video's", "Playlists": "Afspeellijsten", "Community": "Gemeenschap", - "relevance": "relevantie", - "rating": "beoordeling", - "date": "datum", - "views": "keren bekeken", - "content_type": "Type inhoud", - "duration": "duur", - "features": "eigenschappen", - "sort": "sorteren", - "hour": "uur", - "today": "vandaag", - "week": "week", - "month": "maand", - "year": "jaar", - "video": "video", - "channel": "kanaal", - "playlist": "afspeellijst", - "movie": "film", - "show": "show", - "hd": "HD", - "subtitles": "ondertitels", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "Live", - "4k": "4K", - "location": "locatie", - "hdr": "HDR", - "filter": "verfijnen", + "search_filters_sort_option_relevance": "relevantie", + "search_filters_sort_option_rating": "beoordeling", + "search_filters_sort_option_date": "datum", + "search_filters_sort_option_views": "keren bekeken", + "search_filters_type_label": "Type inhoud", + "search_filters_duration_label": "duur", + "search_filters_features_label": "eigenschappen", + "search_filters_sort_label": "sorteren", + "search_filters_date_option_hour": "uur", + "search_filters_date_option_today": "vandaag", + "search_filters_date_option_week": "week", + "search_filters_date_option_month": "maand", + "search_filters_date_option_year": "jaar", + "search_filters_type_option_video": "video", + "search_filters_type_option_channel": "kanaal", + "search_filters_type_option_playlist": "afspeellijst", + "search_filters_type_option_movie": "film", + "search_filters_type_option_show": "show", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "ondertitels", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "Live", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "locatie", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "verfijnen", "Current version: ": "Huidige versie: ", "Switch Invidious Instance": "Schakel tussen de Invidious Instanties", "preferences_automatic_instance_redirect_label": "Automatische instantie-omleiding (terugval naar redirect.invidious.io): ", @@ -357,8 +357,8 @@ "preferences_region_label": "Inhoud land: ", "preferences_category_misc": "Diverse voorkeuren", "preferences_show_nick_label": "Toon bijnaam bovenaan: ", - "Released under the AGPLv3 on Github.": "Uitgebracht onder de AGPLv3 op Github.", - "short": "Kort (<4 minuten)", + "Released under the AGPLv3 on Github.": "Uitgebracht onder de AGPLv3 op GitHub.", + "search_filters_duration_option_short": "Kort (<4 minuten)", "next_steps_error_message_refresh": "Vernieuwen", "next_steps_error_message_go_to_youtube": "Ga naar YouTube", "footer_donate_page": "Doneren", @@ -369,7 +369,7 @@ "Broken? Try another Invidious Instance": "Kapot? Probeer een andere Invidious Instantie", "next_steps_error_message": "Waarna u moet proberen om: ", "footer_source_code": "Bron-code", - "long": "Lang (> 20 minuten)", + "search_filters_duration_option_long": "Lang (> 20 minuten)", "preferences_quality_option_dash": "DASH (adaptieve kwaliteit)", "preferences_quality_option_hd720": "HD720", "preferences_quality_option_medium": "Gemiddeld", @@ -397,6 +397,6 @@ "Video unavailable": "Video onbeschikbaar", "preferences_save_player_pos_label": "Huidig afspeeltijdstip opslaan: ", "none": "geen", - "purchased": "Gekocht", - "360": "360º" + "search_filters_features_option_purchased": "Gekocht", + "search_filters_features_option_three_sixty": "360º" } diff --git a/locales/pl.json b/locales/pl.json index 5c4667f0..6ccb712c 100644 --- a/locales/pl.json +++ b/locales/pl.json @@ -21,15 +21,15 @@ "No": "Nie", "Import and Export Data": "Import i eksport danych", "Import": "Import", - "Import Invidious data": "Importuj dane Invidious", - "Import YouTube subscriptions": "Importuj subskrybcje z YouTube", + "Import Invidious data": "Importuj dane JSON Invidious", + "Import YouTube subscriptions": "Importuj subskrybcje z YouTube/OPML", "Import FreeTube subscriptions (.db)": "Importuj subskrybcje z FreeTube (.db)", "Import NewPipe subscriptions (.json)": "Importuj subskrybcje z NewPipe (.json)", "Import NewPipe data (.zip)": "Importuj dane NewPipe (.zip)", "Export": "Eksport", "Export subscriptions as OPML": "Eksportuj subskrybcje jako OPML", "Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksportuj subskrybcje jako OPML (dla NewPipe i FreeTube)", - "Export data as JSON": "Eksportuj dane jako JSON", + "Export data as JSON": "Eksportuj dane Invidious jako JSON", "Delete account?": "Usunąć konto?", "History": "Historia", "An alternative front-end to YouTube": "Alternatywny front-end dla YouTube", @@ -66,7 +66,7 @@ "preferences_related_videos_label": "Pokaż powiązane filmy? ", "preferences_annotations_label": "Domyślnie pokazuj adnotacje: ", "preferences_extend_desc_label": "Automatycznie rozwijaj opisy filmów: ", - "preferences_vr_mode_label": "Interaktywne filmy 360 stopni: ", + "preferences_vr_mode_label": "Interaktywne filmy 360 stopni (wymaga WebGL): ", "preferences_category_visual": "Preferencje Wizualne", "preferences_player_style_label": "Styl odtwarzacza: ", "Dark mode: ": "Ciemny motyw: ", @@ -328,33 +328,33 @@ "Videos": "Filmy", "Playlists": "Playlisty", "Community": "Społeczność", - "relevance": "Trafność", - "rating": "Ocena", - "date": "data", - "views": "Liczba wyświetleń", - "content_type": "Typ", - "duration": "Długość", - "features": "Funkcje", - "sort": "sortuj", - "hour": "godzina", - "today": "dzisiaj", - "week": "tydzień", - "month": "miesiąc", - "year": "rok", - "video": "Film", - "channel": "kanał", - "playlist": "playlista", - "movie": "film", - "show": "pokaż", - "hd": "hd", - "subtitles": "napisy", - "creative_commons": "creative_commons", - "3d": "3d", - "live": "Na żywo", - "4k": "4k", - "location": "Lokalizacja", - "hdr": "hdr", - "filter": "filtr", + "search_filters_sort_option_relevance": "Trafność", + "search_filters_sort_option_rating": "Ocena", + "search_filters_sort_option_date": "data", + "search_filters_sort_option_views": "Liczba wyświetleń", + "search_filters_type_label": "Typ", + "search_filters_duration_label": "Długość", + "search_filters_features_label": "Funkcje", + "search_filters_sort_label": "sortuj", + "search_filters_date_option_hour": "godzina", + "search_filters_date_option_today": "dzisiaj", + "search_filters_date_option_week": "tydzień", + "search_filters_date_option_month": "miesiąc", + "search_filters_date_option_year": "rok", + "search_filters_type_option_video": "Film", + "search_filters_type_option_channel": "kanał", + "search_filters_type_option_playlist": "playlista", + "search_filters_type_option_movie": "film", + "search_filters_type_option_show": "pokaż", + "search_filters_features_option_hd": "hd", + "search_filters_features_option_subtitles": "napisy", + "search_filters_features_option_c_commons": "creative_commons", + "search_filters_features_option_three_d": "3d", + "search_filters_features_option_live": "Na żywo", + "search_filters_features_option_four_k": "4k", + "search_filters_features_option_location": "Lokalizacja", + "search_filters_features_option_hdr": "hdr", + "search_filters_label": "filtr", "Current version: ": "Aktualna wersja: ", "next_steps_error_message": "Po czym powinien*ś spróbować: ", "next_steps_error_message_refresh": "Odśwież", @@ -432,8 +432,8 @@ "preferences_quality_dash_label": "Preferowana jakość filmu DASH: ", "preferences_quality_dash_option_4320p": "4320p", "preferences_quality_dash_option_2160p": "2160p", - "purchased": "Zakupione", - "360": "360°", + "search_filters_features_option_purchased": "Zakupione", + "search_filters_features_option_three_sixty": "360°", "footer_donate_page": "Dotacja", "none": "żadne", "videoinfo_started_streaming_x_ago": "Transmisja rozpoczęta `x` temu", @@ -446,12 +446,35 @@ "Video unavailable": "Film niedostępny", "preferences_save_player_pos_label": "Zapisz pozycję odtwarzania: ", "preferences_region_label": "Region zawartości: ", - "Released under the AGPLv3 on Github.": "Wydane na licencji AGPLv3 na Github'ie.", - "short": "Krótkie (< 4 minutes)", - "long": "Długie (> 20 minutes)", + "Released under the AGPLv3 on Github.": "Wydany na licencji AGPLv3 na GitHub.", + "search_filters_duration_option_short": "Krótkie (< 4 minutes)", + "search_filters_duration_option_long": "Długie (> 20 minutes)", "footer_documentation": "Dokumentacja", "footer_source_code": "Kod źródłowy", "footer_modfied_source_code": "Zmodyfikowany Kod źródłowy", "footer_original_source_code": "Oryginalny kod źródłowy", - "adminprefs_modified_source_code_url_label": "Adres URL do repozytorium z zmodyfikowanym kodem źródłowym" + "adminprefs_modified_source_code_url_label": "Adres URL do repozytorium z zmodyfikowanym kodem źródłowym", + "English (United Kingdom)": "angielski (Wielka Brytania)", + "English (United States)": "angielski (Stany Zjednoczone)", + "Cantonese (Hong Kong)": "kantoński (Hong Kong)", + "Chinese": "chiński", + "Chinese (China)": "chiński (Chiny)", + "Chinese (Hong Kong)": "chiński (Hong Kong)", + "Chinese (Taiwan)": "chiński (Tajwan)", + "Dutch (auto-generated)": "niderlandzki (wygenerowany automatycznie)", + "French (auto-generated)": "francuski (wygenerowany automatycznie)", + "German (auto-generated)": "niemiecki (wygenerowany automatycznie)", + "Indonesian (auto-generated)": "indonezyjski (wygenerowany automatycznie)", + "Interlingue": "interlingue", + "Italian (auto-generated)": "włoski (wygenerowany automatycznie)", + "Korean (auto-generated)": "koreański (wygenerowany automatycznie)", + "Spanish (auto-generated)": "hiszpański (wygenerowany automatycznie)", + "Spanish (Mexico)": "hiszpański (Meksyk)", + "Spanish (Spain)": "hiszpański (Hiszpania)", + "Turkish (auto-generated)": "turecki (wygenerowany automatycznie)", + "Vietnamese (auto-generated)": "wietnamski (wygenerowany automatycznie)", + "Japanese (auto-generated)": "japoński (wygenerowany automatycznie)", + "Russian (auto-generated)": "rosyjski (wygenerowany automatycznie)", + "Portuguese (auto-generated)": "portugalski (wygenerowany automatycznie)", + "Portuguese (Brazil)": "portugalski (Brazylia)" } diff --git a/locales/pt-BR.json b/locales/pt-BR.json index 71a232c7..8f95e2f2 100644 --- a/locales/pt-BR.json +++ b/locales/pt-BR.json @@ -123,7 +123,7 @@ "Subscriptions": "Inscrições", "search": "Pesquisar", "Log out": "Sair", - "Released under the AGPLv3 on Github.": "Lançado sob a AGPLv3 no Github.", + "Released under the AGPLv3 on Github.": "Lançado sob a AGPLv3 no GitHub.", "Source available here.": "Código-fonte disponível aqui.", "View JavaScript license information.": "Ver informações da licença do JavaScript.", "View privacy policy.": "Ver a política de privacidade.", @@ -345,41 +345,41 @@ "Videos": "Vídeos", "Playlists": "Listas de reprodução", "Community": "Comunidade", - "relevance": "relevância", - "rating": "avaliação", - "date": "data", - "views": "visualizações", - "content_type": "content_type", - "duration": "duração", - "features": "recursos", - "sort": "ordenar", - "hour": "hora", - "today": "hoje", - "week": "semana", - "month": "mês", - "year": "ano", - "video": "vídeo", - "channel": "Canal", - "playlist": "playlist", - "movie": "filme", - "show": "show", - "hd": "hd", - "subtitles": "legendas", - "creative_commons": "creative_commons", - "3d": "3d", - "live": "ao vivo", - "4k": "4k", - "location": "localização", - "hdr": "hdr", - "filter": "filtro", + "search_filters_sort_option_relevance": "relevância", + "search_filters_sort_option_rating": "avaliação", + "search_filters_sort_option_date": "data", + "search_filters_sort_option_views": "visualizações", + "search_filters_type_label": "content_type", + "search_filters_duration_label": "duração", + "search_filters_features_label": "recursos", + "search_filters_sort_label": "ordenar", + "search_filters_date_option_hour": "hora", + "search_filters_date_option_today": "hoje", + "search_filters_date_option_week": "semana", + "search_filters_date_option_month": "mês", + "search_filters_date_option_year": "ano", + "search_filters_type_option_video": "vídeo", + "search_filters_type_option_channel": "Canal", + "search_filters_type_option_playlist": "playlist", + "search_filters_type_option_movie": "filme", + "search_filters_type_option_show": "show", + "search_filters_features_option_hd": "hd", + "search_filters_features_option_subtitles": "legendas", + "search_filters_features_option_c_commons": "creative_commons", + "search_filters_features_option_three_d": "3d", + "search_filters_features_option_live": "ao vivo", + "search_filters_features_option_four_k": "4k", + "search_filters_features_option_location": "localização", + "search_filters_features_option_hdr": "hdr", + "search_filters_label": "filtro", "Current version: ": "Versão atual: ", "next_steps_error_message": "Depois disso, você deve tentar: ", "next_steps_error_message_refresh": "Atualizar", "next_steps_error_message_go_to_youtube": "Ir para o YouTube", "footer_donate_page": "Doe", "adminprefs_modified_source_code_url_label": "URL para repositório de código fonte modificado", - "long": "Longo (> 20 minutos)", - "short": "Curto (< 4 minutos)", + "search_filters_duration_option_long": "Longo (> 20 minutos)", + "search_filters_duration_option_short": "Curto (< 4 minutos)", "footer_documentation": "Documentação", "footer_source_code": "Código fonte", "footer_original_source_code": "Código fonte original", @@ -404,10 +404,10 @@ "crash_page_you_found_a_bug": "Parece que você encontrou um erro no Invidious!", "crash_page_before_reporting": "Antes de reportar um erro, verifique se você:", "preferences_save_player_pos_label": "Salvar a posição de reprodução: ", - "purchased": "Comprado", + "search_filters_features_option_purchased": "Comprado", "crash_page_refresh": "tentou <a href=\"`x`\">recarregar a página</a>", "crash_page_switch_instance": "tentou <a href=\"`x`\">usar outra instância</a>", - "crash_page_search_issue": "procurou por um <a href=\"`x`\">erro existente no Github</a>", + "crash_page_search_issue": "procurou por um <a href=\"`x`\">erro existente no GitHub</a>", "crash_page_report_issue": "Se nenhuma opção acima ajudou, por favor <a href=\"`x`\">abra um novo problema no Github</a> (preferencialmente em inglês) e inclua o seguinte texto (NÃO traduza):", "crash_page_read_the_faq": "leu as <a href=\"`x`\">Perguntas Frequentes (FAQ)</a>", "generic_views_count": "{{count}} visualização", @@ -428,7 +428,7 @@ "preferences_quality_dash_option_144p": "144p", "invidious": "Invidious", "preferences_quality_option_medium": "Médio", - "360": "360°", + "search_filters_features_option_three_sixty": "360°", "none": "none", "videoinfo_watch_on_youTube": "Assistir no YouTube", "videoinfo_youTube_embed_link": "Embutir", diff --git a/locales/pt-PT.json b/locales/pt-PT.json index 4dba553e..93e93d18 100644 --- a/locales/pt-PT.json +++ b/locales/pt-PT.json @@ -123,7 +123,7 @@ "Subscriptions": "Subscrições", "search": "pesquisar", "Log out": "Terminar sessão", - "Released under the AGPLv3 on Github.": "Lançado sob a AGPLv3 no Github.", + "Released under the AGPLv3 on Github.": "Lançado sob a AGPLv3 no GitHub.", "Source available here.": "Código-fonte disponível aqui.", "View JavaScript license information.": "Ver informações da licença do JavaScript.", "View privacy policy.": "Ver a política de privacidade.", @@ -345,33 +345,33 @@ "Videos": "Vídeos", "Playlists": "Listas de reprodução", "Community": "Comunidade", - "relevance": "Relevância", - "rating": "Avaliação", - "date": "Data de envio", - "views": "Visualizações", - "content_type": "Tipo", - "duration": "Duração", - "features": "Funcionalidades", - "sort": "Ordenar por", - "hour": "Última hora", - "today": "Hoje", - "week": "Esta semana", - "month": "Este mês", - "year": "Este ano", - "video": "Vídeo", - "channel": "Canal", - "playlist": "Lista de reprodução", - "movie": "Filme", - "show": "Espetáculo", - "hd": "HD", - "subtitles": "Legendas", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "Em direto", - "4k": "4K", - "location": "Localização", - "hdr": "HDR", - "filter": "Filtro", + "search_filters_sort_option_relevance": "Relevância", + "search_filters_sort_option_rating": "Avaliação", + "search_filters_sort_option_date": "Data de envio", + "search_filters_sort_option_views": "Visualizações", + "search_filters_type_label": "Tipo", + "search_filters_duration_label": "Duração", + "search_filters_features_label": "Funcionalidades", + "search_filters_sort_label": "Ordenar por", + "search_filters_date_option_hour": "Última hora", + "search_filters_date_option_today": "Hoje", + "search_filters_date_option_week": "Esta semana", + "search_filters_date_option_month": "Este mês", + "search_filters_date_option_year": "Este ano", + "search_filters_type_option_video": "Vídeo", + "search_filters_type_option_channel": "Canal", + "search_filters_type_option_playlist": "Lista de reprodução", + "search_filters_type_option_movie": "Filme", + "search_filters_type_option_show": "Espetáculo", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "Legendas", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "Em direto", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "Localização", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "Filtro", "Current version: ": "Versão atual: ", "next_steps_error_message": "Pode tentar as seguintes opções: ", "next_steps_error_message_refresh": "Atualizar", diff --git a/locales/pt.json b/locales/pt.json index 0a352f79..b5dbd455 100644 --- a/locales/pt.json +++ b/locales/pt.json @@ -1,14 +1,14 @@ { - "show": "Espetáculo", - "views": "Visualizações", - "date": "Data de envio", - "rating": "Avaliação", - "relevance": "Relevância", + "search_filters_type_option_show": "Espetáculo", + "search_filters_sort_option_views": "Visualizações", + "search_filters_sort_option_date": "Data de envio", + "search_filters_sort_option_rating": "Avaliação", + "search_filters_sort_option_relevance": "Relevância", "Broken? Try another Invidious Instance": "Falhou? Tente outra Instância do Invidious", "Switch Invidious Instance": "Mudar a instância do Invidious", "Show less": "Mostrar menos", "Show more": "Mostrar mais", - "Released under the AGPLv3 on Github.": "Lançado sob a AGPLv3 no Github.", + "Released under the AGPLv3 on Github.": "Lançado sob a AGPLv3 no GitHub.", "preferences_show_nick_label": "Mostrar nome de utilizador em cima: ", "preferences_automatic_instance_redirect_label": "Redirecionamento de instância automática (solução de último recurso para redirect.invidious.io): ", "preferences_category_misc": "Preferências diversas", @@ -17,28 +17,28 @@ "next_steps_error_message_go_to_youtube": "Ir ao YouTube", "next_steps_error_message": "Pode tentar as seguintes opções: ", "next_steps_error_message_refresh": "Atualizar", - "filter": "Filtro", - "hdr": "HDR", - "location": "Localização", - "4k": "4K", - "live": "Em direto", - "3d": "3D", - "creative_commons": "Creative Commons", - "subtitles": "Legendas", - "hd": "HD", - "movie": "Filme", - "playlist": "Lista de reprodução", - "channel": "Canal", - "video": "Vídeo", - "year": "Este ano", - "month": "Este mês", - "week": "Esta semana", - "today": "Hoje", - "hour": "Última hora", - "sort": "Ordenar por", - "features": "Funcionalidades", - "duration": "Duração", - "content_type": "Tipo", + "search_filters_label": "Filtro", + "search_filters_features_option_hdr": "HDR", + "search_filters_features_option_location": "Localização", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_live": "Em direto", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_subtitles": "Legendas", + "search_filters_features_option_hd": "HD", + "search_filters_type_option_movie": "Filme", + "search_filters_type_option_playlist": "Lista de reprodução", + "search_filters_type_option_channel": "Canal", + "search_filters_type_option_video": "Vídeo", + "search_filters_date_option_year": "Este ano", + "search_filters_date_option_month": "Este mês", + "search_filters_date_option_week": "Esta semana", + "search_filters_date_option_today": "Hoje", + "search_filters_date_option_hour": "Última hora", + "search_filters_sort_label": "Ordenar por", + "search_filters_features_label": "Funcionalidades", + "search_filters_duration_label": "Duração", + "search_filters_type_label": "Tipo", "permalink": "hiperligação permanente", "YouTube comment permalink": "Hiperligação permanente do comentário no YouTube", "Download as: ": "Descarregar como: ", @@ -376,8 +376,8 @@ "Unsubscribe": "Anular subscrição", "Shared `x` ago": "Partilhado `x` atrás", "LIVE": "Em direto", - "short": "Curto (< 4 minutos)", - "long": "Longo (> 20 minutos)", + "search_filters_duration_option_short": "Curto (< 4 minutos)", + "search_filters_duration_option_long": "Longo (> 20 minutos)", "footer_source_code": "Código-fonte", "footer_original_source_code": "Código-fonte original", "adminprefs_modified_source_code_url_label": "URL do repositório do código-fonte alterado", @@ -397,8 +397,8 @@ "preferences_quality_dash_option_360p": "360p", "preferences_quality_dash_option_240p": "240p", "preferences_quality_dash_option_144p": "144p", - "purchased": "Comprado", - "360": "360°", + "search_filters_features_option_purchased": "Comprado", + "search_filters_features_option_three_sixty": "360°", "videoinfo_invidious_embed_link": "Incorporar hiperligação", "Video unavailable": "Vídeo não disponível", "invidious": "Invidious", @@ -435,7 +435,7 @@ "crash_page_refresh": "tentou <a href=\"`x`\">recarregar a página</a>", "crash_page_switch_instance": "tentou <a href=\"`x`\">usar outra instância</a>", "crash_page_read_the_faq": "leu as <a href=\"`x`\">Perguntas frequentes (FAQ)</a>", - "crash_page_search_issue": "procurou se <a href=\"`x`\">o erro já foi reportado no Github</a>", + "crash_page_search_issue": "procurou se <a href=\"`x`\">o erro já foi reportado no GitHub</a>", "crash_page_report_issue": "Se nenhuma opção acima ajudou, por favor <a href=\"`x`\">abra um novo problema no Github</a> (preferencialmente em inglês) e inclua o seguinte texto tal qual (NÃO o traduza):", "user_created_playlists": "`x` listas de reprodução criadas" } diff --git a/locales/ru.json b/locales/ru.json index 88f81395..6ed6b296 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -121,7 +121,7 @@ "Subscriptions": "Подписки", "search": "поиск", "Log out": "Выйти", - "Released under the AGPLv3 on Github.": "Выпущено под лицензией AGPLv3 на Github.", + "Released under the AGPLv3 on Github.": "Выпущено под лицензией AGPLv3 на GitHub.", "Source available here.": "Исходный код доступен здесь.", "View JavaScript license information.": "Посмотреть информацию по лицензии JavaScript.", "View privacy policy.": "Посмотреть политику конфиденциальности.", @@ -329,39 +329,39 @@ "Videos": "Видео", "Playlists": "Плейлисты", "Community": "Сообщество", - "relevance": "Актуальность", - "rating": "Рейтинг", - "date": "Дата загрузки", - "views": "Просмотры", - "content_type": "Тип", - "duration": "Длительность", - "features": "Функции", - "sort": "Сортировать по", - "hour": "Последний час", - "today": "Сегодня", - "week": "Эта неделя", - "month": "Этот месяц", - "year": "Этот год", - "video": "Видео", - "channel": "Канал", - "playlist": "Плейлист", - "movie": "Фильм", - "show": "Показать", - "hd": "HD", - "subtitles": "Субтитры", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "Прямой эфир", - "4k": "4K", - "location": "Местоположение", - "hdr": "HDR", - "filter": "Фильтр", + "search_filters_sort_option_relevance": "Актуальность", + "search_filters_sort_option_rating": "Рейтинг", + "search_filters_sort_option_date": "Дата загрузки", + "search_filters_sort_option_views": "Просмотры", + "search_filters_type_label": "Тип", + "search_filters_duration_label": "Длительность", + "search_filters_features_label": "Функции", + "search_filters_sort_label": "Сортировать по", + "search_filters_date_option_hour": "Последний час", + "search_filters_date_option_today": "Сегодня", + "search_filters_date_option_week": "Эта неделя", + "search_filters_date_option_month": "Этот месяц", + "search_filters_date_option_year": "Этот год", + "search_filters_type_option_video": "Видео", + "search_filters_type_option_channel": "Канал", + "search_filters_type_option_playlist": "Плейлист", + "search_filters_type_option_movie": "Фильм", + "search_filters_type_option_show": "Показать", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "Субтитры", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "Прямой эфир", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "Местоположение", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "Фильтр", "Current version: ": "Текущая версия: ", "next_steps_error_message": "После чего следует попробовать: ", "next_steps_error_message_refresh": "Обновить", "next_steps_error_message_go_to_youtube": "Перейти на YouTube", - "short": "Короткие (< 4 минут)", - "long": "Длинные (> 20 минут)", + "search_filters_duration_option_short": "Короткие (< 4 минут)", + "search_filters_duration_option_long": "Длинные (> 20 минут)", "preferences_quality_dash_option_best": "Наилучшее", "generic_count_weeks_0": "{{count}} неделя", "generic_count_weeks_1": "{{count}} недели", @@ -437,7 +437,7 @@ "generic_count_seconds_0": "{{count}} секунда", "generic_count_seconds_1": "{{count}} секунды", "generic_count_seconds_2": "{{count}} секунд", - "purchased": "Приобретено", + "search_filters_features_option_purchased": "Приобретено", "videoinfo_started_streaming_x_ago": "Трансляция началась `x` назад", "crash_page_switch_instance": "пробовали <a href=\"`x`\">использовать другое зеркало</a>", "crash_page_read_the_faq": "прочли <a href=\"`x`\">Частые Вопросы (ЧаВо)</a>", @@ -457,7 +457,7 @@ "footer_original_source_code": "Оригинальный исходный код", "footer_modfied_source_code": "Изменённый исходный код", "user_saved_playlists": "`x` сохранённых плейлистов", - "crash_page_search_issue": "искали <a href=\"`x`\">похожую проблему на Github</a>", + "crash_page_search_issue": "искали <a href=\"`x`\">похожую проблему на GitHub</a>", "comments_points_count_0": "{{count}} плюс", "comments_points_count_1": "{{count}} плюса", "comments_points_count_2": "{{count}} плюсов", @@ -473,8 +473,9 @@ "preferences_quality_dash_option_240p": "240p", "preferences_quality_dash_option_144p": "144p", "invidious": "Invidious", - "360": "360°", + "search_filters_features_option_three_sixty": "360°", "Video unavailable": "Видео недоступно", "preferences_save_player_pos_label": "Запоминать позицию: ", - "preferences_region_label": "Страна: " + "preferences_region_label": "Страна: ", + "preferences_watch_history_label": "Включить историю просмотров " } diff --git a/locales/sq.json b/locales/sq.json index 3e2a3fb1..c87c5446 100644 --- a/locales/sq.json +++ b/locales/sq.json @@ -26,11 +26,11 @@ "Tamil": "Tamilisht", "Telugu": "Telugu", "Vietnamese": "Vietnamisht", - "creative_commons": "Creative Commons", - "3d": "3D", - "live": "Drejtpërsëdrejti", - "4k": "4K", - "location": "Vendndodhja", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "Drejtpërsëdrejti", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "Vendndodhja", "videoinfo_watch_on_youTube": "Shiheni në YouTube", "videoinfo_youTube_embed_link": "Trupëzojeni", "videoinfo_invidious_embed_link": "Lidhje Trupëzimi", @@ -127,7 +127,7 @@ "Subscriptions": "Pajtime", "search": "kërko", "Log out": "Dilni", - "Released under the AGPLv3 on Github.": "Hedhur në qarkullim në Github sipas licencës AGPLv3.", + "Released under the AGPLv3 on Github.": "Hedhur në qarkullim në GitHub sipas licencës AGPLv3.", "Source available here.": "Burimi i passhëm që këtu.", "View JavaScript license information.": "Shihni hollësi licence JavaScript.", "View privacy policy.": "Shihni rregulla privatësie.", @@ -261,32 +261,32 @@ "Audio mode": "Mënyrë për audion", "Playlists": "Luajlista", "Community": "Bashkësi", - "relevance": "Rëndësi", + "search_filters_sort_option_relevance": "Rëndësi", "Video mode": "Mënyrë video", "Videos": "Video", - "rating": "Vlerësim", - "date": "Datë ngarkimi", - "views": "Numër parjesh", - "content_type": "Lloj", - "duration": "Kohëzgjatje", - "features": "Veçori", - "sort": "Renditi Sipas", - "hour": "Orën e Fundit", - "today": "Sot", - "long": "E gjatë (> 20 minuta)", - "hd": "HD", - "subtitles": "Titra/CC", - "hdr": "HDR", - "week": "Këtë javë", - "month": "Këtë muaj", - "year": "Këtë vit", - "video": "Video", - "channel": "Kanal", - "playlist": "Luajlistë", - "movie": "Film", - "show": "Shfaqe", - "short": "E shkurtër (< 4 minuta)", - "purchased": "Të blera", + "search_filters_sort_option_rating": "Vlerësim", + "search_filters_sort_option_date": "Datë ngarkimi", + "search_filters_sort_option_views": "Numër parjesh", + "search_filters_type_label": "Lloj", + "search_filters_duration_label": "Kohëzgjatje", + "search_filters_features_label": "Veçori", + "search_filters_sort_label": "Renditi Sipas", + "search_filters_date_option_hour": "Orën e Fundit", + "search_filters_date_option_today": "Sot", + "search_filters_duration_option_long": "E gjatë (> 20 minuta)", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "Titra/CC", + "search_filters_features_option_hdr": "HDR", + "search_filters_date_option_week": "Këtë javë", + "search_filters_date_option_month": "Këtë muaj", + "search_filters_date_option_year": "Këtë vit", + "search_filters_type_option_video": "Video", + "search_filters_type_option_channel": "Kanal", + "search_filters_type_option_playlist": "Luajlistë", + "search_filters_type_option_movie": "Film", + "search_filters_type_option_show": "Shfaqe", + "search_filters_duration_option_short": "E shkurtër (< 4 minuta)", + "search_filters_features_option_purchased": "Të blera", "footer_modfied_source_code": "Kod Burim i ndryshuar", "adminprefs_modified_source_code_url_label": "URL e depos së ndryshuar të kodit burim", "none": "asnjë", @@ -370,8 +370,8 @@ "Mongolian": "Mongolisht", "Nepali": "Nepaleze", "Norwegian Bokmål": "Norvegjishte Bokmål", - "360": "360°", - "filter": "Filtroji", + "search_filters_features_option_three_sixty": "360°", + "search_filters_label": "Filtroji", "Current version: ": "Versioni i tanishëm: ", "next_steps_error_message": "Pas të cilës duhet të provoni të: ", "next_steps_error_message_refresh": "Rifreskoje", @@ -437,7 +437,7 @@ "Spanish (Spain)": "Spanjisht (Spanjë)", "Turkish (auto-generated)": "Turqisht (të prodhuara automatikisht)", "Vietnamese (auto-generated)": "Vietnamisht (të prodhuara automatikisht)", - "crash_page_search_issue": "kërkuar për <a href=\"`x`\">çështje ekzistuese në Github</a>", + "crash_page_search_issue": "kërkuar për <a href=\"`x`\">çështje ekzistuese në GitHub</a>", "crash_page_report_issue": "Nëse asnjë nga sa më sipër s’ndihmoi, ju lutemi, <a href=\"`x`\">hapni një çështje në GitHub</a> (mundësisht në anglisht) dhe përfshini në mesazhin tuaj tekstin vijues (MOS e përktheni këtë tekst):", "generic_subscriptions_count": "{{count}} pajtim", "generic_subscriptions_count_plural": "{{count}} pajtime", diff --git a/locales/sr.json b/locales/sr.json index 40e53231..620c83dc 100644 --- a/locales/sr.json +++ b/locales/sr.json @@ -131,26 +131,26 @@ "YouTube comment permalink": "YouTube komentar trajna veza", "Audio mode": "Audio mod", "Playlists": "Plej liste", - "relevance": "Relevantnost", - "rating": "Ocene", - "date": "Datum otpremanja", - "views": "Broj pregleda", + "search_filters_sort_option_relevance": "Relevantnost", + "search_filters_sort_option_rating": "Ocene", + "search_filters_sort_option_date": "Datum otpremanja", + "search_filters_sort_option_views": "Broj pregleda", "`x` marked it with a ❤": "`x` je označio/la ovo sa ❤", - "duration": "Trajanje", - "features": "Karakteristike", - "hour": "Poslednji sat", - "week": "Ove sedmice", - "month": "Ovaj mesec", - "year": "Ove godine", - "video": "Video", - "playlist": "Plej lista", - "movie": "Film", - "long": "Dugo (> 20 minuta)", - "hd": "HD", - "creative_commons": "Creative Commons (Licenca)", - "3d": "3D", - "hdr": "Video Visoke Rezolucije", - "filter": "Filter", + "search_filters_duration_label": "Trajanje", + "search_filters_features_label": "Karakteristike", + "search_filters_date_option_hour": "Poslednji sat", + "search_filters_date_option_week": "Ove sedmice", + "search_filters_date_option_month": "Ovaj mesec", + "search_filters_date_option_year": "Ove godine", + "search_filters_type_option_video": "Video", + "search_filters_type_option_playlist": "Plej lista", + "search_filters_type_option_movie": "Film", + "search_filters_duration_option_long": "Dugo (> 20 minuta)", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_c_commons": "Creative Commons (Licenca)", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_hdr": "Video Visoke Rezolucije", + "search_filters_label": "Filter", "next_steps_error_message": "Nakon čega bi trebali probati: ", "next_steps_error_message_go_to_youtube": "Idi na YouTube", "footer_documentation": "Dokumentacija", @@ -225,13 +225,13 @@ "preferences_category_visual": "Vizuelne preference", "preferences_captions_label": "Podrazumevani titl: ", "Music": "Muzika", - "content_type": "Tip", + "search_filters_type_label": "Tip", "Broken? Try another Invidious Instance": "Ne funkcioniše ispravno? Probajte drugu Invidious instancu", "Tamil": "Tamilski", "Save preferences": "Sačuvaj podešavanja", "Only show latest unwatched video from channel: ": "Prikaži samo poslednje video klipove koji nisu pogledani sa kanala: ", "Xhosa": "Kosa (Jezik)", - "channel": "Kanal", + "search_filters_type_option_channel": "Kanal", "Hungarian": "Mađarski", "Maori": "Maori (Jezik)", "Manage subscriptions": "Upravljaj zapisima", @@ -243,7 +243,7 @@ "preferences_default_home_label": "Podrazumevana početna stranica: ", "Serbian": "Srpski", "License: ": "Licenca: ", - "live": "Uživo", + "search_filters_features_option_live": "Uživo", "Report statistics: ": "Izveštavaj o statistici: ", "Only show latest video from channel: ": "Prikazuj poslednje video klipove samo sa kanala: ", "channel name - reverse": "ime kanala - obrnuto", @@ -266,14 +266,14 @@ "alphabetically": "po alfabetu", "No such user": "Nepostojeći korisnik", "Subscriptions": "Praćenja", - "today": "Danas", + "search_filters_date_option_today": "Danas", "Finnish": "Finski", "Lao": "Laoski", "Login enabled: ": "Prijava omogućena: ", "Shona": "Šona", - "location": "Lokacija", + "search_filters_features_option_location": "Lokacija", "Load more": "Učitaj više", - "Released under the AGPLv3 on Github.": "Izbačeno pod licencom AGPLv3 na Github-u.", + "Released under the AGPLv3 on Github.": "Izbačeno pod licencom AGPLv3 na GitHub-u.", "Slovenian": "Slovenački", "View JavaScript license information.": "Pogledaj informacije licence vezane za JavaScript.", "Chinese (Simplified)": "Kineski (Pojednostavljeni)", @@ -292,7 +292,7 @@ "Czech": "Češki", "Latin": "Latinski", "Videos": "Video klipovi", - "4k": "4К", + "search_filters_features_option_four_k": "4К", "footer_donate_page": "Doniraj", "English": "Engleski", "Arabic": "Arapski", @@ -310,7 +310,7 @@ "Swahili": "Svahili", "Yiddish": "Jidiš", "Zulu": "Zulu", - "subtitles": "Titl/Prevod", + "search_filters_features_option_subtitles": "Titl/Prevod", "Password cannot be longer than 55 characters": "Lozinka ne može biti duža od 55 karaktera", "This channel does not exist.": "Ovaj kanal ne postoji.", "Belarusian": "Beloruski", @@ -329,9 +329,9 @@ "Clear watch history": "Obriši istoriju gledanja", "preferences_category_admin": "Administratorska podešavanja", "published": "objavljeno", - "sort": "Poredaj prema", - "show": "Emisija", - "short": "Kratko (< 4 minute)", + "search_filters_sort_label": "Poredaj prema", + "search_filters_type_option_show": "Emisija", + "search_filters_duration_option_short": "Kratko (< 4 minute)", "Current version: ": "Trenutna verzija: ", "Top enabled: ": "Vrh omogućen: ", "Public": "Javno", diff --git a/locales/sr_Cyrl.json b/locales/sr_Cyrl.json index 40c50674..6aea400a 100644 --- a/locales/sr_Cyrl.json +++ b/locales/sr_Cyrl.json @@ -182,14 +182,14 @@ "Georgian": "Грузијски", "Greek": "Грчки", "Hausa": "Хауса", - "video": "Видео", - "playlist": "Плеј листа", - "movie": "Филм", - "long": "Дуго (> 20 минута)", - "creative_commons": "Creative Commons (Лиценца)", - "live": "Уживо", - "location": "Локација", - "filter": "Филтер", + "search_filters_type_option_video": "Видео", + "search_filters_type_option_playlist": "Плеј листа", + "search_filters_type_option_movie": "Филм", + "search_filters_duration_option_long": "Дуго (> 20 минута)", + "search_filters_features_option_c_commons": "Creative Commons (Лиценца)", + "search_filters_features_option_live": "Уживо", + "search_filters_features_option_location": "Локација", + "search_filters_label": "Филтер", "next_steps_error_message": "Након чега би требали пробати: ", "footer_donate_page": "Донирај", "footer_documentation": "Документација", @@ -247,9 +247,9 @@ "`x` marked it with a ❤": "`x` је означио/ла ово са ❤", "Audio mode": "Аудио мод", "Videos": "Видео клипови", - "views": "Број прегледа", - "features": "Карактеристике", - "today": "Данас", + "search_filters_sort_option_views": "Број прегледа", + "search_filters_features_label": "Карактеристике", + "search_filters_date_option_today": "Данас", "%A %B %-d, %Y": "%A %B %-d, %Y", "preferences_locale_label": "Језик: ", "Persian": "Перзијски", @@ -257,7 +257,7 @@ "": "Прикажи `x` коментара", "([^.,0-9]|^)1([^.,0-9]|$)": "Прикажи `x` коментар" }, - "channel": "Канал", + "search_filters_type_option_channel": "Канал", "Haitian Creole": "Хаићански Креолски", "Armenian": "Јерменски", "next_steps_error_message_go_to_youtube": "Иди на YouTube", @@ -265,10 +265,10 @@ "preferences_vr_mode_label": "Интерактивни видео клипови у 360 степени: ", "Switch Invidious Instance": "Промени Invidious инстанцу", "Portuguese": "Португалски", - "week": "Ове седмице", - "show": "Емисија", + "search_filters_date_option_week": "Ове седмице", + "search_filters_type_option_show": "Емисија", "Fallback comments: ": "Коментари у случају отказивања: ", - "hdr": "Видео Високе Резолуције", + "search_filters_features_option_hdr": "Видео Високе Резолуције", "About": "О програму", "Kazakh": "Казашки", "Shared `x`": "Подељено `x`", @@ -277,7 +277,7 @@ "Erroneous challenge": "Погрешан изазов", "Danish": "Дански", "Could not get channel info.": "Узимање података о каналу није успело.", - "hd": "HD", + "search_filters_features_option_hd": "HD", "Slovenian": "Словеначки", "Load more": "Учитај више", "German": "Немачки", @@ -288,12 +288,12 @@ "Southern Sotho": "Јужни Сото", "Popular": "Популарно", "Gujarati": "Гуџарати", - "year": "Ове године", + "search_filters_date_option_year": "Ове године", "Irish": "Ирски", "YouTube comment permalink": "YouTube коментар трајна веза", "Malagasy": "Малгашки", "Token is expired, please try again": "Жетон је истекао, молимо вас да покушате поново", - "short": "Кратко (< 4 минуте)", + "search_filters_duration_option_short": "Кратко (< 4 минуте)", "Samoan": "Самоански", "Tamil": "Тамилски", "Ukrainian": "Украјински", @@ -307,22 +307,22 @@ "Lithuanian": "Литвански", "Icelandic": "Исландски", "Thai": "Тајски", - "month": "Овај месец", - "content_type": "Тип", - "hour": "Последњи сат", + "search_filters_date_option_month": "Овај месец", + "search_filters_type_label": "Тип", + "search_filters_date_option_hour": "Последњи сат", "Spanish": "Шпански", - "date": "Датум отпремања", + "search_filters_sort_option_date": "Датум отпремања", "View as playlist": "Погледај као плеј листу", - "relevance": "Релевантност", + "search_filters_sort_option_relevance": "Релевантност", "Estonian": "Естонски", "Sinhala": "Синхалешки", "Corsican": "Корзикански", "Filipino": "Филипино", "Gaming": "Игрице", "Movies": "Филмови", - "rating": "Оцене", + "search_filters_sort_option_rating": "Оцене", "Top enabled: ": "Врх омогућен: ", - "Released under the AGPLv3 on Github.": "Избачено под лиценцом AGPLv3 на Github-у.", + "Released under the AGPLv3 on Github.": "Избачено под лиценцом AGPLv3 на GitHub-у.", "Afrikaans": "Африканс", "preferences_automatic_instance_redirect_label": "Аутоматско пребацивање на другу инстанцу у случају отказивања (пречи ће назад на редирецт.инвидиоус.ио): ", "Invalid TFA code": "Неважећа TFA кода", @@ -340,9 +340,9 @@ "Swedish": "Шведски", "Music": "Музика", "Download as: ": "Преузми као: ", - "duration": "Трајање", - "sort": "Поредај према", - "subtitles": "Титл/Превод", + "search_filters_duration_label": "Трајање", + "search_filters_sort_label": "Поредај према", + "search_filters_features_option_subtitles": "Титл/Превод", "preferences_extend_desc_label": "Аутоматски прикажи цео опис видеа: ", "Show less": "Прикажи мање", "Broken? Try another Invidious Instance": "Не функционише исправно? Пробајте другу Invidious инстанцу", @@ -359,8 +359,8 @@ "Top": "Врх", "Video mode": "Видео мод", "footer_source_code": "Изворна Кода", - "3d": "3D", - "4k": "4K", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_four_k": "4K", "Erroneous CAPTCHA": "Погрешна CAPTCHA", "`x` ago": "пре `x`", "Arabic": "Арапски", diff --git a/locales/sv-SE.json b/locales/sv-SE.json index 98c24cc3..44cb92ed 100644 --- a/locales/sv-SE.json +++ b/locales/sv-SE.json @@ -327,39 +327,39 @@ "Videos": "Videor", "Playlists": "Spellistor", "Community": "Gemenskap", - "relevance": "relevans", - "rating": "rankning", - "date": "datum", - "views": "visningar", - "content_type": "Typ", - "duration": "Varaktighet", - "features": "Funktioner", - "sort": "Sortera efter", - "hour": "timme", - "today": "idag", - "week": "vecka", - "month": "månad", - "year": "år", - "video": "video", - "channel": "kanal", - "playlist": "spellista", - "movie": "film", - "show": "tv-serie", - "hd": "hd", - "subtitles": "undertexter", - "creative_commons": "creative_commons", - "3d": "3d", - "live": "live", - "4k": "4k", - "location": "plats", - "hdr": "hdr", - "filter": "Filter", + "search_filters_sort_option_relevance": "Relevans", + "search_filters_sort_option_rating": "Rankning", + "search_filters_sort_option_date": "Datum", + "search_filters_sort_option_views": "Visningar", + "search_filters_type_label": "Typ", + "search_filters_duration_label": "Varaktighet", + "search_filters_features_label": "Funktioner", + "search_filters_sort_label": "Sortera efter", + "search_filters_date_option_hour": "timme", + "search_filters_date_option_today": "idag", + "search_filters_date_option_week": "vecka", + "search_filters_date_option_month": "månad", + "search_filters_date_option_year": "år", + "search_filters_type_option_video": "video", + "search_filters_type_option_channel": "kanal", + "search_filters_type_option_playlist": "spellista", + "search_filters_type_option_movie": "film", + "search_filters_type_option_show": "tv-serie", + "search_filters_features_option_hd": "hd", + "search_filters_features_option_subtitles": "undertexter", + "search_filters_features_option_c_commons": "creative_commons", + "search_filters_features_option_three_d": "3d", + "search_filters_features_option_live": "live", + "search_filters_features_option_four_k": "4k", + "search_filters_features_option_location": "plats", + "search_filters_features_option_hdr": "hdr", + "search_filters_label": "Filter", "Current version: ": "Nuvarande version: ", "next_steps_error_message_refresh": "Uppdatera", "next_steps_error_message_go_to_youtube": "Gå till Youtube", - "Released under the AGPLv3 on Github.": "Publicerad under AGPLv3 på Github.", + "Released under the AGPLv3 on Github.": "Publicerad under AGPLv3 på GitHub.", "footer_source_code": "Källkod", - "long": "Lång (> 20 minuter)", + "search_filters_duration_option_long": "Lång (> 20 minuter)", "footer_documentation": "Dokumentation", - "short": "Kort (< 4 minuter)" + "search_filters_duration_option_short": "Kort (< 4 minuter)" } diff --git a/locales/tr.json b/locales/tr.json index 65648fd7..75de6d33 100644 --- a/locales/tr.json +++ b/locales/tr.json @@ -121,7 +121,7 @@ "Subscriptions": "Abonelikler", "search": "ara", "Log out": "Çıkış yap", - "Released under the AGPLv3 on Github.": "Github'da AGPLv3 altında yayınlandı.", + "Released under the AGPLv3 on Github.": "GitHub'da AGPLv3 altında yayınlandı.", "Source available here.": "Kaynak kodları burada bulunabilir.", "View JavaScript license information.": "JavaScript lisans bilgilerini görüntüle.", "View privacy policy.": "Gizlilik politikasını görüntüle.", @@ -329,39 +329,39 @@ "Videos": "Videolar", "Playlists": "Oynatma listeleri", "Community": "Topluluk", - "relevance": "İlgi", - "rating": "Değerlendirme", - "date": "Yükleme tarihi", - "views": "Görüntüleme sayısı", - "content_type": "Tür", - "duration": "Süre", - "features": "Özellikler", - "sort": "Sıralama Ölçütü", - "hour": "Son Saat", - "today": "Bugün", - "week": "Bu hafta", - "month": "Bu ay", - "year": "Bu yıl", - "video": "Video", - "channel": "Kanal", - "playlist": "Oynatma listesi", - "movie": "Film", - "show": "Gösteri", - "hd": "HD", - "subtitles": "Alt yazılar", - "creative_commons": "Creative Commons", - "3d": "3B", - "live": "Canlı", - "4k": "4K", - "location": "Konum", - "hdr": "HDR", - "filter": "Filtrele", + "search_filters_sort_option_relevance": "İlgi", + "search_filters_sort_option_rating": "Değerlendirme", + "search_filters_sort_option_date": "Yükleme tarihi", + "search_filters_sort_option_views": "Görüntüleme sayısı", + "search_filters_type_label": "Tür", + "search_filters_duration_label": "Süre", + "search_filters_features_label": "Özellikler", + "search_filters_sort_label": "Sıralama Ölçütü", + "search_filters_date_option_hour": "Son Saat", + "search_filters_date_option_today": "Bugün", + "search_filters_date_option_week": "Bu hafta", + "search_filters_date_option_month": "Bu ay", + "search_filters_date_option_year": "Bu yıl", + "search_filters_type_option_video": "Video", + "search_filters_type_option_channel": "Kanal", + "search_filters_type_option_playlist": "Oynatma listesi", + "search_filters_type_option_movie": "Film", + "search_filters_type_option_show": "Gösteri", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "Alt yazılar", + "search_filters_features_option_c_commons": "Creative Commons", + "search_filters_features_option_three_d": "3B", + "search_filters_features_option_live": "Canlı", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "Konum", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "Filtrele", "Current version: ": "Şu anki sürüm: ", "next_steps_error_message": "Bundan sonra şunları denemelisiniz: ", "next_steps_error_message_refresh": "Yenile", "next_steps_error_message_go_to_youtube": "YouTube'a git", - "short": "Kısa (4 dakikadan az)", - "long": "Uzun (20 dakikadan fazla)", + "search_filters_duration_option_short": "Kısa (4 dakikadan az)", + "search_filters_duration_option_long": "Uzun (20 dakikadan fazla)", "footer_documentation": "Belgelendirme", "footer_source_code": "Kaynak kodları", "footer_original_source_code": "Orijinal kaynak kodları", @@ -394,8 +394,8 @@ "Video unavailable": "Video kullanılamıyor", "preferences_quality_option_dash": "DASH (uyarlanabilir kalite)", "preferences_quality_dash_option_auto": "Otomatik", - "purchased": "Satın alınan", - "360": "360°", + "search_filters_features_option_purchased": "Satın alınan", + "search_filters_features_option_three_sixty": "360°", "videoinfo_watch_on_youTube": "YouTube'da izle", "download_subtitles": "Alt yazılar - `x` (.vtt)", "preferences_save_player_pos_label": "Oynatma konumunu kaydet: ", @@ -436,7 +436,7 @@ "crash_page_refresh": "<a href=\"`x`\">sayfayı yenilemeye</a> çalıştınız", "crash_page_switch_instance": "<a href=\"`x`\">başka bir örnek kullanmaya</a> çalıştınız", "crash_page_read_the_faq": "<a href=\"`x`\">Sık Sorulan Soruları (SSS)</a> okudunuz", - "crash_page_search_issue": "<a href=\"`x`\">Github'daki sorunlarda</a> aradınız", + "crash_page_search_issue": "<a href=\"`x`\">GitHub'daki sorunlarda</a> aradınız", "crash_page_report_issue": "Yukarıdakilerin hiçbiri yardımcı olmadıysa, lütfen <a href=\"`x`\">GitHub'da yeni bir sorun açın</a> (tercihen İngilizce) ve mesajınıza aşağıdaki metni ekleyin (bu metni ÇEVİRMEYİN):", "English (United Kingdom)": "İngilizce (Birleşik Krallık)", "Chinese": "Çince", @@ -460,5 +460,6 @@ "German (auto-generated)": "Almanca (otomatik oluşturuldu)", "Portuguese (auto-generated)": "Portekizce (otomatik oluşturuldu)", "Spanish (Spain)": "İspanyolca (İspanya)", - "Vietnamese (auto-generated)": "Vietnamca (otomatik oluşturuldu)" + "Vietnamese (auto-generated)": "Vietnamca (otomatik oluşturuldu)", + "preferences_watch_history_label": "İzleme geçmişini etkinleştir: " } diff --git a/locales/uk.json b/locales/uk.json index 097752d9..5b006999 100644 --- a/locales/uk.json +++ b/locales/uk.json @@ -21,15 +21,15 @@ "No": "Ні", "Import and Export Data": "Імпорт і експорт даних", "Import": "Імпорт", - "Import Invidious data": "Імпортувати дані Invidious", - "Import YouTube subscriptions": "Імпортувати підписки з YouTube", + "Import Invidious data": "Імпортувати JSON-дані Invidious", + "Import YouTube subscriptions": "Імпортувати підписки з YouTube чи OPML", "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", + "Export data as JSON": "Експортувати дані Invidious у форматі JSON", "Delete account?": "Видалити обліківку?", "History": "Історія", "An alternative front-end to YouTube": "Альтернативний фронтенд до YouTube", @@ -189,7 +189,7 @@ "No such user": "Недопустиме ім’я користувача", "Token is expired, please try again": "Термін дії токена закінчився, спробуйте пізніше", "English": "Англійська", - "English (auto-generated)": "Англійська (сгенеровано автоматично)", + "English (auto-generated)": "Англійська (автогенератор)", "Afrikaans": "Африкаанс", "Albanian": "Албанська", "Amharic": "Амхарська", @@ -275,7 +275,7 @@ "Somali": "Сомалійська", "Southern Sotho": "Сесото (південна сото)", "Spanish": "Іспанська", - "Spanish (Latin America)": "Испанська (Латинська Америка)", + "Spanish (Latin America)": "Іспанська (Латинська Америка)", "Sundanese": "Сунданська", "Swahili": "Суахілі", "Swedish": "Шведська", @@ -318,5 +318,164 @@ "Videos": "Відео", "Playlists": "Плейлисти", "Community": "Спільнота", - "Current version: ": "Поточна версія: " + "Current version: ": "Поточна версія: ", + "generic_views_count_0": "{{count}} перегляд", + "generic_views_count_1": "{{count}} перегляди", + "generic_views_count_2": "{{count}} переглядів", + "generic_videos_count_0": "{{count}} відео", + "generic_videos_count_1": "{{count}} відео", + "generic_videos_count_2": "{{count}} відео", + "generic_playlists_count_0": "{{count}} список відтворення", + "generic_playlists_count_1": "{{count}} списки відтворення", + "generic_playlists_count_2": "{{count}} списків відтворення", + "generic_subscribers_count_0": "{{count}} стежить", + "generic_subscribers_count_1": "{{count}} стежать", + "generic_subscribers_count_2": "{{count}} стежать", + "generic_subscriptions_count_0": "{{count}} підписка", + "generic_subscriptions_count_1": "{{count}} підписки", + "generic_subscriptions_count_2": "{{count}} підписок", + "tokens_count_0": "{{count}} токен", + "tokens_count_1": "{{count}} токени", + "tokens_count_2": "{{count}} токенів", + "subscriptions_unseen_notifs_count_0": "{{count}} нове сповіщення", + "subscriptions_unseen_notifs_count_1": "{{count}} нові сповіщення", + "subscriptions_unseen_notifs_count_2": "{{count}} нових сповіщень", + "comments_view_x_replies_0": "Переглянути {{count}} відповідь", + "comments_view_x_replies_1": "Переглянути {{count}} відповіді", + "comments_view_x_replies_2": "Переглянути {{count}} відповідей", + "generic_count_years_0": "{{count}} рік", + "generic_count_years_1": "{{count}} роки", + "generic_count_years_2": "{{count}} років", + "generic_count_weeks_0": "{{count}} тиждень", + "generic_count_weeks_1": "{{count}} тижні", + "generic_count_weeks_2": "{{count}} тижнів", + "generic_count_days_0": "{{count}} день", + "generic_count_days_1": "{{count}} дні", + "generic_count_days_2": "{{count}} днів", + "generic_count_hours_0": "{{count}} годину", + "generic_count_hours_1": "{{count}} години", + "generic_count_hours_2": "{{count}} годин", + "content_type": "Тип", + "crash_page_switch_instance": "спробуйте <a href=\"`x`\">використати інший сервер</a>", + "crash_page_read_the_faq": "прочитайте <a href=\"`x`\">часті питання (ЧаП)</a>", + "crash_page_search_issue": "перегляньте <a href=\"`x`\">наявні обговорення на GitHub</a>", + "crash_page_report_issue": "Якщо нічого не допомогло, просимо <a href=\"`x`\">створити обговорення на GitHub</a> (бажано англійською), додавши наступний текст у повідомлення (НЕ перекладайте цього тексту):", + "Chinese (Hong Kong)": "Китайська (Гонконг)", + "Cantonese (Hong Kong)": "Кантонська (Гонконг)", + "Chinese": "Китайська", + "Chinese (China)": "Китайська (Китай)", + "Interlingue": "Інтерлінгва", + "Italian (auto-generated)": "Італійська (автогенератор)", + "Turkish (auto-generated)": "Турецька (автогенератор)", + "Vietnamese (auto-generated)": "В'єтнамська (автогенератор)", + "user_created_playlists": "Створено списків відтворення: `x`", + "user_saved_playlists": "Збережено списків відтворення: `x`", + "Video unavailable": "Відео недоступне", + "preferences_watch_history_label": "Історія переглядів: ", + "preferences_quality_dash_label": "Бажана DASH-якість відео: ", + "preferences_quality_dash_option_144p": "144p", + "preferences_vr_mode_label": "Взаємодія з 360-градусними відео (потребує WebGL): ", + "Released under the AGPLv3 on Github.": "Випущено під AGPLv3 на GitHub.", + "English (United Kingdom)": "Англійська (Сполучене Королівство)", + "English (United States)": "Англійська (США)", + "French (auto-generated)": "Французька (автогенератор)", + "German (auto-generated)": "Німецька (автогенератор)", + "Portuguese (auto-generated)": "Португальська (автогенератор)", + "Portuguese (Brazil)": "Португальська (Бразилія)", + "Russian (auto-generated)": ":^)", + "Spanish (auto-generated)": "Іспанська (автогенератор)", + "Spanish (Mexico)": "Іспанська (Мексика)", + "Spanish (Spain)": "Іспанська (Іспанія)", + "views": "Кількість переглядів", + "today": "Сьогодні", + "playlist": "Список відтворення", + "long": "Довге (понад 20 хвилин)", + "hd": "HD", + "creative_commons": "Creative Commons", + "3d": "3D", + "hdr": "HDR", + "360": "360°", + "next_steps_error_message_go_to_youtube": "Перейти до YouTube", + "footer_donate_page": "Пожертвувати", + "footer_documentation": "Документація", + "footer_source_code": "Вихідний код", + "footer_original_source_code": "Оригінал вихідного коду", + "footer_modfied_source_code": "Змінений вихідний код", + "adminprefs_modified_source_code_url_label": "URL-адреса репозиторію зміненого вихідного коду", + "none": "нема", + "videoinfo_started_streaming_x_ago": "Трансляцію розпочато `x` тому", + "crash_page_you_found_a_bug": "Схоже, ви знайшли ваду в Invidious!", + "crash_page_before_reporting": "Перш ніж прозвітувати про ваду:", + "crash_page_refresh": "спробуйте <a href=\"`x`\">оновити сторінку</a>", + "preferences_quality_dash_option_auto": "Авто", + "preferences_quality_dash_option_best": "Найкраща", + "preferences_quality_dash_option_worst": "Найгірша", + "preferences_quality_dash_option_1440p": "1440p", + "preferences_quality_dash_option_1080p": "1080p", + "preferences_save_player_pos_label": "Зберегти позицію відтворення: ", + "preferences_show_nick_label": "Псевдонім угорі: ", + "Show more": "Докладніше", + "week": "Цей тиждень", + "year": "Цей рік", + "video": "Відео", + "channel": "Канал", + "subtitles": "Субтитри", + "live": "Наживо", + "4k": "4K", + "filter": "Фільтр", + "next_steps_error_message": "Після чого спробуйте: ", + "next_steps_error_message_refresh": "Оновити сторінку", + "relevance": "Доречність", + "rating": "Рейтинг", + "duration": "Тривалість", + "sort": "Порядок", + "movie": "Фільм", + "Search": "Пошук", + "location": "Місце", + "preferences_extend_desc_label": "Автоматично розширювати опис відео: ", + "month": "Цей місяць", + "features": "Функції", + "preferences_category_misc": "Різноманітні параметри", + "date": "Дата вивантаження", + "hour": "Ця година", + "Show less": "Коротше", + "preferences_quality_option_small": "Низька", + "preferences_quality_dash_option_240p": "240p", + "preferences_quality_option_medium": "Середня", + "preferences_quality_dash_option_4320p": "4320p", + "invidious": "Invidious", + "preferences_quality_dash_option_720p": "720p", + "preferences_quality_dash_option_360p": "360p", + "preferences_region_label": "Ваша країна: ", + "preferences_quality_option_dash": "DASH (змінна якість)", + "preferences_quality_option_hd720": "HD720", + "preferences_quality_dash_option_2160p": "2160p", + "preferences_automatic_instance_redirect_label": "Автоматична зміна сервера (redirect.invidious.io як резерв): ", + "Switch Invidious Instance": "Інший сервер Invidious", + "preferences_quality_dash_option_480p": "480p", + "Broken? Try another Invidious Instance": "Не працює? Спробуйте інший сервер Invidious", + "Chinese (Taiwan)": "Китайська (Тайвань)", + "Dutch (auto-generated)": "Нідерландська (автогенератор)", + "Indonesian (auto-generated)": "Індонезійська (автогенератор)", + "Japanese (auto-generated)": "Японська (автогенератор)", + "show": "Шоу", + "Korean (auto-generated)": "Корейська (автогенератор)", + "generic_count_months_0": "{{count}} місяць", + "generic_count_months_1": "{{count}} місяці", + "generic_count_months_2": "{{count}} місяців", + "short": "Коротке (до 4 хвилин)", + "purchased": "Придбання", + "videoinfo_youTube_embed_link": "Вкласти", + "generic_count_minutes_0": "{{count}} хвилину", + "generic_count_minutes_1": "{{count}} хвилини", + "generic_count_minutes_2": "{{count}} хвилин", + "generic_count_seconds_0": "{{count}} секунду", + "generic_count_seconds_1": "{{count}} секунди", + "generic_count_seconds_2": "{{count}} секунд", + "videoinfo_watch_on_youTube": "Переглянути на YouTube", + "videoinfo_invidious_embed_link": "Вкласти посилання", + "download_subtitles": "Субтитри — `x` (.vtt)", + "comments_points_count_0": "{{count}} пункт", + "comments_points_count_1": "{{count}} пункти", + "comments_points_count_2": "{{count}} пунктів" } diff --git a/locales/vi.json b/locales/vi.json index a8550686..3112ef4a 100644 --- a/locales/vi.json +++ b/locales/vi.json @@ -315,32 +315,32 @@ "Videos": "Video", "Playlists": "Danh sách phát", "Community": "Cộng đồng", - "relevance": "liên quan", - "rating": "Xếp hạng", - "date": "ngày", - "views": "lượt xem", - "content_type": "content_type", - "duration": "thời lượng", - "features": "đặc trưng", - "sort": "sắp xếp", - "hour": "giờ", - "today": "hôm nay", - "week": "tuần", - "month": "tháng", - "year": "năm", - "video": "video", - "channel": "kênh", - "playlist": "danh sách phát", - "movie": "bộ phim", - "show": "chỉ", - "hd": "hd", - "subtitles": "phụ đề", - "creative_commons": "Commons sáng tạo", - "3d": "3d", - "live": "trực tiếp", - "4k": "4k", - "location": "vị trí", - "hdr": "hdr", - "filter": "bộ lọc", + "search_filters_sort_option_relevance": "liên quan", + "search_filters_sort_option_rating": "Xếp hạng", + "search_filters_sort_option_date": "ngày", + "search_filters_sort_option_views": "lượt xem", + "search_filters_type_label": "content_type", + "search_filters_duration_label": "thời lượng", + "search_filters_features_label": "đặc trưng", + "search_filters_sort_label": "sắp xếp", + "search_filters_date_option_hour": "giờ", + "search_filters_date_option_today": "hôm nay", + "search_filters_date_option_week": "tuần", + "search_filters_date_option_month": "tháng", + "search_filters_date_option_year": "năm", + "search_filters_type_option_video": "video", + "search_filters_type_option_channel": "kênh", + "search_filters_type_option_playlist": "danh sách phát", + "search_filters_type_option_movie": "bộ phim", + "search_filters_type_option_show": "chỉ", + "search_filters_features_option_hd": "hd", + "search_filters_features_option_subtitles": "phụ đề", + "search_filters_features_option_c_commons": "Commons sáng tạo", + "search_filters_features_option_three_d": "3d", + "search_filters_features_option_live": "trực tiếp", + "search_filters_features_option_four_k": "4k", + "search_filters_features_option_location": "vị trí", + "search_filters_features_option_hdr": "hdr", + "search_filters_label": "bộ lọc", "Current version: ": "Phiên bản hiện tại: " } diff --git a/locales/zh-CN.json b/locales/zh-CN.json index f21fe8da..bc1a3e4b 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -128,7 +128,7 @@ "subscriptions_unseen_notifs_count_0": "{{count}} 条未读通知", "search": "搜索", "Log out": "登出", - "Released under the AGPLv3 on Github.": "依据 AGPLv3 许可证发布于 Github。", + "Released under the AGPLv3 on Github.": "依据 AGPLv3 许可证发布于 GitHub。", "Source available here.": "源码可在此查看。", "View JavaScript license information.": "查看 JavaScript 协议信息。", "View privacy policy.": "查看隐私政策。", @@ -345,39 +345,39 @@ "Videos": "视频", "Playlists": "播放列表", "Community": "社区", - "relevance": "相关度", - "rating": "评分", - "date": "上传日期", - "views": "观看次数", - "content_type": "类型", - "duration": "持续时间", - "features": "功能", - "sort": "排序依据", - "hour": "上个小时", - "today": "今日", - "week": "本周", - "month": "本月", - "year": "今年", - "video": "视频", - "channel": "频道", - "playlist": "播放列表", - "movie": "电影", - "show": "真人秀", - "hd": "高清", - "subtitles": "字幕", - "creative_commons": "creative_commons 许可", - "3d": "3d", - "live": "直播", - "4k": "4k", - "location": "位置", - "hdr": "hdr", - "filter": "过滤器", + "search_filters_sort_option_relevance": "相关度", + "search_filters_sort_option_rating": "评分", + "search_filters_sort_option_date": "上传日期", + "search_filters_sort_option_views": "观看次数", + "search_filters_type_label": "类型", + "search_filters_duration_label": "持续时间", + "search_filters_features_label": "功能", + "search_filters_sort_label": "排序依据", + "search_filters_date_option_hour": "上个小时", + "search_filters_date_option_today": "今日", + "search_filters_date_option_week": "本周", + "search_filters_date_option_month": "本月", + "search_filters_date_option_year": "今年", + "search_filters_type_option_video": "视频", + "search_filters_type_option_channel": "频道", + "search_filters_type_option_playlist": "播放列表", + "search_filters_type_option_movie": "电影", + "search_filters_type_option_show": "真人秀", + "search_filters_features_option_hd": "高清", + "search_filters_features_option_subtitles": "字幕", + "search_filters_features_option_c_commons": "creative_commons 许可", + "search_filters_features_option_three_d": "3d", + "search_filters_features_option_live": "直播", + "search_filters_features_option_four_k": "4k", + "search_filters_features_option_location": "位置", + "search_filters_features_option_hdr": "hdr", + "search_filters_label": "过滤器", "Current version: ": "当前版本: ", "next_steps_error_message": "在此之后你应尝试: ", "next_steps_error_message_refresh": "刷新", "next_steps_error_message_go_to_youtube": "转到 YouTube", - "short": "短(少于4分钟)", - "long": "长(多于 20 分钟)", + "search_filters_duration_option_short": "短(少于4分钟)", + "search_filters_duration_option_long": "长(多于 20 分钟)", "footer_documentation": "文档", "footer_source_code": "源代码", "footer_modfied_source_code": "修改的源代码", @@ -391,7 +391,7 @@ "crash_page_refresh": "试着 <a href=\"`x`\">刷新页面</a>", "crash_page_switch_instance": "试着<a href=\"`x`\">使用另一个实例</a>", "crash_page_read_the_faq": "阅读<a href=\"`x`\">常见问题</a>", - "crash_page_search_issue": "搜索过 <a href=\"`x`\">Github 上的现有 issue</a>", + "crash_page_search_issue": "搜索过 <a href=\"`x`\">GitHub 上的现有 issue</a>", "crash_page_report_issue": "如果以上这些都没用的话,请<a href=\"`x`\">在 Github 上新开一个 issue</a>(最好用英语撰写),并在你的消息中包含以下文本(不要翻译该文本):", "videoinfo_invidious_embed_link": "嵌入链接", "download_subtitles": "字幕 - `x` (.vtt)", @@ -418,8 +418,8 @@ "user_created_playlists": "`x` 创建了播放列表", "user_saved_playlists": "`x` 保存了播放列表", "Video unavailable": "视频不可用", - "purchased": "已购买", - "360": "360°", + "search_filters_features_option_purchased": "已购买", + "search_filters_features_option_three_sixty": "360°", "none": "无", "preferences_save_player_pos_label": "保存播放位置: ", "Spanish (Mexico)": "西班牙语 (墨西哥)", @@ -444,5 +444,6 @@ "Dutch (auto-generated)": "荷兰语 (自动生成)", "French (auto-generated)": "法语 (自动生成)", "Turkish (auto-generated)": "土耳其语 (自动生成)", - "Spanish (Spain)": "西班牙语 (西班牙)" + "Spanish (Spain)": "西班牙语 (西班牙)", + "preferences_watch_history_label": "启用观看历史: " } diff --git a/locales/zh-TW.json b/locales/zh-TW.json index 2fdb2036..189dba18 100644 --- a/locales/zh-TW.json +++ b/locales/zh-TW.json @@ -345,39 +345,39 @@ "Videos": "影片", "Playlists": "播放清單", "Community": "社群", - "relevance": "關聯", - "rating": "評分", - "date": "日期", - "views": "檢視", - "content_type": "內容類型", - "duration": "時長", - "features": "特色", - "sort": "排序", - "hour": "小時", - "today": "今天", - "week": "週", - "month": "月", - "year": "年", - "video": "影片", - "channel": "頻道", - "playlist": "播放清單", - "movie": "電影", - "show": "秀", - "hd": "HD", - "subtitles": "字幕", - "creative_commons": "創用 CC", - "3d": "3D", - "live": "直播", - "4k": "4K", - "location": "位置", - "hdr": "HDR", - "filter": "篩選條件", + "search_filters_sort_option_relevance": "關聯", + "search_filters_sort_option_rating": "評分", + "search_filters_sort_option_date": "日期", + "search_filters_sort_option_views": "檢視", + "search_filters_type_label": "內容類型", + "search_filters_duration_label": "時長", + "search_filters_features_label": "特色", + "search_filters_sort_label": "排序", + "search_filters_date_option_hour": "小時", + "search_filters_date_option_today": "今天", + "search_filters_date_option_week": "週", + "search_filters_date_option_month": "月", + "search_filters_date_option_year": "年", + "search_filters_type_option_video": "影片", + "search_filters_type_option_channel": "頻道", + "search_filters_type_option_playlist": "播放清單", + "search_filters_type_option_movie": "電影", + "search_filters_type_option_show": "秀", + "search_filters_features_option_hd": "HD", + "search_filters_features_option_subtitles": "字幕", + "search_filters_features_option_c_commons": "創用 CC", + "search_filters_features_option_three_d": "3D", + "search_filters_features_option_live": "直播", + "search_filters_features_option_four_k": "4K", + "search_filters_features_option_location": "位置", + "search_filters_features_option_hdr": "HDR", + "search_filters_label": "篩選條件", "Current version: ": "目前版本: ", "next_steps_error_message": "之後您應該嘗試: ", "next_steps_error_message_refresh": "重新整理", "next_steps_error_message_go_to_youtube": "到 YouTube", - "short": "短(小於4分鐘)", - "long": "長(多於20分鐘)", + "search_filters_duration_option_short": "短(小於4分鐘)", + "search_filters_duration_option_long": "長(多於20分鐘)", "footer_documentation": "文件", "footer_source_code": "原始碼", "footer_original_source_code": "原本的原始碼", @@ -398,8 +398,8 @@ "preferences_quality_dash_option_240p": "240p", "preferences_quality_dash_option_144p": "144p", "invidious": "Invidious", - "purchased": "已購買", - "360": "360°", + "search_filters_features_option_purchased": "已購買", + "search_filters_features_option_three_sixty": "360°", "none": "無", "videoinfo_started_streaming_x_ago": "`x` 前開始串流", "videoinfo_watch_on_youTube": "在 YouTube 上觀看", @@ -444,5 +444,6 @@ "Indonesian (auto-generated)": "印尼語(自動產生)", "Portuguese (Brazil)": "葡萄牙語(巴西)", "Japanese (auto-generated)": "日語(自動產生)", - "Portuguese (auto-generated)": "葡萄牙語(自動產生)" + "Portuguese (auto-generated)": "葡萄牙語(自動產生)", + "preferences_watch_history_label": "啟用觀看紀錄: " } diff --git a/spec/invidious/helpers_spec.cr b/spec/invidious/helpers_spec.cr index b2436989..5ecebef3 100644 --- a/spec/invidious/helpers_spec.cr +++ b/spec/invidious/helpers_spec.cr @@ -29,20 +29,6 @@ Spectator.describe "Helper" do end end - describe "#produce_search_params" do - it "correctly produces token for searching with specified filters" do - expect(produce_search_params).to eq("CAASAhABSAA%3D") - - expect(produce_search_params(sort: "upload_date", content_type: "video")).to eq("CAISAhABSAA%3D") - - expect(produce_search_params(content_type: "playlist")).to eq("CAASAhADSAA%3D") - - expect(produce_search_params(sort: "date", content_type: "video", features: ["hd", "cc", "purchased", "hdr"])).to eq("CAISCxABIAEwAUgByAEBSAA%3D") - - expect(produce_search_params(content_type: "channel")).to eq("CAASAhACSAA%3D") - end - end - describe "#produce_comment_continuation" do it "correctly produces a continuation token for comments" do expect(produce_comment_continuation("_cE8xSu6swE", "ADSJ_i2qvJeFtL0htmS5_K5Ctj3eGFVBMWL9Wd42o3kmUL6_mAzdLp85-liQZL0mYr_16BhaggUqX652Sv9JqV6VXinShSP-ZT6rL4NolPBaPXVtJsO5_rA_qE3GubAuLFw9uzIIXU2-HnpXbdgPLWTFavfX206hqWmmpHwUOrmxQV_OX6tYkM3ux3rPAKCDrT8eWL7MU3bLiNcnbgkW8o0h8KYLL_8BPa8LcHbTv8pAoNkjerlX1x7K4pqxaXPoyz89qNlnh6rRx6AXgAzzoHH1dmcyQ8CIBeOHg-m4i8ZxdX4dP88XWrIFg-jJGhpGP8JUMDgZgavxVx225hUEYZMyrLGler5em4FgbG62YWC51moLDLeYEA")).to eq("EkMSC19jRTh4U3U2c3dFyAEA4AEBogINKP___________wFAAMICHQgEGhdodHRwczovL3d3dy55b3V0dWJlLmNvbSIAGAYyjAMK9gJBRFNKX2kycXZKZUZ0TDBodG1TNV9LNUN0ajNlR0ZWQk1XTDlXZDQybzNrbVVMNl9tQXpkTHA4NS1saVFaTDBtWXJfMTZCaGFnZ1VxWDY1MlN2OUpxVjZWWGluU2hTUC1aVDZyTDROb2xQQmFQWFZ0SnNPNV9yQV9xRTNHdWJBdUxGdzl1eklJWFUyLUhucFhiZGdQTFdURmF2ZlgyMDZocVdtbXBId1VPcm14UVZfT1g2dFlrTTN1eDNyUEFLQ0RyVDhlV0w3TVUzYkxpTmNuYmdrVzhvMGg4S1lMTF84QlBhOExjSGJUdjhwQW9Oa2plcmxYMXg3SzRwcXhhWFBveXo4OXFObG5oNnJSeDZBWGdBenpvSEgxZG1jeVE4Q0lCZU9IZy1tNGk4WnhkWDRkUDg4WFdySUZnLWpKR2hwR1A4SlVNRGdaZ2F2eFZ4MjI1aFVFWVpNeXJMR2xlcjVlbTRGZ2JHNjJZV0M1MW1vTERMZVlFQSIPIgtfY0U4eFN1NnN3RTAAKBQ%3D") diff --git a/spec/invidious/search/iv_filters_spec.cr b/spec/invidious/search/iv_filters_spec.cr new file mode 100644 index 00000000..b0897a63 --- /dev/null +++ b/spec/invidious/search/iv_filters_spec.cr @@ -0,0 +1,371 @@ +require "../../../src/invidious/search/filters" + +require "http/params" +require "spectator" + +Spectator.configure do |config| + config.fail_blank + config.randomize +end + +FEATURES_TEXT = { + Invidious::Search::Filters::Features::Live => "live", + Invidious::Search::Filters::Features::FourK => "4k", + Invidious::Search::Filters::Features::HD => "hd", + Invidious::Search::Filters::Features::Subtitles => "subtitles", + Invidious::Search::Filters::Features::CCommons => "commons", + Invidious::Search::Filters::Features::ThreeSixty => "360", + Invidious::Search::Filters::Features::VR180 => "vr180", + Invidious::Search::Filters::Features::ThreeD => "3d", + Invidious::Search::Filters::Features::HDR => "hdr", + Invidious::Search::Filters::Features::Location => "location", + Invidious::Search::Filters::Features::Purchased => "purchased", +} + +Spectator.describe Invidious::Search::Filters do + # ------------------- + # Decode (legacy) + # ------------------- + + describe "#from_legacy_filters" do + it "Decodes channel: filter" do + query = "test channel:UC123456 request" + + fltr, chan, qury, subs = described_class.from_legacy_filters(query) + + expect(fltr).to eq(described_class.new) + expect(chan).to eq("UC123456") + expect(qury).to eq("test request") + expect(subs).to be_false + end + + it "Decodes user: filter" do + query = "user:LinusTechTips broke something (again)" + + fltr, chan, qury, subs = described_class.from_legacy_filters(query) + + expect(fltr).to eq(described_class.new) + expect(chan).to eq("LinusTechTips") + expect(qury).to eq("broke something (again)") + expect(subs).to be_false + end + + it "Decodes type: filter" do + Invidious::Search::Filters::Type.each do |value| + query = "Eiffel 65 - Blue [1 Hour] type:#{value}" + + fltr, chan, qury, subs = described_class.from_legacy_filters(query) + + expect(fltr).to eq(described_class.new(type: value)) + expect(chan).to eq("") + expect(qury).to eq("Eiffel 65 - Blue [1 Hour]") + expect(subs).to be_false + end + end + + it "Decodes content_type: filter" do + Invidious::Search::Filters::Type.each do |value| + query = "I like to watch content_type:#{value}" + + fltr, chan, qury, subs = described_class.from_legacy_filters(query) + + expect(fltr).to eq(described_class.new(type: value)) + expect(chan).to eq("") + expect(qury).to eq("I like to watch") + expect(subs).to be_false + end + end + + it "Decodes date: filter" do + Invidious::Search::Filters::Date.each do |value| + query = "This date:#{value} is old!" + + fltr, chan, qury, subs = described_class.from_legacy_filters(query) + + expect(fltr).to eq(described_class.new(date: value)) + expect(chan).to eq("") + expect(qury).to eq("This is old!") + expect(subs).to be_false + end + end + + it "Decodes duration: filter" do + Invidious::Search::Filters::Duration.each do |value| + query = "This duration:#{value} is old!" + + fltr, chan, qury, subs = described_class.from_legacy_filters(query) + + expect(fltr).to eq(described_class.new(duration: value)) + expect(chan).to eq("") + expect(qury).to eq("This is old!") + expect(subs).to be_false + end + end + + it "Decodes feature: filter" do + Invidious::Search::Filters::Features.each do |value| + string = FEATURES_TEXT[value] + query = "I like my precious feature:#{string} ^^" + + fltr, chan, qury, subs = described_class.from_legacy_filters(query) + + expect(fltr).to eq(described_class.new(features: value)) + expect(chan).to eq("") + expect(qury).to eq("I like my precious ^^") + expect(subs).to be_false + end + end + + it "Decodes features: filter" do + query = "This search has many features:vr180,cc,hdr :o" + + fltr, chan, qury, subs = described_class.from_legacy_filters(query) + + features = Invidious::Search::Filters::Features.flags(HDR, VR180, CCommons) + + expect(fltr).to eq(described_class.new(features: features)) + expect(chan).to eq("") + expect(qury).to eq("This search has many :o") + expect(subs).to be_false + end + + it "Decodes sort: filter" do + Invidious::Search::Filters::Sort.each do |value| + query = "Computer? sort:#{value} my files!" + + fltr, chan, qury, subs = described_class.from_legacy_filters(query) + + expect(fltr).to eq(described_class.new(sort: value)) + expect(chan).to eq("") + expect(qury).to eq("Computer? my files!") + expect(subs).to be_false + end + end + + it "Decodes subscriptions: filter" do + query = "enable subscriptions:true" + + fltr, chan, qury, subs = described_class.from_legacy_filters(query) + + expect(fltr).to eq(described_class.new) + expect(chan).to eq("") + expect(qury).to eq("enable") + expect(subs).to be_true + end + + it "Ignores junk data" do + query = "duration:I sort:like type:cleaning features:stuff date:up!" + + fltr, chan, qury, subs = described_class.from_legacy_filters(query) + + expect(fltr).to eq(described_class.new) + expect(chan).to eq("") + expect(qury).to eq("") + expect(subs).to be_false + end + + it "Keeps unknown keys" do + query = "to:be or:not to:be" + + fltr, chan, qury, subs = described_class.from_legacy_filters(query) + + expect(fltr).to eq(described_class.new) + expect(chan).to eq("") + expect(qury).to eq("to:be or:not to:be") + expect(subs).to be_false + end + end + + # ------------------- + # Decode (URL) + # ------------------- + + describe "#from_iv_params" do + it "Decodes type= filter" do + Invidious::Search::Filters::Type.each do |value| + params = HTTP::Params.parse("type=#{value}") + + expect(described_class.from_iv_params(params)) + .to eq(described_class.new(type: value)) + end + end + + it "Decodes date= filter" do + Invidious::Search::Filters::Date.each do |value| + params = HTTP::Params.parse("date=#{value}") + + expect(described_class.from_iv_params(params)) + .to eq(described_class.new(date: value)) + end + end + + it "Decodes duration= filter" do + Invidious::Search::Filters::Duration.each do |value| + params = HTTP::Params.parse("duration=#{value}") + + expect(described_class.from_iv_params(params)) + .to eq(described_class.new(duration: value)) + end + end + + it "Decodes features= filter (single)" do + Invidious::Search::Filters::Features.each do |value| + string = described_class.format_features(value) + params = HTTP::Params.parse("features=#{string}") + + expect(described_class.from_iv_params(params)) + .to eq(described_class.new(features: value)) + end + end + + it "Decodes features= filter (multiple - comma separated)" do + features = Invidious::Search::Filters::Features.flags(HDR, VR180, CCommons) + params = HTTP::Params.parse("features=vr180%2Ccc%2Chdr") # %2C is a comma + + expect(described_class.from_iv_params(params)) + .to eq(described_class.new(features: features)) + end + + it "Decodes features= filter (multiple - URL parameters)" do + features = Invidious::Search::Filters::Features.flags(ThreeSixty, HD, FourK) + params = HTTP::Params.parse("features=4k&features=360&features=hd") + + expect(described_class.from_iv_params(params)) + .to eq(described_class.new(features: features)) + end + + it "Decodes sort= filter" do + Invidious::Search::Filters::Sort.each do |value| + params = HTTP::Params.parse("sort=#{value}") + + expect(described_class.from_iv_params(params)) + .to eq(described_class.new(sort: value)) + end + end + + it "Ignores junk data" do + params = HTTP::Params.parse("foo=bar&sort=views&answer=42&type=channel") + + expect(described_class.from_iv_params(params)).to eq( + described_class.new( + sort: Invidious::Search::Filters::Sort::Views, + type: Invidious::Search::Filters::Type::Channel + ) + ) + end + end + + # ------------------- + # Encode (URL) + # ------------------- + + describe "#to_iv_params" do + it "Encodes date filter" do + Invidious::Search::Filters::Date.each do |value| + filters = described_class.new(date: value) + params = filters.to_iv_params + + if value.none? + expect("#{params}").to eq("") + else + expect("#{params}").to eq("date=#{value.to_s.underscore}") + end + end + end + + it "Encodes type filter" do + Invidious::Search::Filters::Type.each do |value| + filters = described_class.new(type: value) + params = filters.to_iv_params + + if value.all? + expect("#{params}").to eq("") + else + expect("#{params}").to eq("type=#{value.to_s.underscore}") + end + end + end + + it "Encodes duration filter" do + Invidious::Search::Filters::Duration.each do |value| + filters = described_class.new(duration: value) + params = filters.to_iv_params + + if value.none? + expect("#{params}").to eq("") + else + expect("#{params}").to eq("duration=#{value.to_s.underscore}") + end + end + end + + it "Encodes features filter (single)" do + Invidious::Search::Filters::Features.each do |value| + string = described_class.format_features(value) + filters = described_class.new(features: value) + + expect("#{filters.to_iv_params}") + .to eq("features=" + FEATURES_TEXT[value]) + end + end + + it "Encodes features filter (multiple)" do + features = Invidious::Search::Filters::Features.flags(Subtitles, Live, ThreeSixty) + filters = described_class.new(features: features) + + expect("#{filters.to_iv_params}") + .to eq("features=live%2Csubtitles%2C360") # %2C is a comma + end + + it "Encodes sort filter" do + Invidious::Search::Filters::Sort.each do |value| + filters = described_class.new(sort: value) + params = filters.to_iv_params + + if value.relevance? + expect("#{params}").to eq("") + else + expect("#{params}").to eq("sort=#{value.to_s.underscore}") + end + end + end + + it "Encodes multiple filters" do + filters = described_class.new( + date: Invidious::Search::Filters::Date::Today, + duration: Invidious::Search::Filters::Duration::Medium, + features: Invidious::Search::Filters::Features.flags(Location, Purchased), + sort: Invidious::Search::Filters::Sort::Relevance + ) + + params = filters.to_iv_params + + # Check the `date` param + expect(params).to have_key("date") + expect(params.fetch_all("date")).to contain_exactly("today") + + # Check the `type` param + expect(params).to_not have_key("type") + expect(params["type"]?).to be_nil + + # Check the `duration` param + expect(params).to have_key("duration") + expect(params.fetch_all("duration")).to contain_exactly("medium") + + # Check the `features` param + expect(params).to have_key("features") + expect(params.fetch_all("features")).to contain_exactly("location,purchased") + + # Check the `sort` param + expect(params).to_not have_key("sort") + expect(params["sort"]?).to be_nil + + # Check if there aren't other parameters + params.delete("date") + params.delete("duration") + params.delete("features") + + expect(params).to be_empty + end + end +end diff --git a/spec/invidious/search/yt_filters_spec.cr b/spec/invidious/search/yt_filters_spec.cr new file mode 100644 index 00000000..bf7f21e7 --- /dev/null +++ b/spec/invidious/search/yt_filters_spec.cr @@ -0,0 +1,143 @@ +require "../../../src/invidious/search/filters" + +require "http/params" +require "spectator" + +Spectator.configure do |config| + config.fail_blank + config.randomize +end + +# Encoded filter values are extracted from the search +# page of Youtube with any browser devtools HTML inspector. + +DATE_FILTERS = { + Invidious::Search::Filters::Date::Hour => "EgIIAQ%3D%3D", + Invidious::Search::Filters::Date::Today => "EgIIAg%3D%3D", + Invidious::Search::Filters::Date::Week => "EgIIAw%3D%3D", + Invidious::Search::Filters::Date::Month => "EgIIBA%3D%3D", + Invidious::Search::Filters::Date::Year => "EgIIBQ%3D%3D", +} + +TYPE_FILTERS = { + Invidious::Search::Filters::Type::Video => "EgIQAQ%3D%3D", + Invidious::Search::Filters::Type::Channel => "EgIQAg%3D%3D", + Invidious::Search::Filters::Type::Playlist => "EgIQAw%3D%3D", + Invidious::Search::Filters::Type::Movie => "EgIQBA%3D%3D", +} + +DURATION_FILTERS = { + Invidious::Search::Filters::Duration::Short => "EgIYAQ%3D%3D", + Invidious::Search::Filters::Duration::Medium => "EgIYAw%3D%3D", + Invidious::Search::Filters::Duration::Long => "EgIYAg%3D%3D", +} + +FEATURE_FILTERS = { + Invidious::Search::Filters::Features::Live => "EgJAAQ%3D%3D", + Invidious::Search::Filters::Features::FourK => "EgJwAQ%3D%3D", + Invidious::Search::Filters::Features::HD => "EgIgAQ%3D%3D", + Invidious::Search::Filters::Features::Subtitles => "EgIoAQ%3D%3D", + Invidious::Search::Filters::Features::CCommons => "EgIwAQ%3D%3D", + Invidious::Search::Filters::Features::ThreeSixty => "EgJ4AQ%3D%3D", + Invidious::Search::Filters::Features::VR180 => "EgPQAQE%3D", + Invidious::Search::Filters::Features::ThreeD => "EgI4AQ%3D%3D", + Invidious::Search::Filters::Features::HDR => "EgPIAQE%3D", + Invidious::Search::Filters::Features::Location => "EgO4AQE%3D", + Invidious::Search::Filters::Features::Purchased => "EgJIAQ%3D%3D", +} + +SORT_FILTERS = { + Invidious::Search::Filters::Sort::Relevance => "", + Invidious::Search::Filters::Sort::Date => "CAI%3D", + Invidious::Search::Filters::Sort::Views => "CAM%3D", + Invidious::Search::Filters::Sort::Rating => "CAE%3D", +} + +Spectator.describe Invidious::Search::Filters do + # ------------------- + # Encode YT params + # ------------------- + + describe "#to_yt_params" do + sample DATE_FILTERS do |value, result| + it "Encodes upload date filter '#{value}'" do + expect(described_class.new(date: value).to_yt_params).to eq(result) + end + end + + sample TYPE_FILTERS do |value, result| + it "Encodes content type filter '#{value}'" do + expect(described_class.new(type: value).to_yt_params).to eq(result) + end + end + + sample DURATION_FILTERS do |value, result| + it "Encodes duration filter '#{value}'" do + expect(described_class.new(duration: value).to_yt_params).to eq(result) + end + end + + sample FEATURE_FILTERS do |value, result| + it "Encodes feature filter '#{value}'" do + expect(described_class.new(features: value).to_yt_params).to eq(result) + end + end + + sample SORT_FILTERS do |value, result| + it "Encodes sort filter '#{value}'" do + expect(described_class.new(sort: value).to_yt_params).to eq(result) + end + end + end + + # ------------------- + # Decode YT params + # ------------------- + + describe "#from_yt_params" do + sample DATE_FILTERS do |value, encoded| + it "Decodes upload date filter '#{value}'" do + params = HTTP::Params.parse("sp=#{encoded}") + + expect(described_class.from_yt_params(params)) + .to eq(described_class.new(date: value)) + end + end + + sample TYPE_FILTERS do |value, encoded| + it "Decodes content type filter '#{value}'" do + params = HTTP::Params.parse("sp=#{encoded}") + + expect(described_class.from_yt_params(params)) + .to eq(described_class.new(type: value)) + end + end + + sample DURATION_FILTERS do |value, encoded| + it "Decodes duration filter '#{value}'" do + params = HTTP::Params.parse("sp=#{encoded}") + + expect(described_class.from_yt_params(params)) + .to eq(described_class.new(duration: value)) + end + end + + sample FEATURE_FILTERS do |value, encoded| + it "Decodes feature filter '#{value}'" do + params = HTTP::Params.parse("sp=#{encoded}") + + expect(described_class.from_yt_params(params)) + .to eq(described_class.new(features: value)) + end + end + + sample SORT_FILTERS do |value, encoded| + it "Decodes sort filter '#{value}'" do + params = HTTP::Params.parse("sp=#{encoded}") + + expect(described_class.from_yt_params(params)) + .to eq(described_class.new(sort: value)) + end + end + end +end diff --git a/spec/spec_helper.cr b/spec/spec_helper.cr index 09320750..6c492e2f 100644 --- a/spec/spec_helper.cr +++ b/spec/spec_helper.cr @@ -8,7 +8,7 @@ require "../src/invidious/channels/*" require "../src/invidious/videos" require "../src/invidious/comments" require "../src/invidious/playlists" -require "../src/invidious/search" +require "../src/invidious/search/ctoken" require "../src/invidious/trending" require "spectator" diff --git a/src/invidious.cr b/src/invidious.cr index d4878759..9f3d5d10 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -27,11 +27,15 @@ require "compress/zip" require "protodec/utils" require "./invidious/database/*" +require "./invidious/database/migrations/*" require "./invidious/helpers/*" require "./invidious/yt_backend/*" +require "./invidious/frontend/*" + require "./invidious/*" require "./invidious/channels/*" require "./invidious/user/*" +require "./invidious/search/*" require "./invidious/routes/**" require "./invidious/jobs/**" @@ -100,6 +104,10 @@ Kemal.config.extra_options do |parser| puts SOFTWARE.to_pretty_json exit end + parser.on("--migrate", "Run any migrations (beta, use at your own risk!!") do + Invidious::Database::Migrator.new(PG_DB).migrate + exit + end end Kemal::CLI.new ARGV @@ -154,8 +162,8 @@ if CONFIG.popular_enabled Invidious::Jobs.register Invidious::Jobs::PullPopularVideosJob.new(PG_DB) end -connection_channel = Channel({Bool, Channel(PQ::Notification)}).new(32) -Invidious::Jobs.register Invidious::Jobs::NotificationJob.new(connection_channel, CONFIG.database_url) +CONNECTION_CHANNEL = Channel({Bool, Channel(PQ::Notification)}).new(32) +Invidious::Jobs.register Invidious::Jobs::NotificationJob.new(CONNECTION_CHANNEL, CONFIG.database_url) Invidious::Jobs.start_all @@ -234,6 +242,7 @@ before_all do |env| "/api/manifest/", "/videoplayback", "/latest_version", + "/download", }.any? { |r| env.request.resource.starts_with? r } if env.request.cookies.has_key? "SID" @@ -324,6 +333,9 @@ end Invidious::Routing.get "/channel/:ucid/playlists", Invidious::Routes::Channels, :playlists Invidious::Routing.get "/channel/:ucid/community", Invidious::Routes::Channels, :community Invidious::Routing.get "/channel/:ucid/about", Invidious::Routes::Channels, :about + Invidious::Routing.get "/channel/:ucid/live", Invidious::Routes::Channels, :live + Invidious::Routing.get "/user/:user/live", Invidious::Routes::Channels, :live + Invidious::Routing.get "/c/:user/live", Invidious::Routes::Channels, :live ["", "/videos", "/playlists", "/community", "/about"].each do |path| # /c/LinusTechTips @@ -346,6 +358,8 @@ end Invidious::Routing.get "/e/:id", Invidious::Routes::Watch, :redirect Invidious::Routing.get "/redirect", Invidious::Routes::Misc, :cross_instance_redirect + Invidious::Routing.post "/download", Invidious::Routes::Watch, :download + Invidious::Routing.get "/embed/", Invidious::Routes::Embed, :redirect Invidious::Routing.get "/embed/:id", Invidious::Routes::Embed, :show @@ -360,6 +374,7 @@ end Invidious::Routing.post "/playlist_ajax", Invidious::Routes::Playlists, :playlist_ajax Invidious::Routing.get "/playlist", Invidious::Routes::Playlists, :show Invidious::Routing.get "/mix", Invidious::Routes::Playlists, :mix + Invidious::Routing.get "/watch_videos", Invidious::Routes::Playlists, :watch_videos Invidious::Routing.get "/opensearch.xml", Invidious::Routes::Search, :opensearch Invidious::Routing.get "/results", Invidious::Routes::Search, :results @@ -406,85 +421,6 @@ define_v1_api_routes() define_api_manifest_routes() define_video_playback_routes() -# Channels - -{"/channel/:ucid/live", "/user/:user/live", "/c/:user/live"}.each do |route| - get route do |env| - locale = env.get("preferences").as(Preferences).locale - - # Appears to be a bug in routing, having several routes configured - # as `/a/:a`, `/b/:a`, `/c/:a` results in 404 - value = env.request.resource.split("/")[2] - body = "" - {"channel", "user", "c"}.each do |type| - response = YT_POOL.client &.get("/#{type}/#{value}/live?disable_polymer=1") - if response.status_code == 200 - body = response.body - end - end - - video_id = body.match(/'VIDEO_ID': "(?<id>[a-zA-Z0-9_-]{11})"/).try &.["id"]? - if video_id - params = [] of String - env.params.query.each do |k, v| - params << "#{k}=#{v}" - end - params = params.join("&") - - url = "/watch?v=#{video_id}" - if !params.empty? - url += "&#{params}" - end - - env.redirect url - else - env.redirect "/channel/#{value}" - end - end -end - -# Authenticated endpoints - -# The notification APIs can't be extracted yet -# due to the requirement of the `connection_channel` -# used by the `NotificationJob` - -get "/api/v1/auth/notifications" do |env| - env.response.content_type = "text/event-stream" - - topics = env.params.query["topics"]?.try &.split(",").uniq.first(1000) - topics ||= [] of String - - create_notification_stream(env, topics, connection_channel) -end - -post "/api/v1/auth/notifications" do |env| - env.response.content_type = "text/event-stream" - - topics = env.params.body["topics"]?.try &.split(",").uniq.first(1000) - topics ||= [] of String - - create_notification_stream(env, topics, connection_channel) -end - -get "/Captcha" do |env| - headers = HTTP::Headers{":authority" => "accounts.google.com"} - response = YT_POOL.client &.get(env.request.resource, headers) - env.response.headers["Content-Type"] = response.headers["Content-Type"] - response.body -end - -# Undocumented, creates anonymous playlist with specified 'video_ids', max 50 videos -get "/watch_videos" do |env| - response = YT_POOL.client &.get(env.request.resource) - if url = response.headers["Location"]? - url = URI.parse(url).request_target - next env.redirect url - end - - env.response.status_code = response.status_code -end - error 404 do |env| if md = env.request.path.match(/^\/(?<id>([a-zA-Z0-9_-]{11})|(\w+))$/) item = md["id"] diff --git a/src/invidious/config.cr b/src/invidious/config.cr index 72e145da..93c4c0f7 100644 --- a/src/invidious/config.cr +++ b/src/invidious/config.cr @@ -23,6 +23,7 @@ struct ConfigPreferences property listen : Bool = false property local : Bool = false property locale : String = "en-US" + property watch_history : Bool = true property max_results : Int32 = 40 property notifications_only : Bool = false property player_style : String = "invidious" @@ -56,20 +57,35 @@ end class Config include YAML::Serializable - property channel_threads : Int32 = 1 # Number of threads to use for crawling videos from channels (for updating subscriptions) - property feed_threads : Int32 = 1 # Number of threads to use for updating feeds - property output : String = "STDOUT" # Log file path or STDOUT - property log_level : LogLevel = LogLevel::Info # Default log level, valid YAML values are ints and strings, see src/invidious/helpers/logger.cr - property db : DBConfig? = nil # Database configuration with separate parameters (username, hostname, etc) - + # Number of threads to use for crawling videos from channels (for updating subscriptions) + property channel_threads : Int32 = 1 + # Time interval between two executions of the job that crawls channel videos (subscriptions update). + @[YAML::Field(converter: Preferences::TimeSpanConverter)] + property channel_refresh_interval : Time::Span = 30.minutes + # Number of threads to use for updating feeds + property feed_threads : Int32 = 1 + # Log file path or STDOUT + property output : String = "STDOUT" + # Default log level, valid YAML values are ints and strings, see src/invidious/helpers/logger.cr + property log_level : LogLevel = LogLevel::Info + # Database configuration with separate parameters (username, hostname, etc) + property db : DBConfig? = nil + + # Database configuration using 12-Factor "Database URL" syntax @[YAML::Field(converter: Preferences::URIConverter)] - property database_url : URI = URI.parse("") # Database configuration using 12-Factor "Database URL" syntax - property decrypt_polling : Bool = true # Use polling to keep decryption function up to date - property full_refresh : Bool = false # Used for crawling channels: threads should check all videos uploaded by a channel - property https_only : Bool? # Used to tell Invidious it is behind a proxy, so links to resources should be https:// - property hmac_key : String? # HMAC signing key for CSRF tokens and verifying pubsub subscriptions - property domain : String? # Domain to be used for links to resources on the site where an absolute URL is required - property use_pubsub_feeds : Bool | Int32 = false # Subscribe to channels using PubSubHubbub (requires domain, hmac_key) + property database_url : URI = URI.parse("") + # Use polling to keep decryption function up to date + property decrypt_polling : Bool = true + # Used for crawling channels: threads should check all videos uploaded by a channel + property full_refresh : Bool = false + # Used to tell Invidious it is behind a proxy, so links to resources should be https:// + property https_only : Bool? + # HMAC signing key for CSRF tokens and verifying pubsub subscriptions + property hmac_key : String? + # Domain to be used for links to resources on the site where an absolute URL is required + property domain : String? + # Subscribe to channels using PubSubHubbub (requires domain, hmac_key) + property use_pubsub_feeds : Bool | Int32 = false property popular_enabled : Bool = true property captcha_enabled : Bool = true property login_enabled : Bool = true @@ -78,28 +94,42 @@ class Config property admins : Array(String) = [] of String property external_port : Int32? = nil property default_user_preferences : ConfigPreferences = ConfigPreferences.from_yaml("") - property dmca_content : Array(String) = [] of String # For compliance with DMCA, disables download widget using list of video IDs - property check_tables : Bool = false # Check table integrity, automatically try to add any missing columns, create tables, etc. - property cache_annotations : Bool = false # Cache annotations requested from IA, will not cache empty annotations or annotations that only contain cards - property banner : String? = nil # Optional banner to be displayed along top of page for announcements, etc. - property hsts : Bool? = true # Enables 'Strict-Transport-Security'. Ensure that `domain` and all subdomains are served securely - property disable_proxy : Bool? | Array(String)? = false # Disable proxying server-wide: options: 'dash', 'livestreams', 'downloads', 'local' + # For compliance with DMCA, disables download widget using list of video IDs + property dmca_content : Array(String) = [] of String + # Check table integrity, automatically try to add any missing columns, create tables, etc. + property check_tables : Bool = false + # Cache annotations requested from IA, will not cache empty annotations or annotations that only contain cards + property cache_annotations : Bool = false + # Optional banner to be displayed along top of page for announcements, etc. + property banner : String? = nil + # Enables 'Strict-Transport-Security'. Ensure that `domain` and all subdomains are served securely + property hsts : Bool? = true + # Disable proxying server-wide: options: 'dash', 'livestreams', 'downloads', 'local' + property disable_proxy : Bool? | Array(String)? = false # URL to the modified source code to be easily AGPL compliant # Will display in the footer, next to the main source code link property modified_source_code_url : String? = nil + # Connect to YouTube over 'ipv6', 'ipv4'. Will sometimes resolve fix issues with rate-limiting (see https://github.com/ytdl-org/youtube-dl/issues/21729) @[YAML::Field(converter: Preferences::FamilyConverter)] - property force_resolve : Socket::Family = Socket::Family::UNSPEC # Connect to YouTube over 'ipv6', 'ipv4'. Will sometimes resolve fix issues with rate-limiting (see https://github.com/ytdl-org/youtube-dl/issues/21729) - property port : Int32 = 3000 # Port to listen for connections (overridden by command line argument) - property host_binding : String = "0.0.0.0" # Host to bind (overridden by command line argument) - property pool_size : Int32 = 100 # Pool size for HTTP requests to youtube.com and ytimg.com (each domain has a separate pool of `pool_size`) - property use_quic : Bool = false # Use quic transport for youtube api - + property force_resolve : Socket::Family = Socket::Family::UNSPEC + # Port to listen for connections (overridden by command line argument) + property port : Int32 = 3000 + # Host to bind (overridden by command line argument) + property host_binding : String = "0.0.0.0" + # Pool size for HTTP requests to youtube.com and ytimg.com (each domain has a separate pool of `pool_size`) + property pool_size : Int32 = 100 + # Use quic transport for youtube api + property use_quic : Bool = false + + # Saved cookies in "name1=value1; name2=value2..." format @[YAML::Field(converter: Preferences::StringToCookies)] - property cookies : HTTP::Cookies = HTTP::Cookies.new # Saved cookies in "name1=value1; name2=value2..." format - property captcha_key : String? = nil # Key for Anti-Captcha - property captcha_api_url : String = "https://api.anti-captcha.com" # API URL for Anti-Captcha + property cookies : HTTP::Cookies = HTTP::Cookies.new + # Key for Anti-Captcha + property captcha_key : String? = nil + # API URL for Anti-Captcha + property captcha_api_url : String = "https://api.anti-captcha.com" def disabled?(option) case disabled = CONFIG.disable_proxy diff --git a/src/invidious/database/migration.cr b/src/invidious/database/migration.cr new file mode 100644 index 00000000..921d8f38 --- /dev/null +++ b/src/invidious/database/migration.cr @@ -0,0 +1,38 @@ +abstract class Invidious::Database::Migration + macro inherited + Migrator.migrations << self + end + + @@version : Int64? + + def self.version(version : Int32 | Int64) + @@version = version.to_i64 + end + + getter? completed = false + + def initialize(@db : DB::Database) + end + + abstract def up(conn : DB::Connection) + + def migrate + # migrator already ignores completed migrations + # but this is an extra check to make sure a migration doesn't run twice + return if completed? + + @db.transaction do |txn| + up(txn.connection) + track(txn.connection) + @completed = true + end + end + + def version : Int64 + @@version.not_nil! + end + + private def track(conn : DB::Connection) + conn.exec("INSERT INTO #{Migrator::MIGRATIONS_TABLE} (version) VALUES ($1)", version) + end +end diff --git a/src/invidious/database/migrations/0001_create_channels_table.cr b/src/invidious/database/migrations/0001_create_channels_table.cr new file mode 100644 index 00000000..a1362bcf --- /dev/null +++ b/src/invidious/database/migrations/0001_create_channels_table.cr @@ -0,0 +1,30 @@ +module Invidious::Database::Migrations + class CreateChannelsTable < Migration + version 1 + + def up(conn : DB::Connection) + conn.exec <<-SQL + CREATE TABLE IF NOT EXISTS public.channels + ( + id text NOT NULL, + author text, + updated timestamp with time zone, + deleted boolean, + subscribed timestamp with time zone, + CONSTRAINT channels_id_key UNIQUE (id) + ); + SQL + + conn.exec <<-SQL + GRANT ALL ON TABLE public.channels TO current_user; + SQL + + conn.exec <<-SQL + CREATE INDEX IF NOT EXISTS channels_id_idx + ON public.channels + USING btree + (id COLLATE pg_catalog."default"); + SQL + end + end +end diff --git a/src/invidious/database/migrations/0002_create_videos_table.cr b/src/invidious/database/migrations/0002_create_videos_table.cr new file mode 100644 index 00000000..c2ac84f8 --- /dev/null +++ b/src/invidious/database/migrations/0002_create_videos_table.cr @@ -0,0 +1,28 @@ +module Invidious::Database::Migrations + class CreateVideosTable < Migration + version 2 + + def up(conn : DB::Connection) + conn.exec <<-SQL + CREATE UNLOGGED TABLE IF NOT EXISTS public.videos + ( + id text NOT NULL, + info text, + updated timestamp with time zone, + CONSTRAINT videos_pkey PRIMARY KEY (id) + ); + SQL + + conn.exec <<-SQL + GRANT ALL ON TABLE public.videos TO current_user; + SQL + + conn.exec <<-SQL + CREATE UNIQUE INDEX IF NOT EXISTS id_idx + ON public.videos + USING btree + (id COLLATE pg_catalog."default"); + SQL + end + end +end diff --git a/src/invidious/database/migrations/0003_create_channel_videos_table.cr b/src/invidious/database/migrations/0003_create_channel_videos_table.cr new file mode 100644 index 00000000..c9b62e4c --- /dev/null +++ b/src/invidious/database/migrations/0003_create_channel_videos_table.cr @@ -0,0 +1,35 @@ +module Invidious::Database::Migrations + class CreateChannelVideosTable < Migration + version 3 + + def up(conn : DB::Connection) + conn.exec <<-SQL + CREATE TABLE IF NOT EXISTS public.channel_videos + ( + id text NOT NULL, + title text, + published timestamp with time zone, + updated timestamp with time zone, + ucid text, + author text, + length_seconds integer, + live_now boolean, + premiere_timestamp timestamp with time zone, + views bigint, + CONSTRAINT channel_videos_id_key UNIQUE (id) + ); + SQL + + conn.exec <<-SQL + GRANT ALL ON TABLE public.channel_videos TO current_user; + SQL + + conn.exec <<-SQL + CREATE INDEX IF NOT EXISTS channel_videos_ucid_idx + ON public.channel_videos + USING btree + (ucid COLLATE pg_catalog."default"); + SQL + end + end +end diff --git a/src/invidious/database/migrations/0004_create_users_table.cr b/src/invidious/database/migrations/0004_create_users_table.cr new file mode 100644 index 00000000..a13ba15f --- /dev/null +++ b/src/invidious/database/migrations/0004_create_users_table.cr @@ -0,0 +1,34 @@ +module Invidious::Database::Migrations + class CreateUsersTable < Migration + version 4 + + def up(conn : DB::Connection) + conn.exec <<-SQL + CREATE TABLE IF NOT EXISTS public.users + ( + updated timestamp with time zone, + notifications text[], + subscriptions text[], + email text NOT NULL, + preferences text, + password text, + token text, + watched text[], + feed_needs_update boolean, + CONSTRAINT users_email_key UNIQUE (email) + ); + SQL + + conn.exec <<-SQL + GRANT ALL ON TABLE public.users TO current_user; + SQL + + conn.exec <<-SQL + CREATE UNIQUE INDEX IF NOT EXISTS email_unique_idx + ON public.users + USING btree + (lower(email) COLLATE pg_catalog."default"); + SQL + end + end +end diff --git a/src/invidious/database/migrations/0005_create_session_ids_table.cr b/src/invidious/database/migrations/0005_create_session_ids_table.cr new file mode 100644 index 00000000..13c2228d --- /dev/null +++ b/src/invidious/database/migrations/0005_create_session_ids_table.cr @@ -0,0 +1,28 @@ +module Invidious::Database::Migrations + class CreateSessionIdsTable < Migration + version 5 + + def up(conn : DB::Connection) + conn.exec <<-SQL + CREATE TABLE IF NOT EXISTS public.session_ids + ( + id text NOT NULL, + email text, + issued timestamp with time zone, + CONSTRAINT session_ids_pkey PRIMARY KEY (id) + ); + SQL + + conn.exec <<-SQL + GRANT ALL ON TABLE public.session_ids TO current_user; + SQL + + conn.exec <<-SQL + CREATE INDEX IF NOT EXISTS session_ids_id_idx + ON public.session_ids + USING btree + (id COLLATE pg_catalog."default"); + SQL + end + end +end diff --git a/src/invidious/database/migrations/0006_create_nonces_table.cr b/src/invidious/database/migrations/0006_create_nonces_table.cr new file mode 100644 index 00000000..cf1229e1 --- /dev/null +++ b/src/invidious/database/migrations/0006_create_nonces_table.cr @@ -0,0 +1,27 @@ +module Invidious::Database::Migrations + class CreateNoncesTable < Migration + version 6 + + def up(conn : DB::Connection) + conn.exec <<-SQL + CREATE TABLE IF NOT EXISTS public.nonces + ( + nonce text, + expire timestamp with time zone, + CONSTRAINT nonces_id_key UNIQUE (nonce) + ); + SQL + + conn.exec <<-SQL + GRANT ALL ON TABLE public.nonces TO current_user; + SQL + + conn.exec <<-SQL + CREATE INDEX IF NOT EXISTS nonces_nonce_idx + ON public.nonces + USING btree + (nonce COLLATE pg_catalog."default"); + SQL + end + end +end diff --git a/src/invidious/database/migrations/0007_create_annotations_table.cr b/src/invidious/database/migrations/0007_create_annotations_table.cr new file mode 100644 index 00000000..dcecbc3b --- /dev/null +++ b/src/invidious/database/migrations/0007_create_annotations_table.cr @@ -0,0 +1,20 @@ +module Invidious::Database::Migrations + class CreateAnnotationsTable < Migration + version 7 + + def up(conn : DB::Connection) + conn.exec <<-SQL + CREATE TABLE IF NOT EXISTS public.annotations + ( + id text NOT NULL, + annotations xml, + CONSTRAINT annotations_id_key UNIQUE (id) + ); + SQL + + conn.exec <<-SQL + GRANT ALL ON TABLE public.annotations TO current_user; + SQL + end + end +end diff --git a/src/invidious/database/migrations/0008_create_playlists_table.cr b/src/invidious/database/migrations/0008_create_playlists_table.cr new file mode 100644 index 00000000..6aa16e1a --- /dev/null +++ b/src/invidious/database/migrations/0008_create_playlists_table.cr @@ -0,0 +1,50 @@ +module Invidious::Database::Migrations + class CreatePlaylistsTable < Migration + version 8 + + def up(conn : DB::Connection) + if !privacy_type_exists?(conn) + conn.exec <<-SQL + CREATE TYPE public.privacy AS ENUM + ( + 'Public', + 'Unlisted', + 'Private' + ); + SQL + end + + conn.exec <<-SQL + CREATE TABLE IF NOT EXISTS public.playlists + ( + title text, + id text primary key, + author text, + description text, + video_count integer, + created timestamptz, + updated timestamptz, + privacy privacy, + index int8[] + ); + SQL + + conn.exec <<-SQL + GRANT ALL ON public.playlists TO current_user; + SQL + end + + private def privacy_type_exists?(conn : DB::Connection) : Bool + request = <<-SQL + SELECT 1 AS one + FROM pg_type + INNER JOIN pg_namespace ON pg_namespace.oid = pg_type.typnamespace + WHERE pg_namespace.nspname = 'public' + AND pg_type.typname = 'privacy' + LIMIT 1; + SQL + + !conn.query_one?(request, as: Int32).nil? + end + end +end diff --git a/src/invidious/database/migrations/0009_create_playlist_videos_table.cr b/src/invidious/database/migrations/0009_create_playlist_videos_table.cr new file mode 100644 index 00000000..84938b9b --- /dev/null +++ b/src/invidious/database/migrations/0009_create_playlist_videos_table.cr @@ -0,0 +1,27 @@ +module Invidious::Database::Migrations + class CreatePlaylistVideosTable < Migration + version 9 + + def up(conn : DB::Connection) + conn.exec <<-SQL + CREATE TABLE IF NOT EXISTS public.playlist_videos + ( + title text, + id text, + author text, + ucid text, + length_seconds integer, + published timestamptz, + plid text references playlists(id), + index int8, + live_now boolean, + PRIMARY KEY (index,plid) + ); + SQL + + conn.exec <<-SQL + GRANT ALL ON TABLE public.playlist_videos TO current_user; + SQL + end + end +end diff --git a/src/invidious/database/migrations/0010_make_videos_unlogged.cr b/src/invidious/database/migrations/0010_make_videos_unlogged.cr new file mode 100644 index 00000000..f5d19683 --- /dev/null +++ b/src/invidious/database/migrations/0010_make_videos_unlogged.cr @@ -0,0 +1,11 @@ +module Invidious::Database::Migrations + class MakeVideosUnlogged < Migration + version 10 + + def up(conn : DB::Connection) + conn.exec <<-SQL + ALTER TABLE public.videos SET UNLOGGED; + SQL + end + end +end diff --git a/src/invidious/database/migrator.cr b/src/invidious/database/migrator.cr new file mode 100644 index 00000000..660c3203 --- /dev/null +++ b/src/invidious/database/migrator.cr @@ -0,0 +1,49 @@ +class Invidious::Database::Migrator + MIGRATIONS_TABLE = "public.invidious_migrations" + + class_getter migrations = [] of Invidious::Database::Migration.class + + def initialize(@db : DB::Database) + end + + def migrate + versions = load_versions + + ran_migration = false + load_migrations.sort_by(&.version) + .each do |migration| + next if versions.includes?(migration.version) + + puts "Running migration: #{migration.class.name}" + migration.migrate + ran_migration = true + end + + puts "No migrations to run." unless ran_migration + end + + def pending_migrations? : Bool + versions = load_versions + + load_migrations.sort_by(&.version) + .any? { |migration| !versions.includes?(migration.version) } + end + + private def load_migrations : Array(Invidious::Database::Migration) + self.class.migrations.map(&.new(@db)) + end + + private def load_versions : Array(Int64) + create_migrations_table + @db.query_all("SELECT version FROM #{MIGRATIONS_TABLE}", as: Int64) + end + + private def create_migrations_table + @db.exec <<-SQL + CREATE TABLE IF NOT EXISTS #{MIGRATIONS_TABLE} ( + id bigserial PRIMARY KEY, + version bigint NOT NULL + ) + SQL + end +end diff --git a/src/invidious/exceptions.cr b/src/invidious/exceptions.cr index 490d98cd..bfaa3fd5 100644 --- a/src/invidious/exceptions.cr +++ b/src/invidious/exceptions.cr @@ -1,3 +1,11 @@ +# Exception used to hold the bogus UCID during a channel search. +class ChannelSearchException < InfoException + getter channel : String + + def initialize(@channel) + end +end + # Exception used to hold the name of the missing item # Should be used in all parsing functions class BrokenTubeException < Exception diff --git a/src/invidious/frontend/misc.cr b/src/invidious/frontend/misc.cr new file mode 100644 index 00000000..43ba9f5c --- /dev/null +++ b/src/invidious/frontend/misc.cr @@ -0,0 +1,14 @@ +module Invidious::Frontend::Misc + extend self + + def redirect_url(env : HTTP::Server::Context) + prefs = env.get("preferences").as(Preferences) + + if prefs.automatic_instance_redirect + current_page = env.get?("current_page").as(String) + redirect_url = "/redirect?referer=#{current_page}" + else + redirect_url = "https://redirect.invidious.io#{env.request.resource}" + end + end +end diff --git a/src/invidious/frontend/search_filters.cr b/src/invidious/frontend/search_filters.cr new file mode 100644 index 00000000..68f27b4f --- /dev/null +++ b/src/invidious/frontend/search_filters.cr @@ -0,0 +1,135 @@ +module Invidious::Frontend::SearchFilters + extend self + + # Generate the search filters collapsable widget. + def generate(filters : Search::Filters, query : String, page : Int, locale : String) : String + return String.build(8000) do |str| + str << "<div id='filters'>\n" + str << "\t<details id='filters-collapse'>" + str << "\t\t<summary>" << translate(locale, "search_filters_title") << "</summary>\n" + + str << "\t\t<div id='filters-box'><form action='/search' method='get'>\n" + + str << "\t\t\t<input type='hidden' name='q' value='" << HTML.escape(query) << "'>\n" + str << "\t\t\t<input type='hidden' name='page' value='" << page << "'>\n" + + str << "\t\t\t<div id='filters-flex'>" + + filter_wrapper(date) + filter_wrapper(type) + filter_wrapper(duration) + filter_wrapper(features) + filter_wrapper(sort) + + str << "\t\t\t</div>\n" + + str << "\t\t\t<div id='filters-apply'>" + str << "<button type='submit' class=\"pure-button pure-button-primary\">" + str << translate(locale, "search_filters_apply_button") + str << "</button></div>\n" + + str << "\t\t</form></div>\n" + + str << "\t</details>\n" + str << "</div>\n" + end + end + + # Generate wrapper HTML (`<div>`, filter name, etc...) around the + # `<input>` elements of a search filter + macro filter_wrapper(name) + str << "\t\t\t\t<div class=\"filter-column\"><fieldset>\n" + + str << "\t\t\t\t\t<legend><div class=\"filter-name underlined\">" + str << translate(locale, "search_filters_{{name}}_label") + str << "</div></legend>\n" + + str << "\t\t\t\t\t<div class=\"filter-options\">\n" + make_{{name}}_filter_options(str, filters.{{name}}, locale) + str << "\t\t\t\t\t</div>" + + str << "\t\t\t\t</fieldset></div>\n" + end + + # Generates the HTML for the list of radio buttons of the "date" search filter + def make_date_filter_options(str : String::Builder, value : Search::Filters::Date, locale : String) + {% for value in Invidious::Search::Filters::Date.constants %} + {% date = value.underscore %} + + str << "\t\t\t\t\t\t<div>" + str << "<input type='radio' name='date' id='filter-date-{{date}}' value='{{date}}'" + str << " checked" if value.{{date}}? + str << '>' + + str << "<label for='filter-date-{{date}}'>" + str << translate(locale, "search_filters_date_option_{{date}}") + str << "</label></div>\n" + {% end %} + end + + # Generates the HTML for the list of radio buttons of the "type" search filter + def make_type_filter_options(str : String::Builder, value : Search::Filters::Type, locale : String) + {% for value in Invidious::Search::Filters::Type.constants %} + {% type = value.underscore %} + + str << "\t\t\t\t\t\t<div>" + str << "<input type='radio' name='type' id='filter-type-{{type}}' value='{{type}}'" + str << " checked" if value.{{type}}? + str << '>' + + str << "<label for='filter-type-{{type}}'>" + str << translate(locale, "search_filters_type_option_{{type}}") + str << "</label></div>\n" + {% end %} + end + + # Generates the HTML for the list of radio buttons of the "duration" search filter + def make_duration_filter_options(str : String::Builder, value : Search::Filters::Duration, locale : String) + {% for value in Invidious::Search::Filters::Duration.constants %} + {% duration = value.underscore %} + + str << "\t\t\t\t\t\t<div>" + str << "<input type='radio' name='duration' id='filter-duration-{{duration}}' value='{{duration}}'" + str << " checked" if value.{{duration}}? + str << '>' + + str << "<label for='filter-duration-{{duration}}'>" + str << translate(locale, "search_filters_duration_option_{{duration}}") + str << "</label></div>\n" + {% end %} + end + + # Generates the HTML for the list of checkboxes of the "features" search filter + def make_features_filter_options(str : String::Builder, value : Search::Filters::Features, locale : String) + {% for value in Invidious::Search::Filters::Features.constants %} + {% if value.stringify != "All" && value.stringify != "None" %} + {% feature = value.underscore %} + + str << "\t\t\t\t\t\t<div>" + str << "<input type='checkbox' name='features' id='filter-features-{{feature}}' value='{{feature}}'" + str << " checked" if value.{{feature}}? + str << '>' + + str << "<label for='filter-feature-{{feature}}'>" + str << translate(locale, "search_filters_features_option_{{feature}}") + str << "</label></div>\n" + {% end %} + {% end %} + end + + # Generates the HTML for the list of radio buttons of the "sort" search filter + def make_sort_filter_options(str : String::Builder, value : Search::Filters::Sort, locale : String) + {% for value in Invidious::Search::Filters::Sort.constants %} + {% sort = value.underscore %} + + str << "\t\t\t\t\t\t<div>" + str << "<input type='radio' name='sort' id='filter-sort-{{sort}}' value='{{sort}}'" + str << " checked" if value.{{sort}}? + str << '>' + + str << "<label for='filter-sort-{{sort}}'>" + str << translate(locale, "search_filters_sort_option_{{sort}}") + str << "</label></div>\n" + {% end %} + end +end diff --git a/src/invidious/frontend/watch_page.cr b/src/invidious/frontend/watch_page.cr new file mode 100644 index 00000000..80b67641 --- /dev/null +++ b/src/invidious/frontend/watch_page.cr @@ -0,0 +1,108 @@ +module Invidious::Frontend::WatchPage + extend self + + # A handy structure to pass many elements at + # once to the download widget function + struct VideoAssets + getter full_videos : Array(Hash(String, JSON::Any)) + getter video_streams : Array(Hash(String, JSON::Any)) + getter audio_streams : Array(Hash(String, JSON::Any)) + getter captions : Array(Caption) + + def initialize( + @full_videos, + @video_streams, + @audio_streams, + @captions + ) + end + end + + def download_widget(locale : String, video : Video, video_assets : VideoAssets) : String + if CONFIG.disabled?("downloads") + return "<p id=\"download\">#{translate(locale, "Download is disabled.")}</p>" + end + + return String.build(4000) do |str| + str << "<form" + str << " class=\"pure-form pure-form-stacked\"" + str << " action='/download'" + str << " method='post'" + str << " rel='noopener'" + str << " target='_blank'>" + str << '\n' + + # Hidden inputs for video id and title + str << "<input type='hidden' name='id' value='" << video.id << "'/>\n" + str << "<input type='hidden' name='title' value='" << HTML.escape(video.title) << "'/>\n" + + str << "\t<div class=\"pure-control-group\">\n" + + str << "\t\t<label for='download_widget'>" + str << translate(locale, "Download as: ") + str << "</label>\n" + + # TODO: remove inline style + str << "\t\t<select style=\"width:100%\" name='download_widget' id='download_widget'>\n" + + # Non-DASH videos (audio+video) + + video_assets.full_videos.each do |option| + mimetype = option["mimeType"].as_s.split(";")[0] + + height = itag_to_metadata?(option["itag"]).try &.["height"]? + + value = {"itag": option["itag"], "ext": mimetype.split("/")[1]}.to_json + + str << "\t\t\t<option value='" << value << "'>" + str << (height || "~240") << "p - " << mimetype + str << "</option>\n" + end + + # DASH video streams + + video_assets.video_streams.each do |option| + mimetype = option["mimeType"].as_s.split(";")[0] + + value = {"itag": option["itag"], "ext": mimetype.split("/")[1]}.to_json + + str << "\t\t\t<option value='" << value << "'>" + str << option["qualityLabel"] << " - " << mimetype << " @ " << option["fps"] << "fps - video only" + str << "</option>\n" + end + + # DASH audio streams + + video_assets.audio_streams.each do |option| + mimetype = option["mimeType"].as_s.split(";")[0] + + value = {"itag": option["itag"], "ext": mimetype.split("/")[1]}.to_json + + str << "\t\t\t<option value='" << value << "'>" + str << mimetype << " @ " << (option["bitrate"]?.try &.as_i./ 1000) << "k - audio only" + str << "</option>\n" + end + + # Subtitles (a.k.a "closed captions") + + video_assets.captions.each do |caption| + value = {"label": caption.name, "ext": "#{caption.language_code}.vtt"}.to_json + + str << "\t\t\t<option value='" << value << "'>" + str << translate(locale, "download_subtitles", translate(locale, caption.name)) + str << "</option>\n" + end + + # End of form + + str << "\t\t</select>\n" + str << "\t</div>\n" + + str << "\t<button type=\"submit\" class=\"pure-button pure-button-primary\">\n" + str << "\t\t<b>" << translate(locale, "Download") << "</b>\n" + str << "\t</button>\n" + + str << "</form>\n" + end + end +end diff --git a/src/invidious/helpers/errors.cr b/src/invidious/helpers/errors.cr index 6155e561..2eab6263 100644 --- a/src/invidious/helpers/errors.cr +++ b/src/invidious/helpers/errors.cr @@ -49,7 +49,7 @@ def error_template_helper(env : HTTP::Server::Context, status_code : Int32, exce issue_template += github_details("Backtrace", HTML.escape(exception.inspect_with_backtrace)) # URLs for the error message below - url_faq = "https://github.com/iv-org/documentation/blob/master/FAQ.md" + url_faq = "https://github.com/iv-org/documentation/blob/master/docs/faq.md" url_search_issues = "https://github.com/iv-org/invidious/issues" url_switch = "https://redirect.invidious.io" + env.request.resource diff --git a/src/invidious/helpers/i18n.cr b/src/invidious/helpers/i18n.cr index 39e183f2..982b97d8 100644 --- a/src/invidious/helpers/i18n.cr +++ b/src/invidious/helpers/i18n.cr @@ -29,10 +29,10 @@ LOCALES_LIST = { "pt-BR" => "Português Brasileiro", # Portuguese (Brazil) "pt-PT" => "Português de Portugal", # Portuguese (Portugal) "ro" => "Română", # Romanian - "ru" => "русский", # Russian + "ru" => "Русский", # Russian "sq" => "Shqip", # Albanian - "sr" => "srpski (latinica)", # Serbian (Latin) - "sr_Cyrl" => "српски (ћирилица)", # Serbian (Cyrillic) + "sr" => "Srpski (latinica)", # Serbian (Latin) + "sr_Cyrl" => "Српски (ћирилица)", # Serbian (Cyrillic) "sv-SE" => "Svenska", # Swedish "tr" => "Türkçe", # Turkish "uk" => "Українська", # Ukrainian diff --git a/src/invidious/helpers/utils.cr b/src/invidious/helpers/utils.cr index a58a21b1..c1dc17db 100644 --- a/src/invidious/helpers/utils.cr +++ b/src/invidious/helpers/utils.cr @@ -51,6 +51,24 @@ def recode_length_seconds(time) end end +def decode_interval(string : String) : Time::Span + rawMinutes = string.try &.to_i32? + + if !rawMinutes + hours = /(?<hours>\d+)h/.match(string).try &.["hours"].try &.to_i32 + hours ||= 0 + + minutes = /(?<minutes>\d+)m(?!s)/.match(string).try &.["minutes"].try &.to_i32 + minutes ||= 0 + + time = Time::Span.new(hours: hours, minutes: minutes) + else + time = Time::Span.new(minutes: rawMinutes) + end + + return time +end + def decode_time(string) time = string.try &.to_f? diff --git a/src/invidious/jobs/refresh_channels_job.cr b/src/invidious/jobs/refresh_channels_job.cr index 55fb8154..92681408 100644 --- a/src/invidious/jobs/refresh_channels_job.cr +++ b/src/invidious/jobs/refresh_channels_job.cr @@ -58,9 +58,8 @@ class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJob end end - # TODO: make this configurable - LOGGER.debug("RefreshChannelsJob: Done, sleeping for thirty minutes") - sleep 30.minutes + LOGGER.debug("RefreshChannelsJob: Done, sleeping for #{CONFIG.channel_refresh_interval}") + sleep CONFIG.channel_refresh_interval Fiber.yield end end diff --git a/src/invidious/routes/api/v1/authenticated.cr b/src/invidious/routes/api/v1/authenticated.cr index c27853ca..b559a01a 100644 --- a/src/invidious/routes/api/v1/authenticated.cr +++ b/src/invidious/routes/api/v1/authenticated.cr @@ -397,4 +397,14 @@ module Invidious::Routes::API::V1::Authenticated env.response.status_code = 204 end + + def self.notifications(env) + env.response.content_type = "text/event-stream" + + raw_topics = env.params.body["topics"]? || env.params.query["topics"]? + topics = raw_topics.try &.split(",").uniq.first(1000) + topics ||= [] of String + + create_notification_stream(env, topics, CONNECTION_CHANNEL) + end end diff --git a/src/invidious/routes/api/v1/channels.cr b/src/invidious/routes/api/v1/channels.cr index c4d6643a..8650976d 100644 --- a/src/invidious/routes/api/v1/channels.cr +++ b/src/invidious/routes/api/v1/channels.cr @@ -251,18 +251,22 @@ module Invidious::Routes::API::V1::Channels def self.search(env) locale = env.get("preferences").as(Preferences).locale + region = env.params.query["region"]? env.response.content_type = "application/json" - ucid = env.params.url["ucid"] + query = Invidious::Search::Query.new(env.params.query, :channel, region) - query = env.params.query["q"]? - query ||= "" + # Required because we can't (yet) pass multiple parameter to the + # `Search::Query` initializer (in this case, an URL segment) + query.channel = env.params.url["ucid"] - page = env.params.query["page"]?.try &.to_i? - page ||= 1 + begin + search_results = query.process + rescue ex + return error_json(400, ex) + end - search_results = channel_search(query, page, ucid) JSON.build do |json| json.array do search_results.each do |item| diff --git a/src/invidious/routes/api/v1/search.cr b/src/invidious/routes/api/v1/search.cr index 0b0853b1..21451d33 100644 --- a/src/invidious/routes/api/v1/search.cr +++ b/src/invidious/routes/api/v1/search.cr @@ -5,34 +5,14 @@ module Invidious::Routes::API::V1::Search env.response.content_type = "application/json" - query = env.params.query["q"]? - query ||= "" - - page = env.params.query["page"]?.try &.to_i? - page ||= 1 - - sort_by = env.params.query["sort_by"]?.try &.downcase - sort_by ||= "relevance" - - date = env.params.query["date"]?.try &.downcase - date ||= "" - - duration = env.params.query["duration"]?.try &.downcase - duration ||= "" - - features = env.params.query["features"]?.try &.split(",").map(&.downcase) - features ||= [] of String - - content_type = env.params.query["type"]?.try &.downcase - content_type ||= "video" + query = Invidious::Search::Query.new(env.params.query, :regular, region) begin - search_params = produce_search_params(page, sort_by, date, content_type, duration, features) + search_results = query.process rescue ex return error_json(400, ex) end - search_results = search(query, search_params, region) JSON.build do |json| json.array do search_results.each do |item| @@ -43,20 +23,20 @@ module Invidious::Routes::API::V1::Search end def self.search_suggestions(env) - locale = env.get("preferences").as(Preferences).locale - region = env.params.query["region"]? + preferences = env.get("preferences").as(Preferences) + region = env.params.query["region"]? || preferences.region env.response.content_type = "application/json" - query = env.params.query["q"]? - query ||= "" + query = env.params.query["q"]? || "" begin - headers = HTTP::Headers{":authority" => "suggestqueries.google.com"} - response = YT_POOL.client &.get("/complete/search?hl=en&gl=#{region}&client=youtube&ds=yt&q=#{URI.encode_www_form(query)}&callback=suggestCallback", headers).body + client = HTTP::Client.new("suggestqueries-clients6.youtube.com") + url = "/complete/search?client=youtube&hl=en&gl=#{region}&q=#{URI.encode_www_form(query)}&xssi=t&gs_ri=youtube&ds=yt" + + response = client.get(url).body - body = response[35..-2] - body = JSON.parse(body).as_a + body = JSON.parse(response[5..-1]).as_a suggestions = body[1].as_a[0..-2] JSON.build do |json| diff --git a/src/invidious/routes/api/v1/videos.cr b/src/invidious/routes/api/v1/videos.cr index 2a4911db..a9f891f5 100644 --- a/src/invidious/routes/api/v1/videos.cr +++ b/src/invidious/routes/api/v1/videos.cr @@ -23,7 +23,11 @@ module Invidious::Routes::API::V1::Videos env.response.content_type = "application/json" id = env.params.url["id"] - region = env.params.query["region"]? + region = env.params.query["region"]? || env.params.body["region"]? + + if id.nil? || id.size != 11 || !id.matches?(/^[\w-]+$/) + return error_json(400, "Invalid video ID") + end # See https://github.com/ytdl-org/youtube-dl/blob/6ab30ff50bf6bd0585927cb73c7421bef184f87a/youtube_dl/extractor/youtube.py#L1354 # It is possible to use `/api/timedtext?type=list&v=#{id}` and diff --git a/src/invidious/routes/channels.cr b/src/invidious/routes/channels.cr index 6cb1e1f7..cd2e3323 100644 --- a/src/invidious/routes/channels.cr +++ b/src/invidious/routes/channels.cr @@ -147,6 +147,39 @@ module Invidious::Routes::Channels end end + def self.live(env) + locale = env.get("preferences").as(Preferences).locale + + # Appears to be a bug in routing, having several routes configured + # as `/a/:a`, `/b/:a`, `/c/:a` results in 404 + value = env.request.resource.split("/")[2] + body = "" + {"channel", "user", "c"}.each do |type| + response = YT_POOL.client &.get("/#{type}/#{value}/live?disable_polymer=1") + if response.status_code == 200 + body = response.body + end + end + + video_id = body.match(/'VIDEO_ID': "(?<id>[a-zA-Z0-9_-]{11})"/).try &.["id"]? + if video_id + params = [] of String + env.params.query.each do |k, v| + params << "#{k}=#{v}" + end + params = params.join("&") + + url = "/watch?v=#{video_id}" + if !params.empty? + url += "&#{params}" + end + + env.redirect url + else + env.redirect "/channel/#{value}" + end + end + private def self.fetch_basic_information(env) locale = env.get("preferences").as(Preferences).locale diff --git a/src/invidious/routes/login.cr b/src/invidious/routes/login.cr index 65b337d1..99fc13a2 100644 --- a/src/invidious/routes/login.cr +++ b/src/invidious/routes/login.cr @@ -481,4 +481,11 @@ module Invidious::Routes::Login env.redirect referer end + + def self.captcha(env) + headers = HTTP::Headers{":authority" => "accounts.google.com"} + response = YT_POOL.client &.get(env.request.resource, headers) + env.response.headers["Content-Type"] = response.headers["Content-Type"] + response.body + end end diff --git a/src/invidious/routes/playlists.cr b/src/invidious/routes/playlists.cr index 1ed29e79..de981d81 100644 --- a/src/invidious/routes/playlists.cr +++ b/src/invidious/routes/playlists.cr @@ -212,7 +212,10 @@ module Invidious::Routes::Playlists end def self.add_playlist_items_page(env) - locale = env.get("preferences").as(Preferences).locale + prefs = env.get("preferences").as(Preferences) + locale = prefs.locale + + region = env.params.query["region"]? || prefs.region user = env.get? "user" sid = env.get? "sid" @@ -236,15 +239,10 @@ module Invidious::Routes::Playlists return env.redirect referer end - query = env.params.query["q"]? - if query - begin - search_query, items, operators = process_search_query(query, page, user, region: nil) - videos = items.select(SearchVideo).map(&.as(SearchVideo)) - rescue ex - videos = [] of SearchVideo - end - else + begin + query = Invidious::Search::Query.new(env.params.query, :playlist, region) + videos = query.process.select(SearchVideo).map(&.as(SearchVideo)) + rescue ex videos = [] of SearchVideo end @@ -443,4 +441,15 @@ module Invidious::Routes::Playlists templated "mix" end + + # Undocumented, creates anonymous playlist with specified 'video_ids', max 50 videos + def self.watch_videos(env) + response = YT_POOL.client &.get(env.request.resource) + if url = response.headers["Location"]? + url = URI.parse(url).request_target + return env.redirect url + end + + env.response.status_code = response.status_code + end end diff --git a/src/invidious/routes/preferences.cr b/src/invidious/routes/preferences.cr index 68d61fd1..570cba69 100644 --- a/src/invidious/routes/preferences.cr +++ b/src/invidious/routes/preferences.cr @@ -47,6 +47,10 @@ module Invidious::Routes::PreferencesRoute local ||= "off" local = local == "on" + watch_history = env.params.body["watch_history"]?.try &.as(String) + watch_history ||= "off" + watch_history = watch_history == "on" + speed = env.params.body["speed"]?.try &.as(String).to_f32? speed ||= CONFIG.default_user_preferences.speed @@ -149,6 +153,7 @@ module Invidious::Routes::PreferencesRoute latest_only: latest_only, listen: listen, local: local, + watch_history: watch_history, locale: locale, max_results: max_results, notifications_only: notifications_only, diff --git a/src/invidious/routes/search.cr b/src/invidious/routes/search.cr index 3f4c7e5e..e60d0081 100644 --- a/src/invidious/routes/search.cr +++ b/src/invidious/routes/search.cr @@ -37,37 +37,29 @@ module Invidious::Routes::Search end def self.search(env) - locale = env.get("preferences").as(Preferences).locale - region = env.params.query["region"]? + prefs = env.get("preferences").as(Preferences) + locale = prefs.locale - query = env.params.query["search_query"]? - query ||= env.params.query["q"]? + region = env.params.query["region"]? || prefs.region + + query = Invidious::Search::Query.new(env.params.query, :regular, region) - if !query || query.empty? + if query.empty? # Display the full page search box implemented in #1977 env.set "search", "" templated "search_homepage", navbar_search: false else - page = env.params.query["page"]?.try &.to_i? - page ||= 1 - user = env.get? "user" begin - search_query, videos, operators = process_search_query(query, page, user, region: region) + videos = query.process rescue ex : ChannelSearchException return error_template(404, "Unable to find channel with id of '#{HTML.escape(ex.channel)}'. Are you sure that's an actual channel id? It should look like 'UC4QobU6STFB0P71PMvOGN5A'.") rescue ex return error_template(500, ex) end - operator_hash = {} of String => String - operators.each do |operator| - key, value = operator.downcase.split(":") - operator_hash[key] = value - end - - env.set "search", query + env.set "search", query.text templated "search" end end diff --git a/src/invidious/routes/video_playback.cr b/src/invidious/routes/video_playback.cr index 6ac1e780..3a92ef96 100644 --- a/src/invidious/routes/video_playback.cr +++ b/src/invidious/routes/video_playback.cr @@ -164,7 +164,9 @@ module Invidious::Routes::VideoPlayback if title = query_params["title"]? # https://blog.fastmail.com/2011/06/24/download-non-english-filenames/ - env.response.headers["Content-Disposition"] = "attachment; filename=\"#{URI.encode_www_form(title)}\"; filename*=UTF-8''#{URI.encode_www_form(title)}" + filename = URI.encode_www_form(title, space_to_plus: false) + header = "attachment; filename=\"#{filename}\"; filename*=UTF-8''#{filename}" + env.response.headers["Content-Disposition"] = header end if !resp.headers.includes_word?("Transfer-Encoding", "chunked") @@ -242,31 +244,25 @@ module Invidious::Routes::VideoPlayback # YouTube /videoplayback links expire after 6 hours, # so we have a mechanism here to redirect to the latest version def self.latest_version(env) - if env.params.query["download_widget"]? - download_widget = JSON.parse(env.params.query["download_widget"]) + id = env.params.query["id"]? + itag = env.params.query["itag"]?.try &.to_i? - id = download_widget["id"].as_s - title = URI.decode_www_form(download_widget["title"].as_s) - - if label = download_widget["label"]? - return env.redirect "/api/v1/captions/#{id}?label=#{label}&title=#{title}" - else - itag = download_widget["itag"].as_s.to_i - local = "true" - end + # Sanity checks + if id.nil? || id.size != 11 || !id.matches?(/^[\w-]+$/) + return error_template(400, "Invalid video ID") end - id ||= env.params.query["id"]? - itag ||= env.params.query["itag"]?.try &.to_i + if itag.nil? || itag <= 0 || itag >= 1000 + return error_template(400, "Invalid itag") + end region = env.params.query["region"]? + local = (env.params.query["local"]? == "true") - local ||= env.params.query["local"]? - local ||= "false" - local = local == "true" + title = env.params.query["title"]? - if !id || !itag - haltf env, status_code: 400, response: "TESTING" + if title && CONFIG.disabled?("downloads") + return error_template(403, "Administrator has disabled this endpoint.") end video = get_video(id, region: region) @@ -278,8 +274,10 @@ module Invidious::Routes::VideoPlayback haltf env, status_code: 404 end - url = URI.parse(url).request_target.not_nil! if local - url = "#{url}&title=#{title}" if title + if local + url = URI.parse(url).request_target.not_nil! + url += "&title=#{URI.encode_www_form(title, space_to_plus: false)}" if title + end return env.redirect url end diff --git a/src/invidious/routes/watch.cr b/src/invidious/routes/watch.cr index 42bc4219..867ffa6a 100644 --- a/src/invidious/routes/watch.cr +++ b/src/invidious/routes/watch.cr @@ -75,7 +75,7 @@ module Invidious::Routes::Watch end env.params.query.delete_all("iv_load_policy") - if watched && !watched.includes? id + if watched && preferences.watch_history && !watched.includes? id Invidious::Database::Users.mark_watched(user.as(User), id) end @@ -189,6 +189,14 @@ module Invidious::Routes::Watch return env.redirect url end + # Structure used for the download widget + video_assets = Invidious::Frontend::WatchPage::VideoAssets.new( + full_videos: fmt_stream, + video_streams: video_streams, + audio_streams: audio_streams, + captions: video.captions + ) + templated "watch" end @@ -281,4 +289,49 @@ module Invidious::Routes::Watch return error_template(404, "The requested clip doesn't exist") end end + + def self.download(env) + if CONFIG.disabled?("downloads") + return error_template(403, "Administrator has disabled this endpoint.") + end + + title = env.params.body["title"]? || "" + video_id = env.params.body["id"]? || "" + selection = env.params.body["download_widget"]? + + if title.empty? || video_id.empty? || selection.nil? + return error_template(400, "Missing form data") + end + + download_widget = JSON.parse(selection) + + extension = download_widget["ext"].as_s + filename = "#{video_id}-#{title}.#{extension}" + + # Pass form parameters as URL parameters for the handlers of both + # /latest_version and /api/v1/captions. This avoids an un-necessary + # redirect and duplicated (and hazardous) sanity checks. + env.params.query["id"] = video_id + env.params.query["title"] = filename + + # Delete the useless ones + env.params.body.delete("id") + env.params.body.delete("title") + env.params.body.delete("download_widget") + + if label = download_widget["label"]? + # URL params specific to /api/v1/captions/:id + env.params.query["label"] = URI.encode_www_form(label.as_s, space_to_plus: false) + + return Invidious::Routes::API::V1::Videos.captions(env) + elsif itag = download_widget["itag"]?.try &.as_i + # URL params specific to /latest_version + env.params.query["itag"] = itag.to_s + env.params.query["local"] = "true" + + return Invidious::Routes::VideoPlayback.latest_version(env) + else + return error_template(400, "Invalid label or itag") + end + end end diff --git a/src/invidious/routing.cr b/src/invidious/routing.cr index 5efe1bd8..bd72c577 100644 --- a/src/invidious/routing.cr +++ b/src/invidious/routing.cr @@ -15,6 +15,7 @@ macro define_user_routes Invidious::Routing.get "/login", Invidious::Routes::Login, :login_page Invidious::Routing.post "/login", Invidious::Routes::Login, :login Invidious::Routing.post "/signout", Invidious::Routes::Login, :signout + Invidious::Routing.get "/Captcha", Invidious::Routes::Login, :captcha # User preferences Invidious::Routing.get "/preferences", Invidious::Routes::PreferencesRoute, :show @@ -95,6 +96,9 @@ macro define_v1_api_routes Invidious::Routing.post "/api/v1/auth/tokens/register", {{namespace}}::Authenticated, :register_token Invidious::Routing.post "/api/v1/auth/tokens/unregister", {{namespace}}::Authenticated, :unregister_token + Invidious::Routing.get "/api/v1/auth/notifications", {{namespace}}::Authenticated, :notifications + Invidious::Routing.post "/api/v1/auth/notifications", {{namespace}}::Authenticated, :notifications + # Misc Invidious::Routing.get "/api/v1/stats", {{namespace}}::Misc, :stats Invidious::Routing.get "/api/v1/playlists/:plid", {{namespace}}::Misc, :get_playlist diff --git a/src/invidious/search.cr b/src/invidious/search.cr deleted file mode 100644 index ae106bf6..00000000 --- a/src/invidious/search.cr +++ /dev/null @@ -1,254 +0,0 @@ -class ChannelSearchException < InfoException - getter channel : String - - def initialize(@channel) - end -end - -def channel_search(query, page, channel) : Array(SearchItem) - response = YT_POOL.client &.get("/channel/#{channel}") - - if response.status_code == 404 - response = YT_POOL.client &.get("/user/#{channel}") - response = YT_POOL.client &.get("/c/#{channel}") if response.status_code == 404 - initial_data = extract_initial_data(response.body) - ucid = initial_data.dig?("header", "c4TabbedHeaderRenderer", "channelId").try(&.as_s?) - raise ChannelSearchException.new(channel) if !ucid - else - ucid = channel - end - - continuation = produce_channel_search_continuation(ucid, query, page) - response_json = YoutubeAPI.browse(continuation) - - continuation_items = response_json["onResponseReceivedActions"]? - .try &.[0]["appendContinuationItemsAction"]["continuationItems"] - - return [] of SearchItem if !continuation_items - - items = [] of SearchItem - continuation_items.as_a.select(&.as_h.has_key?("itemSectionRenderer")).each do |item| - extract_item(item["itemSectionRenderer"]["contents"].as_a[0]).try { |t| items << t } - end - - return items -end - -def search(query, search_params = produce_search_params(content_type: "all"), region = nil) : Array(SearchItem) - return [] of SearchItem if query.empty? - - client_config = YoutubeAPI::ClientConfig.new(region: region) - initial_data = YoutubeAPI.search(query, search_params, client_config: client_config) - - return extract_items(initial_data) -end - -def produce_search_params(page = 1, sort : String = "relevance", date : String = "", content_type : String = "", - duration : String = "", features : Array(String) = [] of String) - object = { - "1:varint" => 0_i64, - "2:embedded" => {} of String => Int64, - "9:varint" => ((page - 1) * 20).to_i64, - } - - case sort - when "relevance" - object["1:varint"] = 0_i64 - when "rating" - object["1:varint"] = 1_i64 - when "upload_date", "date" - object["1:varint"] = 2_i64 - when "view_count", "views" - object["1:varint"] = 3_i64 - else - raise "No sort #{sort}" - end - - case date - when "hour" - object["2:embedded"].as(Hash)["1:varint"] = 1_i64 - when "today" - object["2:embedded"].as(Hash)["1:varint"] = 2_i64 - when "week" - object["2:embedded"].as(Hash)["1:varint"] = 3_i64 - when "month" - object["2:embedded"].as(Hash)["1:varint"] = 4_i64 - when "year" - object["2:embedded"].as(Hash)["1:varint"] = 5_i64 - else nil # Ignore - end - - case content_type - when "video" - object["2:embedded"].as(Hash)["2:varint"] = 1_i64 - when "channel" - object["2:embedded"].as(Hash)["2:varint"] = 2_i64 - when "playlist" - object["2:embedded"].as(Hash)["2:varint"] = 3_i64 - when "movie" - object["2:embedded"].as(Hash)["2:varint"] = 4_i64 - when "show" - object["2:embedded"].as(Hash)["2:varint"] = 5_i64 - when "all" - # - else - object["2:embedded"].as(Hash)["2:varint"] = 1_i64 - end - - case duration - when "short" - object["2:embedded"].as(Hash)["3:varint"] = 1_i64 - when "long" - object["2:embedded"].as(Hash)["3:varint"] = 2_i64 - else nil # Ignore - end - - features.each do |feature| - case feature - when "hd" - object["2:embedded"].as(Hash)["4:varint"] = 1_i64 - when "subtitles" - object["2:embedded"].as(Hash)["5:varint"] = 1_i64 - when "creative_commons", "cc" - object["2:embedded"].as(Hash)["6:varint"] = 1_i64 - when "3d" - object["2:embedded"].as(Hash)["7:varint"] = 1_i64 - when "live", "livestream" - object["2:embedded"].as(Hash)["8:varint"] = 1_i64 - when "purchased" - object["2:embedded"].as(Hash)["9:varint"] = 1_i64 - when "4k" - object["2:embedded"].as(Hash)["14:varint"] = 1_i64 - when "360" - object["2:embedded"].as(Hash)["15:varint"] = 1_i64 - when "location" - object["2:embedded"].as(Hash)["23:varint"] = 1_i64 - when "hdr" - object["2:embedded"].as(Hash)["25:varint"] = 1_i64 - else nil # Ignore - end - end - - if object["2:embedded"].as(Hash).empty? - object.delete("2:embedded") - end - - params = object.try { |i| Protodec::Any.cast_json(i) } - .try { |i| Protodec::Any.from_json(i) } - .try { |i| Base64.urlsafe_encode(i) } - .try { |i| URI.encode_www_form(i) } - - return params -end - -def produce_channel_search_continuation(ucid, query, page) - if page <= 1 - idx = 0_i64 - else - idx = 30_i64 * (page - 1) - end - - object = { - "80226972:embedded" => { - "2:string" => ucid, - "3:base64" => { - "2:string" => "search", - "6:varint" => 1_i64, - "7:varint" => 1_i64, - "12:varint" => 1_i64, - "15:base64" => { - "3:varint" => idx, - }, - "23:varint" => 0_i64, - }, - "11:string" => query, - "35:string" => "browse-feed#{ucid}search", - }, - } - - continuation = object.try { |i| Protodec::Any.cast_json(i) } - .try { |i| Protodec::Any.from_json(i) } - .try { |i| Base64.urlsafe_encode(i) } - .try { |i| URI.encode_www_form(i) } - - return continuation -end - -def process_search_query(query, page, user, region) - if user - user = user.as(Invidious::User) - view_name = "subscriptions_#{sha256(user.email)}" - end - - channel = nil - content_type = "all" - date = "" - duration = "" - features = [] of String - sort = "relevance" - subscriptions = nil - - operators = query.split(" ").select(&.match(/\w+:[\w,]+/)) - operators.each do |operator| - key, value = operator.downcase.split(":") - - case key - when "channel", "user" - channel = operator.split(":")[-1] - when "content_type", "type" - content_type = value - when "date" - date = value - when "duration" - duration = value - when "feature", "features" - features = value.split(",") - when "sort" - sort = value - when "subscriptions" - subscriptions = value == "true" - else - operators.delete(operator) - end - end - - search_query = (query.split(" ") - operators).join(" ") - - if channel - items = channel_search(search_query, page, channel) - elsif subscriptions - if view_name - items = PG_DB.query_all("SELECT id,title,published,updated,ucid,author,length_seconds FROM ( - SELECT *, - to_tsvector(#{view_name}.title) || - to_tsvector(#{view_name}.author) - as document - FROM #{view_name} - ) v_search WHERE v_search.document @@ plainto_tsquery($1) LIMIT 20 OFFSET $2;", search_query, (page - 1) * 20, as: ChannelVideo) - else - items = [] of ChannelVideo - end - else - search_params = produce_search_params(page: page, sort: sort, date: date, content_type: content_type, - duration: duration, features: features) - - items = search(search_query, search_params, region) - end - - # Light processing to flatten search results out of Categories. - # They should ideally be supported in the future. - items_without_category = [] of SearchItem | ChannelVideo - items.each do |i| - if i.is_a? Category - i.contents.each do |nest_i| - if !nest_i.is_a? Video - items_without_category << nest_i - end - end - else - items_without_category << i - end - end - - {search_query, items_without_category, operators} -end diff --git a/src/invidious/search/ctoken.cr b/src/invidious/search/ctoken.cr new file mode 100644 index 00000000..161065e0 --- /dev/null +++ b/src/invidious/search/ctoken.cr @@ -0,0 +1,32 @@ +def produce_channel_search_continuation(ucid, query, page) + if page <= 1 + idx = 0_i64 + else + idx = 30_i64 * (page - 1) + end + + object = { + "80226972:embedded" => { + "2:string" => ucid, + "3:base64" => { + "2:string" => "search", + "6:varint" => 1_i64, + "7:varint" => 1_i64, + "12:varint" => 1_i64, + "15:base64" => { + "3:varint" => idx, + }, + "23:varint" => 0_i64, + }, + "11:string" => query, + "35:string" => "browse-feed#{ucid}search", + }, + } + + continuation = object.try { |i| Protodec::Any.cast_json(i) } + .try { |i| Protodec::Any.from_json(i) } + .try { |i| Base64.urlsafe_encode(i) } + .try { |i| URI.encode_www_form(i) } + + return continuation +end diff --git a/src/invidious/search/filters.cr b/src/invidious/search/filters.cr new file mode 100644 index 00000000..c2b5c758 --- /dev/null +++ b/src/invidious/search/filters.cr @@ -0,0 +1,376 @@ +require "protodec/utils" +require "http/params" + +module Invidious::Search + struct Filters + # Values correspond to { "2:embedded": { "1:varint": <X> }} + # except for "None" which is only used by us (= nothing selected) + enum Date + None = 0 + Hour = 1 + Today = 2 + Week = 3 + Month = 4 + Year = 5 + end + + # Values correspond to { "2:embedded": { "2:varint": <X> }} + # except for "All" which is only used by us (= nothing selected) + enum Type + All = 0 + Video = 1 + Channel = 2 + Playlist = 3 + Movie = 4 + + # Has it been removed? + # (Not available on youtube's UI) + Show = 5 + end + + # Values correspond to { "2:embedded": { "3:varint": <X> }} + # except for "None" which is only used by us (= nothing selected) + enum Duration + None = 0 + Short = 1 # "Under 4 minutes" + Long = 2 # "Over 20 minutes" + Medium = 3 # "4 - 20 minutes" + end + + # Note: flag enums automatically generate + # "none" and "all" members + @[Flags] + enum Features + Live + FourK # "4K" + HD + Subtitles # "Subtitles/CC" + CCommons # "Creative Commons" + ThreeSixty # "360°" + VR180 + ThreeD # "3D" + HDR + Location + Purchased + end + + # Values correspond to { "1:varint": <X> } + enum Sort + Relevance = 0 + Rating = 1 + Date = 2 + Views = 3 + end + + # Parameters are sorted as on Youtube + property date : Date + property type : Type + property duration : Duration + property features : Features + property sort : Sort + + def initialize( + *, # All parameters must be named + @date : Date = Date::None, + @type : Type = Type::All, + @duration : Duration = Duration::None, + @features : Features = Features::None, + @sort : Sort = Sort::Relevance + ) + end + + def default? : Bool + return @date.none? && @type.all? && @duration.none? && \ + @features.none? && @sort.relevance? + end + + # ------------------- + # Invidious params + # ------------------- + + def self.parse_features(raw : Array(String)) : Features + # Initialize return variable + features = Features.new(0) + + raw.each do |ft| + case ft.downcase + when "live", "livestream" + features = features | Features::Live + when "4k" then features = features | Features::FourK + when "hd" then features = features | Features::HD + when "subtitles" then features = features | Features::Subtitles + when "creative_commons", "commons", "cc" + features = features | Features::CCommons + when "360" then features = features | Features::ThreeSixty + when "vr180" then features = features | Features::VR180 + when "3d" then features = features | Features::ThreeD + when "hdr" then features = features | Features::HDR + when "location" then features = features | Features::Location + when "purchased" then features = features | Features::Purchased + end + end + + return features + end + + def self.format_features(features : Features) : String + # Directly return an empty string if there are no features + return "" if features.none? + + # Initialize return variable + str = [] of String + + str << "live" if features.live? + str << "4k" if features.four_k? + str << "hd" if features.hd? + str << "subtitles" if features.subtitles? + str << "commons" if features.c_commons? + str << "360" if features.three_sixty? + str << "vr180" if features.vr180? + str << "3d" if features.three_d? + str << "hdr" if features.hdr? + str << "location" if features.location? + str << "purchased" if features.purchased? + + return str.join(',') + end + + def self.from_legacy_filters(str : String) : {Filters, String, String, Bool} + # Split search query on spaces + members = str.split(' ') + + # Output variables + channel = "" + filters = Filters.new + subscriptions = false + + # Array to hold the non-filter members + query = [] of String + + # Parse! + members.each do |substr| + # Separator operators + operators = substr.split(':') + + case operators[0] + when "user", "channel" + next if operators.size != 2 + channel = operators[1] + # + when "type", "content_type" + next if operators.size != 2 + type = Type.parse?(operators[1]) + filters.type = type if !type.nil? + # + when "date" + next if operators.size != 2 + date = Date.parse?(operators[1]) + filters.date = date if !date.nil? + # + when "duration" + next if operators.size != 2 + duration = Duration.parse?(operators[1]) + filters.duration = duration if !duration.nil? + # + when "feature", "features" + next if operators.size != 2 + features = parse_features(operators[1].split(',')) + filters.features = features if !features.nil? + # + when "sort" + next if operators.size != 2 + sort = Sort.parse?(operators[1]) + filters.sort = sort if !sort.nil? + # + when "subscriptions" + next if operators.size != 2 + subscriptions = {"true", "on", "yes", "1"}.any?(&.== operators[1]) + # + else + query << substr + end + end + + # Re-assemble query (without filters) + cleaned_query = query.join(' ') + + return {filters, channel, cleaned_query, subscriptions} + end + + def self.from_iv_params(params : HTTP::Params) : Filters + # Temporary variables + filters = Filters.new + + if type = params["type"]? + filters.type = Type.parse?(type) || Type::All + params.delete("type") + end + + if date = params["date"]? + filters.date = Date.parse?(date) || Date::None + params.delete("date") + end + + if duration = params["duration"]? + filters.duration = Duration.parse?(duration) || Duration::None + params.delete("duration") + end + + features = params.fetch_all("features") + if !features.empty? + # Un-array input so it can be treated as a comma-separated list + features = features[0].split(',') if features.size == 1 + + filters.features = parse_features(features) || Features::None + params.delete_all("features") + end + + if sort = params["sort"]? + filters.sort = Sort.parse?(sort) || Sort::Relevance + params.delete("sort") + end + + return filters + end + + def to_iv_params : HTTP::Params + # Temporary variables + raw_params = {} of String => Array(String) + + raw_params["date"] = [@date.to_s.underscore] if !@date.none? + raw_params["type"] = [@type.to_s.underscore] if !@type.all? + raw_params["sort"] = [@sort.to_s.underscore] if !@sort.relevance? + + if !@duration.none? + raw_params["duration"] = [@duration.to_s.underscore] + end + + if !@features.none? + raw_params["features"] = [Filters.format_features(@features)] + end + + return HTTP::Params.new(raw_params) + end + + # ------------------- + # Youtube params + # ------------------- + + # Produce the youtube search parameters for the + # innertube API (base64-encoded protobuf object). + def to_yt_params(page : Int = 1) : String + # Initialize the embedded protobuf object + embedded = {} of String => Int64 + + # Add these field only if associated parameter is selected + embedded["1:varint"] = @date.to_i64 if !@date.none? + embedded["2:varint"] = @type.to_i64 if !@type.all? + embedded["3:varint"] = @duration.to_i64 if !@duration.none? + + if !@features.none? + # All features have a value of "1" when enabled, and + # the field is omitted when the feature is no selected. + embedded["4:varint"] = 1_i64 if @features.includes?(Features::HD) + embedded["5:varint"] = 1_i64 if @features.includes?(Features::Subtitles) + embedded["6:varint"] = 1_i64 if @features.includes?(Features::CCommons) + embedded["7:varint"] = 1_i64 if @features.includes?(Features::ThreeD) + embedded["8:varint"] = 1_i64 if @features.includes?(Features::Live) + embedded["9:varint"] = 1_i64 if @features.includes?(Features::Purchased) + embedded["14:varint"] = 1_i64 if @features.includes?(Features::FourK) + embedded["15:varint"] = 1_i64 if @features.includes?(Features::ThreeSixty) + embedded["23:varint"] = 1_i64 if @features.includes?(Features::Location) + embedded["25:varint"] = 1_i64 if @features.includes?(Features::HDR) + embedded["26:varint"] = 1_i64 if @features.includes?(Features::VR180) + end + + # Initialize an empty protobuf object + object = {} of String => (Int64 | String | Hash(String, Int64)) + + # As usual, everything can be omitted if it has no value + object["2:embedded"] = embedded if !embedded.empty? + + # Default sort is "relevance", so when this option is selected, + # the associated field can be omitted. + if !@sort.relevance? + object["1:varint"] = @sort.to_i64 + end + + # Add page number (if provided) + if page > 1 + object["9:varint"] = ((page - 1) * 20).to_i64 + end + + # If the object is empty, return an empty string, + # otherwise encode to protobuf then to base64 + return "" if object.empty? + + return object + .try { |i| Protodec::Any.cast_json(i) } + .try { |i| Protodec::Any.from_json(i) } + .try { |i| Base64.urlsafe_encode(i) } + .try { |i| URI.encode_www_form(i) } + end + + # Function to parse the `sp` URL parameter from Youtube + # search page. It's a base64-encoded protobuf object. + def self.from_yt_params(params : HTTP::Params) : Filters + # Initialize output variable + filters = Filters.new + + # Get parameter, and check emptyness + search_params = params["sp"]? + + if search_params.nil? || search_params.empty? + return filters + end + + # Decode protobuf object + object = search_params + .try { |i| URI.decode_www_form(i) } + .try { |i| Base64.decode(i) } + .try { |i| IO::Memory.new(i) } + .try { |i| Protodec::Any.parse(i) } + + # Parse items from embedded object + if embedded = object["2:0:embedded"]? + # All the following fields (date, type, duration) are optional. + if date = embedded["1:0:varint"]? + filters.date = Date.from_value?(date.as_i) || Date::None + end + + if type = embedded["2:0:varint"]? + filters.type = Type.from_value?(type.as_i) || Type::All + end + + if duration = embedded["3:0:varint"]? + filters.duration = Duration.from_value?(duration.as_i) || Duration::None + end + + # All features should have a value of "1" when enabled, and + # the field should be omitted when the feature is no selected. + features = 0 + features += (embedded["4:0:varint"]?.try &.as_i == 1_i64) ? Features::HD.value : 0 + features += (embedded["5:0:varint"]?.try &.as_i == 1_i64) ? Features::Subtitles.value : 0 + features += (embedded["6:0:varint"]?.try &.as_i == 1_i64) ? Features::CCommons.value : 0 + features += (embedded["7:0:varint"]?.try &.as_i == 1_i64) ? Features::ThreeD.value : 0 + features += (embedded["8:0:varint"]?.try &.as_i == 1_i64) ? Features::Live.value : 0 + features += (embedded["9:0:varint"]?.try &.as_i == 1_i64) ? Features::Purchased.value : 0 + features += (embedded["14:0:varint"]?.try &.as_i == 1_i64) ? Features::FourK.value : 0 + features += (embedded["15:0:varint"]?.try &.as_i == 1_i64) ? Features::ThreeSixty.value : 0 + features += (embedded["23:0:varint"]?.try &.as_i == 1_i64) ? Features::Location.value : 0 + features += (embedded["25:0:varint"]?.try &.as_i == 1_i64) ? Features::HDR.value : 0 + features += (embedded["26:0:varint"]?.try &.as_i == 1_i64) ? Features::VR180.value : 0 + + filters.features = Features.from_value?(features) || Features::None + end + + if sort = object["1:0:varint"]? + filters.sort = Sort.from_value?(sort.as_i) || Sort::Relevance + end + + # Remove URL parameter and return result + params.delete("sp") + return filters + end + end +end diff --git a/src/invidious/search/processors.cr b/src/invidious/search/processors.cr new file mode 100644 index 00000000..d1409c06 --- /dev/null +++ b/src/invidious/search/processors.cr @@ -0,0 +1,64 @@ +module Invidious::Search + module Processors + extend self + + # Regular search (`/search` endpoint) + def regular(query : Query) : Array(SearchItem) + search_params = query.filters.to_yt_params(page: query.page) + + client_config = YoutubeAPI::ClientConfig.new(region: query.region) + initial_data = YoutubeAPI.search(query.text, search_params, client_config: client_config) + + return extract_items(initial_data) + end + + # Search a youtube channel + # TODO: clean code, and rely more on YoutubeAPI + def channel(query : Query) : Array(SearchItem) + response = YT_POOL.client &.get("/channel/#{query.channel}") + + if response.status_code == 404 + response = YT_POOL.client &.get("/user/#{query.channel}") + response = YT_POOL.client &.get("/c/#{query.channel}") if response.status_code == 404 + initial_data = extract_initial_data(response.body) + ucid = initial_data.dig?("header", "c4TabbedHeaderRenderer", "channelId").try(&.as_s?) + raise ChannelSearchException.new(query.channel) if !ucid + else + ucid = query.channel + end + + continuation = produce_channel_search_continuation(ucid, query.text, query.page) + response_json = YoutubeAPI.browse(continuation) + + continuation_items = response_json["onResponseReceivedActions"]? + .try &.[0]["appendContinuationItemsAction"]["continuationItems"] + + return [] of SearchItem if !continuation_items + + items = [] of SearchItem + continuation_items.as_a.select(&.as_h.has_key?("itemSectionRenderer")).each do |item| + extract_item(item["itemSectionRenderer"]["contents"].as_a[0]).try { |t| items << t } + end + + return items + end + + # Search inside of user subscriptions + def subscriptions(query : Query, user : Invidious::User) : Array(ChannelVideo) + view_name = "subscriptions_#{sha256(user.email)}" + + return PG_DB.query_all(" + SELECT id,title,published,updated,ucid,author,length_seconds + FROM ( + SELECT *, + to_tsvector(#{view_name}.title) || + to_tsvector(#{view_name}.author) + as document + FROM #{view_name} + ) v_search WHERE v_search.document @@ plainto_tsquery($1) LIMIT 20 OFFSET $2;", + query.text, (query.page - 1) * 20, + as: ChannelVideo + ) + end + end +end diff --git a/src/invidious/search/query.cr b/src/invidious/search/query.cr new file mode 100644 index 00000000..1c2b37d2 --- /dev/null +++ b/src/invidious/search/query.cr @@ -0,0 +1,148 @@ +module Invidious::Search + class Query + enum Type + # Types related to YouTube + Regular # Youtube search page + Channel # Youtube channel search box + + # Types specific to Invidious + Subscriptions # Search user subscriptions + Playlist # "Add playlist item" search + end + + @type : Type = Type::Regular + + @raw_query : String + @query : String = "" + + property filters : Filters = Filters.new + property page : Int32 + property region : String? + property channel : String = "" + + # Return true if @raw_query is either `nil` or empty + private def empty_raw_query? + return @raw_query.empty? + end + + # Same as `empty_raw_query?`, but named for external use + def empty? + return self.empty_raw_query? + end + + # Getter for the query string. + # It is named `text` to reduce confusion (`search_query.text` makes more + # sense than `search_query.query`) + def text + return @query + end + + # Initialize a new search query. + # Parameters are used to get the query string, the page number + # and the search filters (if any). Type tells this function + # where it is being called from (See `Type` above). + def initialize( + params : HTTP::Params, + @type : Type = Type::Regular, + @region : String? = nil + ) + # Get the raw search query string (common to all search types). In + # Regular search mode, also look for the `search_query` URL parameter + if @type.regular? + @raw_query = params["q"]? || params["search_query"]? || "" + else + @raw_query = params["q"]? || "" + end + + # Get the page number (also common to all search types) + @page = params["page"]?.try &.to_i? || 1 + + # Stop here is raw query in empty + # NOTE: maybe raise in the future? + return if self.empty_raw_query? + + # Specific handling + case @type + when .playlist?, .channel? + # In "add playlist item" mode, filters are parsed from the query + # string itself (legacy), and the channel is ignored. + # + # In "channel search" mode, filters are ignored, but we still parse + # the query prevent transmission of legacy filters to youtube. + # + @filters, @query, @channel, _ = Filters.from_legacy_filters(@raw_query || "") + # + when .subscriptions?, .regular? + if params["sp"]? + # Parse the `sp` URL parameter (youtube compatibility) + @filters = Filters.from_yt_params(params) + @query = @raw_query || "" + else + # Parse invidious URL parameters (sort, date, etc...) + @filters = Filters.from_iv_params(params) + @channel = params["channel"]? || "" + + if @filters.default? && @raw_query.includes?(':') + # Parse legacy filters from query + @filters, @query, @channel, subs = Filters.from_legacy_filters(@raw_query || "") + else + @query = @raw_query || "" + end + + if !@channel.empty? + # Switch to channel search mode (filters will be ignored) + @type = Type::Channel + elsif subs + # Switch to subscriptions search mode + @type = Type::Subscriptions + end + end + end + end + + # Run the search query using the corresponding search processor. + # Returns either the results or an empty array of `SearchItem`. + def process(user : Invidious::User? = nil) : Array(SearchItem) | Array(ChannelVideo) + items = [] of SearchItem + + # Don't bother going further if search query is empty + return items if self.empty_raw_query? + + case @type + when .regular?, .playlist? + items = unnest_items(Processors.regular(self)) + # + when .channel? + items = Processors.channel(self) + # + when .subscriptions? + if user + items = Processors.subscriptions(self, user.as(Invidious::User)) + end + end + + return items + end + + # TODO: clean code + private def unnest_items(all_items) : Array(SearchItem) + items = [] of SearchItem + + # Light processing to flatten search results out of Categories. + # They should ideally be supported in the future. + all_items.each do |i| + if i.is_a? Category + i.contents.each do |nest_i| + if !nest_i.is_a? Video + items << nest_i + end + end + else + items << i + end + end + + return items + end + end +end diff --git a/src/invidious/user/cookies.cr b/src/invidious/user/cookies.cr index 99df1b07..65e079ec 100644 --- a/src/invidious/user/cookies.cr +++ b/src/invidious/user/cookies.cr @@ -17,7 +17,8 @@ struct Invidious::User value: sid, expires: Time.utc + 2.years, secure: SECURE, - http_only: true + http_only: true, + samesite: HTTP::Cookie::SameSite::Strict ) end @@ -30,7 +31,8 @@ struct Invidious::User value: URI.encode_www_form(preferences.to_json), expires: Time.utc + 2.years, secure: SECURE, - http_only: true + http_only: false, + samesite: HTTP::Cookie::SameSite::Strict ) end end diff --git a/src/invidious/user/preferences.cr b/src/invidious/user/preferences.cr index bf7ea401..b3059403 100644 --- a/src/invidious/user/preferences.cr +++ b/src/invidious/user/preferences.cr @@ -23,6 +23,7 @@ struct Preferences property latest_only : Bool = CONFIG.default_user_preferences.latest_only property listen : Bool = CONFIG.default_user_preferences.listen property local : Bool = CONFIG.default_user_preferences.local + property watch_history : Bool = CONFIG.default_user_preferences.watch_history property vr_mode : Bool = CONFIG.default_user_preferences.vr_mode property show_nick : Bool = CONFIG.default_user_preferences.show_nick @@ -256,4 +257,18 @@ struct Preferences cookies end end + + module TimeSpanConverter + def self.to_yaml(value : Time::Span, yaml : YAML::Nodes::Builder) + return yaml.scalar value.total_minutes.to_i32 + end + + def self.from_yaml(ctx : YAML::ParseContext, node : YAML::Nodes::Node) : Time::Span + if node.is_a?(YAML::Nodes::Scalar) + return decode_interval(node.value) + else + node.raise "Expected scalar, not #{node.class}" + end + end + end end diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 81fce5b8..31ae90c7 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -585,7 +585,7 @@ struct Video def allowed_regions info - .dig("microformat", "playerMicroformatRenderer", "availableCountries") + .dig?("microformat", "playerMicroformatRenderer", "availableCountries") .try &.as_a.map &.as_s || [] of String end @@ -876,7 +876,7 @@ def extract_video_info(video_id : String, proxy_region : String? = nil, context_ client_config = YoutubeAPI::ClientConfig.new(proxy_region: proxy_region) if context_screen == "embed" - client_config.client_type = YoutubeAPI::ClientType::WebScreenEmbed + client_config.client_type = YoutubeAPI::ClientType::TvHtml5ScreenEmbed end player_response = YoutubeAPI.player(video_id: video_id, params: "", client_config: client_config) @@ -1094,6 +1094,10 @@ def get_video(id, refresh = true, region = nil, force_refresh = false) end return video +rescue DB::Error + # Avoid common `DB::PoolRetryAttemptsExceeded` error and friends + # Note: All DB errors inherit from `DB::Error` + return fetch_video(id, region) end def fetch_video(id, region) diff --git a/src/invidious/views/add_playlist_items.ecr b/src/invidious/views/add_playlist_items.ecr index ad50909a..22870317 100644 --- a/src/invidious/views/add_playlist_items.ecr +++ b/src/invidious/views/add_playlist_items.ecr @@ -11,7 +11,9 @@ <legend><a href="/playlist?list=<%= playlist.id %>"><%= translate(locale, "Editing playlist `x`", %|"#{HTML.escape(playlist.title)}"|) %></a></legend> <fieldset> - <input class="pure-input-1" type="search" name="q" <% if query %>value="<%= HTML.escape(query) %>"<% else %>placeholder="<%= translate(locale, "Search for videos") %>"<% end %>> + <input class="pure-input-1" type="search" name="q" + <% if query %>value="<%= HTML.escape(query.text) %>"<% end %> + placeholder="<%= translate(locale, "Search for videos") %>"> <input type="hidden" name="list" value="<%= plid %>"> </fieldset> </form> @@ -38,10 +40,11 @@ </div> <% if query %> + <%- query_encoded = URI.encode_www_form(query.text, space_to_plus: true) -%> <div class="pure-g h-box"> <div class="pure-u-1 pure-u-lg-1-5"> - <% if page > 1 %> - <a href="/add_playlist_items?list=<%= plid %>&q=<%= URI.encode_www_form(query.not_nil!) %>&page=<%= page - 1 %>"> + <% if query.page > 1 %> + <a href="/add_playlist_items?list=<%= plid %>&q=<%= query_encoded %>&page=<%= page - 1 %>"> <%= translate(locale, "Previous page") %> </a> <% end %> @@ -49,7 +52,7 @@ <div class="pure-u-1 pure-u-lg-3-5"></div> <div class="pure-u-1 pure-u-lg-1-5" style="text-align:right"> <% if videos.size >= 20 %> - <a href="/add_playlist_items?list=<%= plid %>&q=<%= URI.encode_www_form(query.not_nil!) %>&page=<%= page + 1 %>"> + <a href="/add_playlist_items?list=<%= plid %>&q=<%= query_encoded %>&page=<%= page + 1 %>"> <%= translate(locale, "Next page") %> </a> <% end %> diff --git a/src/invidious/views/search.ecr b/src/invidious/views/search.ecr index 45bbdefc..7110703e 100644 --- a/src/invidious/views/search.ecr +++ b/src/invidious/views/search.ecr @@ -1,147 +1,62 @@ <% content_for "header" do %> -<title><%= search_query.not_nil!.size > 30 ? HTML.escape(query.not_nil![0,30].rstrip(".") + "...") : HTML.escape(query.not_nil!) %> - Invidious</title> +<title><%= query.text.size > 30 ? HTML.escape(query.text[0,30].rstrip(".")) + "…" : HTML.escape(query.text) %> - Invidious</title> +<link rel="stylesheet" href="/css/search.css?v=<%= ASSET_COMMIT %>"> <% end %> -<% search_query_encoded = env.get?("search").try { |x| URI.encode_www_form(x.as(String), space_to_plus: true) } %> +<%- + search_query_encoded = URI.encode_www_form(query.text, space_to_plus: true) + filter_params = query.filters.to_iv_params -<!-- Search redirection and filtering UI --> -<% if videos.size == 0 %> - <h3 style="text-align: center"> - <a href="/redirect?referer=<%= env.get?("current_page") %>"><%= translate(locale, "Broken? Try another Invidious Instance!") %></a> - </h3> -<% else %> - <details id="filters"> - <summary> - <h3 style="display:inline"> <%= translate(locale, "filter") %> </h3> - </summary> - <div id="filters" class="pure-g h-box"> - <div class="pure-u-1-3 pure-u-md-1-5"> - <b><%= translate(locale, "date") %></b> - <hr/> - <% ["hour", "today", "week", "month", "year"].each do |date| %> - <div class="pure-u-1 pure-md-1-5"> - <% if operator_hash.fetch("date", "all") == date %> - <b><%= translate(locale, date) %></b> - <% else %> - <a href="/search?q=<%= URI.encode_www_form(query.not_nil!.gsub(/ ?date:[a-z]+/, "") + " date:" + date) %>&page=<%= page %>"> - <%= translate(locale, date) %> - </a> - <% end %> - </div> - <% end %> - </div> - <div class="pure-u-1-3 pure-u-md-1-5"> - <b><%= translate(locale, "content_type") %></b> - <hr/> - <% ["video", "channel", "playlist", "movie", "show"].each do |content_type| %> - <div class="pure-u-1 pure-md-1-5"> - <% if operator_hash.fetch("content_type", "all") == content_type %> - <b><%= translate(locale, content_type) %></b> - <% else %> - <a href="/search?q=<%= URI.encode_www_form(query.not_nil!.gsub(/ ?content_type:[a-z]+/, "") + " content_type:" + content_type) %>&page=<%= page %>"> - <%= translate(locale, content_type) %> - </a> - <% end %> - </div> - <% end %> - </div> - <div class="pure-u-1-3 pure-u-md-1-5"> - <b><%= translate(locale, "duration") %></b> - <hr/> - <% ["short", "long"].each do |duration| %> - <div class="pure-u-1 pure-md-1-5"> - <% if operator_hash.fetch("duration", "all") == duration %> - <b><%= translate(locale, duration) %></b> - <% else %> - <a href="/search?q=<%= URI.encode_www_form(query.not_nil!.gsub(/ ?duration:[a-z]+/, "") + " duration:" + duration) %>&page=<%= page %>"> - <%= translate(locale, duration) %> - </a> - <% end %> - </div> - <% end %> - </div> - <div class="pure-u-1-3 pure-u-md-1-5"> - <b><%= translate(locale, "features") %></b> - <hr/> - <% ["hd", "subtitles", "creative_commons", "3d", "live", "purchased", "4k", "360", "location", "hdr"].each do |feature| %> - <div class="pure-u-1 pure-md-1-5"> - <% if operator_hash.fetch("features", "all").includes?(feature) %> - <b><%= translate(locale, feature) %></b> - <% elsif operator_hash.has_key?("features") %> - <a href="/search?q=<%= URI.encode_www_form(query.not_nil!.gsub(/features:/, "features:" + feature + ",")) %>&page=<%= page %>"> - <%= translate(locale, feature) %> - </a> - <% else %> - <a href="/search?q=<%= URI.encode_www_form(query.not_nil! + " features:" + feature) %>&page=<%= page %>"> - <%= translate(locale, feature) %> - </a> - <% end %> - </div> - <% end %> - </div> - <div class="pure-u-1-3 pure-u-md-1-5"> - <b><%= translate(locale, "sort") %></b> - <hr/> - <% ["relevance", "rating", "date", "views"].each do |sort| %> - <div class="pure-u-1 pure-md-1-5"> - <% if operator_hash.fetch("sort", "relevance") == sort %> - <b><%= translate(locale, sort) %></b> - <% else %> - <a href="/search?q=<%= URI.encode_www_form(query.not_nil!.gsub(/ ?sort:[a-z]+/, "") + " sort:" + sort) %>&page=<%= page %>"> - <%= translate(locale, sort) %> - </a> - <% end %> - </div> - <% end %> - </div> - </div> - </details> -<% end %> + url_prev_page = "/search?q=#{search_query_encoded}&#{filter_params}&page=#{query.page - 1}" + url_next_page = "/search?q=#{search_query_encoded}&#{filter_params}&page=#{query.page + 1}" -<% if videos.size == 0 %> - <hr style="margin: 0;"/> -<% else %> - <hr/> -<% end %> + redirect_url = Invidious::Frontend::Misc.redirect_url(env) +-%> + +<!-- Search redirection and filtering UI --> +<%= Invidious::Frontend::SearchFilters.generate(query.filters, query.text, query.page, locale) %> +<hr/> <div class="pure-g h-box v-box"> <div class="pure-u-1 pure-u-lg-1-5"> - <% if page > 1 %> - <a href="/search?q=<%= search_query_encoded %>&page=<%= page - 1 %>"> - <%= translate(locale, "Previous page") %> - </a> - <% end %> + <%- if query.page > 1 -%> + <a href="<%= url_prev_page %>"><%= 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 videos.size >= 20 %> - <a href="/search?q=<%= search_query_encoded %>&page=<%= page + 1 %>"> - <%= translate(locale, "Next page") %> - </a> - <% end %> + <%- if videos.size >= 20 -%> + <a href="<%= url_next_page %>"><%= translate(locale, "Next page") %></a> + <%- end -%> </div> </div> +<%- if videos.empty? -%> +<div class="h-box no-results-error"> + <div> + <%= translate(locale, "search_message_no_results") %><br/><br/> + <%= translate(locale, "search_message_change_filters_or_query") %><br/><br/> + <%= translate(locale, "search_message_use_another_instance", redirect_url) %> + </div> +</div> +<%- else -%> <div class="pure-g"> - <% videos.each do |item| %> + <%- videos.each do |item| -%> <%= rendered "components/item" %> - <% end %> + <%- end -%> </div> +<%- end -%> <div class="pure-g h-box"> <div class="pure-u-1 pure-u-lg-1-5"> - <% if page > 1 %> - <a href="/search?q=<%= search_query_encoded %>&page=<%= page - 1 %>"> - <%= translate(locale, "Previous page") %> - </a> - <% end %> + <%- if query.page > 1 -%> + <a href="<%= url_prev_page %>"><%= 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 videos.size >= 20 %> - <a href="/search?q=<%= search_query_encoded %>&page=<%= page + 1 %>"> - <%= translate(locale, "Next page") %> - </a> - <% end %> + <%- if videos.size >= 20 -%> + <a href="<%= url_next_page %>"><%= translate(locale, "Next page") %></a> + <%- end -%> </div> </div> diff --git a/src/invidious/views/user/preferences.ecr b/src/invidious/views/user/preferences.ecr index 3606d140..dbb5e9db 100644 --- a/src/invidious/views/user/preferences.ecr +++ b/src/invidious/views/user/preferences.ecr @@ -207,6 +207,11 @@ <legend><%= translate(locale, "preferences_category_subscription") %></legend> <div class="pure-control-group"> + <label for="watch_history"><%= translate(locale, "preferences_watch_history_label") %></label> + <input name="watch_history" id="watch_history" type="checkbox" <% if preferences.watch_history %>checked<% end %>> + </div> + + <div class="pure-control-group"> <label for="annotations_subscribed"><%= translate(locale, "preferences_annotations_subscribed_label") %></label> <input name="annotations_subscribed" id="annotations_subscribed" type="checkbox" <% if preferences.annotations_subscribed %>checked<% end %>> </div> diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 2e0aee99..0e4af3ab 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -168,41 +168,7 @@ we're going to need to do it here in order to allow for translations. <% end %> <% end %> - <% if CONFIG.dmca_content.includes?(video.id) || CONFIG.disabled?("downloads") %> - <p id="download"><%= translate(locale, "Download is disabled.") %></p> - <% else %> - <form class="pure-form pure-form-stacked" action="/latest_version" method="get" rel="noopener" target="_blank"> - <div class="pure-control-group"> - <label for="download_widget"><%= translate(locale, "Download as: ") %></label> - <select style="width:100%" name="download_widget" id="download_widget"> - <% fmt_stream.each do |option| %> - <option value='{"id":"<%= video.id %>","itag":"<%= option["itag"] %>","title":"<%= URI.encode_www_form(video.title) %>-<%= video.id %>.<%= option["mimeType"].as_s.split(";")[0].split("/")[1] %>"}'> - <%= itag_to_metadata?(option["itag"]).try &.["height"]? || "~240" %>p - <%= option["mimeType"].as_s.split(";")[0] %> - </option> - <% end %> - <% video_streams.each do |option| %> - <option value='{"id":"<%= video.id %>","itag":"<%= option["itag"] %>","title":"<%= URI.encode_www_form(video.title) %>-<%= video.id %>.<%= option["mimeType"].as_s.split(";")[0].split("/")[1] %>"}'> - <%= option["qualityLabel"] %> - <%= option["mimeType"].as_s.split(";")[0] %> @ <%= option["fps"] %>fps - video only - </option> - <% end %> - <% audio_streams.each do |option| %> - <option value='{"id":"<%= video.id %>","itag":"<%= option["itag"] %>","title":"<%= URI.encode_www_form(video.title) %>-<%= video.id %>.<%= option["mimeType"].as_s.split(";")[0].split("/")[1] %>"}'> - <%= option["mimeType"].as_s.split(";")[0] %> @ <%= option["bitrate"]?.try &.as_i./ 1000 %>k - audio only - </option> - <% end %> - <% captions.each do |caption| %> - <option value='{"id":"<%= video.id %>","label":"<%= caption.name %>","title":"<%= URI.encode_www_form(video.title) %>-<%= video.id %>.<%= caption.language_code %>.vtt"}'> - <%= translate(locale, "download_subtitles", translate(locale, caption.name)) %> - </option> - <% end %> - </select> - </div> - - <button type="submit" class="pure-button pure-button-primary"> - <b><%= translate(locale, "Download") %></b> - </button> - </form> - <% end %> + <%= Invidious::Frontend::WatchPage.download_widget(locale, video, video_assets) %> <p id="views"><i class="icon ion-ios-eye"></i> <%= number_with_separator(video.views) %></p> <p id="likes"><i class="icon ion-ios-thumbs-up"></i> <%= number_with_separator(video.likes) %></p> diff --git a/src/invidious/yt_backend/youtube_api.cr b/src/invidious/yt_backend/youtube_api.cr index 5bbd9213..2678ac6c 100644 --- a/src/invidious/yt_backend/youtube_api.cr +++ b/src/invidious/yt_backend/youtube_api.cr @@ -14,6 +14,7 @@ module YoutubeAPI Android AndroidEmbeddedPlayer AndroidScreenEmbed + TvHtml5ScreenEmbed end # List of hard-coded values used by the different clients @@ -60,6 +61,12 @@ module YoutubeAPI api_key: "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8", screen: "EMBED", }, + ClientType::TvHtml5ScreenEmbed => { + name: "TVHTML5_SIMPLY_EMBEDDED_PLAYER", + version: "2.0", + api_key: "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8", + screen: "EMBED", + }, } #################################################################### @@ -401,7 +408,7 @@ module YoutubeAPI client_config ||= DEFAULT_CLIENT_CONFIG # Query parameters - url = "#{endpoint}?key=#{client_config.api_key}" + url = "#{endpoint}?key=#{client_config.api_key}&prettyPrint=false" headers = HTTP::Headers{ "Content-Type" => "application/json; charset=UTF-8", |
