Compare commits

...

8 Commits

Author SHA1 Message Date
Cristi Ciobanu
7558d6d56c
Merge dd2fc9cd08 into dc65eece29 2024-11-20 16:01:01 +00:00
Rex_sa
dc65eece29
Translated using Weblate (Arabic)
Currently translated at 100.0% (852 of 852 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/ar/
2024-11-20 17:00:26 +01:00
Gideon Wentink
540a5a9385
Translated using Weblate (Afrikaans)
Currently translated at 30.7% (262 of 852 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/af/
2024-11-20 13:00:39 +01:00
Cristi Ciobanu
dd2fc9cd08 use slider 2024-11-16 12:19:24 +01:00
Cristi Ciobanu
aea5e5df92 add labelledby attribute and update styling 2024-10-22 15:39:36 +02:00
Cristi Ciobanu
bca0e67561 remove unused localisation strings 2024-10-22 15:39:09 +02:00
Cristi Ciobanu
937fdbee9c update layout of subscription settings section 2024-10-20 15:44:15 +02:00
Cristi Ciobanu
34fb65e9f8 update onlyShowLatestFromChannel setting to handle a custom amount of videos 2024-10-20 15:37:13 +02:00
43 changed files with 61 additions and 88 deletions

View File

@ -0,0 +1,4 @@
.onlyShowLatestFromChannelNumber {
inline-size: calc(100% - 44px);
padding-inline-start: 44px;
}

View File

@ -2,12 +2,14 @@ import { defineComponent } from 'vue'
import { mapActions } from 'vuex'
import FtSettingsSection from '../ft-settings-section/ft-settings-section.vue'
import FtToggleSwitch from '../ft-toggle-switch/ft-toggle-switch.vue'
import FtSlider from '../ft-slider/ft-slider.vue'
export default defineComponent({
name: 'SubscriptionSettings',
components: {
'ft-settings-section': FtSettingsSection,
'ft-toggle-switch': FtToggleSwitch
'ft-toggle-switch': FtToggleSwitch,
'ft-slider': FtSlider,
},
computed: {
hideWatchedSubs: function () {
@ -16,6 +18,9 @@ export default defineComponent({
onlyShowLatestFromChannel: function () {
return this.$store.getters.getOnlyShowLatestFromChannel
},
onlyShowLatestFromChannelNumber: function () {
return this.$store.getters.getOnlyShowLatestFromChannelNumber
},
useRssFeeds: function () {
return this.$store.getters.getUseRssFeeds
},
@ -32,6 +37,7 @@ export default defineComponent({
'updateUseRssFeeds',
'updateFetchSubscriptionsAutomatically',
'updateOnlyShowLatestFromChannel',
'updateOnlyShowLatestFromChannelNumber',
'updateUnsubscriptionPopupStatus'
])
}

View File

@ -18,6 +18,12 @@
:compact="true"
@change="updateUseRssFeeds"
/>
<ft-toggle-switch
:label="$t('Settings.Subscription Settings.Confirm Before Unsubscribing')"
:default-value="unsubscriptionPopupStatus"
:compact="true"
@change="updateUnsubscriptionPopupStatus"
/>
</div>
<div class="switchColumn">
<ft-toggle-switch
@ -27,22 +33,28 @@
@change="updateHideWatchedSubs"
/>
<ft-toggle-switch
:label="$t('Settings.Subscription Settings.Only Show Latest Video for Each Channel')"
id="onlyShowLatestFromChannel"
:label="$t('Settings.Subscription Settings.Limit the number of videos displayed for each channel')"
:default-value="onlyShowLatestFromChannel"
:compact="true"
@change="updateOnlyShowLatestFromChannel"
/>
</div>
<div class="switchColumn">
<ft-toggle-switch
:label="$t('Settings.Subscription Settings.Confirm Before Unsubscribing')"
:default-value="unsubscriptionPopupStatus"
:compact="true"
@change="updateUnsubscriptionPopupStatus"
/>
<div class="onlyShowLatestFromChannelNumber">
<ft-slider
:label="$t('Settings.Subscription Settings.To')"
:default-value="onlyShowLatestFromChannelNumber"
:disabled="!onlyShowLatestFromChannel"
:min-value="1"
:max-value="30"
:step="1"
aria-labelledby="onlyShowLatestFromChannel"
@change="updateOnlyShowLatestFromChannelNumber"
/>
</div>
</div>
</div>
</ft-settings-section>
</template>
<script src="./subscription-settings.js" />
<style src="./subscription-settings.css" scoped />

View File

@ -42,13 +42,22 @@ export function updateVideoListAfterProcessing(videos) {
// ordered last to show first eligible video from channel
// if the first one incidentally failed one of the above checks
if (store.getters.getOnlyShowLatestFromChannel) {
const authors = new Set()
const authors = new Map()
videoList = videoList.filter((video) => {
if (!video.authorId) {
return true
} else if (!authors.has(video.authorId)) {
authors.add(video.authorId)
}
if (!authors.has(video.authorId)) {
authors.set(video.authorId, 1)
return true
} else {
const currentVideos = authors.get(video.authorId)
if (currentVideos < store.getters.getOnlyShowLatestFromChannelNumber) {
authors.set(video.authorId, currentVideos + 1)
return true
}
}
return false

View File

@ -232,6 +232,7 @@ const state = {
listType: 'grid',
maxVideoPlaybackRate: 3,
onlyShowLatestFromChannel: false,
onlyShowLatestFromChannelNumber: 1,
playNextVideo: false,
proxyHostname: '127.0.0.1',
proxyPort: '9050',

View File

@ -452,7 +452,6 @@ Settings:
Hide Videos on Watch: ''
Fetch Feeds from RSS: ''
Fetch Automatically: ''
Only Show Latest Video for Each Channel: ''
Confirm Before Unsubscribing: ''
Distraction Free Settings:
Distraction Free Settings: ''
@ -700,19 +699,21 @@ Channel:
This channel does not currently have any podcasts: ''
Releases:
Releases: ''
This channel does not currently have any releases: ''
This channel does not currently have any releases: 'Hierdie kanaal het nie tans
enige vrystellings nie'
About:
About: ''
Channel Description: ''
About: 'Oor'
Channel Description: 'Kanaalbeskrywing'
Tags:
Tags: ''
Search for: ''
Details: ''
Joined: ''
Location: ''
Featured Channels: ''
Tags: 'Etikette'
Search for: 'Soek na {tag}'
Details: 'Details'
Joined: 'Lid sedert'
Location: 'Ligging'
Featured Channels: 'Uitgeligte kanale'
Community:
This channel currently does not have any posts: ''
This channel currently does not have any posts: 'Hierdie kanaal het nie tans enige
plasings nie'
votes: '{votes} stemme'
Reveal Answers: 'Onthul antwoorde'
Hide Answers: 'Versteek antwoorde'
@ -910,6 +911,7 @@ Chapters:
'Chapters list hidden, current chapter: {chapterName}': 'Hoofstukke lys versteekte,
huidige hoofstuk: {chapterName}'
Key Moments: Sleuteloomblikke
Mini Player: 'Mini-speler'
Comments:
Comments: 'Kommentare'

View File

@ -446,7 +446,6 @@ Settings:
Hide Videos on Watch: 'أخفِ الفيديوهات عند مشاهدتها'
Fetch Feeds from RSS: 'جلب المحتوى عن طريق RSS'
Fetch Automatically: جلب الخلاصة تلقائيا
Only Show Latest Video for Each Channel: عرض أحدث فيديو فقط لكل قناة
Confirm Before Unsubscribing: تجنب إلغاء الاشتراك عن طريق الخطأ
Data Settings:
@ -1099,6 +1098,7 @@ Chapters:
الحالي: {chapterName}'
'Chapters list visible, current chapter: {chapterName}': 'قائمة الفصول المرئية ،
الفصل الحالي: {chapterName}'
Key Moments: ‌العناصر الرئيسية
Preferences: التفضيلات
Ok: موافق
Hashtag:

View File

@ -484,8 +484,6 @@ Settings:
Fetch Feeds from RSS: 'Атрымліваць стужкі з RSS'
Fetch Automatically: 'Аўтаматычна атрымліваць стужку'
Confirm Before Unsubscribing: Пацвердзіце перад тым як адпісацца
Only Show Latest Video for Each Channel: Паказваць толькі апошняе відэа для кожнага
канала
Distraction Free Settings:
Distraction Free Settings: 'Адцягненне ўвагі'
Sections:

View File

@ -461,8 +461,6 @@ Settings:
Hide Videos on Watch: 'Скриване на видеата при гледане'
Fetch Feeds from RSS: 'Извличане на съдържания през RSS'
Fetch Automatically: Автоматично извличане на съдържание
Only Show Latest Video for Each Channel: Показване само най-новите видеа за всеки
канал
Confirm Before Unsubscribing: Избягване на случайно отписване
Data Settings:
Data Settings: 'Данни'

View File

@ -461,8 +461,6 @@ Settings:
Hide Videos on Watch: 'Skrýt přehraná videa'
Fetch Feeds from RSS: 'Získávat odběry z RSS'
Fetch Automatically: Automaticky načítat odběry
Only Show Latest Video for Each Channel: U každého kanálu zobrazit pouze nejnovější
video
Confirm Before Unsubscribing: Zamezit nechtěným odběrům
Distraction Free Settings:
Distraction Free Settings: 'Rozptylování'

View File

@ -317,7 +317,6 @@ Settings:
Hide Videos on Watch: ''
Fetch Feeds from RSS: ''
Fetch Automatically: ''
Only Show Latest Video for Each Channel: ''
Distraction Free Settings:
Distraction Free Settings: ''
Sections:

View File

@ -397,7 +397,6 @@ Settings:
Subscription Settings: 'Abonnementsindstillinger'
Hide Videos on Watch: 'Skjul Videoer på Se'
Fetch Feeds from RSS: 'Hent Feeds fra RSS'
Only Show Latest Video for Each Channel: Vis Kun Seneste Video for Hver Kanal
Fetch Automatically: Hent Feed Automatisk
Confirm Before Unsubscribing: Bekræft Før Afmelding
Data Settings:

View File

@ -445,8 +445,6 @@ Settings:
Hide Videos on Watch: Videos bei Wiedergabe ausblenden
Fetch Feeds from RSS: Feeds von RSS abrufen
Fetch Automatically: Feed automatisch abrufen
Only Show Latest Video for Each Channel: Nur das neueste Video für jeden Kanal
anzeigen
Confirm Before Unsubscribing: Unbeabsichtigtes Deabonnieren verhindern
Privacy Settings:

View File

@ -315,8 +315,6 @@ Settings:
Hide Videos on Watch: 'Απόκρυψη των βίντεο κατά την αναπαραγωγή'
Fetch Feeds from RSS: 'Φόρτωση τροφοδοσίας RSS'
Fetch Automatically: Αυτόματη Λήψη Τροφοδοσίας
Only Show Latest Video for Each Channel: Εμφάνιση μόνο του τελευταίου βίντεο για
κάθε κανάλι
Data Settings:
Data Settings: 'Ρυθμίσεις Δεδομένων'
Select Import Type: 'Επιλογή Τρόπου Εισαγωγής'

View File

@ -466,7 +466,6 @@ Settings:
Hide Videos on Watch: 'Hide Videos on Watch'
Fetch Feeds from RSS: 'Fetch feeds from RSS'
Fetch Automatically: Fetch feed automatically
Only Show Latest Video for Each Channel: Only show latest video for each channel
Confirm Before Unsubscribing: Confirm before unsubscribing
Data Settings:
Data Settings: 'Data'

View File

@ -474,7 +474,8 @@ Settings:
Hide Videos on Watch: Hide Videos on Watch
Fetch Feeds from RSS: Fetch Feeds from RSS
Fetch Automatically: Fetch Feed Automatically
Only Show Latest Video for Each Channel: Only Show Latest Video for Each Channel
'Limit the number of videos displayed for each channel': 'Limit the number of videos displayed for each channel'
To: To
Confirm Before Unsubscribing: Confirm Before Unsubscribing
Distraction Free Settings:
Distraction Free Settings: Distraction Free

View File

@ -463,8 +463,6 @@ Settings:
Hide Videos on Watch: 'Ocultar vídeos vistos'
Fetch Feeds from RSS: 'Recuperar suministros desde RSS'
Fetch Automatically: Obtener los feed automáticamente
Only Show Latest Video for Each Channel: Mostrar solo los últimos vídeos de cada
canal
Confirm Before Unsubscribing: Evitar bajas accidentales
Data Settings:
Data Settings: 'Datos'

View File

@ -457,7 +457,6 @@ Settings:
Hide Videos on Watch: 'Vaatamisel peida videod'
Fetch Feeds from RSS: 'Laadi RSS-uudisvood'
Fetch Automatically: Laadi tellimuste voog automaatselt
Only Show Latest Video for Each Channel: Iga kanali puhul näita vaid viimast videot
Confirm Before Unsubscribing: Väldi ekslikku ja juhuslikku tellimusest loobumist
Data Settings:
Data Settings: 'Andmehaldus'

View File

@ -457,8 +457,6 @@ Settings:
Hide Videos on Watch: 'Ikusten ari zaren bideoa ezkutatu'
Fetch Feeds from RSS: 'RSS jarioak eskuratu'
Fetch Automatically: Eskuratu jarioa automatikoki
Only Show Latest Video for Each Channel: Erakutsi soilik kanal bakoitzeko azken
bideoa
Confirm Before Unsubscribing: Saihestu ustekabeko harpidetza kentzea
Distraction Free Settings:
Distraction Free Settings: 'Oharkabetasunak ekiditeko ezarpenak'

View File

@ -355,8 +355,6 @@ Settings:
Hide Videos on Watch: 'Piilota katsotut videot'
Fetch Feeds from RSS: Nouda RSS-syöte
Fetch Automatically: Nouda syöte automaattisesti
Only Show Latest Video for Each Channel: Näytä vain jokaisen kanavan uusin video
Privacy Settings:
Watch history has been cleared: Katseluhistoria poistettiin
Are you sure you want to remove your entire watch history?: Haluatko varmasti

View File

@ -452,8 +452,6 @@ Settings:
Hide Videos on Watch: 'Masquer les vidéos visionnées'
Fetch Feeds from RSS: Récupération de flux RSS
Fetch Automatically: Récupération automatique des flux
Only Show Latest Video for Each Channel: Afficher uniquement la dernière vidéo
pour chaque chaîne
Confirm Before Unsubscribing: Évitez les désabonnements accidentels
Privacy Settings:

View File

@ -445,7 +445,6 @@ Settings:
Fetch Feeds from RSS: 'ייבוא עדכונים בעזרת RSS'
Fetch Automatically: משיכת ערוץ העדכונים אוטומטית
Confirm Before Unsubscribing: אישור לפני ביטול מינוי
Only Show Latest Video for Each Channel: להציג רק את הסרטון האחרון לכל ערוץ
Data Settings:
Data Settings: 'נתונים'
Select Import Type: 'נא לבחור את תסדיר הייבוא'

View File

@ -449,8 +449,6 @@ Settings:
Hide Videos on Watch: 'Sakrij video nakon gledanja'
Fetch Feeds from RSS: 'Dohvati feedove s RSS-a'
Fetch Automatically: Automatski dohvati feed
Only Show Latest Video for Each Channel: Prikaži samo najnoviji video za svaki
kanal
Confirm Before Unsubscribing: Izbjegni slučajno otkazivanje pretplate
Data Settings:

View File

@ -469,8 +469,6 @@ Settings:
Hide Videos on Watch: 'Videók elrejtése megtekintés után'
Fetch Feeds from RSS: 'RSS-hírcsatornák beolvasása'
Fetch Automatically: Hírcsatorna automatikus lekérdezése
Only Show Latest Video for Each Channel: Csak a legújabb videókat jelenítse meg
a csatornáktól
Confirm Before Unsubscribing: Kerülje el a véletlen leiratkozást
Data Settings:
Data Settings: 'Adat'

View File

@ -347,8 +347,6 @@ Settings:
Hide Videos on Watch: 'Sembunyikan Video saat Menonton'
Fetch Feeds from RSS: 'Ambil Umpan dari RSS'
Fetch Automatically: Ambil Umpan Secara Otomatis
Only Show Latest Video for Each Channel: Hanya Tampilkan Video Terbaru untuk Setiap
Kanal
Data Settings:
Data Settings: 'Pengaturan Data'
Select Import Type: 'Pilih Tipe Impor'

View File

@ -465,8 +465,6 @@ Settings:
Hide Videos on Watch: 'Fela myndskeið eftir áhorf'
Fetch Feeds from RSS: 'Ná í streymi úr RSS'
Fetch Automatically: Sækja streymi sjálfvirkt
Only Show Latest Video for Each Channel: Aðeins birta nýjasta myndskeið fyrir
hverja myndskeiðarás
Confirm Before Unsubscribing: Staðfesta uppsögn áskriftar
Distraction Free Settings:
Distraction Free Settings: 'Truflanaminnkandi'

View File

@ -460,8 +460,6 @@ Settings:
Hide Videos on Watch: 'Nascondi i video visualizzati'
Fetch Feeds from RSS: Scarica gli aggiornamenti dai flussi RSS
Fetch Automatically: Recupera i feed automaticamente
Only Show Latest Video for Each Channel: Mostra solo il video più recente per
ciascun canale
Confirm Before Unsubscribing: Evita la cancellazione accidentale dell'iscrizione
Data Settings:

View File

@ -397,8 +397,6 @@ Settings:
Fetch Feeds from RSS: RSS から情報取得
Fetch Automatically: フィードの自動取得
Confirm Before Unsubscribing: 登録解除する前に確認画面を表示する
Only Show Latest Video for Each Channel: 各チャンネルの最新動画のみを表示する
Privacy Settings:
Save Watched Progress: 再生位置の保存
Remember History: 履歴の保存

View File

@ -448,8 +448,6 @@ Settings:
Hide Videos on Watch: 'Bekeken video''s verbergen'
Fetch Feeds from RSS: Feeds ophalen via RSS
Fetch Automatically: Feed automatisch ophalen
Only Show Latest Video for Each Channel: Alleen nieuwste video voor elk kanaal
tonen
Confirm Before Unsubscribing: Onbedoeld deabonneren voor­komen
Data Settings:

View File

@ -436,8 +436,6 @@ Settings:
Hide Videos on Watch: 'Ukrywaj filmy po obejrzeniu'
Fetch Feeds from RSS: Pobierz subskrypcje z RSS
Fetch Automatically: Automatycznie odświeżaj subskrypcje
Only Show Latest Video for Each Channel: Pokaż tylko najnowszy film z każdego
kanału
Confirm Before Unsubscribing: Uniknij przypadkowego usunięcia subskrypcji
Privacy Settings:

View File

@ -431,8 +431,6 @@ Settings:
Hide Videos on Watch: 'Ocultar vídeos após assisti-los'
Fetch Feeds from RSS: Buscar Informações através de RSS
Fetch Automatically: Buscar feed automaticamente
Only Show Latest Video for Each Channel: Mostrar apenas vídeo mais recente para
cada canal
Confirm Before Unsubscribing: Evitar cancelamento acidental de inscrições
Privacy Settings:

View File

@ -436,8 +436,6 @@ Settings:
Hide Videos on Watch: Ocultar vídeos visualizados
Fetch Feeds from RSS: Obter subscrições através de RSS
Fetch Automatically: Obter fontes automaticamente
Only Show Latest Video for Each Channel: Mostrar apenas o último vídeo de cada
canal
Confirm Before Unsubscribing: Impedir cancelamento acidental de subscrições
Distraction Free Settings:
Distraction Free Settings: Definições de distrações

View File

@ -453,8 +453,6 @@ Settings:
Hide Videos on Watch: 'Ocultar vídeos visualizados'
Fetch Feeds from RSS: 'Obter subscrições através de RSS'
Fetch Automatically: Obter fontes automaticamente
Only Show Latest Video for Each Channel: Mostrar apenas o último vídeo de cada
canal
Confirm Before Unsubscribing: Impedir cancelamento acidental de subscrições
Data Settings:
Data Settings: 'Dados'

View File

@ -438,8 +438,6 @@ Settings:
Fetch Feeds from RSS: 'Preluare de fluxuri din RSS'
Fetch Automatically: Preluați feedul automat
Confirm Before Unsubscribing: Confirmă înainte de dezabonare
Only Show Latest Video for Each Channel: Arată doar cele mai noi videoclipuri
pentru fiecare canal
Data Settings:
Data Settings: 'Setări de date'
Select Import Type: 'Selectează tipul de import'

View File

@ -427,8 +427,6 @@ Settings:
Hide Videos on Watch: 'Скрывать видео после просмотра'
Fetch Feeds from RSS: Получать ленты из RSS
Fetch Automatically: Автоматически получать ленту
Only Show Latest Video for Each Channel: Показывать только последние видео для
каждого канала
Confirm Before Unsubscribing: Подтвердить, прежде чем отписаться
Privacy Settings:

View File

@ -466,8 +466,6 @@ Settings:
Hide Videos on Watch: 'Сакриј видео снимке на гледању'
Fetch Feeds from RSS: 'Прикупи фидове из RSS-а'
Fetch Automatically: Аутоматски прикупи фид
Only Show Latest Video for Each Channel: Прикажи само најновији видео снимак за
сваки канал
Confirm Before Unsubscribing: Избегни случајно отпраћивање
Distraction Free Settings:
Distraction Free Settings: 'Без ометања'

View File

@ -397,8 +397,6 @@ Settings:
Hide Videos on Watch: 'Dölj video under visning'
Fetch Feeds from RSS: 'Hämta prenumerationer från RSS'
Fetch Automatically: Hämta flöde automatiskt
Only Show Latest Video for Each Channel: Visa endast den senaste videon för varje
kanal
Data Settings:
Data Settings: 'Datainställningar'
Select Import Type: 'Välj import-typen'

View File

@ -455,8 +455,6 @@ Settings:
Hide Videos on Watch: 'İzlenmiş Videoları Gizle'
Fetch Feeds from RSS: 'Akışları RSS''den Getir'
Fetch Automatically: Akışı Otomatik Olarak Getir
Only Show Latest Video for Each Channel: Her Kanal için Yalnızca En Son Videoyu
Göster
Confirm Before Unsubscribing: Abonelikten Çıkmadan Önce Onayla
Data Settings:
Data Settings: 'Veri'

View File

@ -349,8 +349,6 @@ Settings:
Hide Videos on Watch: 'Ховати відео при перегляді'
Fetch Feeds from RSS: 'Отримати канали з RSS'
Fetch Automatically: Автоматично отримувати стрічку
Only Show Latest Video for Each Channel: Показувати лише останні відео для кожного
каналу
Distraction Free Settings:
Distraction Free Settings: 'Налаштування зосередження'
Hide Video Views: 'Сховати перегляди відео'

View File

@ -422,8 +422,6 @@ Settings:
Hide Videos on Watch: 'Ẩn video khi đã xem'
Fetch Feeds from RSS: Cập nhật bảng tin qua RSS
Fetch Automatically: Tự động làm mới bảng tin
Only Show Latest Video for Each Channel: Chỉ hiện video mới nhất cho mỗi kênh
Confirm Before Unsubscribing: Nhắc xác nhận trước khi hủy đăng ký
Data Settings:
How do I import my subscriptions?: Làm sao để tôi nhập đăng ký?

View File

@ -460,7 +460,6 @@ Settings:
Hide Videos on Watch: ''
Fetch Feeds from RSS: ''
Fetch Automatically: ''
Only Show Latest Video for Each Channel: ''
Confirm Before Unsubscribing: ''
Distraction Free Settings:
Distraction Free Settings: ''

View File

@ -394,7 +394,6 @@ Settings:
Hide Videos on Watch: '观看时隐藏视频'
Fetch Feeds from RSS: 从RSS摘取推送
Fetch Automatically: 自动抓取订阅源
Only Show Latest Video for Each Channel: 只显示每个频道的最新视频
Confirm Before Unsubscribing: 避免意外取消订阅
Privacy Settings:

View File

@ -393,7 +393,6 @@ Settings:
Hide Videos on Watch: '觀看時隱藏影片'
Fetch Feeds from RSS: 從RSS擷取推送
Fetch Automatically: 自動擷取 Feed
Only Show Latest Video for Each Channel: 只顯示每個頻道的最新影片
Confirm Before Unsubscribing: 避免意外取消訂閱
Privacy Settings: