mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix: some videos disappear on following and subscribed series pages (#786)
This commit is contained in:
@@ -79,8 +79,20 @@ async function initData() {
|
||||
}
|
||||
|
||||
async function getData() {
|
||||
for (let i = 0; i < 3; i++)
|
||||
await getFollowedUsersVideos()
|
||||
if (isLoading.value)
|
||||
return
|
||||
|
||||
emit('beforeLoading')
|
||||
isLoading.value = true
|
||||
|
||||
try {
|
||||
for (let i = 0; i < 3; i++)
|
||||
await getFollowedUsersVideos()
|
||||
}
|
||||
finally {
|
||||
isLoading.value = false
|
||||
emit('afterLoading')
|
||||
}
|
||||
}
|
||||
|
||||
async function getFollowedUsersVideos() {
|
||||
@@ -92,8 +104,6 @@ async function getFollowedUsersVideos() {
|
||||
return
|
||||
}
|
||||
|
||||
emit('beforeLoading')
|
||||
isLoading.value = true
|
||||
try {
|
||||
let i = 0
|
||||
// https://github.com/starknt/BewlyBewly/blob/fad999c2e482095dc3840bb291af53d15ff44130/src/contentScripts/views/Home/components/ForYou.vue#L208
|
||||
@@ -146,8 +156,6 @@ async function getFollowedUsersVideos() {
|
||||
}
|
||||
finally {
|
||||
videoList.value = videoList.value.filter(video => video.item)
|
||||
isLoading.value = false
|
||||
emit('afterLoading')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -64,8 +64,20 @@ async function initData() {
|
||||
}
|
||||
|
||||
async function getData() {
|
||||
for (let i = 0; i < 3; i++)
|
||||
await getFollowedUsersVideos()
|
||||
if (isLoading.value)
|
||||
return
|
||||
|
||||
emit('beforeLoading')
|
||||
isLoading.value = true
|
||||
|
||||
try {
|
||||
for (let i = 0; i < 3; i++)
|
||||
await getFollowedUsersVideos()
|
||||
}
|
||||
finally {
|
||||
isLoading.value = false
|
||||
emit('afterLoading')
|
||||
}
|
||||
}
|
||||
|
||||
function initPageAction() {
|
||||
@@ -96,8 +108,6 @@ async function getFollowedUsersVideos() {
|
||||
return
|
||||
}
|
||||
|
||||
emit('beforeLoading')
|
||||
isLoading.value = true
|
||||
try {
|
||||
let i = 0
|
||||
// https://github.com/starknt/BewlyBewly/blob/fad999c2e482095dc3840bb291af53d15ff44130/src/contentScripts/views/Home/components/ForYou.vue#L208
|
||||
@@ -150,8 +160,6 @@ async function getFollowedUsersVideos() {
|
||||
}
|
||||
finally {
|
||||
videoList.value = videoList.value.filter(video => video.item)
|
||||
isLoading.value = false
|
||||
emit('afterLoading')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user