@@ -105,10 +105,10 @@ impl Client {
105105 let instance = self . instance ( ) ;
106106 tokio:: spawn ( async move { refresh_channels ( instance, ids) . await } ) ;
107107 }
108- IoEvent :: LoadMoreVideos ( id, tab, present_videos) => {
108+ IoEvent :: LoadMoreVideos ( id, tab, present_videos, load_all ) => {
109109 let instance = self . instance ( ) ;
110110 tokio:: spawn ( async move {
111- get_more_videos ( instance, & id, tab, present_videos) . await
111+ get_more_videos ( instance, & id, tab, present_videos, load_all ) . await
112112 } ) ;
113113 }
114114 IoEvent :: FetchFormats ( title, video_id, play_selected) => {
@@ -339,8 +339,9 @@ async fn get_more_videos(
339339 id : & str ,
340340 tab : ChannelTab ,
341341 present : HashSet < String > ,
342+ get_all : bool ,
342343) -> Result < ( ) > {
343- match instance. get_more_videos ( id, tab, present) . await {
344+ match instance. get_more_videos ( id, tab, present, get_all ) . await {
344345 Ok ( feed) => {
345346 if feed. get_videos ( tab) . is_empty ( ) {
346347 emit_msg ! ( warning, "There are no videos to load" ) ;
0 commit comments