mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-11-22 01:45:40 +01:00
Merge 77454f02e2
into a70a5c6ab2
This commit is contained in:
commit
89ffc1e56e
@ -399,7 +399,18 @@ export default defineComponent({
|
||||
try {
|
||||
const response = await invidiousFetch(feedUrl)
|
||||
|
||||
if (response.status === 500 || response.status === 404) {
|
||||
if (response.status === 404) {
|
||||
// playlists don't exist if the channel was terminated but also if it doesn't have the tab,
|
||||
// so we need to check the channel feed too before deciding it errored, as that only 404s if the channel was terminated
|
||||
|
||||
const response2 = await fetch(`${this.currentInvidiousInstance}/feed/channel/${channel.id}`, {
|
||||
method: 'GET'
|
||||
})
|
||||
|
||||
if (response2.status === 404) {
|
||||
this.errorChannels.push(channel)
|
||||
}
|
||||
|
||||
return {
|
||||
videos: []
|
||||
}
|
||||
|
@ -275,7 +275,18 @@ export default defineComponent({
|
||||
try {
|
||||
const response = await invidiousFetch(feedUrl)
|
||||
|
||||
if (response.status === 500 || response.status === 404) {
|
||||
if (response.status === 404) {
|
||||
// playlists don't exist if the channel was terminated but also if it doesn't have the tab,
|
||||
// so we need to check the channel feed too before deciding it errored, as that only 404s if the channel was terminated
|
||||
|
||||
const response2 = await fetch(`${this.currentInvidiousInstance}/feed/channel/${channel.id}`, {
|
||||
method: 'GET'
|
||||
})
|
||||
|
||||
if (response2.status === 404) {
|
||||
this.errorChannels.push(channel)
|
||||
}
|
||||
|
||||
return {
|
||||
videos: []
|
||||
}
|
||||
|
@ -401,8 +401,18 @@ export default defineComponent({
|
||||
try {
|
||||
const response = await invidiousFetch(feedUrl)
|
||||
|
||||
if (response.status === 500 || response.status === 404) {
|
||||
this.errorChannels.push(channel)
|
||||
if (response.status === 404) {
|
||||
// playlists don't exist if the channel was terminated but also if it doesn't have the tab,
|
||||
// so we need to check the channel feed too before deciding it errored, as that only 404s if the channel was terminated
|
||||
|
||||
const response2 = await fetch(`${this.currentInvidiousInstance}/feed/channel/${channel.id}`, {
|
||||
method: 'GET'
|
||||
})
|
||||
|
||||
if (response2.status === 404) {
|
||||
this.errorChannels.push(channel)
|
||||
}
|
||||
|
||||
return {
|
||||
videos: []
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user