예제 #1
0
 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)
예제 #2
0
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)
예제 #3
0
 def _write_default_config(self):
     if util.check_in_path('aria2c'):
         DEFAULT_CONFIG['dl']['external_downloader'] = '{aria2}'
     self._write_config(DEFAULT_CONFIG)
예제 #4
0
def test_check_in_path_not_exists():
    assert not util.check_in_path('someAppI_madeUp')
예제 #5
0
def test_check_in_path_exists():
    assert util.check_in_path('ls')