Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .ameba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Lint/ShadowingOuterLocalVar:
Excluded:
- src/invidious/helpers/tokens.cr

# CI has a separate job to check for typos
Lint/Typos:
Enabled: false

Lint/NotNil:
Enabled: false

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,12 @@ jobs:

- name: Run Ameba linter
run: bin/ameba

lint_spell:
name: Check spelling
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Spell Check Repo
uses: crate-ci/[email protected]
33 changes: 33 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[default]
extend-ignore-re = [
# Exclude various hard-coded YouTube IDs
"\\b[0-9A-z+/\\-_]{100,}((=|%3D){1,2})?\\b",
"\\b4qm.*(%3D{1,2})?\\b",
"UC[A-z0-9\\-]*\\b",
"EgI[A-z0-9\\-]{7}(%3D{1,2})",

# Ignore gsub regex
"gsub\\(?/.*/,?",

# TEST_IDs constant def
"TEST_IDS *= *\\{.*\\}",

# Ignore two-letter region strings
"(\\b|\")[a-zA-Z]{2}(\\b|\"),",

# Github handles
"@[a-zA-z\\-]{1,39}"
]

[default.extend-identifiers]
clen = "clen"

[files]
extend-exclude = [
"/assets/js/videojs-youtube-annotations.min.js",
"/assets/videojs/**/*",
"/assets/fonts/ionicons.svg",
"/mocks/**/*.json",
"locales/*.json",
"CHANGELOG_legacy.md",
]
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ An HTTP proxy can be configured directly in Invidious, if needed. \
* The instance list is downloaded in the background to improve redirection speed
* New `colorize_logs` option makes each log level a different color

#### For developpers
#### For developers

