After calling add_torrent() with a non-torrent file:
KeyError: 'transfer'
The docs state the transfer field is optional:
If the file is a torrent file, a transfer object is returned
I believe the lib should not return the field if it's missing (not throw) or otherwise allow handling of torrent files that have been rejected by put.io backend.
After calling
add_torrent()
with a non-torrent file:The docs state the
transfer
field is optional:I believe the lib should not return the field if it's missing (not throw) or otherwise allow handling of torrent files that have been rejected by put.io backend.
See also datashaman/putio-automator#15