Sonarr version (exact version): 2.0.0.4949 Mono version (if Sonarr is not running on Windows): OS: Windows 7 ((Debug logs)): () Description of issue:
I have this error with some torrents downloading and CDL is failing to read the correct path.
No files found are eligible for import in C:\Sonarr\StartUp.2016.S02E03.WEB.x264-TBS[rarbg]\StartUp.2016.S02E03.WEB.x264-TBS[rartv]
This is the error in the log file:
Import failed, path does not exist or is not accessible by Sonarr: C:\Sonarr\StartUp.2016.S02E03.WEB.x264-TBS[rarbg]\StartUp.2016.S02E03.WEB.x264-TBS[rartv]
Its not limited to a certain release group, but I think most of the time the problem ones do come from rartv or rarbg. Some downloads work fine and import correctly.
I have to manually import them by going through ‘Wanted’.
When I try to manual import them from the Activity screen I get this error:
Manual Import - StartUp.2016.S02E03.WEB.X264-TBS[Rartv]
No video files were found in the selected folder.
I think it has to do with StartUp.2016.S02E03.WEB.x264-TBS[rarbg] vs StartUp.2016.S02E03.WEB.x264-TBS[rartv], looks like Sonarr is forced to guess whether it’s been given a folder or a file and uses the output path’s filename and and the torrent name and because those differ I believe it’s appending the torrent name to the path and Sonarr can’t locate the files.
((Trace logs)) will confirm my suspicions, the best way would be to enable trace logging, clear the existing log files then restart Sonarr, which will connect to Vuze and process the items. If you can grab the logs after a few minutes and zip them up (if there is more than one file) and post them, I can take a look.
If Sonarr is treating it as a file it will log Vuze output file: otherwise it will log Vuze output directory: (plus the path).
@markus101 The releasename on the site is with rartv, but if you inspect the torrent you’ll see rarbg. I think vuze uses the name in the torrent file metadata as folder name, instead of the releasename we supply.
Solution would probably be to extract the name from the torrent file, but I think we normally use magnets, making that impossible to do reliably.
Vuze supplies a ‘downloadDir’ which is technically correct, but has different implications in single vs multi downloads. Ideally we’d work with Vuze to fix that ambiguity.
There might be another api available in Vuze to get the filelist of the download, we just prefer not to do additional api calls coz at this point in the process we don’t know if we’re even going to import anything.
One way to remedy those additional api calls would be to begin with the TransferProviders framework, exposing an abstraction (virtual filesystem of the download, and only the download) instead of a ‘path to file or directory, good luck’.
The abstraction would use lazy/deferred api calls to vuze to get the file list, and would be a stepping stone to on the fly unrar, async transfers, etc.