Date: Mon, 14 Aug 2023 18:45:17 +0200
Subject: [PATCH 28/36] local API: Support Post Live DVR videos (#3872)
---
src/renderer/views/Watch/Watch.js | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js
index a6de6edad6512..12b5c56abeba0 100644
--- a/src/renderer/views/Watch/Watch.js
+++ b/src/renderer/views/Watch/Watch.js
@@ -80,6 +80,7 @@ export default defineComponent({
liveChat: null,
isLiveContent: false,
isUpcoming: false,
+ isPostLiveDvr: false,
upcomingTimestamp: null,
upcomingTimeLeft: null,
activeFormat: 'legacy',
@@ -353,6 +354,7 @@ export default defineComponent({
this.isLive = !!result.basic_info.is_live
this.isUpcoming = !!result.basic_info.is_upcoming
this.isLiveContent = !!result.basic_info.is_live_content
+ this.isPostLiveDvr = !!result.basic_info.is_post_live_dvr
const subCount = !result.secondary_info.owner.subscriber_count.isEmpty() ? parseLocalSubscriberCount(result.secondary_info.owner.subscriber_count.text) : NaN
@@ -418,7 +420,7 @@ export default defineComponent({
result = bypassedResult
}
- if (this.isLive && !this.isUpcoming) {
+ if ((this.isLive || this.isPostLiveDvr) && !this.isUpcoming) {
try {
const formats = await getFormatsFromHLSManifest(result.streaming_data.hls_manifest_url)
@@ -452,6 +454,8 @@ export default defineComponent({
this.showDashPlayer = false
this.activeFormat = 'legacy'
this.activeSourceList = this.videoSourceList
+ this.audioSourceList = null
+ this.dashSrc = null
} else if (this.isUpcoming) {
const upcomingTimestamp = result.basic_info.start_timestamp
@@ -1124,11 +1128,11 @@ export default defineComponent({
},
enableDashFormat: function () {
- if (this.activeFormat === 'dash' || this.isLive) {
+ if (this.activeFormat === 'dash') {
return
}
- if (this.dashSrc === null) {
+ if (this.dashSrc === null || this.isLive || this.isPostLiveDvr) {
showToast(this.$t('Change Format.Dash formats are not available for this video'))
return
}
From 350b53de2b7d9886e0bb97ef20435f0b20c51bd4 Mon Sep 17 00:00:00 2001
From: Rex_sa
Date: Mon, 14 Aug 2023 15:22:52 +0000
Subject: [PATCH 29/36] Translated using Weblate (Arabic)
Currently translated at 100.0% (705 of 705 strings)
Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/ar/
---
static/locales/ar.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/static/locales/ar.yaml b/static/locales/ar.yaml
index c3fa20bf9712a..e29cd44d461bb 100644
--- a/static/locales/ar.yaml
+++ b/static/locales/ar.yaml
@@ -585,6 +585,7 @@ Profile:
Subscription List: قائمة الاشتراكات
Profile Filter: مرشح الملف الشخصي
Profile Settings: إعدادات الملف الشخصي
+ Toggle Profile List: تبديل قائمة الملف الشخصي
Channel:
Subscriber: 'مُشترِك'
Subscribers: 'مُشترِكين'
From 59f1ef4b597a85db2e9d0e5275fea7ce334071a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?O=C4=9Fuz=20Ersen?=
Date: Mon, 14 Aug 2023 16:36:58 +0000
Subject: [PATCH 30/36] Translated using Weblate (Turkish)
Currently translated at 100.0% (705 of 705 strings)
Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/tr/
---
static/locales/tr.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/static/locales/tr.yaml b/static/locales/tr.yaml
index bcba667f5ddf6..a07934dfd00b6 100644
--- a/static/locales/tr.yaml
+++ b/static/locales/tr.yaml
@@ -605,6 +605,7 @@ Profile:
#On Channel Page
Profile Filter: Profil Filtresi
Profile Settings: Profil Ayarları
+ Toggle Profile List: Profil Listesini Aç/Kapat
Channel:
Subscriber: 'Abone'
Subscribers: 'Abone'
From e5146a84f46d43c9007d7da71a773d0d0c96c04b Mon Sep 17 00:00:00 2001
From: Eric
Date: Mon, 14 Aug 2023 22:41:39 +0000
Subject: [PATCH 31/36] Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (705 of 705 strings)
Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/zh_Hans/
---
static/locales/zh-CN.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/static/locales/zh-CN.yaml b/static/locales/zh-CN.yaml
index 50e148ff8a66f..0be54e5ef587d 100644
--- a/static/locales/zh-CN.yaml
+++ b/static/locales/zh-CN.yaml
@@ -819,6 +819,7 @@ Profile:
Subscription List: 订阅列表
Profile Settings: 个人资料设置
Profile Filter: 个人资料筛选器
+ Toggle Profile List: 切换个人资料列表
The playlist has been reversed: 播放列表已反转
A new blog is now available, {blogTitle}. Click to view more: 已有新的博客,{blogTitle}。点击以查看更多
Download From Site: 从网站下载
From b67a8936f8f40c3d2fb6fca3853b283c84c21db4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Priit=20J=C3=B5er=C3=BC=C3=BCt?=
Date: Mon, 14 Aug 2023 20:33:42 +0000
Subject: [PATCH 32/36] Translated using Weblate (Estonian)
Currently translated at 100.0% (705 of 705 strings)
Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/et/
---
static/locales/et.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/static/locales/et.yaml b/static/locales/et.yaml
index 83ff2cbd585b0..9a8abf28ce00c 100644
--- a/static/locales/et.yaml
+++ b/static/locales/et.yaml
@@ -443,7 +443,7 @@ Settings:
Choose Path: Vali asukoht
Download Behavior: Tegevus allalaadimisel
Open in web browser: Ava veebibrauseris
- Download in app: Lae alla rakenduses
+ Download in app: Laadi alla rakenduses
Parental Control Settings:
Parental Control Settings: Vanemliku järelevalve seadistused
Hide Unsubscribe Button: Peida tellimuse tühistamise nupp
@@ -538,6 +538,7 @@ Profile:
#On Channel Page
Profile Filter: Sirvi profiile
Profile Settings: Profiili seadistused
+ Toggle Profile List: Lülita profiilide loend sisse/välja
Channel:
Subscriber: 'Tellija'
Subscribers: 'Tellijad'
From e00d70e8ebd2e05ed83a57974300121de96ad483 Mon Sep 17 00:00:00 2001
From: ovari
Date: Mon, 14 Aug 2023 21:03:20 +0000
Subject: [PATCH 33/36] Translated using Weblate (Hungarian)
Currently translated at 100.0% (705 of 705 strings)
Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/hu/
---
static/locales/hu.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/static/locales/hu.yaml b/static/locales/hu.yaml
index 6a9808c21f75f..0216290408764 100644
--- a/static/locales/hu.yaml
+++ b/static/locales/hu.yaml
@@ -605,6 +605,7 @@ Profile:
#On Channel Page
Profile Filter: Profilszűrő
Profile Settings: Profilbeállítások
+ Toggle Profile List: Profillista be-/kikapcsolása
Channel:
Subscriber: 'Feliratkozó'
Subscribers: 'Feliratkozók'
From 8357a94b18eef8b15abc315f132220c3ebb637b0 Mon Sep 17 00:00:00 2001
From: Fjuro
Date: Mon, 14 Aug 2023 18:49:26 +0000
Subject: [PATCH 34/36] Translated using Weblate (Czech)
Currently translated at 100.0% (705 of 705 strings)
Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/cs/
---
static/locales/cs.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/static/locales/cs.yaml b/static/locales/cs.yaml
index eba4d00822892..451189c8f5797 100644
--- a/static/locales/cs.yaml
+++ b/static/locales/cs.yaml
@@ -588,6 +588,7 @@ Profile:
#On Channel Page
Profile Filter: Filtr profilu
Profile Settings: Nastavení profilu
+ Toggle Profile List: Přepnout seznam profilů
Channel:
Subscriber: 'Odběratel'
Subscribers: 'odběratelů'
From 226e0e17088af571b08067bc3ba98ee8ff8a7f4c Mon Sep 17 00:00:00 2001
From: Ihor Hordiichuk
Date: Mon, 14 Aug 2023 21:56:56 +0000
Subject: [PATCH 35/36] Translated using Weblate (Ukrainian)
Currently translated at 100.0% (705 of 705 strings)
Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/uk/
---
static/locales/uk.yaml | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/static/locales/uk.yaml b/static/locales/uk.yaml
index 0e799f48ff7d6..d1936a7e8058f 100644
--- a/static/locales/uk.yaml
+++ b/static/locales/uk.yaml
@@ -19,7 +19,7 @@ Select all: 'Вибрати все'
Reload: 'Перезавантажити'
Force Reload: 'Примусове перезавантаження'
Toggle Developer Tools: 'Перемкнути інструменти розробника'
-Actual size: 'Фактичний розмір'
+Actual size: 'Дійсний розмір'
Zoom in: 'Збільшити'
Zoom out: 'Зменшити'
Toggle fullscreen: 'Перемкнути повноекранний режим'
@@ -37,10 +37,10 @@ Global:
Live: Наживо
Version {versionNumber} is now available! Click for more details: 'Доступна нова
- версія {versionNumber} ! Натисніть щоб побачити деталі'
+ версія {versionNumber}! Натисніть, щоб переглянути подробиці'
Download From Site: 'Завантажити з сайту'
A new blog is now available, {blogTitle}. Click to view more: 'Доступний новий блог,
- {blogTitle}. Натисніть щоб побачити більше'
+ {blogTitle}. Натисніть, щоб переглянути більше'
# Search Bar
Search / Go to URL: 'Пошук / Перейти по URL'
@@ -51,7 +51,7 @@ Search Filters:
Sort By: 'Впорядковувати за'
Most Relevant: 'Найвідповідніші'
Rating: 'Рейтинг'
- Upload Date: 'Дата вивантаження'
+ Upload Date: 'Час вивантаження'
View Count: 'Кількість переглядів'
Time:
Time: 'Час'
@@ -537,6 +537,7 @@ Profile:
#On Channel Page
Profile Filter: Фільтр профілю
Profile Settings: Налаштування профілю
+ Toggle Profile List: Перемкнути список профілів
Channel:
Subscriber: 'Підписник'
Subscribers: 'Підписники'
From bcc99a1b83b1ac3c7e2799c010617394251426fb Mon Sep 17 00:00:00 2001
From: PikachuEXE
Date: Tue, 15 Aug 2023 09:44:53 +0800
Subject: [PATCH 36/36] ! Fix default playlists added when no playlist stored
had no required attributes added on 1st run
---
src/renderer/store/modules/playlists.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/renderer/store/modules/playlists.js b/src/renderer/store/modules/playlists.js
index e52e1a1ce3f54..91b43c6137109 100644
--- a/src/renderer/store/modules/playlists.js
+++ b/src/renderer/store/modules/playlists.js
@@ -143,7 +143,10 @@ const actions = {
try {
const payload = (await DBPlaylistHandlers.find()).filter((e) => e != null)
if (payload.length === 0) {
- dispatch('addPlaylists', state.defaultPlaylists)
+ // Not using `addPlaylists` to ensure required attributes with dynamic values added
+ state.defaultPlaylists.forEach(playlist => {
+ dispatch('addPlaylist', playlist)
+ })
} else {
payload.forEach((playlist) => {
let anythingUpdated = false