def _write_default_config(self): if util.check_in_path('aria2c'): DEFAULT_CONFIG['dl']['external_downloader'] = '{aria2}' else: raise ( "Aria2 is not in path. Please follow installation instructions: https://github.com/vn-ki/anime-downloader/wiki/Installation" ) self._write_config(DEFAULT_CONFIG)
def cli(log_level): """Anime Downloader Download or watch your favourite anime """ if not util.check_in_path('aria2c'): raise RuntimeError( "Aria2 is not in path. Please follow installation instructions: https://github.com/vn-ki/anime-downloader/wiki/Installation" ) util.setup_logger(log_level)
def _write_default_config(self): if util.check_in_path('aria2c'): DEFAULT_CONFIG['dl']['external_downloader'] = '{aria2}' self._write_config(DEFAULT_CONFIG)
def test_check_in_path_not_exists(): assert not util.check_in_path('someAppI_madeUp')
def test_check_in_path_exists(): assert util.check_in_path('ls')