File tree Expand file tree Collapse file tree
YouTubeMusicAPI/Services/Search Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ async Task<Page<T>> FetchPageAsync<T>(
9797 . Select ( item => item
9898 . Get ( "musicResponsiveListItemRenderer" ) )
9999 . Where ( item => // istg youtube. why tf do u return PODCAST EPISODES in video searches???? now i gotta do that unnecessary extra saftey check
100- categoryTitle == "Episodes" || ! item . SelectIsPodcast ( ) ) // duh no fluent syntax :( "short-circuiting" performance blabla
100+ item . Contains ( "menu" ) && ( categoryTitle == "Episodes" || ! item . SelectIsPodcast ( ) ) ) // duh no fluent syntax :( "short-circuiting" performance blabla
101101 . Select ( item => parse ( item ) )
102102 . ToList ( ) ;
103103
@@ -376,7 +376,7 @@ public async Task<SearchPage> AllAsync(
376376 . Select ( item => item
377377 . Get ( "musicResponsiveListItemRenderer" ) )
378378 . Where ( item => // istg youtube. why tf do u return PODCAST EPISODES in video searches???? now i gotta do that unnecessary extra saftey check
379- categoryTitle == "Episodes" || ! item . SelectIsPodcast ( ) ) // duh no fluent syntax >:( "short-circuiting" performance blabla
379+ item . Contains ( "menu" ) && ( categoryTitle == "Episodes" || ! item . SelectIsPodcast ( ) ) ) // duh no fluent syntax >:( "short-circuiting" performance blabla
380380 . Select ( parse ) ;
381381 } )
382382 . Where ( Syntax . IsNotNull )
You can’t perform that action at this time.
0 commit comments