@@ -1099,7 +1099,6 @@ async function getChannelVideosLocal() {
1099
1099
}
1100
1100
1101
1101
latestVideos .value = parseLocalChannelVideos (videosTab .videos , id .value , channelName .value )
1102
- .filter (v => ! v .isMemberOnly && ! v .isMemberFirst )
1103
1102
videoContinuationData .value = videosTab .has_continuation ? videosTab : null
1104
1103
isElementListLoading .value = false
1105
1104
}
@@ -1146,7 +1145,6 @@ async function getChannelVideosLocalMore() {
1146
1145
1147
1146
latestVideos .value = latestVideos .value .concat (
1148
1147
parseLocalChannelVideos (continuation .videos , id .value , channelName .value )
1149
- .filter (v => ! v .isMemberOnly && ! v .isMemberFirst )
1150
1148
)
1151
1149
videoContinuationData .value = continuation .has_continuation ? continuation : null
1152
1150
}
@@ -1393,7 +1391,6 @@ async function getChannelLiveLocal() {
1393
1391
}
1394
1392
1395
1393
latestLive .value = parseLocalChannelVideos (videos, id .value , channelName .value )
1396
- .filter (v => ! v .isMemberOnly && ! v .isMemberFirst )
1397
1394
liveContinuationData .value = liveTab .has_continuation ? liveTab : null
1398
1395
isElementListLoading .value = false
1399
1396
@@ -1427,7 +1424,6 @@ async function getChannelLiveLocalMore() {
1427
1424
1428
1425
latestLive .value = latestLive .value .concat (
1429
1426
parseLocalChannelVideos (continuation .videos , id .value , channelName .value )
1430
- .filter (v => ! v .isMemberOnly && ! v .isMemberFirst )
1431
1427
)
1432
1428
liveContinuationData .value = continuation .has_continuation ? continuation : null
1433
1429
} catch (err) {
@@ -2052,18 +2048,18 @@ async function searchChannelLocal() {
2052
2048
contents = result .contents .contents
2053
2049
}
2054
2050
2055
- const results = contents
2051
+ const results = []
2052
+ contents
2056
2053
.filter (node => node .type === ' ItemSection' )
2057
2054
.flatMap (itemSection => itemSection .contents )
2058
- .filter (item => item .type === ' Video' || (! hideChannelPlaylists .value && item .type === ' Playlist' ))
2059
- .map (item => {
2055
+ .forEach (item => {
2060
2056
if (item .type === ' Video' ) {
2061
2057
const video = parseLocalListVideo (item)
2062
2058
if (video .isMemberOnly || video .isMemberFirst ) { return null }
2063
2059
2064
- return video
2065
- } else {
2066
- return parseLocalListPlaylist (item, id .value , channelName .value )
2060
+ results . push ( video)
2061
+ } else if ( ! hideChannelPlaylists . value && item . type === ' Playlist ' ) {
2062
+ results . push ( parseLocalListPlaylist (item, id .value , channelName .value ) )
2067
2063
}
2068
2064
})
2069
2065
.filter (item => item != null )
0 commit comments