diff --git a/OKP.Core/Interface/TorrentContent.cs b/OKP.Core/Interface/TorrentContent.cs index f1c73f0..785074d 100644 --- a/OKP.Core/Interface/TorrentContent.cs +++ b/OKP.Core/Interface/TorrentContent.cs @@ -96,6 +96,12 @@ public enum ContentTypes public static TorrentContent Build(string filename, string settingFile, string appLocation) { var settingFilePath = settingFile; + + if (Path.GetDirectoryName(filename) == "") + { + filename = Path.Combine(Environment.CurrentDirectory, filename); + } + if (Path.GetDirectoryName(settingFile) == "") { settingFilePath = Path.Combine(Path.GetDirectoryName(filename) ?? "", settingFile);