Fix usage when rpc not defined

This commit is contained in:
Derek Schmidt 2019-02-23 18:19:03 -07:00
parent cdc50adabf
commit de8b52b260
Signed by: skeh
GPG key ID: 0F5D491793B4035A

View file

@ -184,6 +184,8 @@ def main(config_path='config.json', seen_path='seen.txt', dry_run=False, no_seen
timeout=config['rpc'].get('timeout')
)
default_download_dir = rpc.get_session().download_dir
else:
rpc = None
# Choose the best item
for show, torrents in filtered.items():
item_config = show.getConfig(config)