This commit is contained in:
		
							parent
							
								
									f7397e817f
								
							
						
					
					
						commit
						80334a6484
					
				
							
								
								
									
										14
									
								
								Program.cs
								
								
								
								
							
							
						
						
									
										14
									
								
								Program.cs
								
								
								
								
							| 
						 | 
				
			
			@ -232,43 +232,43 @@ namespace youtube_downloader
 | 
			
		|||
                        break;
 | 
			
		||||
                }
 | 
			
		||||
            
 | 
			
		||||
            return 0;
 | 
			
		||||
            return 1;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private static int RunMoveQueue(MoveQueue opts)
 | 
			
		||||
        {
 | 
			
		||||
            Server.Functions.Downloader.ModQueue(opts.MoveTo, opts.MoveFrom);
 | 
			
		||||
            return 0;
 | 
			
		||||
            return 1;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private static int RunDownloadUser(DownloadUser opts)
 | 
			
		||||
        {
 | 
			
		||||
            Server.Functions.Downloader.DownloadUser(opts.Id, opts.Format);
 | 
			
		||||
            return 0;
 | 
			
		||||
            return 1;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private static int RunExitApp(ExitApp opts)
 | 
			
		||||
        {
 | 
			
		||||
            Environment.Exit(0);
 | 
			
		||||
            return 0;
 | 
			
		||||
            return 1;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private static int RunDownloadVideo(DownloadVideo opts)
 | 
			
		||||
        {
 | 
			
		||||
            Server.Functions.Downloader.DownloadVideo(opts.Id, opts.Format);
 | 
			
		||||
            return 0;
 | 
			
		||||
            return 1;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private static int RunDownloadPlaylist(DownloadPlaylist opts)
 | 
			
		||||
        {
 | 
			
		||||
            Server.Functions.Downloader.DownloadPlaylist(opts.Id, opts.Format);
 | 
			
		||||
            return 0;
 | 
			
		||||
            return 1;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private static int RunDownloadChannel(DownloadChannel opts)
 | 
			
		||||
        {
 | 
			
		||||
            Server.Functions.Downloader.DownloadChannel(opts.Id, opts.Format);
 | 
			
		||||
            return 0;
 | 
			
		||||
            return 1;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue