Fix usage when rpc not defined
This commit is contained in:
parent
cdc50adabf
commit
de8b52b260
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue