mirror of
https://github.com/fiso64/slsk-batchdl.git
synced 2024-12-22 14:32:40 +00:00
fix special characters at the end of folder name
This commit is contained in:
parent
64c65ee687
commit
088350814f
1 changed files with 3 additions and 2 deletions
|
@ -803,7 +803,7 @@ static class Program
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
folderName = ReplaceInvalidChars(folderName, " ");
|
folderName = ReplaceInvalidChars(folderName, " ").Trim();
|
||||||
|
|
||||||
outputFolder = Path.Combine(parentFolder, folderName);
|
outputFolder = Path.Combine(parentFolder, folderName);
|
||||||
|
|
||||||
|
@ -1170,7 +1170,7 @@ static class Program
|
||||||
await DownloadFile(x.response, x.file, saveFilePath, track, progress);
|
await DownloadFile(x.response, x.file, saveFilePath, track, progress);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
catch
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
downloading = false;
|
downloading = false;
|
||||||
if (!client.State.HasFlag(SoulseekClientStates.LoggedIn))
|
if (!client.State.HasFlag(SoulseekClientStates.LoggedIn))
|
||||||
|
@ -1179,6 +1179,7 @@ static class Program
|
||||||
if (--maxRetriesPerTrack <= 0)
|
if (--maxRetriesPerTrack <= 0)
|
||||||
{
|
{
|
||||||
RefreshOrPrint(progress, 0, $"Out of download retries: {track}, skipping", true);
|
RefreshOrPrint(progress, 0, $"Out of download retries: {track}, skipping", true);
|
||||||
|
WriteLine("Last error was: " + e.Message, ConsoleColor.DarkYellow, true);
|
||||||
throw new SearchAndDownloadException("Out of download retries");
|
throw new SearchAndDownloadException("Out of download retries");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue