Import without Drone Factory [invalidpath]

I like to let filebot process my files so i have a drone folder everything gets put into with a folder that contains the original name and then the file with the formatted name so all i need is to get the Downloadedepisodescan to work. Right now i have this I paste to powershell

> $url = "http://89.228.238.141:8989/api/command"
> $json = '{"name": "downloadedepisodesscan","path": "D:\utorrent\sonarrdone","importMode":"Move","downloadClientId":"{infohash}"}' 

> Write-Host "Publishing update $version ($branch) to: $url"
> Invoke-RestMethod -Uri $url -Method Post -Body $json -Headers @{"X-Api-Key"="6557deb88ff247f38315f3857824bf32"}

but in sonarr i get this error everytime.

Error occurred while executing task DownloadedEpisodesScan: value [D:/utorrent/sonarrdone] is not a valid Windows path. paths must be a full path eg. C:\Windows
Parameter name: path

I don’t know if it is the correct way to do it but i hope someone can help me finish this because ive tried sickrage when i gave up last time and i Soooooooo prefer sonarr

im on windows 10 and utorrent 3.2.2

hope you guys can help

apikey and ip is not the correct ones

Drone Factory is deprecated and you should pass the path to a single download (either a subfolder with one or more files for a specific download) or the path to a single file.

You may also need to escape the backslashes (with an additional slash) D:\\utorrent\sonarrdone\\folder.name.

thanks for the reply
i haven’t tested it yet I just got home. but the folder it points to only have one folder for the most recent download with release name and the file inside
sorry to hear i need to pass the folder name i have no idea how to do that, any tips

The problem with one folder is if there are multiple new things to import, for example, a couple things complete around the same time and one is being unpacked after you’ve told Sonarr to import something else from that folder then Sonarr could import a partial file.

You’d append the named folder to the end of the path you’re sending to Sonarr (and have the file(s) to import in there).

any tips on how to add the path so you dont have to do it manually everytime?

Not sure what you mean.

What are you doing manually every time?

Your script should send in the full path with the specific job folder name (get the list of folders, then send one command to Sonarr’s API for each).

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.