Skip to content

Commit 9791c4c

Browse files
**Release 0.23.1.10**
This release brings the app up to date with upstream release [0.23.1](https://github.com/FreeTubeApp/FreeTube/releases/tag/v0.23.1-beta). ... **Full Changelog**: 0.23.0.9...0.23.1.10
2 parents 092a504 + 2095543 commit 9791c4c

File tree

6 files changed

+37
-93
lines changed

6 files changed

+37
-93
lines changed

_scripts/releaseAndroid.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const { writeFile, rm, readFile } = require('fs/promises')
7777
// message is in given arguments (a file was passed that needs to be read)
7878
givenArguments.message = await readFile(givenArguments.message)
7979
}
80-
const commitMessage = `**Release ${buildNumber}**
80+
const commitMessage = `**Release ${versionNumber}**
8181
8282
${givenArguments.message}
8383

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "freetube",
33
"productName": "FreeTube",
44
"description": "A private YouTube client",
5-
"version": "0.23.0",
5+
"version": "0.23.1",
66
"license": "AGPL-3.0-or-later",
77
"main": "./dist/main.js",
88
"private": true,

src/renderer/components/CommentSection/CommentSection.vue

+11-1
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ const nextPageToken = shallowRef(null)
363363
// we need to react to new replies and showReplies being toggled
364364
const commentData = ref([])
365365
366+
/** @type {import('youtubei.js').YT.Comments | undefined} */
367+
let localCommentsInstance
368+
366369
/** @type {import('vue').ComputedRef<'local' | 'invidious'>} */
367370
const backendPreference = computed(() => {
368371
return store.getters.getBackendPreference
@@ -538,8 +541,13 @@ async function getCommentDataLocal(more = false) {
538541
let comments
539542
if (more) {
540543
comments = await nextPageToken.value.getContinuation()
544+
} else if (localCommentsInstance) {
545+
comments = await localCommentsInstance.applySort(sortNewest.value ? 'NEWEST_FIRST' : 'TOP_COMMENTS')
546+
localCommentsInstance = comments
541547
} else {
542-
comments = await getLocalComments(props.id, sortNewest.value)
548+
comments = await getLocalComments(props.id)
549+
sortNewest.value = comments.header?.sort_menu?.sub_menu_items?.[1].selected ?? false
550+
localCommentsInstance = comments
543551
}
544552
545553
const parsedComments = comments.contents
@@ -575,6 +583,7 @@ async function getCommentDataLocal(more = false) {
575583
nextPageToken.value = null
576584
isLoading.value = false
577585
showComments.value = true
586+
localCommentsInstance = undefined
578587
return
579588
}
580589
// endregion No comment detection
@@ -585,6 +594,7 @@ async function getCommentDataLocal(more = false) {
585594
copyToClipboard(err)
586595
})
587596
if (backendFallback.value && backendPreference.value === 'local') {
597+
localCommentsInstance = undefined
588598
showToast(t('Falling back to Invidious API'))
589599
getCommentDataInvidious()
590600
} else {

src/renderer/helpers/api/local.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,10 @@ export async function getLocalVideoInfo(id) {
306306

307307
/**
308308
* @param {string} id
309-
* @param {boolean | undefined} sortByNewest
310309
*/
311-
export async function getLocalComments(id, sortByNewest = false) {
310+
export async function getLocalComments(id) {
312311
const innertube = await createInnertube()
313-
return innertube.getComments(id, sortByNewest ? 'NEWEST_FIRST' : 'TOP_COMMENTS')
312+
return innertube.getComments(id)
314313
}
315314

316315
// I know `type & type` is typescript syntax and not valid jsdoc but I couldn't get @extends or @augments to work

static/locales/pt-BR.yaml

+21-4
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ User Playlists:
199199
This playlist has a video with a duration error: Esta playlist contém pelo menos
200200
um vídeo que não tem duração, ela será classificada como se sua duração fosse
201201
zero.
202+
Video has been removed. Click here to undo.: O vídeo foi removido. Clique aqui
203+
para desfazer.
202204
Search for Videos: Pesquisar vídeos
203205
AddVideoPrompt:
204206
Toast:
@@ -392,11 +394,11 @@ Settings:
392394
Hide FreeTube Header Logo: Ocultar logotipo FreeTube na barra superior
393395
Player Settings:
394396
Player Settings: 'Player'
395-
Play Next Video: 'Reproduzir próximo vídeo'
397+
Play Next Video: 'Reprodução automática de vídeos recomendados'
396398
Turn on Subtitles by Default: 'Ativar legendas por padrão'
397-
Autoplay Videos: 'Reprodução automática de vídeos'
399+
Autoplay Videos: 'Iniciar reprodução dos vídeos automaticamente'
398400
Proxy Videos Through Invidious: 'Usar o Invidious como proxy'
399-
Autoplay Playlists: 'Reprodução automática das playlists'
401+
Autoplay Playlists: 'Reprodução automática dos vídeos da playlist'
400402
Enable Theatre Mode by Default: 'Habilitar "Modo Teatro" por padrão'
401403
Default Volume: 'Volume padrão'
402404
Default Playback Rate: 'Velocidade de reprodução'
@@ -445,6 +447,12 @@ Settings:
445447
para o modo paisagem
446448
Skip by Scrolling Over Video Player: Pular vídeo ao rolar sobre o player
447449
Autoplay Interruption Timer: Temporizador de interrupção para reprodução automática
450+
Default Viewing Mode:
451+
Theater: Teatro
452+
Default Viewing Mode: Modo de visualização padrão
453+
Full Screen: Tela cheia
454+
Picture in Picture: Picture in Picture (PiP)
455+
External Player: Player externo ({externalPlayerName})
448456
Subscription Settings:
449457
Subscription Settings: 'Inscrições'
450458
Hide Videos on Watch: 'Ocultar vídeos após assisti-los'
@@ -465,7 +473,7 @@ Settings:
465473
limpar o cache de buscas?
466474
Clear Search Cache: Limpar cache de buscas
467475
Save Watched Progress: Habilitar histórico de exibição
468-
Remember History: Lembrar histórico
476+
Remember History: Lembrar histórico de exibição
469477
Privacy Settings: Privacidade
470478
Are you sure you want to remove all subscriptions and profiles? This cannot be undone.: Tem
471479
certeza de que deseja remover todas as inscrições e perfis? Isto não pode ser
@@ -477,6 +485,12 @@ Settings:
477485
Are you sure you want to remove all your playlists?: Tem certeza de que deseja
478486
remover todas as suas playlists?
479487
Remove All Playlists: Remover todas as playlists
488+
Remember Search History: Lembrar histórico de buscas
489+
Clear Search History and Cache: Limpar histórico de pesquisa e o cache
490+
Search history and cache have been cleared: O histórico de pesquisa e o cache
491+
foram removidos
492+
Are you sure you want to clear out your search history and cache?: Tem certeza
493+
de que deseja limpar o histórico de pesquisa e o cache?
480494
Data Settings:
481495
Subscriptions have been successfully exported: Inscrições foram exportadas com
482496
sucesso
@@ -872,6 +886,8 @@ Video:
872886
TranslatedCaptionTemplate: '{language} (traduzido do "{originalLanguage}")'
873887
Show Stats: Mostrar estatísticas
874888
Exit Full Window: Sair do preenchimento de janela
889+
Autoplay is off: A reprodução automática está desativada
890+
Autoplay is on: A reprodução automática está ativada
875891
IP block: O YouTube bloqueou seu endereço IP para assistir a vídeos. Tente mudar
876892
para uma VPN ou proxy diferente.
877893
Unlisted: Não listado
@@ -1273,3 +1289,4 @@ KeyboardShortcutPrompt:
12731289
Reset Zoom: Redefinir o nível de zoom / Escala da Interface do Usuário
12741290
Next Chapter: Próximo capítulo
12751291
Skip by Tenths: Pular vídeo por porcentagem (3 pulos até 30% da duração)
1292+
shortcutLabelSeparator:

yarn.lock

+1-83
Original file line numberDiff line numberDiff line change
@@ -793,11 +793,6 @@
793793
resolved "https://registry.yarnpkg.com/@bufbuild/protobuf/-/protobuf-2.2.3.tgz#9cd136f6b687e63e9b517b3a54211ece942897ee"
794794
integrity sha512-tFQoXHJdkEOSwj5tRIZSPNUuXK3RaR7T1nUrPgbYX1pUbvqqaaZAsfo+NXBPsz5rZMSKVFrgK1WL8Q/MSLvprg==
795795

796-
797-
version "1.5.0"
798-
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
799-
integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==
800-
801796
"@csstools/css-parser-algorithms@^3.0.1", "@csstools/css-parser-algorithms@^3.0.4":
802797
version "3.0.4"
803798
resolved "https://registry.yarnpkg.com/@csstools/css-parser-algorithms/-/css-parser-algorithms-3.0.4.tgz#74426e93bd1c4dcab3e441f5cc7ba4fb35d94356"
@@ -2311,18 +2306,6 @@ async-exit-hook@^2.0.1:
23112306
resolved "https://registry.yarnpkg.com/async-exit-hook/-/async-exit-hook-2.0.1.tgz#8bd8b024b0ec9b1c01cccb9af9db29bd717dfaf3"
23122307
integrity sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==
23132308

2314-
2315-
version "3.2.3"
2316-
resolved "https://registry.yarnpkg.com/async/-/async-3.2.3.tgz#ac53dafd3f4720ee9e8a160628f18ea91df196c9"
2317-
integrity sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==
2318-
2319-
async@^2.6.4:
2320-
version "2.6.4"
2321-
resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221"
2322-
integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==
2323-
dependencies:
2324-
lodash "^4.17.14"
2325-
23262309
async@^3.2.3:
23272310
version "3.2.6"
23282311
resolved "https://registry.yarnpkg.com/async/-/async-3.2.6.tgz#1b0728e14929d51b85b449b7f06e27c1145e38ce"
@@ -2844,11 +2827,6 @@ colorette@^2.0.10, colorette@^2.0.14:
28442827
resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a"
28452828
integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==
28462829

2847-
2848-
version "1.0.3"
2849-
resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b"
2850-
integrity sha512-pFGrxThWcWQ2MsAz6RtgeWe4NK2kUE1WfsrvvlctdII745EW9I0yflqhe7++M5LEc7bV2c/9/5zc8sFcpL0Drw==
2851-
28522830
combined-stream@^1.0.8:
28532831
version "1.0.8"
28542832
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f"
@@ -3186,11 +3164,6 @@ csstype@^3.1.0:
31863164
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81"
31873165
integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==
31883166

3189-
3190-
version "1.0.3"
3191-
resolved "https://registry.yarnpkg.com/cycle/-/cycle-1.0.3.tgz#21e80b2be8580f98b468f379430662b046c34ad2"
3192-
integrity sha512-TVF6svNzeQCOpjCqsy0/CSy8VgObG3wXusJ73xW2GbG5rGx7lC8zxDSURicsXI2UsGdi2L0QNRCi745/wUDvsA==
3193-
31943167
data-view-buffer@^1.0.2:
31953168
version "1.0.2"
31963169
resolved "https://registry.yarnpkg.com/data-view-buffer/-/data-view-buffer-1.0.2.tgz#211a03ba95ecaf7798a8c7198d79536211f88570"
@@ -4238,11 +4211,6 @@ extsprintf@^1.2.0:
42384211
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07"
42394212
integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==
42404213

4241-
4242-
version "0.1.8"
4243-
resolved "https://registry.yarnpkg.com/eyes/-/eyes-0.1.8.tgz#62cf120234c683785d902348a800ef3e0cc20bc0"
4244-
integrity sha512-GipyPsXO1anza0AOZdy69Im7hGFCNB7Y/NGjDlZGJ3GJJLtwNSb2vrzYrTYJRrRloVx7pl+bhUaTB8yiccPvFQ==
4245-
42464214
fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
42474215
version "3.1.3"
42484216
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
@@ -5461,11 +5429,6 @@ isobject@^3.0.1:
54615429
resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
54625430
integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==
54635431

5464-
5465-
version "0.1.2"
5466-
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
5467-
integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==
5468-
54695432
iterator.prototype@^1.1.4:
54705433
version "1.1.4"
54715434
resolved "https://registry.yarnpkg.com/iterator.prototype/-/iterator.prototype-1.1.4.tgz#4ae6cf98b97fdc717b7e159d79dc25f8fc9482f1"
@@ -5857,7 +5820,7 @@ lodash.uniq@^4.5.0:
58575820
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
58585821
integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==
58595822

5860-
lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.21:
5823+
lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.21:
58615824
version "4.17.21"
58625825
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
58635826
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
@@ -6225,11 +6188,6 @@ multicast-dns@^7.2.5:
62256188
dns-packet "^5.2.2"
62266189
thunky "^1.0.2"
62276190

6228-
mute-stream@~0.0.4:
6229-
version "0.0.8"
6230-
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d"
6231-
integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==
6232-
62336191
nanoid@^3.3.8:
62346192
version "3.3.8"
62356193
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.8.tgz#b1be3030bee36aaff18bacb375e5cce521684baf"
@@ -7115,17 +7073,6 @@ promise-retry@^2.0.1:
71157073
err-code "^2.0.2"
71167074
retry "^0.12.0"
71177075

7118-
prompt@^1.3.0:
7119-
version "1.3.0"
7120-
resolved "https://registry.yarnpkg.com/prompt/-/prompt-1.3.0.tgz#b1f6d47cb1b6beed4f0660b470f5d3ec157ad7ce"
7121-
integrity sha512-ZkaRWtaLBZl7KKAKndKYUL8WqNT+cQHKRZnT4RYYms48jQkFw3rrBL+/N5K/KtdEveHkxs982MX2BkDKub2ZMg==
7122-
dependencies:
7123-
"@colors/colors" "1.5.0"
7124-
async "3.2.3"
7125-
read "1.0.x"
7126-
revalidator "0.1.x"
7127-
winston "2.x"
7128-
71297076
prop-types@^15.8.1:
71307077
version "15.8.1"
71317078
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
@@ -7246,13 +7193,6 @@ read-pkg@^5.2.0:
72467193
parse-json "^5.0.0"
72477194
type-fest "^0.6.0"
72487195

7249-
7250-
version "1.0.7"
7251-
resolved "https://registry.yarnpkg.com/read/-/read-1.0.7.tgz#b3da19bd052431a97671d44a42634adf710b40c4"
7252-
integrity sha512-rSOKNYUmaxy0om1BNjMN4ezNT6VKK+2xF4GBhc81mkH7L60i6dp8qPYrkndNLT3QPphoII3maL9PVC9XmhHwVQ==
7253-
dependencies:
7254-
mute-stream "~0.0.4"
7255-
72567196
readable-stream@^2.0.1:
72577197
version "2.3.8"
72587198
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b"
@@ -7491,11 +7431,6 @@ reusify@^1.0.4:
74917431
resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"
74927432
integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==
74937433

7494-
7495-
version "0.1.8"
7496-
resolved "https://registry.yarnpkg.com/revalidator/-/revalidator-0.1.8.tgz#fece61bfa0c1b52a206bd6b18198184bdd523a3b"
7497-
integrity sha512-xcBILK2pA9oh4SiinPEZfhP8HfrB/ha+a2fTMyl7Om2WjlDVrOQy99N2MXXlUHqGJz4qEu2duXxHJjDWuK/0xg==
7498-
74997434
rimraf@^3.0.2:
75007435
version "3.0.2"
75017436
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
@@ -8011,11 +7946,6 @@ stable-hash@^0.0.4:
80117946
resolved "https://registry.yarnpkg.com/stable-hash/-/stable-hash-0.0.4.tgz#55ae7dadc13e4b3faed13601587cec41859b42f7"
80127947
integrity sha512-LjdcbuBeLcdETCrPn9i8AYAZ1eCtu4ECAWtP7UleOiZ9LzVxRzzUZEoZ8zB24nhkQnDWyET0I+3sWokSDS3E7g==
80137948

8014-
8015-
version "0.0.10"
8016-
resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0"
8017-
integrity sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==
8018-
80197949
stat-mode@^1.0.0:
80207950
version "1.0.0"
80217951
resolved "https://registry.yarnpkg.com/stat-mode/-/stat-mode-1.0.0.tgz#68b55cb61ea639ff57136f36b216a291800d1465"
@@ -9029,18 +8959,6 @@ wildcard@^2.0.1:
90298959
resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-2.0.1.tgz#5ab10d02487198954836b6349f74fff961e10f67"
90308960
integrity sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==
90318961

9032-
9033-
version "2.4.7"
9034-
resolved "https://registry.yarnpkg.com/winston/-/winston-2.4.7.tgz#5791fe08ea7e90db090f1cb31ef98f32531062f1"
9035-
integrity sha512-vLB4BqzCKDnnZH9PHGoS2ycawueX4HLqENXQitvFHczhgW2vFpSOn31LZtVr1KU8YTw7DS4tM+cqyovxo8taVg==
9036-
dependencies:
9037-
async "^2.6.4"
9038-
colors "1.0.x"
9039-
cycle "1.0.x"
9040-
eyes "0.1.x"
9041-
isstream "0.1.x"
9042-
stack-trace "0.0.x"
9043-
90448962
word-wrap@^1.2.5:
90458963
version "1.2.5"
90468964
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34"

0 commit comments

Comments
 (0)