diff --git a/assets/css/default.css b/assets/css/default.css index a725b456..b6f2d9cc 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -669,3 +669,28 @@ See https://stackoverflow.com/a/34372979 for more info */ hr { margin: auto 0 auto 0; } + +/* Description Expansion Styling*/ +#description-box { + display: flex; + flex-direction: column; +} + +#descexpansionbutton { + display: none +} + +#descexpansionbutton ~ div { + overflow: hidden; + height: 8.3em; +} + +#descexpansionbutton:checked ~ div { + overflow: unset; + height: 100%; +} + +#descexpansionbutton + label { + order: 1; + margin-top: 20px; +} diff --git a/locales/ar.json b/locales/ar.json index 540e4df0..af49f514 100644 --- a/locales/ar.json +++ b/locales/ar.json @@ -77,6 +77,7 @@ "Fallback captions: ": "الترجمات المصاحبة: ", "Show related videos: ": "اعرض الفيديوهات ذات الصلة: ", "Show annotations by default: ": "اعرض الملاحظات في الفيديو تلقائيا: ", + "Automatically extend video description: ": "", "Visual preferences": "التفضيلات المرئية", "Player style: ": "شكل مشغل الفيديوهات: ", "Dark mode: ": "الوضع الليلى: ", @@ -156,6 +157,8 @@ "Title": "العنوان", "Playlist privacy": "إعدادات الخصوصيه", "Editing playlist `x`": "تعديل قائمه التشفيل `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "مشاهدة الفيديو على اليوتيوب", "Hide annotations": "إخفاء الملاحظات فى الفيديو", "Show annotations": "عرض الملاحظات فى الفيديو", diff --git a/locales/bn_BD.json b/locales/bn_BD.json index 1c1cc274..b6df0470 100644 --- a/locales/bn_BD.json +++ b/locales/bn_BD.json @@ -71,6 +71,7 @@ "Fallback captions: ": "", "Show related videos: ": "", "Show annotations by default: ": "", + "Automatically extend video description: ": "", "Visual preferences": "", "Player style: ": "", "Dark mode: ": "", @@ -144,6 +145,8 @@ "Title": "", "Playlist privacy": "", "Editing playlist `x`": "", + "Show more": "", + "Show less": "", "Watch on YouTube": "", "Hide annotations": "", "Show annotations": "", diff --git a/locales/cs.json b/locales/cs.json index 802249ef..6c37444a 100644 --- a/locales/cs.json +++ b/locales/cs.json @@ -77,6 +77,7 @@ "Fallback captions: ": "", "Show related videos: ": "Zobrazit podobné videa: ", "Show annotations by default: ": "", + "Automatically extend video description: ": "", "Visual preferences": "", "Player style: ": "Styl přehrávače ", "Dark mode: ": "Tmavý režim ", @@ -156,6 +157,8 @@ "Title": "", "Playlist privacy": "", "Editing playlist `x`": "", + "Show more": "", + "Show less": "", "Watch on YouTube": "", "Hide annotations": "", "Show annotations": "", diff --git a/locales/da.json b/locales/da.json index cd98c587..0962524b 100644 --- a/locales/da.json +++ b/locales/da.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Alternative undertekster: ", "Show related videos: ": "Vis relaterede videoer: ", "Show annotations by default: ": "Vis annotationer som standard: ", + "Automatically extend video description: ": "", "Visual preferences": "Visuelle præferencer", "Player style: ": "Afspiller stil: ", "Dark mode: ": "Mørk tilstand: ", @@ -156,6 +157,8 @@ "Title": "Titel", "Playlist privacy": "Privatlivsindstillinger for afspilningsliste", "Editing playlist `x`": "Redigerer afspilningsliste `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Se på YouTube", "Hide annotations": "Skjul annotationer", "Show annotations": "Vis annotationer", @@ -412,4 +415,4 @@ "hdr": "", "filter": "", "Current version: ": "" -} +} \ No newline at end of file diff --git a/locales/de.json b/locales/de.json index 1985e43a..17350211 100644 --- a/locales/de.json +++ b/locales/de.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Ersatzuntertitel: ", "Show related videos: ": "Ähnliche Videos anzeigen? ", "Show annotations by default: ": "Standardmäßig Anmerkungen anzeigen? ", + "Automatically extend video description: ": "", "Visual preferences": "Anzeigeeinstellungen", "Player style: ": "Abspielgeräterstil: ", "Dark mode: ": "Nachtmodus: ", @@ -156,6 +157,8 @@ "Title": "Titel", "Playlist privacy": "Vertrauliche Wiedergabeliste", "Editing playlist `x`": "Wiedergabeliste bearbeiten `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Video auf YouTube ansehen", "Hide annotations": "Anmerkungen ausblenden", "Show annotations": "Anmerkungen anzeigen", diff --git a/locales/el.json b/locales/el.json index 390b81fd..5eb4a304 100644 --- a/locales/el.json +++ b/locales/el.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Εναλλακτικοί υπότιτλοι: ", "Show related videos: ": "Προβολή σχετικών βίντεο; ", "Show annotations by default: ": "Αυτόματη προβολή σημειώσεων: ", + "Automatically extend video description: ": "", "Visual preferences": "Προτιμήσεις εμφάνισης", "Player style: ": "Τεχνοτροπία της συσκευής αναπαραγωγης: ", "Dark mode: ": "Σκοτεινή λειτουργία: ", @@ -156,6 +157,8 @@ "Title": "Τίτλος", "Playlist privacy": "Ιδιωτικότητα καταλόγων αναπαραγωγής", "Editing playlist `x`": "Επεξεργασία `x` καταλόγου αναπαραγωγής", + "Show more": "", + "Show less": "", "Watch on YouTube": "Προβολή στο YouTube", "Hide annotations": "Απόκρυψη σημειώσεων", "Show annotations": "Προβολή σημειώσεων", @@ -412,4 +415,4 @@ "hdr": "", "filter": "", "Current version: ": "Τρέχουσα έκδοση: " -} +} \ No newline at end of file diff --git a/locales/en-US.json b/locales/en-US.json index a7dc3107..71485826 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Fallback captions: ", "Show related videos: ": "Show related videos: ", "Show annotations by default: ": "Show annotations by default: ", + "Automatically extend video description: ": "Automatically extend video description: ", "Visual preferences": "Visual preferences", "Player style: ": "Player style: ", "Dark mode: ": "Dark mode: ", @@ -156,6 +157,8 @@ "Title": "Title", "Playlist privacy": "Playlist privacy", "Editing playlist `x`": "Editing playlist `x`", + "Show more": "Show more", + "Show less": "Show less", "Watch on YouTube": "Watch on YouTube", "Hide annotations": "Hide annotations", "Show annotations": "Show annotations", diff --git a/locales/eo.json b/locales/eo.json index 14a1c425..e98ebb59 100644 --- a/locales/eo.json +++ b/locales/eo.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Retrodefaŭltaj subtekstoj: ", "Show related videos: ": "Ĉu montri rilatajn filmetojn? ", "Show annotations by default: ": "Ĉu montri prinotojn defaŭlte? ", + "Automatically extend video description: ": "", "Visual preferences": "Vidaj preferoj", "Player style: ": "Ludila stilo: ", "Dark mode: ": "Malhela reĝimo: ", @@ -156,6 +157,8 @@ "Title": "Titolo", "Playlist privacy": "Privateco de ludlisto", "Editing playlist `x`": "Redaktante ludlisto `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Vidi filmeton en JuTubo", "Hide annotations": "Kaŝi prinotojn", "Show annotations": "Montri prinotojn", @@ -412,4 +415,4 @@ "hdr": "granddinamikgama", "filter": "filtri", "Current version: ": "Nuna versio: " -} +} \ No newline at end of file diff --git a/locales/es.json b/locales/es.json index 9562fa84..1b50aea1 100644 --- a/locales/es.json +++ b/locales/es.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Subtítulos alternativos: ", "Show related videos: ": "¿Mostrar vídeos relacionados? ", "Show annotations by default: ": "¿Mostrar anotaciones por defecto? ", + "Automatically extend video description: ": "", "Visual preferences": "Preferencias visuales", "Player style: ": "Estilo de reproductor: ", "Dark mode: ": "Modo oscuro: ", @@ -156,6 +157,8 @@ "Title": "Título", "Playlist privacy": "Privacidad de la lista de reproducción", "Editing playlist `x`": "Editando la lista de reproducción 'x'", + "Show more": "", + "Show less": "", "Watch on YouTube": "Ver el vídeo en Youtube", "Hide annotations": "Ocultar anotaciones", "Show annotations": "Mostrar anotaciones", @@ -412,4 +415,4 @@ "hdr": "hdr", "filter": "filtro", "Current version: ": "Versión actual: " -} +} \ No newline at end of file diff --git a/locales/eu.json b/locales/eu.json index 709d9caf..d5021c25 100644 --- a/locales/eu.json +++ b/locales/eu.json @@ -68,6 +68,7 @@ "Fallback captions: ": "", "Show related videos: ": "Erakutsi erlazionatutako bideoak: ", "Show annotations by default: ": "Erakutsi oharrak modu lehenetsian: ", + "Automatically extend video description: ": "", "Visual preferences": "Hobespen bisualak", "Player style: ": "Erreproduzigailu mota: ", "Dark mode: ": "Gai iluna: ", @@ -138,6 +139,8 @@ "Title": "", "Playlist privacy": "", "Editing playlist `x`": "", + "Show more": "", + "Show less": "", "Watch on YouTube": "", "Hide annotations": "", "Show annotations": "", diff --git a/locales/fa.json b/locales/fa.json index f2fdbf3b..b6114292 100644 --- a/locales/fa.json +++ b/locales/fa.json @@ -77,6 +77,7 @@ "Fallback captions: ": "عقب گرد زیرنویس ها: ", "Show related videos: ": "نمایش ویدیو های مرتبط: ", "Show annotations by default: ": "نمایش حاشیه نویسی ها به طور پیشفرض: ", + "Automatically extend video description: ": "", "Visual preferences": "ترجیحات بصری", "Player style: ": "حالت پخش کننده: ", "Dark mode: ": "حالت تاریک: ", @@ -156,6 +157,8 @@ "Title": "عنوان", "Playlist privacy": "حریم خصوصی لیست پخش", "Editing playlist `x`": "تغییر لیست پخش `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "تماشا در یوتیوب", "Hide annotations": "مخفی کردن حاشیه نویسی ها", "Show annotations": "نمایش حاشیه نویسی ها", diff --git a/locales/fi.json b/locales/fi.json index a009cdb6..5adeec05 100644 --- a/locales/fi.json +++ b/locales/fi.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Toissijaiset tekstitykset: ", "Show related videos: ": "Näytä aiheeseen liittyviä videoita: ", "Show annotations by default: ": "Näytä huomautukset oletuksena: ", + "Automatically extend video description: ": "", "Visual preferences": "Visuaaliset asetukset", "Player style: ": "Soittimen tyyli: ", "Dark mode: ": "Tumma tila: ", @@ -156,6 +157,8 @@ "Title": "Nimi", "Playlist privacy": "Soittolistan yksityisyys", "Editing playlist `x`": "Muokataan soittolistaa `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Katso YouTubessa", "Hide annotations": "Piilota merkkaukset", "Show annotations": "Näytä merkkaukset", diff --git a/locales/fr.json b/locales/fr.json index 3efb69fb..f1055657 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Sous-titres alternatifs : ", "Show related videos: ": "Voir les vidéos liées : ", "Show annotations by default: ": "Afficher les annotations par défaut : ", + "Automatically extend video description: ": "", "Visual preferences": "Préférences du site", "Player style: ": "Style du lecteur : ", "Dark mode: ": "Mode sombre : ", @@ -156,6 +157,8 @@ "Title": "Titre", "Playlist privacy": "Paramètres de confidentialité de la liste de lecture", "Editing playlist `x`": "Liste de lecture modifier le `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Voir la vidéo sur Youtube", "Hide annotations": "Masquer les annotations", "Show annotations": "Afficher les annotations", @@ -412,4 +415,4 @@ "hdr": "HDR", "filter": "filtrer", "Current version: ": "Version actuelle : " -} +} \ No newline at end of file diff --git a/locales/he.json b/locales/he.json index 1b014b87..bf34c085 100644 --- a/locales/he.json +++ b/locales/he.json @@ -77,6 +77,7 @@ "Fallback captions: ": "כתוביות גיבוי ", "Show related videos: ": "הצגת סרטונים קשורים: ", "Show annotations by default: ": "הצגת הערות כברירת מחדל: ", + "Automatically extend video description: ": "", "Visual preferences": "העדפות חזותיות", "Player style: ": "סגנון הנגן: ", "Dark mode: ": "מצב כהה: ", @@ -156,6 +157,8 @@ "Title": "", "Playlist privacy": "Playlist privacy", "Editing playlist `x`": "", + "Show more": "", + "Show less": "", "Watch on YouTube": "צפייה ב־YouTube", "Hide annotations": "", "Show annotations": "", @@ -412,4 +415,4 @@ "hdr": "HDR", "filter": "סינון", "Current version: ": "הגרסה הנוכחית: " -} +} \ No newline at end of file diff --git a/locales/hr.json b/locales/hr.json index ae2f6d6f..2142a052 100644 --- a/locales/hr.json +++ b/locales/hr.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Alternativni titlovi: ", "Show related videos: ": "Prikaži povezana videa: ", "Show annotations by default: ": "Standardno prikaži napomene: ", + "Automatically extend video description: ": "", "Visual preferences": "Postavke prikaza", "Player style: ": "Stil playera: ", "Dark mode: ": "Tamni modus: ", @@ -156,6 +157,8 @@ "Title": "Naslov", "Playlist privacy": "Privatnost playliste", "Editing playlist `x`": "Uređivanje playliste `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Gledaj na YouTubeu", "Hide annotations": "Sakrij napomene", "Show annotations": "Prikaži napomene", @@ -412,4 +415,4 @@ "hdr": "hdr", "filter": "filtar", "Current version: ": "Trenutačna verzija: " -} +} \ No newline at end of file diff --git a/locales/hu-HU.json b/locales/hu-HU.json index 8b1c2c9d..a8c9cae1 100644 --- a/locales/hu-HU.json +++ b/locales/hu-HU.json @@ -68,6 +68,7 @@ "Fallback captions: ": "Másodlagos feliratok: ", "Show related videos: ": "Kapcsolódó videók mutatása: ", "Show annotations by default: ": "Annotációk mutatása alapértelmetésben: ", + "Automatically extend video description: ": "", "Visual preferences": "Vizuális preferenciák", "Player style: ": "Lejátszó stílusa: ", "Dark mode: ": "Sötét mód: ", @@ -138,6 +139,8 @@ "Title": "Címe", "Playlist privacy": "Playlist láthatósága", "Editing playlist `x`": "`x` playlist szerkesztése", + "Show more": "", + "Show less": "", "Watch on YouTube": "Megtekintés a YouTube-on", "Hide annotations": "Annotációk elrejtése", "Show annotations": "Annotációk mutatása", diff --git a/locales/id.json b/locales/id.json index e75b3e50..61424233 100644 --- a/locales/id.json +++ b/locales/id.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Subtitel fallback: ", "Show related videos: ": "Tampilkan video terkait: ", "Show annotations by default: ": "Tampilkan anotasi secara default: ", + "Automatically extend video description: ": "", "Visual preferences": "Preferensi visual", "Player style: ": "Gaya pemutar: ", "Dark mode: ": "Mode gelap: ", @@ -156,6 +157,8 @@ "Title": "Judul", "Playlist privacy": "Privasi daftar putar", "Editing playlist `x`": "Menyunting daftar putar `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Tonton di YouTube", "Hide annotations": "Sembunyikan anotasi", "Show annotations": "Tampilkan anotasi", @@ -412,4 +415,4 @@ "hdr": "hdr", "filter": "saring", "Current version: ": "Versi saat ini: " -} +} \ No newline at end of file diff --git a/locales/is.json b/locales/is.json index 8bf1ad8f..569ee9d0 100644 --- a/locales/is.json +++ b/locales/is.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Varatextar: ", "Show related videos: ": "Sýna tengd myndbönd? ", "Show annotations by default: ": "Á að sýna glósur sjálfgefið? ", + "Automatically extend video description: ": "", "Visual preferences": "Sjónrænar stillingar", "Player style: ": "Spilara stíl: ", "Dark mode: ": "Myrkur ham: ", @@ -156,6 +157,8 @@ "Title": "Titill", "Playlist privacy": "Spilunarlista opinberri", "Editing playlist `x`": "Að breyta spilunarlista `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Horfa á YouTube", "Hide annotations": "Fela glósur", "Show annotations": "Sýna glósur", @@ -412,4 +415,4 @@ "hdr": "", "filter": "", "Current version: ": "Núverandi útgáfa: " -} +} \ No newline at end of file diff --git a/locales/it.json b/locales/it.json index d86034e5..e2228bca 100644 --- a/locales/it.json +++ b/locales/it.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Sottotitoli alternativi: ", "Show related videos: ": "Mostra video correlati: ", "Show annotations by default: ": "Mostra le annotazioni in modo predefinito: ", + "Automatically extend video description: ": "", "Visual preferences": "Preferenze grafiche", "Player style: ": "Stile riproduttore: ", "Dark mode: ": "Tema scuro: ", @@ -156,6 +157,8 @@ "Title": "Titolo", "Playlist privacy": "Privacy playlist", "Editing playlist `x`": "Modificando la playlist `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Guarda su YouTube", "Hide annotations": "Nascondi annotazioni", "Show annotations": "Mostra annotazioni", diff --git a/locales/ja.json b/locales/ja.json index f1c3265a..e570ec35 100644 --- a/locales/ja.json +++ b/locales/ja.json @@ -77,6 +77,7 @@ "Fallback captions: ": "フォールバック時の字幕: ", "Show related videos: ": "関連動画を表示: ", "Show annotations by default: ": "デフォルトでアノテーションを表示: ", + "Automatically extend video description: ": "", "Visual preferences": "外観設定", "Player style: ": "プレイヤースタイル: ", "Dark mode: ": "ダークモード: ", @@ -156,6 +157,8 @@ "Title": "タイトル", "Playlist privacy": "再生リストのプライバシー", "Editing playlist `x`": "再生リスト `x` を編集中", + "Show more": "", + "Show less": "", "Watch on YouTube": "YouTube で視聴", "Hide annotations": "アノテーションを隠す", "Show annotations": "アノテーションを表示", diff --git a/locales/nb-NO.json b/locales/nb-NO.json index 8dd05d48..0cccdd77 100644 --- a/locales/nb-NO.json +++ b/locales/nb-NO.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Tilbakefallsundertitler: ", "Show related videos: ": "Vis relaterte videoer? ", "Show annotations by default: ": "Vis merknader som forvalg? ", + "Automatically extend video description: ": "", "Visual preferences": "Visuelle innstillinger", "Player style: ": "Avspillerstil: ", "Dark mode: ": "Mørk drakt: ", @@ -156,6 +157,8 @@ "Title": "Tittel", "Playlist privacy": "Vern av spilleliste", "Editing playlist `x`": "Endre spilleliste «x»", + "Show more": "", + "Show less": "", "Watch on YouTube": "Vis video på YouTube", "Hide annotations": "Skjul merknader", "Show annotations": "Vis merknader", diff --git a/locales/nl.json b/locales/nl.json index df223f04..6d2ff68c 100644 --- a/locales/nl.json +++ b/locales/nl.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Alternatieve ondertiteling: ", "Show related videos: ": "Gerelateerde video's tonen? ", "Show annotations by default: ": "Standaard annotaties tonen? ", + "Automatically extend video description: ": "", "Visual preferences": "Visuele instellingen", "Player style: ": "Speler vormgeving ", "Dark mode: ": "Donkere modus: ", @@ -156,6 +157,8 @@ "Title": "Titel", "Playlist privacy": "Afspeellijst privacy", "Editing playlist `x`": "Afspeellijst `x` wijzigen", + "Show more": "", + "Show less": "", "Watch on YouTube": "Video bekijken op YouTube", "Hide annotations": "Annotaties verbergen", "Show annotations": "Annotaties tonen", diff --git a/locales/pl.json b/locales/pl.json index cf54bd9a..3d64aa07 100644 --- a/locales/pl.json +++ b/locales/pl.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Zastępcze napisy: ", "Show related videos: ": "Pokaż powiązane filmy? ", "Show annotations by default: ": "Domyślnie pokazuj adnotacje: ", + "Automatically extend video description: ": "", "Visual preferences": "Preferencje Wizualne", "Player style: ": "Styl odtwarzacza: ", "Dark mode: ": "Ciemny motyw: ", @@ -156,6 +157,8 @@ "Title": "Tytuł", "Playlist privacy": "Widoczność playlisty", "Editing playlist `x`": "Edycja playlisty `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Zobacz film na YouTube", "Hide annotations": "Ukryj adnotacje", "Show annotations": "Pokaż adnotacje", diff --git a/locales/pt-BR.json b/locales/pt-BR.json index 1c9e1f93..d358928e 100644 --- a/locales/pt-BR.json +++ b/locales/pt-BR.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Legendas alternativas: ", "Show related videos: ": "Mostrar vídeos relacionados: ", "Show annotations by default: ": "Sempre mostrar anotações: ", + "Automatically extend video description: ": "", "Visual preferences": "Preferências visuais", "Player style: ": "Estilo do tocador: ", "Dark mode: ": "Modo escuro: ", @@ -156,6 +157,8 @@ "Title": "Título", "Playlist privacy": "Privacidade da playlist", "Editing playlist `x`": "Editando playlist `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Assistir no YouTube", "Hide annotations": "Ocultar anotações", "Show annotations": "Mostrar anotações", diff --git a/locales/pt-PT.json b/locales/pt-PT.json index d1d94c1f..c25e9353 100644 --- a/locales/pt-PT.json +++ b/locales/pt-PT.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Legendas alternativas: ", "Show related videos: ": "Mostrar vídeos relacionados: ", "Show annotations by default: ": "Mostrar sempre anotações: ", + "Automatically extend video description: ": "", "Visual preferences": "Preferências visuais", "Player style: ": "Estilo do reprodutor: ", "Dark mode: ": "Modo escuro: ", @@ -156,6 +157,8 @@ "Title": "Título", "Playlist privacy": "Privacidade da lista de reprodução", "Editing playlist `x`": "A editar lista de reprodução 'x'", + "Show more": "", + "Show less": "", "Watch on YouTube": "Ver no YouTube", "Hide annotations": "Ocultar anotações", "Show annotations": "Mostrar anotações", diff --git a/locales/ro.json b/locales/ro.json index 8507828d..057b919c 100644 --- a/locales/ro.json +++ b/locales/ro.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Subtitrări alternative: ", "Show related videos: ": "Afișați videoclipurile asemănătoare: ", "Show annotations by default: ": "Afișați adnotările în mod implicit: ", + "Automatically extend video description: ": "", "Visual preferences": "Preferințele site-ului", "Player style: ": "Stilul player-ului : ", "Dark mode: ": "Modul întunecat : ", @@ -156,6 +157,8 @@ "Title": "Titlu", "Playlist privacy": "Parametrii de confidențialitate ai listei de redare", "Editing playlist `x`": "Modificați lista de redare `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Urmăriți videoclipul pe YouTube", "Hide annotations": "Ascundeți adnotările", "Show annotations": "Afișați adnotările", diff --git a/locales/ru.json b/locales/ru.json index 6f34abeb..a737745e 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Дополнительный язык субтитров: ", "Show related videos: ": "Показывать похожие видео? ", "Show annotations by default: ": "Всегда показывать аннотации? ", + "Automatically extend video description: ": "", "Visual preferences": "Настройки сайта", "Player style: ": "Стиль проигрывателя: ", "Dark mode: ": "Тёмное оформление: ", @@ -156,6 +157,8 @@ "Title": "Заголовок", "Playlist privacy": "Конфиденциальность плейлиста", "Editing playlist `x`": "Редактирование плейлиста `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Смотреть на YouTube", "Hide annotations": "Скрыть аннотации", "Show annotations": "Показать аннотации", diff --git a/locales/si.json b/locales/si.json index 0b3ca597..c30ad33c 100644 --- a/locales/si.json +++ b/locales/si.json @@ -77,6 +77,7 @@ "Fallback captions: ": "", "Show related videos: ": "", "Show annotations by default: ": "", + "Automatically extend video description: ": "", "Visual preferences": "", "Player style: ": "", "Dark mode: ": "", @@ -156,6 +157,8 @@ "Title": "", "Playlist privacy": "", "Editing playlist `x`": "", + "Show more": "", + "Show less": "", "Watch on YouTube": "", "Hide annotations": "", "Show annotations": "", diff --git a/locales/sk.json b/locales/sk.json index 43e9bc94..f74d66db 100644 --- a/locales/sk.json +++ b/locales/sk.json @@ -71,6 +71,7 @@ "Fallback captions: ": "Náhradné titulky: ", "Show related videos: ": "Zobraziť súvisiace videá: ", "Show annotations by default: ": "Predvolene zobraziť anotácie: ", + "Automatically extend video description: ": "", "Visual preferences": "Vizuálne nastavenia", "Player style: ": "Štýl prehrávača: ", "Dark mode: ": "Tmavý režim: ", @@ -144,6 +145,8 @@ "Title": "", "Playlist privacy": "", "Editing playlist `x`": "", + "Show more": "", + "Show less": "", "Watch on YouTube": "", "Hide annotations": "", "Show annotations": "", diff --git a/locales/sr.json b/locales/sr.json index 1e718d7a..7766f32e 100644 --- a/locales/sr.json +++ b/locales/sr.json @@ -77,6 +77,7 @@ "Fallback captions: ": "", "Show related videos: ": "", "Show annotations by default: ": "", + "Automatically extend video description: ": "", "Visual preferences": "", "Player style: ": "", "Dark mode: ": "", @@ -156,6 +157,8 @@ "Title": "", "Playlist privacy": "", "Editing playlist `x`": "", + "Show more": "", + "Show less": "", "Watch on YouTube": "", "Hide annotations": "", "Show annotations": "", diff --git a/locales/sr_Cyrl.json b/locales/sr_Cyrl.json index bb866522..77465501 100644 --- a/locales/sr_Cyrl.json +++ b/locales/sr_Cyrl.json @@ -68,6 +68,7 @@ "Fallback captions: ": "Алтернативни титлови: ", "Show related videos: ": "Прикажи сличне видее: ", "Show annotations by default: ": "Увек приказуј анотације: ", + "Automatically extend video description: ": "", "Visual preferences": "Подешавања изгледа", "Player style: ": "Стил плејера: ", "Dark mode: ": "Тамни режим: ", @@ -138,6 +139,8 @@ "Title": "Наслов", "Playlist privacy": "Видљивост плејлисте", "Editing playlist `x`": "Уређујете плејлисту `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Гледајте на YouTube-у", "Hide annotations": "Сакриј анотације", "Show annotations": "Прикажи анотације", diff --git a/locales/sv-SE.json b/locales/sv-SE.json index 5cc8c674..5a0ffbd2 100644 --- a/locales/sv-SE.json +++ b/locales/sv-SE.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Ersättningsundertexter: ", "Show related videos: ": "Visa relaterade videor? ", "Show annotations by default: ": "Visa länkar-i-videon som förval? ", + "Automatically extend video description: ": "", "Visual preferences": "Visuella inställningar", "Player style: ": "Spelarstil: ", "Dark mode: ": "Mörkt läge: ", @@ -156,6 +157,8 @@ "Title": "Titel", "Playlist privacy": "Privatläge på spellista", "Editing playlist `x`": "Redigerer spellistan `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "Titta på YouTube", "Hide annotations": "Dölj länkar-i-video", "Show annotations": "Visa länkar-i-video", diff --git a/locales/tr.json b/locales/tr.json index 1c1f0e00..53c2a8c6 100644 --- a/locales/tr.json +++ b/locales/tr.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Yedek altyazılar: ", "Show related videos: ": "İlgili videoları göster: ", "Show annotations by default: ": "Öntanımlı olarak ek açıklamaları göster: ", + "Automatically extend video description: ": "", "Visual preferences": "Görsel tercihler", "Player style: ": "Oynatıcı biçimi: ", "Dark mode: ": "Karanlık mod: ", @@ -156,6 +157,8 @@ "Title": "Başlık", "Playlist privacy": "Oynatma listesi gizliliği", "Editing playlist `x`": "`x` oynatma listesi düzenleniyor", + "Show more": "", + "Show less": "", "Watch on YouTube": "YouTube'da izle", "Hide annotations": "Ek açıklamaları gizle", "Show annotations": "Ek açıklamaları göster", @@ -412,4 +415,4 @@ "hdr": "HDR", "filter": "filtrele", "Current version: ": "Şu anki sürüm: " -} +} \ No newline at end of file diff --git a/locales/uk.json b/locales/uk.json index eb34e49e..0795612e 100644 --- a/locales/uk.json +++ b/locales/uk.json @@ -77,6 +77,7 @@ "Fallback captions: ": "Запасна мова субтитрів: ", "Show related videos: ": "Показувати схожі відео? ", "Show annotations by default: ": "Завжди показувати анотації? ", + "Automatically extend video description: ": "", "Visual preferences": "Налаштування сайту", "Player style: ": "Стиль програвача: ", "Dark mode: ": "Темне оформлення: ", @@ -156,6 +157,8 @@ "Title": "Заголовок", "Playlist privacy": "Конфіденційність списку відтворення", "Editing playlist `x`": "Редагування списку відтворення \"x\"", + "Show more": "", + "Show less": "", "Watch on YouTube": "Дивитися на YouTube", "Hide annotations": "Приховати анотації", "Show annotations": "Показати анотації", diff --git a/locales/zh-CN.json b/locales/zh-CN.json index a514aaed..8bd49845 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -77,6 +77,7 @@ "Fallback captions: ": "后备字幕语言: ", "Show related videos: ": "是否显示相关视频: ", "Show annotations by default: ": "是否默认显示视频注释: ", + "Automatically extend video description: ": "", "Visual preferences": "视觉选项", "Player style: ": "播放器样式: ", "Dark mode: ": "深色模式: ", @@ -156,6 +157,8 @@ "Title": "标题", "Playlist privacy": "播放列表隐私设置", "Editing playlist `x`": "正在编辑播放列表 `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "在 YouTube 观看", "Hide annotations": "隐藏注释", "Show annotations": "显示注释", diff --git a/locales/zh-TW.json b/locales/zh-TW.json index 935ca522..044647be 100644 --- a/locales/zh-TW.json +++ b/locales/zh-TW.json @@ -77,6 +77,7 @@ "Fallback captions: ": "汰退字幕: ", "Show related videos: ": "顯示相關的影片: ", "Show annotations by default: ": "預設顯示註釋: ", + "Automatically extend video description: ": "", "Visual preferences": "視覺偏好設定", "Player style: ": "播放器樣式: ", "Dark mode: ": "深色模式: ", @@ -156,6 +157,8 @@ "Title": "標題", "Playlist privacy": "播放清單隱私", "Editing playlist `x`": "已編輯播放清單 `x`", + "Show more": "", + "Show less": "", "Watch on YouTube": "在 YouTube 上觀看", "Hide annotations": "隱藏註釋", "Show annotations": "顯示註釋", @@ -412,4 +415,4 @@ "hdr": "HDR", "filter": "篩選條件", "Current version: ": "目前版本: " -} +} \ No newline at end of file diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr index e9cb3989..e1d877b7 100644 --- a/src/invidious/helpers/helpers.cr +++ b/src/invidious/helpers/helpers.cr @@ -50,6 +50,7 @@ struct ConfigPreferences property thin_mode : Bool = false property unseen_only : Bool = false property video_loop : Bool = false + property extend_desc : Bool = false property volume : Int32 = 100 def to_tuple diff --git a/src/invidious/users.cr b/src/invidious/users.cr index 8fef64a0..e4ebb4d1 100644 --- a/src/invidious/users.cr +++ b/src/invidious/users.cr @@ -78,6 +78,7 @@ struct Preferences property thin_mode : Bool = CONFIG.default_user_preferences.thin_mode property unseen_only : Bool = CONFIG.default_user_preferences.unseen_only property video_loop : Bool = CONFIG.default_user_preferences.video_loop + property extend_desc : Bool = CONFIG.default_user_preferences.extend_desc property volume : Int32 = CONFIG.default_user_preferences.volume module BoolToString diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 40d63ae8..bf281507 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -242,6 +242,7 @@ struct VideoPreferences property speed : Float32 | Float64 property video_end : Float64 | Int32 property video_loop : Bool + property extend_desc : Bool property video_start : Float64 | Int32 property volume : Int32 end @@ -1050,6 +1051,7 @@ def process_video_params(query, preferences) related_videos = query["related_videos"]?.try { |q| (q == "true" || q == "1").to_unsafe } speed = query["speed"]?.try &.rchop("x").to_f? video_loop = query["loop"]?.try { |q| (q == "true" || q == "1").to_unsafe } + extend_desc = query["extend_desc"]?.try { |q| (q == "true" || q == "1").to_unsafe } volume = query["volume"]?.try &.to_i? if preferences @@ -1068,6 +1070,7 @@ def process_video_params(query, preferences) related_videos ||= preferences.related_videos.to_unsafe speed ||= preferences.speed video_loop ||= preferences.video_loop.to_unsafe + extend_desc ||= preferences.extend_desc.to_unsafe volume ||= preferences.volume end @@ -1085,6 +1088,7 @@ def process_video_params(query, preferences) related_videos ||= CONFIG.default_user_preferences.related_videos.to_unsafe speed ||= CONFIG.default_user_preferences.speed video_loop ||= CONFIG.default_user_preferences.video_loop.to_unsafe + extend_desc ||= CONFIG.default_user_preferences.extend_desc.to_unsafe volume ||= CONFIG.default_user_preferences.volume annotations = annotations == 1 @@ -1095,6 +1099,7 @@ def process_video_params(query, preferences) local = local == 1 related_videos = related_videos == 1 video_loop = video_loop == 1 + extend_desc = extend_desc == 1 if CONFIG.disabled?("dash") && quality == "dash" quality = "high" @@ -1141,6 +1146,7 @@ def process_video_params(query, preferences) speed: speed, video_end: video_end, video_loop: video_loop, + extend_desc: extend_desc, video_start: video_start, volume: volume, }) diff --git a/src/invidious/views/preferences.ecr b/src/invidious/views/preferences.ecr index c1f10818..602340a4 100644 --- a/src/invidious/views/preferences.ecr +++ b/src/invidious/views/preferences.ecr @@ -106,6 +106,12 @@ checked<% end %>> +