rogerfar / rdt-client

Real-Debrid Client Proxy
MIT License
853 stars 110 forks source link

Bug in SymlinkDownloader with subdirectory search enabled #476

Closed pettytreebroker closed 5 months ago

pettytreebroker commented 5 months ago

file is never set in this loop:

https://github.com/rogerfar/rdt-client/blob/5cf73e97af473040efe923bbc821b4e9811e7dde/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs#L99-L102

Should be something like:

foreach (var subDirectory in subDirectories)
{
    file = FindFile(Path.Combine(rcloneMountPath, subDirectory), potentialFilePaths, fileName);
    if (file != null) {
        break;
    }
}
rogerfar commented 5 months ago

Well that would sure help yes!

rogerfar commented 5 months ago

Fixed in .75