summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--assets/js/handlers.js12
-rw-r--r--assets/js/player.js130
-rw-r--r--locales/ar.json118
-rw-r--r--locales/en-US.json31
-rw-r--r--locales/es.json35
-rw-r--r--locales/fr.json27
-rw-r--r--locales/hr.json9
-rw-r--r--locales/hu-HU.json27
-rw-r--r--locales/id.json8
-rw-r--r--locales/nb-NO.json4
-rw-r--r--locales/pt.json35
-rw-r--r--locales/ru.json127
-rw-r--r--locales/sq.json384
-rw-r--r--locales/tr.json33
-rw-r--r--locales/zh-CN.json33
-rw-r--r--locales/zh-TW.json33
-rw-r--r--src/invidious.cr22
-rw-r--r--src/invidious/database/users.cr2
-rw-r--r--src/invidious/exceptions.cr6
-rw-r--r--src/invidious/helpers/errors.cr15
-rw-r--r--src/invidious/routes/api/v1/videos.cr6
-rw-r--r--src/invidious/routes/video_playback.cr10
-rw-r--r--src/invidious/videos.cr44
-rw-r--r--src/invidious/views/embed.ecr2
25 files changed, 932 insertions, 224 deletions
diff --git a/Makefile b/Makefile
index ef6c4e16..7f56d722 100644
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,8 @@ test:
crystal spec
verify:
- crystal build src/invidious.cr --no-codegen --progress --stats --error-trace
+ crystal build src/invidious.cr -Dskip_videojs_download \
+ --no-codegen --progress --stats --error-trace
# -----------------------
diff --git a/assets/js/handlers.js b/assets/js/handlers.js
index d3957b89..02175957 100644
--- a/assets/js/handlers.js
+++ b/assets/js/handlers.js
@@ -150,13 +150,13 @@
// Ignore shortcuts if any text input is focused
let focused_tag = document.activeElement.tagName.toLowerCase();
- let focused_type = document.activeElement.type.toLowerCase();
- let allowed = /^(button|checkbox|file|radio|submit)$/;
+ const allowed = /^(button|checkbox|file|radio|submit)$/;
- if (focused_tag === "textarea" ||
- (focused_tag === "input" && !focused_type.match(allowed))
- )
- return;
+ if (focused_tag === "textarea") return;
+ if (focused_tag === "input") {
+ let focused_type = document.activeElement.type.toLowerCase();
+ if (!focused_type.match(allowed)) return;
+ }
// Focus search bar on '/'
if (event.key == "/") {
diff --git a/assets/js/player.js b/assets/js/player.js
index a5ea08ec..81a27009 100644
--- a/assets/js/player.js
+++ b/assets/js/player.js
@@ -60,29 +60,19 @@ videojs.Vhs.xhr.beforeRequest = function(options) {
var player = videojs('player', options);
const storage = (() => {
- try {
- if (localStorage.length !== -1) {
- return localStorage;
- }
- } catch (e) {
- console.info('No storage available: ' + e);
- }
+ try { if (localStorage.length !== -1) return localStorage; }
+ catch (e) { console.info('No storage available: ' + e); }
+
return undefined;
})();
if (location.pathname.startsWith('/embed/')) {
+ var overlay_content = '<h1><a rel="noopener" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>';
player.overlay({
- overlays: [{
- start: 'loadstart',
- content: '<h1><a rel="noopener" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>',
- end: 'playing',
- align: 'top'
- }, {
- start: 'pause',
- content: '<h1><a rel="noopener" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>',
- end: 'playing',
- align: 'top'
- }]
+ overlays: [
+ { start: 'loadstart', content: overlay_content, end: 'playing', align: 'top'},
+ { start: 'pause', content: overlay_content, end: 'playing', align: 'top'}
+ ]
});
}
@@ -99,9 +89,7 @@ if (isMobile()) {
buttons = ["playToggle", "volumePanel", "captionsButton"];
- if (video_data.params.quality !== 'dash') {
- buttons.push("qualitySelector")
- }
+ if (video_data.params.quality !== 'dash') buttons.push("qualitySelector")
// Create new control bar object for operation buttons
const ControlBar = videojs.getComponent("controlBar");
@@ -146,16 +134,12 @@ player.on('error', function (event) {
player.load();
- if (currentTime > 0.5) {
- currentTime -= 0.5;
- }
+ if (currentTime > 0.5) currentTime -= 0.5;
player.currentTime(currentTime);
player.playbackRate(playbackRate);
- if (!paused) {
- player.play();
- }
+ if (!paused) player.play();
}, 5000);
}
});
@@ -183,13 +167,8 @@ if (video_data.params.video_start > 0 || video_data.params.video_end > 0) {
player.markers({
onMarkerReached: function (marker) {
- if (marker.text === 'End') {
- if (player.loop()) {
- player.markers.prev('Start');
- } else {
- player.pause();
- }
- }
+ if (marker.text === 'End')
+ player.loop() ? player.markers.prev('Start') : player.pause();
},
markers: markers
});
@@ -217,9 +196,7 @@ if (video_data.params.save_player_pos) {
const remeberedTime = get_video_time();
let lastUpdated = 0;
- if(!hasTimeParam) {
- set_seconds_after_start(remeberedTime);
- }
+ if(!hasTimeParam) set_seconds_after_start(remeberedTime);
const updateTime = () => {
const raw = player.currentTime();
@@ -233,9 +210,7 @@ if (video_data.params.save_player_pos) {
player.on("timeupdate", updateTime);
}
-else {
- remove_all_video_times();
-}
+else remove_all_video_times();
if (video_data.params.autoplay) {
var bpb = player.getChild('bigPlayButton');
@@ -433,26 +408,10 @@ function set_time_percent(percent) {
player.currentTime(newTime);
}
-function play() {
- player.play();
-}
-
-function pause() {
- player.pause();
-}
-
-function stop() {
- player.pause();
- player.currentTime(0);
-}
-
-function toggle_play() {
- if (player.paused()) {
- play();
- } else {
- pause();
- }
-}
+function play() { player.play(); }
+function pause() { player.pause(); }
+function stop() { player.pause(); player.currentTime(0); }
+function toggle_play() { player.paused() ? play() : pause(); }
const toggle_captions = (function () {
let toggledTrack = null;
@@ -490,9 +449,7 @@ const toggle_captions = (function () {
const tracks = player.textTracks();
for (let i = 0; i < tracks.length; i++) {
const track = tracks[i];
- if (track.kind !== 'captions') {
- continue;
- }
+ if (track.kind !== 'captions') continue;
if (fallbackCaptionsTrack === null) {
fallbackCaptionsTrack = track;
@@ -513,11 +470,7 @@ const toggle_captions = (function () {
})();
function toggle_fullscreen() {
- if (player.isFullscreen()) {
- player.exitFullscreen();
- } else {
- player.requestFullscreen();
- }
+ player.isFullscreen() ? player.exitFullscreen() : player.requestFullscreen();
}
function increase_playback_rate(steps) {
@@ -560,27 +513,15 @@ window.addEventListener('keydown', e => {
action = toggle_play;
break;
- case 'MediaPlay':
- action = play;
- break;
-
- case 'MediaPause':
- action = pause;
- break;
-
- case 'MediaStop':
- action = stop;
- break;
+ case 'MediaPlay': action = play; break;
+ case 'MediaPause': action = pause; break;
+ case 'MediaStop': action = stop; break;
case 'ArrowUp':
- if (isPlayerFocused) {
- action = increase_volume.bind(this, 0.1);
- }
+ if (isPlayerFocused) action = increase_volume.bind(this, 0.1);
break;
case 'ArrowDown':
- if (isPlayerFocused) {
- action = increase_volume.bind(this, -0.1);
- }
+ if (isPlayerFocused) action = increase_volume.bind(this, -0.1);
break;
case 'm':
@@ -612,16 +553,15 @@ window.addEventListener('keydown', e => {
case '7':
case '8':
case '9':
+ // Ignore numpad numbers
+ if (code > 57) break;
+
const percent = (code - 48) * 10;
action = set_time_percent.bind(this, percent);
break;
- case 'c':
- action = toggle_captions;
- break;
- case 'f':
- action = toggle_fullscreen;
- break;
+ case 'c': action = toggle_captions; break;
+ case 'f': action = toggle_fullscreen; break;
case 'N':
case 'MediaTrackNext':
@@ -639,12 +579,8 @@ window.addEventListener('keydown', e => {
// TODO: Add support for previous-frame-stepping.
break;
- case '>':
- action = increase_playback_rate.bind(this, 1);
- break;
- case '<':
- action = increase_playback_rate.bind(this, -1);
- break;
+ case '>': action = increase_playback_rate.bind(this, 1); break;
+ case '<': action = increase_playback_rate.bind(this, -1); break;
default:
console.info('Unhandled key down event: %s:', decoratedKey, e);
diff --git a/locales/ar.json b/locales/ar.json
index c7220be6..306566d7 100644
--- a/locales/ar.json
+++ b/locales/ar.json
@@ -1,7 +1,7 @@
{
"LIVE": "مُباشِر",
"Shared `x` ago": "تمَّ رفع المقطع المرئيّ مُنذ `x`",
- "Unsubscribe": "إلغاء الإشتراك",
+ "Unsubscribe": "إلغاء الاشتراك",
"Subscribe": "الإشتراك",
"View channel on YouTube": "زيارة القناة على موقع يوتيوب",
"View playlist on YouTube": "عرض قائمة التشغيل على اليوتيوب",
@@ -13,7 +13,7 @@
"Previous page": "الصفحة السابقة",
"Clear watch history?": "هل تريد محو سجل المشاهدة؟",
"New password": "كلمة مرور جديدة",
- "New passwords must match": "يَجبُ أن تكون كلمتي المرور متطابقتان",
+ "New passwords must match": "يَجبُ أن تكون كلمتا المرور متطابقتين",
"Cannot change password for Google accounts": "لا يُمكن تغيير كلمة المرور لِحسابات جوجل",
"Authorize token?": "رمز التفويض؟",
"Authorize token for `x`?": "السماح بالرمز المميز ل 'x'؟",
@@ -27,8 +27,8 @@
"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 subscriptions as OPML": "تصدير الاشتراكات كـOPML",
+ "Export subscriptions as OPML (for NewPipe & FreeTube)": "تصدير الاشتراكات كـOPML (لِنيو بايب و فريتيوب)",
"Export data as JSON": "تصدير البيانات بتنسيق JSON",
"Delete account?": "حذف الحساب؟",
"History": "السِّجل",
@@ -47,18 +47,18 @@
"Register": "التسجيل",
"E-mail": "البريد الإلكتروني",
"Google verification code": "رمز تحقق جوجل",
- "Preferences": "التفضيلات",
- "preferences_category_player": "التفضيلات المُشغِّل",
+ "Preferences": "الإعدادات",
+ "preferences_category_player": "إعدادات المُشغِّل",
"preferences_video_loop_label": "كرر المقطع المرئيّ دائما: ",
"preferences_autoplay_label": "تشغيل تلقائي: ",
"preferences_continue_label": "شغل المقطع التالي تلقائيًا: ",
"preferences_continue_autoplay_label": "شغل المقطع التالي تلقائيًا: ",
"preferences_listen_label": "تشغيل النسخة السمعية تلقائيًا: ",
"preferences_local_label": "بروكسي المقاطع المرئيّة؟ ",
- "preferences_speed_label": "السرعة الإفتراضية: ",
+ "preferences_speed_label": "السرعة الافتراضية: ",
"preferences_quality_label": "الجودة المفضلة للمقاطع: ",
"preferences_volume_label": "صوت المشغل: ",
- "preferences_comments_label": "التعليقات الإفتراضية: ",
+ "preferences_comments_label": "التعليقات الافتراضية: ",
"youtube": "يوتيوب",
"reddit": "ريديت",
"preferences_captions_label": "التسميات التوضيحية الإفتراضية: ",
@@ -69,41 +69,41 @@
"preferences_vr_mode_label": "مقاطع فيديو تفاعلية ب درجة 360: ",
"preferences_category_visual": "التفضيلات المرئية",
"preferences_player_style_label": "شكل مشغل الفيديوهات: ",
- "Dark mode: ": "الوضع الليلى: ",
+ "Dark mode: ": "الوضع الليلي: ",
"preferences_dark_mode_label": "المظهر: ",
"dark": "غامق (اسود)",
"light": "فاتح (ابيض)",
"preferences_thin_mode_label": "الوضع الخفيف: ",
"preferences_category_misc": "تفضيلات متنوعة",
"preferences_automatic_instance_redirect_label": "إعادة توجيه المثيل التلقائي (إعادة التوجيه إلى redirect.invidious.io): ",
- "preferences_category_subscription": "تفضيلات الإشتراك",
+ "preferences_category_subscription": "تفضيلات الاشتراك",
"preferences_annotations_subscribed_label": "عرض الملاحظات في الفيديوهات تلقائيا في القنوات المشترك بها فقط: ",
"Redirect homepage to feed: ": "إعادة التوجية من الصفحة الرئيسية لصفحة المشتركين (لرؤية اخر فيديوهات المشتركين): ",
"preferences_max_results_label": "عدد الفيديوهات التى ستظهر فى صفحة المشتركين: ",
- "preferences_sort_label": "ترتيب الفيديو ب: ",
- "published": "احدث فيديو",
- "published - reverse": "احدث فيديو - عكسى",
- "alphabetically": "ترتيب ابجدى",
- "alphabetically - reverse": "ابجدى - عكسى",
- "channel name": "بإسم القناة",
- "channel name - reverse": "بإسم القناة - عكسى",
- "Only show latest video from channel: ": "فقط إظهر اخر فيديو من القناة: ",
- "Only show latest unwatched video from channel: ": "فقط اظهر اخر فيديو لم يتم رؤيتة من القناة: ",
- "preferences_unseen_only_label": "فقط اظهر الذى لم يتم رؤيتة: ",
+ "preferences_sort_label": "ترتيب الفيديوهات بـ: ",
+ "published": "أحدث فيديو",
+ "published - reverse": "أحدث فيديو - عكسي",
+ "alphabetically": "ترتيب أبجدي",
+ "alphabetically - reverse": "أبجدي - عكسي",
+ "channel name": "باسم القناة",
+ "channel name - reverse": "باسم القناة - عكسى",
+ "Only show latest video from channel: ": "فقط أظهر آخر فيديو من القناة: ",
+ "Only show latest unwatched video from channel: ": "فقط أظهر آخر فيديو لم يتم رؤيته من القناة: ",
+ "preferences_unseen_only_label": "فقط أظهر الذي لم يتم رؤيته: ",
"preferences_notifications_only_label": "إظهار الإشعارات فقط (إذا كان هناك أي): ",
"Enable web notifications": "تفعيل إشعارات المتصفح",
"`x` uploaded a video": "`x` رفع فيديو",
- "`x` is live": "`x` فى بث مباشر",
+ "`x` is live": "`x` في بث مباشر",
"preferences_category_data": "إعدادات التفضيلات",
"Clear watch history": "حذف سجل المشاهدة",
- "Import/export data": "إضافة\\إستخراج البيانات",
- "Change password": "غير الرقم السرى",
- "Manage subscriptions": "إدارة المشتركين",
+ "Import/export data": "إضافة\\استخراج البيانات",
+ "Change password": "غير كلمة السر",
+ "Manage subscriptions": "إدارة الاشتراكات",
"Manage tokens": "إدارة الرموز",
"Watch history": "سجل المشاهدة",
"Delete account": "حذف الحساب",
"preferences_category_admin": "إعدادات المدير",
- "preferences_default_home_label": "الصفحة الرئيسية الافتراضية ",
+ "preferences_default_home_label": "الصفحة الرئيسية الافتراضية: ",
"preferences_feed_menu_label": "قائمة التدفقات: ",
"preferences_show_nick_label": "إظهار اللقب في الأعلى: ",
"Top enabled: ": "تفعيل 'الأفضل' ؟ ",
@@ -111,14 +111,14 @@
"Login enabled: ": "تفعيل الولوج: ",
"Registration enabled: ": "تفعيل التسجيل: ",
"Report statistics: ": "الإبلاغ عن الإحصائيات: ",
- "Save preferences": "حفظ التفضيلات",
- "Subscription manager": "مدير الإشتراكات",
+ "Save preferences": "حفظ الإعدادات",
+ "Subscription manager": "مدير الاشتراكات",
"Token manager": "إداره الرمز",
"Token": "الرمز",
- "Import/export": "إضافة\\إستخراج",
- "unsubscribe": "إلغاء الإشتراك",
+ "Import/export": "استيراد/تصدير",
+ "unsubscribe": "إلغاء الاشتراك",
"revoke": "مسح",
- "Subscriptions": "الإشتراكات",
+ "Subscriptions": "الاشتراكات",
"search": "بحث",
"Log out": "تسجيل الخروج",
"Released under the AGPLv3 on Github.": "صدر تحت AGPLv3 على Github.",
@@ -131,30 +131,30 @@
"Private": "خاص",
"View all playlists": "عرض جميع قوائم التشغيل",
"Updated `x` ago": "تم تحديثه منذ `x`",
- "Delete playlist `x`?": "حذف قائمه التشغيل `x` ?",
- "Delete playlist": "حذف قائمه التغشيل",
- "Create playlist": "إنشاء قائمه تشغيل",
+ "Delete playlist `x`?": "حذف قائمة التشغيل `x`؟",
+ "Delete playlist": "حذف قائمة التغشيل",
+ "Create playlist": "إنشاء قائمة تشغيل",
"Title": "العنوان",
- "Playlist privacy": "إعدادات الخصوصيه",
- "Editing playlist `x`": "تعديل قائمه التشفيل `x`",
- "Show more": "أظهر المزيد",
+ "Playlist privacy": "إعدادات الخصوصية",
+ "Editing playlist `x`": "تعديل قائمة التشغيل `x`",
+ "Show more": "إظهار المزيد",
"Show less": "عرض اقل",
"Watch on YouTube": "مشاهدة الفيديو على اليوتيوب",
"Switch Invidious Instance": "تبديل المثيل Invidious",
"Broken? Try another Invidious Instance": "معطل؟ جرب مثيل Invidious آخر",
- "Hide annotations": "إخفاء الملاحظات فى الفيديو",
- "Show annotations": "عرض الملاحظات فى الفيديو",
+ "Hide annotations": "إخفاء الملاحظات في الفيديو",
+ "Show annotations": "عرض الملاحظات في الفيديو",
"Genre: ": "النوع: ",
"License: ": "التراخيص: ",
- "Family friendly? ": "محتوى عائلى? ",
+ "Family friendly? ": "محتوى عائلي؟ ",
"Wilson score: ": "درجة ويلسون: ",
- "Engagement: ": "نسبة المشاركة (عدد المشاهدات\\عدد الإعجابات): ",
+ "Engagement: ": "نسبة المشاركة: ",
"Whitelisted regions: ": "الدول المسموح فيها هذا الفيديو: ",
- "Blacklisted regions: ": "الدول الحظور فيها هذا الفيديو: ",
+ "Blacklisted regions: ": "الدول المحظور فيها هذا الفيديو: ",
"Shared `x`": "شارك منذ `x`",
"Premieres in `x`": "يعرض فى `x`",
"Premieres `x`": "يعرض `x`",
- "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "أهلًا! يبدو ان جافاسكريبت معطلة لديك. اضغط هنا لعرض التعليقات، وضع فى اعتبارك أنها ستأخذ وقت أطول للعرض.",
+ "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "أهلًا! يبدو أن جافاسكريبت معطلٌ لديك. اضغط هنا لعرض التعليقات، وَضَع في اعتبارك أنها ستأخذ وقتًا أطول للتحميل.",
"View YouTube comments": "عرض تعليقات اليوتيوب",
"View more comments on Reddit": "عرض المزيد من التعليقات على\\من موقع Reddit",
"View `x` comments": {
@@ -368,7 +368,7 @@
"adminprefs_modified_source_code_url_label": "URL إلى مستودع التعليمات البرمجية المصدرية المعدلة",
"footer_documentation": "التوثيق",
"footer_donate_page": "تبرّع",
- "preferences_region_label": "بلد المحتوى:. ",
+ "preferences_region_label": "بلد المحتوى: ",
"preferences_quality_dash_label": "جودة فيديو DASH المفضلة: ",
"preferences_quality_option_dash": "DASH (جودة تكييفية)",
"preferences_quality_option_hd720": "HD720",
@@ -399,5 +399,35 @@
"download_subtitles": "ترجمات - 'x' (.vtt)",
"invidious": "الخيالي",
"preferences_save_player_pos_label": "احفظ وقت الفيديو الحالي: ",
- "crash_page_you_found_a_bug": "يبدو أنك قد وجدت خطأً برمجيًّا في Invidious!"
+ "crash_page_you_found_a_bug": "يبدو أنك قد وجدت خطأً برمجيًّا في Invidious!",
+ "generic_videos_count_0": "لا فيديوهات",
+ "generic_videos_count_1": "فيديو واحد",
+ "generic_videos_count_2": "فيديوهين",
+ "generic_videos_count_3": "{{count}} فيديوهات",
+ "generic_videos_count_4": "{{count}} فيديو",
+ "generic_videos_count_5": "{{count}} فيديو",
+ "generic_subscribers_count_0": "لا مشتركين",
+ "generic_subscribers_count_1": "مشترك واحد",
+ "generic_subscribers_count_2": "مشتركان",
+ "generic_subscribers_count_3": "{{count}} مشتركين",
+ "generic_subscribers_count_4": "{{count}} مشترك",
+ "generic_subscribers_count_5": "{{count}} مشترك",
+ "generic_views_count_0": "لا مشاهدات",
+ "generic_views_count_1": "مشاهدة واحدة",
+ "generic_views_count_2": "مشاهدتان",
+ "generic_views_count_3": "{{count}} مشاهدات",
+ "generic_views_count_4": "{{count}} مشاهدة",
+ "generic_views_count_5": "{{count}} مشاهدة",
+ "generic_subscriptions_count_0": "لا اشتراكات",
+ "generic_subscriptions_count_1": "اشتراك واحد",
+ "generic_subscriptions_count_2": "اشتراكان",
+ "generic_subscriptions_count_3": "{{count}} اشتراكات",
+ "generic_subscriptions_count_4": "{{count}} اشتراك",
+ "generic_subscriptions_count_5": "{{count}} اشتراك",
+ "generic_playlists_count_0": "لا قوائم تشغيل",
+ "generic_playlists_count_1": "قائمة تشغيل واحدة",
+ "generic_playlists_count_2": "قائمتا تشغيل",
+ "generic_playlists_count_3": "{{count}} قوائم تشغيل",
+ "generic_playlists_count_4": "{{count}} قائمة تشغيل",
+ "generic_playlists_count_5": "{{count}} قائمة تشغيل"
}
diff --git a/locales/en-US.json b/locales/en-US.json
index f733f7db..c924c8aa 100644
--- a/locales/en-US.json
+++ b/locales/en-US.json
@@ -31,15 +31,15 @@
"No": "No",
"Import and Export Data": "Import and Export Data",
"Import": "Import",
- "Import Invidious data": "Import Invidious data",
- "Import YouTube subscriptions": "Import YouTube subscriptions",
+ "Import Invidious data": "Import Invidious JSON data",
+ "Import YouTube subscriptions": "Import YouTube/OPML subscriptions",
"Import FreeTube subscriptions (.db)": "Import FreeTube subscriptions (.db)",
"Import NewPipe subscriptions (.json)": "Import NewPipe subscriptions (.json)",
"Import NewPipe data (.zip)": "Import NewPipe data (.zip)",
"Export": "Export",
"Export subscriptions as OPML": "Export subscriptions as OPML",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Export subscriptions as OPML (for NewPipe & FreeTube)",
- "Export data as JSON": "Export data as JSON",
+ "Export data as JSON": "Export Invidious data as JSON",
"Delete account?": "Delete account?",
"History": "History",
"An alternative front-end to YouTube": "An alternative front-end to YouTube",
@@ -94,7 +94,7 @@
"preferences_related_videos_label": "Show related videos: ",
"preferences_annotations_label": "Show annotations by default: ",
"preferences_extend_desc_label": "Automatically extend video description: ",
- "preferences_vr_mode_label": "Interactive 360 degree videos: ",
+ "preferences_vr_mode_label": "Interactive 360 degree videos (requires WebGL): ",
"preferences_category_visual": "Visual preferences",
"preferences_region_label": "Content country: ",
"preferences_player_style_label": "Player style: ",
@@ -236,6 +236,8 @@
"No such user": "No such user",
"Token is expired, please try again": "Token is expired, please try again",
"English": "English",
+ "English (United Kingdom)": "English (United Kingdom)",
+ "English (United States)": "English (United States)",
"English (auto-generated)": "English (auto-generated)",
"Afrikaans": "Afrikaans",
"Albanian": "Albanian",
@@ -249,23 +251,31 @@
"Bosnian": "Bosnian",
"Bulgarian": "Bulgarian",
"Burmese": "Burmese",
+ "Cantonese (Hong Kong)": "Cantonese (Hong Kong)",
"Catalan": "Catalan",
"Cebuano": "Cebuano",
+ "Chinese": "Chinese",
+ "Chinese (China)": "Chinese (China)",
+ "Chinese (Hong Kong)": "Chinese (Hong Kong)",
"Chinese (Simplified)": "Chinese (Simplified)",
+ "Chinese (Taiwan)": "Chinese (Taiwan)",
"Chinese (Traditional)": "Chinese (Traditional)",
"Corsican": "Corsican",
"Croatian": "Croatian",
"Czech": "Czech",
"Danish": "Danish",
"Dutch": "Dutch",
+ "Dutch (auto-generated)": "Dutch (auto-generated)",
"Esperanto": "Esperanto",
"Estonian": "Estonian",
"Filipino": "Filipino",
"Finnish": "Finnish",
"French": "French",
+ "French (auto-generated)": "French (auto-generated)",
"Galician": "Galician",
"Georgian": "Georgian",
"German": "German",
+ "German (auto-generated)": "German (auto-generated)",
"Greek": "Greek",
"Gujarati": "Gujarati",
"Haitian Creole": "Haitian Creole",
@@ -278,14 +288,19 @@
"Icelandic": "Icelandic",
"Igbo": "Igbo",
"Indonesian": "Indonesian",
+ "Indonesian (auto-generated)": "Indonesian (auto-generated)",
+ "Interlingue": "Interlingue",
"Irish": "Irish",
"Italian": "Italian",
+ "Italian (auto-generated)": "Italian (auto-generated)",
"Japanese": "Japanese",
+ "Japanese (auto-generated)": "Japanese (auto-generated)",
"Javanese": "Javanese",
"Kannada": "Kannada",
"Kazakh": "Kazakh",
"Khmer": "Khmer",
"Korean": "Korean",
+ "Korean (auto-generated)": "Korean (auto-generated)",
"Kurdish": "Kurdish",
"Kyrgyz": "Kyrgyz",
"Lao": "Lao",
@@ -308,9 +323,12 @@
"Persian": "Persian",
"Polish": "Polish",
"Portuguese": "Portuguese",
+ "Portuguese (auto-generated)": "Portuguese (auto-generated)",
+ "Portuguese (Brazil)": "Portuguese (Brazil)",
"Punjabi": "Punjabi",
"Romanian": "Romanian",
"Russian": "Russian",
+ "Russian (auto-generated)": "Russian (auto-generated)",
"Samoan": "Samoan",
"Scottish Gaelic": "Scottish Gaelic",
"Serbian": "Serbian",
@@ -322,7 +340,10 @@
"Somali": "Somali",
"Southern Sotho": "Southern Sotho",
"Spanish": "Spanish",
+ "Spanish (auto-generated)": "Spanish (auto-generated)",
"Spanish (Latin America)": "Spanish (Latin America)",
+ "Spanish (Mexico)": "Spanish (Mexico)",
+ "Spanish (Spain)": "Spanish (Spain)",
"Sundanese": "Sundanese",
"Swahili": "Swahili",
"Swedish": "Swedish",
@@ -331,10 +352,12 @@
"Telugu": "Telugu",
"Thai": "Thai",
"Turkish": "Turkish",
+ "Turkish (auto-generated)": "Turkish (auto-generated)",
"Ukrainian": "Ukrainian",
"Urdu": "Urdu",
"Uzbek": "Uzbek",
"Vietnamese": "Vietnamese",
+ "Vietnamese (auto-generated)": "Vietnamese (auto-generated)",
"Welsh": "Welsh",
"Western Frisian": "Western Frisian",
"Xhosa": "Xhosa",
diff --git a/locales/es.json b/locales/es.json
index d89b5c08..24f8dbdf 100644
--- a/locales/es.json
+++ b/locales/es.json
@@ -21,15 +21,15 @@
"No": "No",
"Import and Export Data": "Importación y exportación de datos",
"Import": "Importar",
- "Import Invidious data": "Importar datos de Invidious",
- "Import YouTube subscriptions": "Importar suscripciones de YouTube",
+ "Import Invidious data": "Importar datos JSON de Invidious",
+ "Import YouTube subscriptions": "Importar suscripciones de YouTube/OPML",
"Import FreeTube subscriptions (.db)": "Importar suscripciones de FreeTube (.db)",
"Import NewPipe subscriptions (.json)": "Importar suscripciones de NewPipe (.json)",
"Import NewPipe data (.zip)": "Importar datos de NewPipe (.zip)",
"Export": "Exportar",
"Export subscriptions as OPML": "Exportar suscripciones como OPML",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Exportar suscripciones como OPML (para NewPipe y FreeTube)",
- "Export data as JSON": "Exportar datos como JSON",
+ "Export data as JSON": "Exportar datos de Invidious como JSON",
"Delete account?": "¿Quiere borrar la cuenta?",
"History": "Historial",
"An alternative front-end to YouTube": "Una interfaz alternativa para YouTube",
@@ -66,7 +66,7 @@
"preferences_related_videos_label": "¿Mostrar vídeos relacionados? ",
"preferences_annotations_label": "¿Mostrar anotaciones por defecto? ",
"preferences_extend_desc_label": "Extender automáticamente la descripción del vídeo: ",
- "preferences_vr_mode_label": "Vídeos interactivos de 360 grados: ",
+ "preferences_vr_mode_label": "Vídeos interactivos de 360 grados (necesita WebGL): ",
"preferences_category_visual": "Preferencias visuales",
"preferences_player_style_label": "Estilo de reproductor: ",
"Dark mode: ": "Modo oscuro: ",
@@ -199,7 +199,7 @@
"No such user": "Usuario no válido",
"Token is expired, please try again": "El símbolo ha caducado, inténtelo de nuevo",
"English": "Inglés",
- "English (auto-generated)": "Inglés (autogenerado)",
+ "English (auto-generated)": "Inglés (generados automáticamente)",
"Afrikaans": "Afrikáans",
"Albanian": "Albanés",
"Amharic": "Amárico",
@@ -435,5 +435,28 @@
"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):"
+ "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):",
+ "English (United States)": "Inglés (Estados Unidos)",
+ "Cantonese (Hong Kong)": "Cantonés (Hong Kong)",
+ "Dutch (auto-generated)": "Neerlandés (generados automáticamente)",
+ "French (auto-generated)": "Francés (generados automáticamente)",
+ "Interlingue": "Occidental",
+ "Japanese (auto-generated)": "Japonés (generados automáticamente)",
+ "Russian (auto-generated)": "Ruso (generados automáticamente)",
+ "Spanish (Spain)": "Español (España)",
+ "Vietnamese (auto-generated)": "Vietnamita (generados automáticamente)",
+ "English (United Kingdom)": "Inglés (Reino Unido)",
+ "Chinese (Taiwan)": "Chino (Taiwán)",
+ "German (auto-generated)": "Alemán (generados automáticamente)",
+ "Italian (auto-generated)": "Italiano (generados automáticamente)",
+ "Turkish (auto-generated)": "Turco (generados automáticamente)",
+ "Portuguese (Brazil)": "Portugués (Brasil)",
+ "Indonesian (auto-generated)": "Indonesio (generados automáticamente)",
+ "Portuguese (auto-generated)": "Portugués (generados automáticamente)",
+ "Chinese": "Chino",
+ "Chinese (Hong Kong)": "Chino (Hong Kong)",
+ "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)"
}
diff --git a/locales/fr.json b/locales/fr.json
index 8593feb1..b9732345 100644
--- a/locales/fr.json
+++ b/locales/fr.json
@@ -76,7 +76,7 @@
"preferences_related_videos_label": "Voir les vidéos liées : ",
"preferences_annotations_label": "Afficher les annotations par défaut : ",
"preferences_extend_desc_label": "Etendre automatiquement la description : ",
- "preferences_vr_mode_label": "Vidéos interactives à 360° : ",
+ "preferences_vr_mode_label": "Vidéos interactives à 360° (nécessite WebGL) : ",
"preferences_category_visual": "Préférences du site",
"preferences_player_style_label": "Style du lecteur : ",
"Dark mode: ": "Mode sombre : ",
@@ -437,5 +437,28 @@
"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_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) :"
+ "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)",
+ "Chinese (China)": "Chinois (Chine)",
+ "Chinese (Hong Kong)": "Chinois (Hong Kong)",
+ "Dutch (auto-generated)": "Danoi (auto-généré)",
+ "French (auto-generated)": "Français (auto-généré)",
+ "German (auto-generated)": "Allemand (auto-généré)",
+ "Japanese (auto-generated)": "Japonais (auto-généré)",
+ "Korean (auto-generated)": "Coréen (auto-généré)",
+ "Indonesian (auto-generated)": "Indonésien (auto-généré)",
+ "Portuguese (auto-generated)": "Portuguais (auto-généré)",
+ "Portuguese (Brazil)": "Portugais (Brésil)",
+ "Spanish (auto-generated)": "Espagnol (auto-généré)",
+ "Spanish (Mexico)": "Espagnol (Mexique)",
+ "Turkish (auto-generated)": "Turque (auto-généré)",
+ "Chinese": "Chinois",
+ "English (United Kingdom)": "Anglais (Royaume-Uni)",
+ "Chinese (Taiwan)": "Chinois (Taiwan)",
+ "Cantonese (Hong Kong)": "Cantonais (Hong Kong)",
+ "Interlingue": "Occidental",
+ "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)"
}
diff --git a/locales/hr.json b/locales/hr.json
index 5770041e..2f5d3bcf 100644
--- a/locales/hr.json
+++ b/locales/hr.json
@@ -446,5 +446,12 @@
"generic_views_count_2": "{{count}} prikaza",
"comments_view_x_replies_0": "Prikaži {{count}} odgovor",
"comments_view_x_replies_1": "Prikaži {{count}} odgovora",
- "comments_view_x_replies_2": "Prikaži {{count}} odgovora"
+ "comments_view_x_replies_2": "Prikaži {{count}} odgovora",
+ "crash_page_you_found_a_bug": "Čini se da si pronašao/la grešku u Invidiousu!",
+ "crash_page_before_reporting": "Prije prijavljivanja greške:",
+ "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_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):"
}
diff --git a/locales/hu-HU.json b/locales/hu-HU.json
index 60285d94..d1948a47 100644
--- a/locales/hu-HU.json
+++ b/locales/hu-HU.json
@@ -76,7 +76,7 @@
"preferences_related_videos_label": "Hasonló videók ajánlása: ",
"preferences_annotations_label": "Szövegmagyarázat alapértelmezett mutatása: ",
"preferences_extend_desc_label": "A videó leírása automatikusan látható: ",
- "preferences_vr_mode_label": "Interaktív, 360°-os videók ",
+ "preferences_vr_mode_label": "Interaktív 360 fokos videók (WebGL szükséges): ",
"preferences_category_visual": "Kinézet, elrendezés és régió beállításai",
"preferences_player_style_label": "Lejátszó kinézete: ",
"Dark mode: ": "Elsötétített mód: ",
@@ -437,5 +437,28 @@
"crash_page_search_issue": "járj utána a <a href=\"`x`\">már meglévő issue-knak a GitHubon</a>",
"crash_page_switch_instance": "válts át <a href=\"`x`\">másik Invidious-oldalra</a>",
"crash_page_refresh": "<a href=\"`x`\">töltsd újra</a> az oldalt",
- "crash_page_report_issue": "Ha a fentiek után nem jutottál eredményre, akkor <a href=\"`x`\">nyiss egy új issue-t a GitHubon</a> (lehetőleg angol nyelven írj) és másold be pontosan a lenti szöveget (ezt nem kell lefordítani):"
+ "crash_page_report_issue": "Ha a fentiek után nem jutottál eredményre, akkor <a href=\"`x`\">nyiss egy új issue-t a GitHubon</a> (lehetőleg angol nyelven írj) és másold be pontosan a lenti szöveget (ezt nem kell lefordítani):",
+ "Cantonese (Hong Kong)": "kantoni (Hongkong)",
+ "Chinese": "kínai",
+ "Chinese (China)": "kínai (Kína)",
+ "Chinese (Hong Kong)": "kínai (Hongkong)",
+ "Chinese (Taiwan)": "kínai (Tajvan)",
+ "German (auto-generated)": "német (automatikusan generált)",
+ "Interlingue": "interlingva",
+ "Japanese (auto-generated)": "japán (automatikusan generált)",
+ "Korean (auto-generated)": "koreai (automatikusan generált)",
+ "Portuguese (Brazil)": "portugál (Brazília)",
+ "Russian (auto-generated)": "orosz (automatikusan generált)",
+ "Spanish (auto-generated)": "spanyol (automatikusan generált)",
+ "Spanish (Mexico)": "spanyol (Mexikó)",
+ "Spanish (Spain)": "spanyol (Spanyolország)",
+ "English (United States)": "angol (Egyesült Államok)",
+ "Portuguese (auto-generated)": "portugál (automatikusan generált)",
+ "Turkish (auto-generated)": "török (automatikusan generált)",
+ "English (United Kingdom)": "angol (Egyesült Királyság)",
+ "Indonesian (auto-generated)": "indonéz (automatikusan generált)",
+ "Italian (auto-generated)": "olasz (automatikusan generált)",
+ "Dutch (auto-generated)": "holland (automatikusan generált)",
+ "French (auto-generated)": "francia (automatikusan generált)",
+ "Vietnamese (auto-generated)": "vietnámi (automatikusan generált)"
}
diff --git a/locales/id.json b/locales/id.json
index 11016a1c..be15e8e1 100644
--- a/locales/id.json
+++ b/locales/id.json
@@ -325,7 +325,7 @@
"Search": "Cari",
"Top": "Teratas",
"About": "Tentang",
- "Rating: ": "Rating: ",
+ "Rating: ": "Penilaian: ",
"preferences_locale_label": "Bahasa: ",
"View as playlist": "Lihat sebagai daftar putar",
"Default": "Baku",
@@ -346,7 +346,7 @@
"Playlists": "Daftar putar",
"Community": "Komunitas",
"relevance": "Relevansi",
- "rating": "Rating",
+ "rating": "Penilaian",
"date": "Tanggal unggah",
"views": "Jumlah ditonton",
"content_type": "Tipe",
@@ -414,5 +414,7 @@
"preferences_quality_dash_option_auto": "Otomatis",
"preferences_quality_dash_option_480p": "480p",
"Video unavailable": "Video tidak tersedia",
- "preferences_save_player_pos_label": "Simpan posisi pemutaran: "
+ "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:"
}
diff --git a/locales/nb-NO.json b/locales/nb-NO.json
index 20993b5f..1c5ffbc8 100644
--- a/locales/nb-NO.json
+++ b/locales/nb-NO.json
@@ -21,8 +21,8 @@
"No": "Nei",
"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)",
diff --git a/locales/pt.json b/locales/pt.json
index c13c1fd5..0a352f79 100644
--- a/locales/pt.json
+++ b/locales/pt.json
@@ -388,7 +388,7 @@
"preferences_quality_dash_label": "Qualidade de vídeo DASH preferida: ",
"preferences_quality_option_small": "Baixa",
"preferences_quality_option_hd720": "HD720",
- "preferences_quality_dash_option_auto": "Auto",
+ "preferences_quality_dash_option_auto": "Automático",
"preferences_quality_dash_option_best": "Melhor",
"preferences_quality_dash_option_4320p": "4320p",
"preferences_quality_dash_option_2160p": "2160p",
@@ -397,12 +397,12 @@
"preferences_quality_dash_option_360p": "360p",
"preferences_quality_dash_option_240p": "240p",
"preferences_quality_dash_option_144p": "144p",
- "purchased": "Adquirido",
+ "purchased": "Comprado",
"360": "360°",
"videoinfo_invidious_embed_link": "Incorporar hiperligação",
"Video unavailable": "Vídeo não disponível",
"invidious": "Invidious",
- "preferences_quality_option_medium": "Médio",
+ "preferences_quality_option_medium": "Média",
"preferences_quality_option_dash": "DASH (qualidade adaptativa)",
"preferences_quality_dash_option_1440p": "1440p",
"preferences_quality_dash_option_480p": "480p",
@@ -410,5 +410,32 @@
"preferences_quality_dash_option_worst": "Pior",
"none": "nenhum",
"videoinfo_youTube_embed_link": "Incorporar",
- "preferences_save_player_pos_label": "Guardar o tempo atual do vídeo: "
+ "preferences_save_player_pos_label": "Guardar a posição de reprodução atual do vídeo: ",
+ "download_subtitles": "Legendas - `x` (.vtt)",
+ "generic_views_count": "{{count}} visualização",
+ "generic_views_count_plural": "{{count}} visualizações",
+ "videoinfo_started_streaming_x_ago": "Iniciou a transmissão há `x`",
+ "user_saved_playlists": "`x` listas de reprodução guardadas",
+ "generic_videos_count": "{{count}} vídeo",
+ "generic_videos_count_plural": "{{count}} vídeos",
+ "generic_playlists_count": "{{count}} lista de reprodução",
+ "generic_playlists_count_plural": "{{count}} listas de reprodução",
+ "subscriptions_unseen_notifs_count": "{{count}} notificação não vista",
+ "subscriptions_unseen_notifs_count_plural": "{{count}} notificações não vistas",
+ "comments_view_x_replies": "Ver {{count}} resposta",
+ "comments_view_x_replies_plural": "Ver {{count}} respostas",
+ "generic_subscribers_count": "{{count}} inscrito",
+ "generic_subscribers_count_plural": "{{count}} inscritos",
+ "generic_subscriptions_count": "{{count}} inscrição",
+ "generic_subscriptions_count_plural": "{{count}} inscrições",
+ "comments_points_count": "{{count}} ponto",
+ "comments_points_count_plural": "{{count}} pontos",
+ "crash_page_you_found_a_bug": "Parece que encontrou um erro no Invidious!",
+ "crash_page_before_reporting": "Antes de reportar um erro, verifique se:",
+ "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_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 809f7187..6d370b80 100644
--- a/locales/ru.json
+++ b/locales/ru.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",
@@ -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: ": "Тёмное оформление: ",
@@ -75,7 +75,7 @@
"light": "светлая",
"preferences_thin_mode_label": "Облегчённое оформление: ",
"preferences_category_misc": "Прочие предпочтения",
- "preferences_automatic_instance_redirect_label": "Автоматическое перенаправление экземпляра (резервный вариант redirect.invidious.io): ",
+ "preferences_automatic_instance_redirect_label": "Автоматическое перенаправление на зеркало сайта (резервный вариант redirect.invidious.io): ",
"preferences_category_subscription": "Настройки подписок",
"preferences_annotations_subscribed_label": "Всегда показывать аннотации в видео каналов, на которые вы подписаны? ",
"Redirect homepage to feed: ": "Отображать видео с каналов, на которые вы подписаны, как главную страницу: ",
@@ -361,5 +361,120 @@
"next_steps_error_message_refresh": "Обновить",
"next_steps_error_message_go_to_youtube": "Перейти на YouTube",
"short": "Короткие (< 4 минут)",
- "long": "Длинные (> 20 минут)"
+ "long": "Длинные (> 20 минут)",
+ "preferences_quality_dash_option_best": "Наилучшее",
+ "generic_count_weeks_0": "{{count}} неделя",
+ "generic_count_weeks_1": "{{count}} недели",
+ "generic_count_weeks_2": "{{count}} недель",
+ "English (United Kingdom)": "Английский (Великобритания)",
+ "English (United States)": "Английский (США)",
+ "Cantonese (Hong Kong)": "Кантонский (Гонконг)",
+ "Chinese (Taiwan)": "Китайский (Тайвань)",
+ "Dutch (auto-generated)": "Голландский (автоматический)",
+ "German (auto-generated)": "Немецкий (автоматический)",
+ "Indonesian (auto-generated)": "Индонезийский (автоматический)",
+ "Italian (auto-generated)": "Итальянский (автоматический)",
+ "Interlingue": "Интерлингва",
+ "Russian (auto-generated)": "Русский (автоматический)",
+ "Spanish (auto-generated)": "Испанский (автоматический)",
+ "Spanish (Spain)": "Испанский (Испания)",
+ "Turkish (auto-generated)": "Турецкий (автоматический)",
+ "Vietnamese (auto-generated)": "Вьетнамский (автоматический)",
+ "footer_documentation": "Документация",
+ "adminprefs_modified_source_code_url_label": "Ссылка на нашу ветку репозитория",
+ "none": "ничего",
+ "videoinfo_watch_on_youTube": "Смотреть на YouTube",
+ "videoinfo_youTube_embed_link": "Встраиваемый элемент",
+ "videoinfo_invidious_embed_link": "Встраиваемая ссылка",
+ "download_subtitles": "Субтитры - `x` (.vtt)",
+ "user_created_playlists": "`x` созданных плейлистов",
+ "crash_page_you_found_a_bug": "Похоже вы нашли баг в Invidious!",
+ "crash_page_before_reporting": "Прежде чем сообщать об ошибке, убедитесь, что вы:",
+ "crash_page_refresh": "пробовали <a href=\"`x`\"> перезагрузить страницу</a>",
+ "crash_page_report_issue": "Если ни один вариант не помог, пожалуйста <a href=\"`x`\">откройте новую проблему на GitHub</a> (желательно на английском) и приложите следующий текст к вашему сообщению (НЕ переводите его):",
+ "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}} плейлистов",
+ "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_minutes_0": "{{count}} минута",
+ "generic_count_minutes_1": "{{count}} минуты",
+ "generic_count_minutes_2": "{{count}} минут",
+ "generic_subscribers_count_0": "{{count}} подписчик",
+ "generic_subscribers_count_1": "{{count}} подписчика",
+ "generic_subscribers_count_2": "{{count}} подписчиков",
+ "generic_views_count_0": "{{count}} просмотр",
+ "generic_views_count_1": "{{count}} просмотра",
+ "generic_views_count_2": "{{count}} просмотров",
+ "French (auto-generated)": "Французский (автоматический)",
+ "Portuguese (auto-generated)": "Португальский (автоматический)",
+ "generic_count_days_0": "{{count}} день",
+ "generic_count_days_1": "{{count}} дня",
+ "generic_count_days_2": "{{count}} дней",
+ "preferences_quality_dash_option_auto": "Автоматическое",
+ "preferences_quality_dash_option_1080p": "1080p",
+ "preferences_quality_dash_option_720p": "720p",
+ "generic_subscriptions_count_0": "{{count}} подписка",
+ "generic_subscriptions_count_1": "{{count}} подписки",
+ "generic_subscriptions_count_2": "{{count}} подписок",
+ "preferences_quality_option_small": "Низкое",
+ "preferences_quality_dash_option_1440p": "1440p",
+ "preferences_quality_dash_option_480p": "480p",
+ "preferences_quality_dash_option_360p": "360p",
+ "generic_count_seconds_0": "{{count}} секунда",
+ "generic_count_seconds_1": "{{count}} секунды",
+ "generic_count_seconds_2": "{{count}} секунд",
+ "purchased": "Приобретено",
+ "videoinfo_started_streaming_x_ago": "Трансляция началась `x` назад",
+ "crash_page_switch_instance": "пробовали <a href=\"`x`\">использовать другое зеркало</a>",
+ "crash_page_read_the_faq": "прочли <a href=\"`x`\">Частые Вопросы (ЧаВо)</a>",
+ "Chinese": "Китайский",
+ "Chinese (Hong Kong)": "Китайский (Гонконг)",
+ "Japanese (auto-generated)": "Японский (автоматический)",
+ "Chinese (China)": "Китайский (Китай)",
+ "Korean (auto-generated)": "Корейский (автоматический)",
+ "generic_count_months_0": "{{count}} месяц",
+ "generic_count_months_1": "{{count}} месяца",
+ "generic_count_months_2": "{{count}} месяцев",
+ "generic_count_hours_0": "{{count}} час",
+ "generic_count_hours_1": "{{count}} часа",
+ "generic_count_hours_2": "{{count}} часов",
+ "Portuguese (Brazil)": "Португальский (Бразилия)",
+ "footer_source_code": "Исходный код",
+ "footer_original_source_code": "Оригинальный исходный код",
+ "footer_modfied_source_code": "Изменённый исходный код",
+ "user_saved_playlists": "`x` сохранённых плейлистов",
+ "crash_page_search_issue": "искали <a href=\"`x`\">похожую проблему на Github</a>",
+ "comments_points_count_0": "{{count}} плюс",
+ "comments_points_count_1": "{{count}} плюса",
+ "comments_points_count_2": "{{count}} плюсов",
+ "Spanish (Mexico)": "Испанский (Мексика)",
+ "footer_donate_page": "Поддержать проект",
+ "preferences_quality_option_dash": "DASH (автоматическое качество)",
+ "preferences_quality_option_hd720": "HD720",
+ "preferences_quality_option_medium": "Среднее",
+ "preferences_quality_dash_label": "Предпочтительное автоматическое качество видео: ",
+ "preferences_quality_dash_option_worst": "Очень низкое",
+ "preferences_quality_dash_option_4320p": "4320p",
+ "preferences_quality_dash_option_2160p": "2160p",
+ "preferences_quality_dash_option_240p": "240p",
+ "preferences_quality_dash_option_144p": "144p",
+ "invidious": "Invidious",
+ "360": "360°",
+ "Video unavailable": "Видео недоступно",
+ "preferences_save_player_pos_label": "Запоминать позицию: ",
+ "preferences_region_label": "Страна: "
}
diff --git a/locales/sq.json b/locales/sq.json
index 0967ef42..6b3b8daa 100644
--- a/locales/sq.json
+++ b/locales/sq.json
@@ -1 +1,383 @@
-{}
+{
+ "Albanian": "Shqip",
+ "Amharic": "Amharike",
+ "Arabic": "Arabisht",
+ "Armenian": "Armenisht",
+ "Gujarati": "Gujaratase",
+ "Haitian Creole": "Kreolase Haiti",
+ "Hausa": "Hausisht",
+ "Hawaiian": "Havajane",
+ "Hebrew": "Hebraisht",
+ "Hindi": "Indiane",
+ "Hungarian": "Hungarisht",
+ "Icelandic": "Islandisht",
+ "Igbo": "Igboisht",
+ "Irish": "Irlandisht",
+ "Javanese": "Xhavanisht",
+ "Kazakh": "Kazake",
+ "Khmer": "Khmere",
+ "Korean": "Koreane",
+ "Kurdish": "Kurdisht",
+ "Kyrgyz": "Kirgizisht",
+ "Sundanese": "Sundaneze",
+ "Swahili": "Suahilisht",
+ "Swedish": "Suedisht",
+ "Tajik": "Taxhike",
+ "Tamil": "Tamilisht",
+ "Telugu": "Telugu",
+ "Vietnamese": "Vietnamisht",
+ "creative_commons": "Creative Commons",
+ "3d": "3D",
+ "live": "Drejtpërsëdrejti",
+ "4k": "4K",
+ "location": "Vendndodhja",
+ "videoinfo_watch_on_youTube": "Shiheni në YouTube",
+ "videoinfo_youTube_embed_link": "Trupëzojeni",
+ "videoinfo_invidious_embed_link": "Lidhje Trupëzimi",
+ "oldest": "më të vjetrat",
+ "Cannot change password for Google accounts": "S’mund të ndryshojë fjalëkalimin për llogari Google",
+ "New passwords must match": "Fjalëkalimet e rinj duhet të përputhen me njëri-tjetrin",
+ "Authorize token?": "Të autorizohet token-i?",
+ "Authorize token for `x`?": "Të autorizohet token-i për `x`?",
+ "Log in/register": "Hyni/regjistrohuni",
+ "Log in with Google": "Hyni me Google",
+ "User ID": "ID Përdoruesi",
+ "Password": "Fjalëkalim",
+ "Time (h:mm:ss):": "Kohë (h:mm:ss):",
+ "Text CAPTCHA": "CAPTCHA Tekst",
+ "Image CAPTCHA": "CAPTCHA Figurë",
+ "Sign In": "Hyni",
+ "Register": "Regjistrohuni",
+ "E-mail": "Email",
+ "Preferences": "Parapëlqime",
+ "preferences_category_player": "Parapëlqime Lojtësi",
+ "preferences_autoplay_label": "Vetëluaje: ",
+ "preferences_continue_label": "Luaj pasuesen, si parazgjedhje: ",
+ "preferences_continue_autoplay_label": "Vetëluaj videon pasuese: ",
+ "preferences_listen_label": "Si parazgjedhje, dëgjojeni me: ",
+ "preferences_speed_label": "Shpejtësi parazgjedhje: ",
+ "preferences_quality_label": "Cilësi e parapëlqyer për videot: ",
+ "preferences_quality_option_dash": "DASH (cilësi që përshtatet)",
+ "preferences_quality_option_hd720": "HD720",
+ "preferences_quality_option_medium": "Mesatare",
+ "preferences_quality_option_small": "E ulët",
+ "preferences_quality_dash_label": "Cilësi DASH e parapëlqyer për videot: ",
+ "preferences_quality_dash_option_auto": "Auto",
+ "preferences_quality_dash_option_best": "Më e mira",
+ "preferences_quality_dash_option_worst": "Më e keqja",
+ "preferences_quality_dash_option_4320p": "4320p",
+ "preferences_quality_dash_option_2160p": "2160p",
+ "preferences_quality_dash_option_1440p": "1440p",
+ "preferences_quality_dash_option_1080p": "1080p",
+ "preferences_quality_dash_option_720p": "720p",
+ "preferences_quality_dash_option_480p": "480p",
+ "preferences_quality_dash_option_360p": "360p",
+ "preferences_quality_dash_option_240p": "240p",
+ "preferences_quality_dash_option_144p": "144p",
+ "preferences_volume_label": "Volum lojtësi: ",
+ "preferences_comments_label": "Komente parazgjedhje: ",
+ "youtube": "YouTube",
+ "reddit": "Reddit",
+ "invidious": "Invidious",
+ "preferences_captions_label": "Titra parazgjedhje: ",
+ "preferences_extend_desc_label": "Zgjero automatikisht përshkrimin e videos: ",
+ "preferences_player_style_label": "Silt lojtësi: ",
+ "Dark mode: ": "Mënyra e errët: ",
+ "preferences_dark_mode_label": "Temë: ",
+ "dark": "e errët",
+ "light": "e çelët",
+ "preferences_thin_mode_label": "Mënyrë e hollë: ",
+ "preferences_category_misc": "Parapëlqime të ndryshme",
+ "preferences_automatic_instance_redirect_label": "Ridrejtim i automatizuar i instancës (si parazgjedhje, te redirect.invidious.io): ",
+ "preferences_category_subscription": "Parapëlqime pajtimesh",
+ "preferences_annotations_subscribed_label": "Të shfaqen, si parazgjedhje, shënime për kanalet e pajtuar? ",
+ "Redirect homepage to feed: ": "Ridrejtoje faqen hyrëse te prurje: ",
+ "preferences_max_results_label": "Numër videosh të shfaqura në prurje: ",
+ "preferences_sort_label": "Renditi videot sipas: ",
+ "published": "e publikuar",
+ "alphabetically": "alfabetikisht",
+ "alphabetically - reverse": "alfabetikisht - së prapthi",
+ "channel name": "emër kanali",
+ "Only show latest video from channel: ": "Shfaq vetëm videot më të reja nga kanali: ",
+ "Only show latest unwatched video from channel: ": "Shfaq vetëm videot më të reja të papara në kanal: ",
+ "preferences_unseen_only_label": "Shfaq vetëm të paparat: ",
+ "preferences_notifications_only_label": "Shfaq vetëm njoftime (nëse ka të tilla): ",
+ "Enable web notifications": "Aktivizoni njoftime web",
+ "`x` uploaded a video": "`x` ngarkoi një video",
+ "`x` is live": "`x` funksionon",
+ "preferences_category_data": "Parapëlqime për të dhënat",
+ "Clear watch history": "Spastro historik parjesh",
+ "Import/export data": "Importoni/eksportoni të dhëna",
+ "Change password": "Ndryshoni fjalëkalimin",
+ "Manage subscriptions": "Administroni pajtimet",
+ "Manage tokens": "Administroni token-ë",
+ "Watch history": "Shihni historikun",
+ "Delete account": "Fshije llogarinë",
+ "preferences_category_admin": "Parapëlqime përgjegjësi",
+ "preferences_default_home_label": "Faqe hyrëse parazgjedhje: ",
+ "preferences_feed_menu_label": "Menu prurjesh: ",
+ "Registration enabled: ": "Regjistrim i aktivizuar: ",
+ "Save preferences": "Ruaji parapëlqimet",
+ "Token": "Token",
+ "Subscription manager": "Përgjegjës pajtimesh",
+ "Token manager": "Përgjegjës token-ësh",
+ "Import/export": "Importim/eksportim",
+ "unsubscribe": "shpajtohuni",
+ "revoke": "shfuqizoje",
+ "Subscriptions": "Pajtime",
+ "search": "kërko",
+ "Log out": "Dilni",
+ "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.",
+ "Trending": "Në modë",
+ "Public": "Publike",
+ "Unlisted": "Jo në listë",
+ "Private": "Private",
+ "View all playlists": "Shihni krejt luajlistat",
+ "Updated `x` ago": "Përditësuar `x` më parë",
+ "Delete playlist": "Fshije luajlistën",
+ "Delete playlist `x`?": "Të fshihet luajlista `x`?",
+ "Create playlist": "Krijoni luajlistë",
+ "Title": "Titull",
+ "Playlist privacy": "Privatësi luajliste",
+ "Editing playlist `x`": "Po përpunohet luajlista `x`",
+ "Show more": "Shfaq më tepër",
+ "Show less": "Shfaq më pak",
+ "Watch on YouTube": "Shiheni në YouTube",
+ "Switch Invidious Instance": "Ndërroni Instancë Invidious",
+ "Broken? Try another Invidious Instance": "E prishur? Provoni një tjetër Instancë Invidious",
+ "Hide annotations": "Fshihi shënimet",
+ "Show annotations": "Shfaq shënime",
+ "License: ": "Licencë: ",
+ "Family friendly? ": "E përshtatshme për familje? ",
+ "Wilson score: ": "Klasifikim Wilson: ",
+ "Engagement: ": "Angazhim: ",
+ "Whitelisted regions: ": "Rajone të lejuara: ",
+ "Premieres `x`": "Premiera `x`",
+ "Hi! Looks like you have JavaScript turned off. Click here to view comments, keep in mind they may take a bit longer to load.": "Njatjeta! Duket sikur keni JavaScript-in të çaktivizuar. Klikoni këtu që të shihni komentet, mbani parasysh se mund të duhet pak më tepër kohë që të ngarkohen.",
+ "Quota exceeded, try again in a few hours": "Janë tejkaluar kuotat, riprovoni pas pak orësh",
+ "Blacklisted regions: ": "Rajone të palejuara: ",
+ "Premieres in `x`": "Premiera në `x`",
+ "Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "S’arrihet të bëhet hyrja, sigurohuni se mirëfilltësimi dyfaktorësh (me Mirëfilltësues apo SMS) është i aktivizuar.",
+ "Wrong answer": "Përgjigje e gabuar",
+ "Invalid TFA code": "Kod MDF i pavlefshëm",
+ "Login failed. This may be because two-factor authentication is not turned on for your account.": "Dështoi hyrja. Kjo mund të vijë ngaqë për llogarinë tuaj s’është aktivizuar mirëfilltësimi dyfaktorësh.",
+ "Erroneous CAPTCHA": "CAPTCHA e gabuar",
+ "CAPTCHA is a required field": "CAPTCHA është fushë e domosdoshme",
+ "User ID is a required field": "ID-ja e përdoruesit është fushë e domosdoshme",
+ "Password is a required field": "Fusha e fjalëkalimit është e domosdoshme",
+ "Wrong username or password": "Emër përdoruesi ose fjalëkalim i gabuar",
+ "Please sign in using 'Log in with Google'": "Ju lutemi, bëni hyrjen duke përdorur “Bëni hyrjen me Google”",
+ "Password cannot be empty": "Fjalëkalimi s’mund të jetë i zbrazët",
+ "Password cannot be longer than 55 characters": "Fjalëkalimi s’mund të jetë më i gjatë se 55 shenja",
+ "Please log in": "Ju lutemi, bëni hyrjen",
+ "Invidious Private Feed for `x`": "Prurje Private Invidious për `x`",
+ "channel:`x`": "kanal:`x`",
+ "Deleted or invalid channel": "Kanal i fshirë ose i pavlefshëm",
+ "This channel does not exist.": "Ky kanal s’ekziston.",
+ "Could not get channel info.": "S’u morën dot hollësi kanali.",
+ "Could not fetch comments": "S’u sollën dot komente",
+ "`x` ago": "`x` më parë",
+ "Load more": "Ngarko më tepër",
+ "Empty playlist": "Luajlistë e zbrazët",
+ "Not a playlist.": "S’është luajlistë.",
+ "Playlist does not exist.": "Luajlista s’ekziston.",
+ "Hidden field \"challenge\" is a required field": "Fusha e fshehur “challenge” është fushë e domosdoshme",
+ "Hidden field \"token\" is a required field": "Fusha e fshehur “token” është fushë e domosdoshme",
+ "Erroneous token": "Token i gabuar",
+ "No such user": "S’ka përdorues të tillë",
+ "Token is expired, please try again": "Token-i ka skaduar, ju lutemi, riprovoni",
+ "English": "Anglisht",
+ "English (auto-generated)": "Anglisht (të vetë-prodhuara)",
+ "Afrikaans": "Afrikaans",
+ "Azerbaijani": "Azerbajxhanase",
+ "Bangla": "Bangla",
+ "Basque": "Baske",
+ "Burmese": "Burmanisht",
+ "Catalan": "Katalane",
+ "Belarusian": "Bjellorusisht",
+ "Bosnian": "Boshnjake",
+ "Bulgarian": "Bullgarisht",
+ "Cebuano": "Cebuano",
+ "Chinese (Simplified)": "Kineze (E thjeshtuar)",
+ "Chinese (Traditional)": "Kineze (Tradicionale)",
+ "Corsican": "Korsikanisht",
+ "Croatian": "Kroatisht",
+ "Czech": "Çekisht",
+ "Danish": "Danisht",
+ "Dutch": "Holandisht",
+ "Esperanto": "Esperanto",
+ "Estonian": "Estonisht",
+ "Filipino": "Filipineze",
+ "Finnish": "Finlandisht",
+ "French": "Frëngjisht",
+ "Galician": "Galicisht",
+ "Georgian": "Gjeorgjisht",
+ "German": "Gjermanisht",
+ "Greek": "Greqisht",
+ "Indonesian": "Indonezisht",
+ "Italian": "Italisht",
+ "Japanese": "Japonisht",
+ "Lao": "Laosisht",
+ "Lithuanian": "Lituanisht",
+ "Luxembourgish": "Luksemburgisht",
+ "Latin": "Latinisht",
+ "Latvian": "Letonisht",
+ "Macedonian": "Maqedonisht",
+ "Nyanja": "Nianja",
+ "Pashto": "Pashtune",
+ "Persian": "Perisht",
+ "Polish": "Polonisht",
+ "Portuguese": "Portugalisht",
+ "Punjabi": "Panxhabe",
+ "Romanian": "Rumanisht",
+ "Russian": "Rusisht",
+ "Samoan": "Samoanisht",
+ "Scottish Gaelic": "Galike Skoceze",
+ "Serbian": "Serbisht",
+ "Shona": "Shonisht",
+ "Sindhi": "Sindi",
+ "Sinhala": "Sinhaleze",
+ "Slovak": "Slovakisht",
+ "Slovenian": "Sllovenisht",
+ "Somali": "Somalisht",
+ "Southern Sotho": "Sotoishte Jugore",
+ "Spanish": "Spanjisht",
+ "Spanish (Latin America)": "Spanjisht (Amerikë Latine)",
+ "Thai": "Tajlandeze",
+ "Turkish": "Turqisht",
+ "Ukrainian": "Ukrainase",
+ "Urdu": "Urdisht",
+ "Uzbek": "Uzbeke",
+ "Welsh": "Uellase",
+ "Western Frisian": "Frizishte Perëndimore",
+ "Xhosa": "Xhosa",
+ "Yiddish": "Jidisht",
+ "%A %B %-d, %Y": "%A %B %-d, %Y",
+ "(edited)": "(u përpunua)",
+ "YouTube comment permalink": "Permalidhje komenti YouTube",
+ "Audio mode": "Mënyrë për audion",
+ "Playlists": "Luajlista",
+ "Community": "Bashkësi",
+ "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",
+ "footer_modfied_source_code": "Kod Burim i ndryshuar",
+ "adminprefs_modified_source_code_url_label": "URL e depos së ndryshuar të kodit burim",
+ "none": "asnjë",
+ "videoinfo_started_streaming_x_ago": "Filloi transmetimin `x` më parë",
+ "LIVE": "DREJTPËRSËDREJTI",
+ "Shared `x` ago": "Ndarë me të tjerë `x` më parë",
+ "Unsubscribe": "Shpajtohuni",
+ "Subscribe": "Pajtomë",
+ "View channel on YouTube": "Shihni kanalin në YouTube",
+ "View playlist on YouTube": "Shihni luajlistën në YouTube",
+ "newest": "më të rejat",
+ "popular": "popullore",
+ "last": "e fundit",
+ "Next page": "Faqja pasuese",
+ "Previous page": "Faqja e mëparshme",
+ "Clear watch history?": "Të spastrohet historiku i parjeve?",
+ "New password": "Fjalëkalim i ri",
+ "Google verification code": "Kod verifikimi Google",
+ "preferences_related_videos_label": "Shfaq video të afërta: ",
+ "preferences_annotations_label": "Si parazgjedhje, shfaqi shënimet: ",
+ "preferences_show_nick_label": "Shfaqe nofkën në krye: ",
+ "CAPTCHA enabled: ": "Me CAPTCHA të aktivizuar: ",
+ "Login enabled: ": "Me hyrjen të aktivizuar: ",
+ "Genre: ": "Zhanër: ",
+ "Could not create mix.": "S’u krijua dot përzierja.",
+ "Yoruba": "Jorubaisht",
+ "Zulu": "Zulu",
+ "Popular": "Popullore",
+ "Search": "Kërko",
+ "About": "Mbi",
+ "Rating: ": "Vlerësim: ",
+ "preferences_locale_label": "Gjuhë: ",
+ "View as playlist": "Shiheni si luajlistë",
+ "Default": "Parazgjedhje",
+ "Music": "Muzikë",
+ "Gaming": "Lojëra",
+ "News": "Lajme",
+ "Movies": "Filma",
+ "Download": "Shkarkoje",
+ "Download as: ": "Shkarkoje si: ",
+ "permalink": "permalidhje",
+ "`x` marked it with a ❤": "`x` i është vënë një ❤",
+ "download_subtitles": "Titra - `x` (.vtt)",
+ "user_created_playlists": "`x` krijoi luajlista",
+ "user_saved_playlists": "`x` ruajti luajlista",
+ "Video unavailable": "Video jo e passhme",
+ "Yes": "Po",
+ "No": "Jo",
+ "Import and Export Data": "Importoni dhe Eksportoni të Dhëna",
+ "Import": "Importo",
+ "Import FreeTube subscriptions (.db)": "Importoni pajtime FreeTube (.db)",
+ "Import NewPipe subscriptions (.json)": "Importoni pajtime NewPipe (.json)",
+ "Import NewPipe data (.zip)": "Importoni të dhëna NewPipe (.zip)",
+ "Export": "Eksporto",
+ "Export subscriptions as OPML": "Eksportoni pajtime si OPML",
+ "Export subscriptions as OPML (for NewPipe & FreeTube)": "Eksportoji pajtimet si OPML (për NewPipe & FreeTube)",
+ "Delete account?": "Të fshihet llogaria?",
+ "History": "Historik",
+ "An alternative front-end to YouTube": "Një front-end alternativ për YouTube-in",
+ "JavaScript license information": "Hollësi licence JavaScript",
+ "source": "burim",
+ "Log in": "Hyni",
+ "preferences_category_visual": "Parapëlqime pamore",
+ "preferences_region_label": "Vend lënde: ",
+ "View YouTube comments": "Shihni komente Youtube",
+ "View more comments on Reddit": "Shihni më tepër komente në Reddit",
+ "View `x` comments": {
+ "([^.,0-9]|^)1([^.,0-9]|$)": "Shihni `x` komente",
+ "": "Shihni `x` komente"
+ },
+ "View Reddit comments": "Shihni komente Reddit",
+ "Hide replies": "Fshihi përgjigjet",
+ "Show replies": "Shfaq përgjigje",
+ "Incorrect password": "Fjalëkalim i pasaktë",
+ "Malagasy": "Malagashe",
+ "Malay": "Malajase",
+ "Malayalam": "Malajalamase",
+ "Maltese": "Maltisht",
+ "Maori": "Maori",
+ "Marathi": "Marati",
+ "Mongolian": "Mongolisht",
+ "Nepali": "Nepaleze",
+ "Norwegian Bokmål": "Norvegjishte Bokmål",
+ "360": "360°",
+ "filter": "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",
+ "next_steps_error_message_go_to_youtube": "Kaloni në Youtube",
+ "footer_donate_page": "Dhuroni",
+ "footer_documentation": "Dokumentim",
+ "footer_source_code": "Kod burim",
+ "footer_original_source_code": "Kodim burim origjinal"
+}
diff --git a/locales/tr.json b/locales/tr.json
index 5c3102c5..65648fd7 100644
--- a/locales/tr.json
+++ b/locales/tr.json
@@ -21,15 +21,15 @@
"No": "Hayır",
"Import and Export Data": "Verileri İçe ve Dışa Aktar",
"Import": "İçe aktar",
- "Import Invidious data": "İnvidious verilerini içe aktar",
- "Import YouTube subscriptions": "YouTube aboneliklerini içe aktar",
+ "Import Invidious data": "İnvidious JSON verilerini içe aktar",
+ "Import YouTube subscriptions": "YouTube/OPML aboneliklerini içe aktar",
"Import FreeTube subscriptions (.db)": "FreeTube aboneliklerini içe aktar (.db)",
"Import NewPipe subscriptions (.json)": "NewPipe aboneliklerini içe aktar (.json)",
"Import NewPipe data (.zip)": "NewPipe verilerini içe aktar (.zip)",
"Export": "Dışa aktar",
"Export subscriptions as OPML": "Abonelikleri OPML olarak dışa aktar",
"Export subscriptions as OPML (for NewPipe & FreeTube)": "Abonelikleri OPML olarak dışa aktar (NewPipe ve FreeTube için)",
- "Export data as JSON": "Verileri JSON olarak dışa aktar",
+ "Export data as JSON": "Invidious verilerini JSON olarak dışa aktar",
"Delete account?": "Hesap silinsin mi?",
"History": "Geçmiş",
"An alternative front-end to YouTube": "YouTube için alternatif bir ön-yüz",
@@ -66,7 +66,7 @@
"preferences_related_videos_label": "İlgili videoları göster: ",
"preferences_annotations_label": "Öntanımlı olarak ek açıklamaları göster: ",
"preferences_extend_desc_label": "Video açıklamasını otomatik olarak genişlet: ",
- "preferences_vr_mode_label": "Etkileşimli 360 derece videolar: ",
+ "preferences_vr_mode_label": "Etkileşimli 360 derece videolar (WebGL gerektirir): ",
"preferences_category_visual": "Görsel tercihler",
"preferences_player_style_label": "Oynatıcı biçimi: ",
"Dark mode: ": "Karanlık mod: ",
@@ -437,5 +437,28 @@
"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_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):"
+ "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",
+ "Interlingue": "İnterlingue",
+ "Italian (auto-generated)": "İtalyanca (otomatik oluşturuldu)",
+ "Japanese (auto-generated)": "Japonca (otomatik oluşturuldu)",
+ "Portuguese (Brazil)": "Portekizce (Brezilya)",
+ "Russian (auto-generated)": "Rusça (otomatik oluşturuldu)",
+ "Spanish (auto-generated)": "İspanyolca (otomatik oluşturuldu)",
+ "Spanish (Mexico)": "İspanyolca (Meksika)",
+ "English (United States)": "İngilizce (ABD)",
+ "Cantonese (Hong Kong)": "Kantonca (Hong Kong)",
+ "Chinese (Taiwan)": "Çince (Tayvan)",
+ "Dutch (auto-generated)": "Felemenkçe (otomatik oluşturuldu)",
+ "Indonesian (auto-generated)": "Endonezyaca (otomatik oluşturuldu)",
+ "Chinese (Hong Kong)": "Çince (Hong Kong)",
+ "French (auto-generated)": "Fransızca (otomatik oluşturuldu)",
+ "Korean (auto-generated)": "Korece (otomatik oluşturuldu)",
+ "Turkish (auto-generated)": "Türkçe (otomatik oluşturuldu)",
+ "Chinese (China)": "Çince (Çin)",
+ "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)"
}
diff --git a/locales/zh-CN.json b/locales/zh-CN.json
index 521545bc..f21fe8da 100644
--- a/locales/zh-CN.json
+++ b/locales/zh-CN.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: ": "深色模式: ",
@@ -421,5 +421,28 @@
"purchased": "已购买",
"360": "360°",
"none": "无",
- "preferences_save_player_pos_label": "保存播放位置: "
+ "preferences_save_player_pos_label": "保存播放位置: ",
+ "Spanish (Mexico)": "西班牙语 (墨西哥)",
+ "Portuguese (auto-generated)": "葡萄牙语 (自动生成)",
+ "Portuguese (Brazil)": "葡萄牙语 (巴西)",
+ "English (United Kingdom)": "英语 (英国)",
+ "English (United States)": "英语 (美国)",
+ "Chinese": "中文",
+ "Chinese (China)": "中文 (中国)",
+ "Chinese (Hong Kong)": "中文 (中国香港)",
+ "Chinese (Taiwan)": "中文 (中国台湾)",
+ "German (auto-generated)": "德语 (自动生成)",
+ "Indonesian (auto-generated)": "印尼语 (自动生成)",
+ "Interlingue": "国际语",
+ "Italian (auto-generated)": "意大利语 (自动生成)",
+ "Japanese (auto-generated)": "日语 (自动生成)",
+ "Korean (auto-generated)": "韩语 (自动生成)",
+ "Russian (auto-generated)": "俄语 (自动生成)",
+ "Spanish (auto-generated)": "西班牙语 (自动生成)",
+ "Vietnamese (auto-generated)": "越南语 (自动生成)",
+ "Cantonese (Hong Kong)": "粤语 (中国香港)",
+ "Dutch (auto-generated)": "荷兰语 (自动生成)",
+ "French (auto-generated)": "法语 (自动生成)",
+ "Turkish (auto-generated)": "土耳其语 (自动生成)",
+ "Spanish (Spain)": "西班牙语 (西班牙)"
}
diff --git a/locales/zh-TW.json b/locales/zh-TW.json
index 8c9133c6..2fdb2036 100644
--- a/locales/zh-TW.json
+++ b/locales/zh-TW.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 匯出為 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: ": "深色模式: ",
@@ -421,5 +421,28 @@
"crash_page_read_the_faq": "閱讀<a href=\"`x`\">常見問題解答 (FAQ)</a>",
"crash_page_search_issue": "搜尋 <a href=\"`x`\">GitHub 上既有的問題</a>",
"crash_page_report_issue": "若以上的動作都沒有幫到忙,請<a href=\"`x`\">在 GitHub 上開啟新的議題</a>(請盡量使用英文)並在您的訊息中包含以下文字(不要翻譯文字):",
- "crash_page_before_reporting": "在回報臭蟲之前,請確保您有:"
+ "crash_page_before_reporting": "在回報臭蟲之前,請確保您有:",
+ "English (United Kingdom)": "英文(英國)",
+ "English (United States)": "英文(美國)",
+ "Cantonese (Hong Kong)": "粵語(香港)",
+ "Chinese": "中文",
+ "Chinese (China)": "中文(中國)",
+ "Chinese (Taiwan)": "中文(台灣)",
+ "Dutch (auto-generated)": "荷蘭語(自動產生)",
+ "German (auto-generated)": "德語(自動產生)",
+ "Korean (auto-generated)": "韓語(自動產生)",
+ "Russian (auto-generated)": "俄語(自動產生)",
+ "Spanish (auto-generated)": "西班牙語(自動產生)",
+ "Spanish (Mexico)": "西班牙語(墨西哥)",
+ "Spanish (Spain)": "西班牙語(西班牙)",
+ "Turkish (auto-generated)": "土耳其語(自動產生)",
+ "French (auto-generated)": "法語(自動產生)",
+ "Vietnamese (auto-generated)": "越南語(自動產生)",
+ "Interlingue": "西方國際語",
+ "Chinese (Hong Kong)": "中文(香港)",
+ "Italian (auto-generated)": "義大利語(自動產生)",
+ "Indonesian (auto-generated)": "印尼語(自動產生)",
+ "Portuguese (Brazil)": "葡萄牙語(巴西)",
+ "Japanese (auto-generated)": "日語(自動產生)",
+ "Portuguese (auto-generated)": "葡萄牙語(自動產生)"
}
diff --git a/src/invidious.cr b/src/invidious.cr
index 06ce3ead..d4878759 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -113,16 +113,18 @@ LOGGER = Invidious::LogHandler.new(OUTPUT, CONFIG.log_level)
# Check table integrity
Invidious::Database.check_integrity(CONFIG)
-# Resolve player dependencies. This is done at compile time.
-#
-# Running the script by itself would show some colorful feedback while this doesn't.
-# Perhaps we should just move the script to runtime in order to get that feedback?
-
-{% puts "\nChecking player dependencies...\n" %}
-{% if flag?(:minified_player_dependencies) %}
- {% puts run("../scripts/fetch-player-dependencies.cr", "--minified").stringify %}
-{% else %}
- {% puts run("../scripts/fetch-player-dependencies.cr").stringify %}
+{% if !flag?(:skip_videojs_download) %}
+ # Resolve player dependencies. This is done at compile time.
+ #
+ # Running the script by itself would show some colorful feedback while this doesn't.
+ # Perhaps we should just move the script to runtime in order to get that feedback?
+
+ {% puts "\nChecking player dependencies...\n" %}
+ {% if flag?(:minified_player_dependencies) %}
+ {% puts run("../scripts/fetch-player-dependencies.cr", "--minified").stringify %}
+ {% else %}
+ {% puts run("../scripts/fetch-player-dependencies.cr").stringify %}
+ {% end %}
{% end %}
# Start jobs
diff --git a/src/invidious/database/users.cr b/src/invidious/database/users.cr
index 26be4270..f62b43ea 100644
--- a/src/invidious/database/users.cr
+++ b/src/invidious/database/users.cr
@@ -171,7 +171,7 @@ module Invidious::Database::Users
WHERE email = $2
SQL
- PG_DB.exec(request, user.email, pass)
+ PG_DB.exec(request, pass, user.email)
end
# -------------------
diff --git a/src/invidious/exceptions.cr b/src/invidious/exceptions.cr
index 391a574d..490d98cd 100644
--- a/src/invidious/exceptions.cr
+++ b/src/invidious/exceptions.cr
@@ -1,8 +1,12 @@
# Exception used to hold the name of the missing item
# Should be used in all parsing functions
-class BrokenTubeException < InfoException
+class BrokenTubeException < Exception
getter element : String
def initialize(@element)
end
+
+ def message
+ return "Missing JSON element \"#{@element}\""
+ end
end
diff --git a/src/invidious/helpers/errors.cr b/src/invidious/helpers/errors.cr
index 3acbac84..6155e561 100644
--- a/src/invidious/helpers/errors.cr
+++ b/src/invidious/helpers/errors.cr
@@ -38,12 +38,15 @@ def error_template_helper(env : HTTP::Server::Context, status_code : Int32, exce
issue_title = "#{exception.message} (#{exception.class})"
- issue_template = %(Title: `#{issue_title}`)
- issue_template += %(\nDate: `#{Time::Format::ISO_8601_DATE_TIME.format(Time.utc)}`)
- issue_template += %(\nRoute: `#{env.request.resource}`)
- issue_template += %(\nVersion: `#{SOFTWARE["version"]} @ #{SOFTWARE["branch"]}`)
- # issue_template += github_details("Preferences", env.get("preferences").as(Preferences).to_pretty_json)
- issue_template += github_details("Backtrace", exception.inspect_with_backtrace)
+ issue_template = <<-TEXT
+ Title: `#{HTML.escape(issue_title)}`
+ Date: `#{Time::Format::ISO_8601_DATE_TIME.format(Time.utc)}`
+ Route: `#{HTML.escape(env.request.resource)}`
+ Version: `#{SOFTWARE["version"]} @ #{SOFTWARE["branch"]}`
+
+ TEXT
+
+ 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"
diff --git a/src/invidious/routes/api/v1/videos.cr b/src/invidious/routes/api/v1/videos.cr
index 86eb26ee..2b23d2ad 100644
--- a/src/invidious/routes/api/v1/videos.cr
+++ b/src/invidious/routes/api/v1/videos.cr
@@ -130,7 +130,13 @@ module Invidious::Routes::API::V1::Videos
end
end
else
+ # Some captions have "align:[start/end]" and "position:[num]%"
+ # attributes. Those are causing issues with VideoJS, which is unable
+ # to properly align the captions on the video, so we remove them.
+ #
+ # See: https://github.com/iv-org/invidious/issues/2391
webvtt = YT_POOL.client &.get("#{url}&format=vtt").body
+ .gsub(/([0-9:.]+ --> [0-9:.]+).+/, "\\1")
end
if title = env.params.query["title"]?
diff --git a/src/invidious/routes/video_playback.cr b/src/invidious/routes/video_playback.cr
index f6340c57..6ac1e780 100644
--- a/src/invidious/routes/video_playback.cr
+++ b/src/invidious/routes/video_playback.cr
@@ -14,12 +14,18 @@ module Invidious::Routes::VideoPlayback
end
if query_params["host"]? && !query_params["host"].empty?
- host = "https://#{query_params["host"]}"
+ host = query_params["host"]
query_params.delete("host")
else
- host = "https://r#{fvip}---#{mns.pop}.googlevideo.com"
+ host = "r#{fvip}---#{mns.pop}.googlevideo.com"
end
+ # Sanity check, to avoid being used as an open proxy
+ if !host.matches?(/[\w-]+.googlevideo.com/)
+ return error_template(400, "Invalid \"host\" parameter.")
+ end
+
+ host = "https://#{host}"
url = "/videoplayback?#{query_params}"
headers = HTTP::Headers.new
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
index 446e8e03..81fce5b8 100644
--- a/src/invidious/videos.cr
+++ b/src/invidious/videos.cr
@@ -2,6 +2,8 @@ CAPTION_LANGUAGES = {
"",
"English",
"English (auto-generated)",
+ "English (United Kingdom)",
+ "English (United States)",
"Afrikaans",
"Albanian",
"Amharic",
@@ -14,23 +16,31 @@ CAPTION_LANGUAGES = {
"Bosnian",
"Bulgarian",
"Burmese",
+ "Cantonese (Hong Kong)",
"Catalan",
"Cebuano",
+ "Chinese",
+ "Chinese (China)",
+ "Chinese (Hong Kong)",
"Chinese (Simplified)",
+ "Chinese (Taiwan)",
"Chinese (Traditional)",
"Corsican",
"Croatian",
"Czech",
"Danish",
"Dutch",
+ "Dutch (auto-generated)",
"Esperanto",
"Estonian",
"Filipino",
"Finnish",
"French",
+ "French (auto-generated)",
"Galician",
"Georgian",
"German",
+ "German (auto-generated)",
"Greek",
"Gujarati",
"Haitian Creole",
@@ -43,14 +53,19 @@ CAPTION_LANGUAGES = {
"Icelandic",
"Igbo",
"Indonesian",
+ "Indonesian (auto-generated)",
+ "Interlingue",
"Irish",
"Italian",
+ "Italian (auto-generated)",
"Japanese",
+ "Japanese (auto-generated)",
"Javanese",
"Kannada",
"Kazakh",
"Khmer",
"Korean",
+ "Korean (auto-generated)",
"Kurdish",
"Kyrgyz",
"Lao",
@@ -73,9 +88,12 @@ CAPTION_LANGUAGES = {
"Persian",
"Polish",
"Portuguese",
+ "Portuguese (auto-generated)",
+ "Portuguese (Brazil)",
"Punjabi",
"Romanian",
"Russian",
+ "Russian (auto-generated)",
"Samoan",
"Scottish Gaelic",
"Serbian",
@@ -87,7 +105,10 @@ CAPTION_LANGUAGES = {
"Somali",
"Southern Sotho",
"Spanish",
+ "Spanish (auto-generated)",
"Spanish (Latin America)",
+ "Spanish (Mexico)",
+ "Spanish (Spain)",
"Sundanese",
"Swahili",
"Swedish",
@@ -96,10 +117,12 @@ CAPTION_LANGUAGES = {
"Telugu",
"Thai",
"Turkish",
+ "Turkish (auto-generated)",
"Ukrainian",
"Urdu",
"Uzbek",
"Vietnamese",
+ "Vietnamese (auto-generated)",
"Welsh",
"Western Frisian",
"Xhosa",
@@ -858,11 +881,13 @@ def extract_video_info(video_id : String, proxy_region : String? = nil, context_
player_response = YoutubeAPI.player(video_id: video_id, params: "", client_config: client_config)
- if player_response["playabilityStatus"]?.try &.["status"]?.try &.as_s != "OK"
- reason = player_response["playabilityStatus"]["errorScreen"]?.try &.["playerErrorMessageRenderer"]?.try &.["subreason"]?.try { |s|
- s["simpleText"]?.try &.as_s || s["runs"].as_a.map { |r| r["text"] }.join("")
- } || player_response["playabilityStatus"]["reason"].as_s
+ if player_response.dig?("playabilityStatus", "status").try &.as_s != "OK"
+ subreason = player_response.dig?("playabilityStatus", "errorScreen", "playerErrorMessageRenderer", "subreason")
+ reason = subreason.try &.[]?("simpleText").try &.as_s
+ reason ||= subreason.try &.[]("runs").as_a.map(&.[]("text")).join("")
+ reason ||= player_response.dig("playabilityStatus", "reason").as_s
params["reason"] = JSON::Any.new(reason)
+ return params
end
params["shortDescription"] = player_response.dig?("videoDetails", "shortDescription") || JSON::Any.new(nil)
@@ -905,11 +930,8 @@ def extract_video_info(video_id : String, proxy_region : String? = nil, context_
raise BrokenTubeException.new("twoColumnWatchNextResults") if !main_results
primary_results = main_results.dig?("results", "results", "contents")
- secondary_results = main_results
- .dig?("secondaryResults", "secondaryResults", "results")
raise BrokenTubeException.new("results") if !primary_results
- raise BrokenTubeException.new("secondaryResults") if !secondary_results
video_primary_renderer = primary_results
.as_a.find(&.["videoPrimaryInfoRenderer"]?)
@@ -929,7 +951,9 @@ def extract_video_info(video_id : String, proxy_region : String? = nil, context_
related = [] of JSON::Any
# Parse "compactVideoRenderer" items (under secondary results)
- secondary_results.as_a.each do |element|
+ secondary_results = main_results
+ .dig?("secondaryResults", "secondaryResults", "results")
+ secondary_results.try &.as_a.each do |element|
if item = element["compactVideoRenderer"]?
related_video = parse_related_video(item)
related << JSON::Any.new(related_video) if related_video
@@ -1096,7 +1120,9 @@ def fetch_video(id, region)
info = embed_info if !embed_info["reason"]?
end
- raise InfoException.new(info["reason"]?.try &.as_s || "") if !info["videoDetails"]?
+ if reason = info["reason"]?
+ raise InfoException.new(reason.as_s || "")
+ end
video = Video.new({
id: id,
diff --git a/src/invidious/views/embed.ecr b/src/invidious/views/embed.ecr
index cd0fd0d5..27a8e266 100644
--- a/src/invidious/views/embed.ecr
+++ b/src/invidious/views/embed.ecr
@@ -7,7 +7,7 @@
<meta name="thumbnail" content="<%= thumbnail %>">
<%= rendered "components/player_sources" %>
<link rel="stylesheet" href="/videojs/videojs-overlay/videojs-overlay.css?v=<%= ASSET_COMMIT %>">
- <script src="videojs/videojs-overlay/videojs-overlay.js?v=<%= ASSET_COMMIT %>"></script>
+ <script src="/videojs/videojs-overlay/videojs-overlay.js?v=<%= ASSET_COMMIT %>"></script>
<link rel="stylesheet" href="/css/default.css?v=<%= ASSET_COMMIT %>">
<link rel="stylesheet" href="/css/embed.css?v=<%= ASSET_COMMIT %>">
<title><%= HTML.escape(video.title) %> - Invidious</title>