theres a python script in there, you should be able to rewrite it to do an import
theres also a python sonarr api wrapper you may be able to use