kiranshila / Doplarr

An *arr request bot for Discord
MIT License
407 stars 30 forks source link

Root folder mapping issue #84

Closed vtyr closed 2 years ago

vtyr commented 2 years ago

Describe the bug When running Doplarr on Windows using Java, setting the rootfolder for Radarr/Sonarr doesn't appear to work. I've tried the following:

 :radarr/rootfolder "H"
 :sonarr/rootfolder "G"

or

 :radarr/rootfolder "H:"
 :sonarr/rootfolder "G:"

Result: User is still asked to choose the rootfolder

Also tried:

 :radarr/rootfolder "H:\"
 :sonarr/rootfolder "G:\"

Result: Application crashes, see image: image

Expected behavior The user is not met with the option to choose a folder for the requested media download, and is instead only asked to pick media and the quality profile.

vtyr commented 2 years ago

Fixed using the below*

 :radarr/rootfolder "H:\\"
 :sonarr/rootfolder "G:\\"
kiranshila commented 2 years ago

Yeah these are C-style strings here, so slashes have to be escaped. I'm glad you got it working!

vtyr commented 2 years ago

Thanks, really well done - nice little app. Would it be possible to update the docs just to explain the above solution a tad? I don't mind doing it if I'm able to (I don't tend to clone/pull on Github, let alone if you can on github.io - I'm an Atlassian user!)

kiranshila commented 2 years ago

Yeah this should certainly be in the docs. They are automatically generated from markdown files in the docs directory, so if you fork and send a PR, all you need to do is add things to https://github.com/kiranshila/Doplarr/blob/main/docs/configuration.md

notsointeresting commented 1 year ago

hello!

I am having a similar issue even though I am trying to implement the solution given.

When:sonarr/rootfolder "H:\\Plex Media\\TV" is used, it still asks users to select a root folder. I have also tried :sonarr/rootfolder "H:\\Plex Media\TV"

any help is appreciated, thanks!