* `/api/v1/channels/{id}/shorts` now supports the `sort-by` parameter with the following values:
`newest`, `oldest` and `popular`
Expand Down Expand Up @@ -301,7 +301,7 @@ Allow manual trigger of release-container build ([#4877], thanks @syeopite)

[inv_sig_helper]: https://github.com/iv-org/inv_sig_helper

#### For developpers
#### For developers

* The versions of Crystal that we test in CI/CD are now: `1.9.2`, `1.10.1`, `1.11.2`, `1.12.1`.
Please note that due to a bug in the `libxml` bindings (See [#4256]), versions prior to `1.10.0`
Expand All @@ -328,7 +328,7 @@ Allow manual trigger of release-container build ([#4877], thanks @syeopite)
* Watch page: the items in the "add to playlist" drop down are now sorted alphabetically
* Videos: the "genre" URL is now always pointing to a valid webpage
* Playlists: Fixed `Could not parse N episodes` error on podcast playlists
* All external links should now have the [`rel`] attibute set to `noreferrer noopener` for
* All external links should now have the [`rel`] attribute set to `noreferrer noopener` for
increased privacy.
* Preferences: Fixed the admin-only "modified source code" input being ignored
* Watch/channel pages: use the full image URL in `og:image` and `twitter:image` meta tags
Expand All @@ -338,7 +338,7 @@ Allow manual trigger of release-container build ([#4877], thanks @syeopite)
#### API

* fixed the `local` parameter not applying to `formatStreams` on `/api/v1/videos/{id}`
* fixed an `Index out of bounds` error hapenning when a playlist had no videos
* fixed an `Index out of bounds` error happening when a playlist had no videos
* fixed duplicated query parameters in proxied video URLs
* Return actual video height/width/fps rather than hard coded values
* Fixed the `/api/v1/popular` endpoint not returning a proper error code/message when the
Expand Down
2 changes: 1 addition & 1 deletion assets/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ body.dark-theme {


/*
* Miscellanous
* Miscellaneous
*/


Expand Down
2 changes: 1 addition & 1 deletion assets/js/_helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ window.helpers = window.helpers || {
}

// TODO: fire 'storage' event for cookies
console.info('Storage: localStorage is disabled or unaccessible. Cookies used as fallback');
console.info('Storage: localStorage is disabled or inaccessible. Cookies used as fallback');
return {
get: function (key) {
const cookiePrefix = key + '=';
Expand Down
6 changes: 3 additions & 3 deletions config/config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ https_only: false
# use_innertube_for_captions: false

##
## Send Google session informations. This is useful when Invidious is blocked
## Send Google session information. This is useful when Invidious is blocked
## by the message "This helps protect our community."
## See https://github.com/iv-org/invidious/issues/4734.
##
Expand Down Expand Up @@ -319,7 +319,7 @@ https_only: false
#popular_enabled: true

##
## Enable/Disable statstics (available at /api/v1/stats).
## Enable/Disable statistics (available at /api/v1/stats).
## The following data is available:
## - Software name ("invidious") and version+branch (same data as
## displayed in the footer, e.g: "2021.05.13-75e5b49" / "master")
Expand Down Expand Up @@ -865,7 +865,7 @@ default_user_preferences:
##
## Default dash video quality.
##
## Note: this setting only takes effet if the
## Note: this setting only takes effect if the
## 'quality' parameter is set to "dash".
##
## Accepted values:
Expand Down
2 changes: 1 addition & 1 deletion locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@
"search_filters_duration_option_long": "طويل (> 20 دقيقة)",
"footer_source_code": "الكود المصدر",
"footer_original_source_code": "الكود المصدر الأصلي",
"footer_modfied_source_code": "الكود المصدر المعدل",
"footer_modified_source_code": "الكود المصدر المعدل",
"adminprefs_modified_source_code_url_label": "URL إلى مستودع الكود المصدر المعدل",
"footer_documentation": "التوثيق",
"footer_donate_page": "تبرّع",
Expand Down
2 changes: 1 addition & 1 deletion locales/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
"Music in this video": "Музика в това видео",
"Hide replies": "Скрий отговорите",
"Password cannot be longer than 55 characters": "Паролата не може да бъде по-дълга от 55 символа",
"footer_modfied_source_code": "Променен изходен код",
"footer_modified_source_code": "Променен изходен код",
"Bosnian": "Босненски",
"Deleted or invalid channel": "Изтрит или невалиден канал",
"Popular": "Популярно",
Expand Down
2 changes: 1 addition & 1 deletion locales/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"user_saved_playlists": "`x` llistes de reproducció guardades",
"adminprefs_modified_source_code_url_label": "URL al repositori de codi font modificat",
"none": "cap",
"footer_modfied_source_code": "Codi font modificat",
"footer_modified_source_code": "Codi font modificat",
"videoinfo_invidious_embed_link": "Incrusta l'enllaç",
"download_subtitles": "Subtítols - `x` (.vtt)",
"user_created_playlists": "`x`llistes de reproducció creades",
Expand Down
2 changes: 1 addition & 1 deletion locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
"adminprefs_modified_source_code_url_label": "URL repozitáře s upraveným zdrojovým kódem",
"Video unavailable": "Video není dostupné",
"next_steps_error_message_go_to_youtube": "Jít na YouTube",
"footer_modfied_source_code": "Upravený zdrojový kód",
"footer_modified_source_code": "Upravený zdrojový kód",
"none": "žádné",
"videoinfo_invidious_embed_link": "Odkaz na vložení",
"user_saved_playlists": "`x` uložených playlistů",
Expand Down
2 changes: 1 addition & 1 deletion locales/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
"%A %B %-d, %Y": "%A %B %-d, %Y",
"footer_documentation": "Dokumentation",
"Pashto": "Pashto",
"footer_modfied_source_code": "Modificeret Kildekode",
"footer_modified_source_code": "Modificeret Kildekode",
"Released under the AGPLv3 on Github.": "Udgivet under AGPLv3 på GitHub.",
"Tajik": "Tadsjikisk",
"search_filters_date_option_month": "Denne måned",
Expand Down
2 changes: 1 addition & 1 deletion locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
"footer_donate_page": "Spende",
"search_filters_duration_option_long": "Lang (> 20 Minuten)",
"footer_original_source_code": "Original Quellcode",
"footer_modfied_source_code": "Modifizierter Quellcode",
"footer_modified_source_code": "Modifizierter Quellcode",
"footer_documentation": "Dokumentation",
"footer_source_code": "Quellcode",
"adminprefs_modified_source_code_url_label": "URL zum Repositorie des modifizierten Quellcodes",
Expand Down
2 changes: 1 addition & 1 deletion locales/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@
"Released under the AGPLv3 on Github.": "Κυκλοφορεί υπό την AGPLv3 στο GitHub.",
"search_filters_sort_label": "Ταξινόμηση κατά",
"search_filters_type_option_movie": "Ταινία",
"footer_modfied_source_code": "Τροποποιημένος πηγαίος κώδικας",
"footer_modified_source_code": "Τροποποιημένος πηγαίος κώδικας",
"search_filters_features_label": "Χαρακτηριστικά",
"search_filters_features_option_four_k": "4K",
"footer_documentation": "Τεκμηρίωση",
Expand Down
2 changes: 1 addition & 1 deletion locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
"footer_documentation": "Documentation",
"footer_source_code": "Source code",
"footer_original_source_code": "Original source code",
"footer_modfied_source_code": "Modified source code",
"footer_modified_source_code": "Modified source code",
"adminprefs_modified_source_code_url_label": "URL to modified source code repository",
"none": "none",
"videoinfo_started_streaming_x_ago": "Started streaming `x` ago",
Expand Down
2 changes: 1 addition & 1 deletion locales/eo.json
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
"footer_documentation": "Dokumentaro",
"footer_source_code": "Fontkodo",
"adminprefs_modified_source_code_url_label": "URL al modifita deponejo de fontkodo",
"footer_modfied_source_code": "Modifita Fontkodo",
"footer_modified_source_code": "Modifita Fontkodo",
"footer_original_source_code": "Originala fontkodo",
"footer_donate_page": "Donaci",
"preferences_region_label": "Lando de la enhavo: ",
Expand Down
2 changes: 1 addition & 1 deletion locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
"footer_original_source_code": "Código fuente original",
"adminprefs_modified_source_code_url_label": "Enlace al repositorio de código fuente modificado",
"footer_source_code": "Código fuente",
"footer_modfied_source_code": "Código fuente modificado",
"footer_modified_source_code": "Código fuente modificado",
"footer_donate_page": "Donar",
"preferences_region_label": "País del contenido: ",
"preferences_quality_dash_label": "Calidad de video DASH preferida: ",
Expand Down
2 changes: 1 addition & 1 deletion locales/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@
"search_filters_features_option_three_sixty": "360°",
"footer_donate_page": "کمک مالی",
"footer_source_code": "کد منبع",
"footer_modfied_source_code": "کد منبع ویرایش شده",
"footer_modified_source_code": "کد منبع ویرایش شده",
"none": "هیچ‌کدام",
"videoinfo_started_streaming_x_ago": "پخش جریانی `x` پیش آغاز شد",
"videoinfo_watch_on_youTube": "تماشا در یوتیوب",
Expand Down
2 changes: 1 addition & 1 deletion locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@
"search_filters_duration_option_long": "Pitkä (> 20 minuuttia)",
"footer_documentation": "Dokumentaatio",
"footer_original_source_code": "Alkuperäinen lähdekoodi",
"footer_modfied_source_code": "Muokattu lähdekoodi",
"footer_modified_source_code": "Muokattu lähdekoodi",
"Japanese (auto-generated)": "japani (automaattisesti luotu)",
"German (auto-generated)": "saksa (automaattisesti luotu)",
"Portuguese (auto-generated)": "portugali (automaattisesti luotu)",
Expand Down
2 changes: 1 addition & 1 deletion locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@
"footer_source_code": "Code source",
"preferences_region_label": "Pays du contenu : ",
"footer_donate_page": "Faire un don",
"footer_modfied_source_code": "Code source modifié",
"footer_modified_source_code": "Code source modifié",
"search_filters_duration_option_short": "Courte (< 4 minutes)",
"search_filters_duration_option_long": "Longue (> 20 minutes)",
"adminprefs_modified_source_code_url_label": "URL du dépôt du code source modifié",
Expand Down
2 changes: 1 addition & 1 deletion locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"footer_documentation": "प्रलेख",
"footer_source_code": "स्रोत कोड",
"footer_original_source_code": "मूल स्रोत कोड",
"footer_modfied_source_code": "बदला गया स्रोत कोड",
"footer_modified_source_code": "बदला गया स्रोत कोड",
"Current version: ": "वर्तमान संस्करण: ",
"next_steps_error_message": "इसके बाद आपके ये आज़माने चाहिए: ",
"next_steps_error_message_refresh": "साफ़ करें",
Expand Down
2 changes: 1 addition & 1 deletion locales/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
"search_filters_duration_option_short": "Kratko (< 4 minute)",
"search_filters_duration_option_long": "Dugo (> 20 minute)",
"footer_source_code": "Izvorni kod",
"footer_modfied_source_code": "Prilagođen izvorni kod",
"footer_modified_source_code": "Prilagođen izvorni kod",
"footer_documentation": "Dokumentacija",
"footer_original_source_code": "Prvobitan izvorni kod",
"preferences_region_label": "Zemlja sadržaja: ",
Expand Down
2 changes: 1 addition & 1 deletion locales/hu-HU.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
"next_steps_error_message_refresh": "Újratöltés",
"footer_donate_page": "Adakozás",
"footer_source_code": "Forráskód",
"footer_modfied_source_code": "Módosított forráskód",
"footer_modified_source_code": "Módosított forráskód",
"adminprefs_modified_source_code_url_label": "A módosított forráskód repositoryjának URL-je:",
"preferences_automatic_instance_redirect_label": "Váltáskor másik Invidious oldal automatikus betöltése (redirect.invidious.io töltődik, ha nem működne): ",
"preferences_region_label": "Ország tartalmainak mutatása: ",
Expand Down
2 changes: 1 addition & 1 deletion locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
"footer_original_source_code": "Kode sumber yang asli",
"search_filters_duration_option_short": "Pendek (< 4 menit)",
"search_filters_duration_option_long": "Panjang (> 20 menit)",
"footer_modfied_source_code": "Kode sumber yang dimodifikasi",
"footer_modified_source_code": "Kode sumber yang dimodifikasi",
"footer_documentation": "Dokumentasi",
"preferences_region_label": "Konten dari negara: ",
"preferences_quality_dash_label": "Kualitas video DASH yang disukai: ",
Expand Down
2 changes: 1 addition & 1 deletion locales/is.json
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@
"search_filters_sort_label": "Raða eftir",
"search_filters_sort_option_relevance": "Samsvörun",
"footer_donate_page": "Styrkja",
"footer_modfied_source_code": "Breyttur grunnkóði",
"footer_modified_source_code": "Breyttur grunnkóði",
"crash_page_refresh": "reynt að <a href=\"`x`\">endurlesa síðuna</a>",
"crash_page_search_issue": "leitað að <a href=\"`x`\">fyrirliggjandi villum á GitHub</a>",
"none": "ekkert",
Expand Down
2 changes: 1 addition & 1 deletion locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@
"next_steps_error_message_go_to_youtube": "Andare su YouTube",
"footer_documentation": "Documentazione",
"footer_original_source_code": "Codice sorgente originale",
"footer_modfied_source_code": "Codice sorgente modificato",
"footer_modified_source_code": "Codice sorgente modificato",
"none": "nessuno",
"videoinfo_started_streaming_x_ago": "Ha iniziato a trasmettere `x` fa",
"download_subtitles": "Sottotitoli - `x` (.vtt)",
Expand Down
2 changes: 1 addition & 1 deletion locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
"footer_documentation": "説明書",
"footer_source_code": "ソースコード",
"footer_original_source_code": "元のソースコード",
"footer_modfied_source_code": "改変し使用中",
"footer_modified_source_code": "改変し使用中",
"adminprefs_modified_source_code_url_label": "改変されたソースコードのレポジトリの URL",
"search_filters_duration_option_long": "20分以上",
"preferences_region_label": "地域: ",
Expand Down
2 changes: 1 addition & 1 deletion locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
"footer_documentation": "문서",
"footer_source_code": "소스 코드",
"footer_original_source_code": "원본 소스 코드",
"footer_modfied_source_code": "수정된 소스 코드",
"footer_modified_source_code": "수정된 소스 코드",
"adminprefs_modified_source_code_url_label": "수정된 소스 코드 저장소의 URL",
"search_filters_title": "필터",
"preferences_quality_dash_option_4320p": "4320p",
Expand Down
2 changes: 1 addition & 1 deletion locales/lt.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
"footer_source_code": "Pirminis kodas",
"footer_original_source_code": "Pradinis pirminis kodas",
"adminprefs_modified_source_code_url_label": "URL į pakeisto pirminio kodo repozitoriją",
"footer_modfied_source_code": "Pakeistas pirminis kodas",
"footer_modified_source_code": "Pakeistas pirminis kodas",
"footer_donate_page": "Paaukoti",
"preferences_region_label": "Turinio šalis: ",
"preferences_quality_dash_label": "Pageidaujama DASH vaizdo kokybė: ",
Expand Down
2 changes: 1 addition & 1 deletion locales/nb-NO.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
"footer_documentation": "Dokumentasjon",
"footer_source_code": "Kildekode",
"footer_original_source_code": "Opprinnelig kildekode",
"footer_modfied_source_code": "Endret kildekode",
"footer_modified_source_code": "Endret kildekode",
"adminprefs_modified_source_code_url_label": "Nettadresse til kodelager inneholdende endret kildekode",
"preferences_quality_dash_label": "Foretrukket DASH-videokvalitet: ",
"preferences_region_label": "Innholdsland: ",
Expand Down
2 changes: 1 addition & 1 deletion locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
"footer_donate_page": "Doneren",
"footer_documentation": "Documentatie",
"footer_original_source_code": "Originele bron-code",
"footer_modfied_source_code": "Gewijzigde bron-code",
"footer_modified_source_code": "Gewijzigde bron-code",
"adminprefs_modified_source_code_url_label": "URL naar gewijzigde bron-code-opslagplaats",
"next_steps_error_message": "Waarna u zou kunnen proberen om: ",
"footer_source_code": "Bron-code",
Expand Down
2 changes: 1 addition & 1 deletion locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@
"search_filters_duration_option_long": "Długa (> 20 minut)",
"footer_documentation": "Dokumentacja",
"footer_source_code": "Kod źródłowy",
"footer_modfied_source_code": "Zmodyfikowany kod źródłowy",
"footer_modified_source_code": "Zmodyfikowany kod źródłowy",
"footer_original_source_code": "Oryginalny kod źródłowy",
"adminprefs_modified_source_code_url_label": "Adres URL do repozytorium ze zmodyfikowanym kodem źródłowym",
"English (United Kingdom)": "angielski (Wielka Brytania)",
Expand Down
2 changes: 1 addition & 1 deletion locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
"footer_documentation": "Documentação",
"footer_source_code": "Código-fonte",
"footer_original_source_code": "Código-fonte original",
"footer_modfied_source_code": "Código-fonte modificado",
"footer_modified_source_code": "Código-fonte modificado",
"preferences_quality_dash_label": "Qualidade de vídeo DASH preferida: ",
"preferences_region_label": "País do conteúdo: ",
"preferences_quality_dash_option_4320p": "4320p",
Expand Down
2 changes: 1 addition & 1 deletion locales/pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@
"footer_documentation": "Documentação",
"footer_source_code": "Código-fonte",
"footer_original_source_code": "Código-fonte original",
"footer_modfied_source_code": "Código-fonte alterado",
"footer_modified_source_code": "Código-fonte alterado",
"Chinese": "Chinês",
"search_filters_date_label": "Data de publicação",
"search_filters_date_option_none": "Qualquer data",
Expand Down
2 changes: 1 addition & 1 deletion locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
"footer_original_source_code": "Código-fonte original",
"adminprefs_modified_source_code_url_label": "URL do repositório do código-fonte alterado",
"footer_documentation": "Documentação",
"footer_modfied_source_code": "Código-fonte alterado",
"footer_modified_source_code": "Código-fonte alterado",
"footer_donate_page": "Doar",
"preferences_region_label": "País do conteúdo: ",
"preferences_quality_dash_label": "Qualidade de vídeo DASH preferida: ",
Expand Down
2 changes: 1 addition & 1 deletion locales/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
"Vietnamese (auto-generated)": "Vietnameză (generată automat)",
"videoinfo_started_streaming_x_ago": "În direct de acum `x`",
"preferences_quality_dash_option_2160p": "2160p",
"footer_modfied_source_code": "Codul sursă modificat",
"footer_modified_source_code": "Codul sursă modificat",
"preferences_quality_dash_label": "Calitatea video DASH preferată: ",
"generic_videos_count_0": "{{count}} videoclip",
"generic_videos_count_1": "{{count}} videoclipuri",
Expand Down
Loading
Loading