2509031757
This commit is contained in:
parent
4da2c98500
commit
bde5dca4ac
@ -119,16 +119,16 @@ namespace DBObj
|
|||||||
|
|
||||||
foreach (var server in Utils.Env.GetSongServers())
|
foreach (var server in Utils.Env.GetSongServers())
|
||||||
{
|
{
|
||||||
var check = IsFtpUriReachable(new Uri(server).ToString());
|
var check = IsFtpUriReachable(new Uri(new Uri(server), filename).ToString());
|
||||||
if (!string.IsNullOrWhiteSpace(server) && check != false)
|
if (!string.IsNullOrWhiteSpace(server) && check != false)
|
||||||
{
|
{
|
||||||
// Console.WriteLine(new Uri(new Uri(server), filename));
|
// Console.WriteLine(new Uri(new Uri(server), filename));
|
||||||
if (IsFtpUriReachable(new Uri(new Uri(server), filename).ToString())) return new Uri(new Uri(server), filename);
|
return new Uri(new Uri(server), filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// throw new InvalidOperationException("No valid server found.");
|
// throw new InvalidOperationException("No valid server found.");
|
||||||
if (!isPublicSong) Console.WriteLine("No valid server found.");
|
if (!isPublicSong) Console.WriteLine("No valid server or file not found.");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user