Make suggested changes

Co-Authored-By: Emma <MarmadileManteater@proton.me>
Co-Authored-By: Jason <84899178+jasonhenriquez@users.noreply.github.com>
This commit is contained in:
ChunkyProgrammer 2024-04-17 21:39:37 -04:00
parent f0733a7662
commit 742a390fd8
4 changed files with 9 additions and 5 deletions

View File

@ -20,7 +20,7 @@
</a>
</div>
<div
v-else
v-else-if="backendType === 'invidious'"
>
<a
href="https://api.invidious.io"

View File

@ -317,6 +317,10 @@ export default defineComponent({
return require('../../assets/img/thumbnail_placeholder.svg')
}
if (this.useDeArrowThumbnails && this.deArrowCache?.thumbnail != null) {
return this.deArrowCache.thumbnail
}
let baseUrl = ''
let backendPreference = this.backendPreference
if (backendPreference === 'piped') {

View File

@ -180,7 +180,7 @@ export default defineComponent({
showToast(this.$t('Falling back to Piped API'))
this.getTrendingInfoPiped()
} else if (process.env.SUPPORTS_LOCAL_API && this.fallbackPreference === 'local') {
showToast(this.$t('Falling back to local API'))
showToast(this.$t('Falling back to Local API'))
this.getTrendingInfoLocal()
}
} else {
@ -218,7 +218,7 @@ export default defineComponent({
showToast(this.$t('Falling back to Invidious API'))
this.getTrendingInfoInvidious()
} else if (process.env.IS_ELECTRON && this.fallbackPreference === 'local') {
showToast(this.$t('Falling back to local API'))
showToast(this.$t('Falling back to Local API'))
this.getTrendingInfoLocal()
}
} else {

View File

@ -956,9 +956,9 @@ Up Next: Up Next
#Tooltips
Tooltips:
General Settings:
Preferred API Backend: Choose the backend that FreeTube uses to obtain data. The
Preferred API Backend: "Choose the backend that FreeTube uses to obtain data. The
local API is a built-in extractor. The Invidious API requires an Invidious server
to connect to. The Piped API requires a Piped server to connect to.
to connect to. The Piped API requires a Piped server to connect to and FreeTube currently only supports: playlists, comments and trending from Piped."
Fallback to Non-Preferred Backend on Failure: When your preferred API has a problem,
FreeTube will automatically attempt to use your non-preferred API as a fallback
method when enabled.