diff --git a/cistern/cistern.py b/cistern/cistern.py index 84a970d..ee7e6eb 100755 --- a/cistern/cistern.py +++ b/cistern/cistern.py @@ -87,6 +87,7 @@ def refresh_feed(feed, downloaded=False): def cistern(): click.clear() + failed_torrents = [] for feed in Feed.select().where(Feed.enabled == True): refresh_feed(feed) click.echo('Downloading torrents:') @@ -113,9 +114,13 @@ def cistern(): tremote.add_torrent(torrent.url, **transmission_args) torrent.set_downloaded() except transmissionrpc.error.TransmissionError: - click.echo("Saving " + torrent.name + " for later") + failed_torrents.append(torrent.name) else: click.echo("No torrents to download in this feed") + if failed_torrents: + click.echo("Failed to download torrents. Saving to download later:", err=True) + for torrent_name in failed_torrents: + click.echo(torrent_name, err=True) # COMMAND LINE diff --git a/setup.py b/setup.py index 787f48d..dfce75b 100755 --- a/setup.py +++ b/setup.py @@ -3,14 +3,14 @@ setup( name="cistern", - version="0.1.2", + version="0.1.3", license="MIT", url="https://github.com/archangelic/cistern", description="Command line tool for downloading torrents from RSS feeds.", author="Michael Hancock", author_email="michaelhancock89@gmail.com", download_url=( - "https://github.com/archangelic/cistern/archive/v0.1.2.tar.gz" + "https://github.com/archangelic/cistern/archive/v0.1.3.tar.gz" ), install_requires=[ 'click',