Ejemplo n.º 1
0
def clean_all():
    aria2.remove_all(True)
    get_client().torrents_delete(torrent_hashes="all", delete_files=True)
    try:
        shutil.rmtree(DOWNLOAD_DIR)
    except FileNotFoundError:
        pass
Ejemplo n.º 2
0
def exit_clean_up(signal, frame):
    try:
        LOGGER.info("Please wait, while we clean up the downloads and stop running downloads")
        aria2.remove_all(True)
        shutil.rmtree(DOWNLOAD_DIR)
        sys.exit(0)
    except KeyboardInterrupt:
        LOGGER.warning("Force Exiting before the cleanup finishes!")
        sys.exit(1)
Ejemplo n.º 3
0
def clean_all():
    aria2.remove_all(True)
    qbc = get_client()
    qbc.torrents_delete(torrent_hashes="all", delete_files=True)
    qbc.app_shutdown()
    try:
        rmtree(DOWNLOAD_DIR)
    except FileNotFoundError:
        pass
Ejemplo n.º 4
0
def clean_all():
    aria2.remove_all(True)
    shutil.rmtree(DOWNLOAD_DIR)
Ejemplo n.º 5
0
def clean_all():
    aria2.remove_all(True)
    try:
        shutil.rmtree(DOWNLOAD_DIR)
    except FileNotFoundError:
        pass
Ejemplo n.º 6
0
def clean_all():
    aria2.remove_all(True)
    start_cleanup()
Ejemplo n.º 7
0
def clean_all():
    aria2.remove_all(True)