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