Commit ca94bce 1 parent 3c3a83e commit ca94bce Copy full SHA for ca94bce
File tree 1 file changed +6
-2
lines changed
src/renderer/views/Channel
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1801,7 +1801,7 @@ export default defineComponent({
1801
1801
const results = contents
1802
1802
. filter ( node => node . type === 'ItemSection' )
1803
1803
. flatMap ( itemSection => itemSection . contents )
1804
- . filter ( item => item . type === 'Video' || item . type === 'Playlist' )
1804
+ . filter ( item => item . type === 'Video' || ( ! this . hideChannelPlaylists && item . type === 'Playlist' ) )
1805
1805
. map ( item => {
1806
1806
if ( item . type === 'Video' ) {
1807
1807
return parseLocalListVideo ( item )
@@ -1847,7 +1847,11 @@ export default defineComponent({
1847
1847
}
1848
1848
1849
1849
invidiousAPICall ( payload ) . then ( ( response ) => {
1850
- this . searchResults = this . searchResults . concat ( response )
1850
+ if ( this . hideChannelPlaylists ) {
1851
+ this . searchResults = this . searchResults . concat ( response . filter ( item => item . type !== 'playlist' ) )
1852
+ } else {
1853
+ this . searchResults = this . searchResults . concat ( response )
1854
+ }
1851
1855
this . isElementListLoading = false
1852
1856
this . searchPage ++
1853
1857
} ) . catch ( ( err ) => {
You can’t perform that action at this time.
0 commit comments