Skip to content

Commit

Permalink
Update Download.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShujianDou authored Aug 22, 2020
1 parent c55ed50 commit aac8a23
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions CS/Sites/VidStreaming/Download.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,21 @@ public static class Download
public static void StartDownload()
{
dwS = true;

for(uint idx = 0; idx < downloadLinks.Length - 1; idx++)
int i = 0;
/*foreach(Char[] ca in downloadLinks)
{
Thread ab = new Thread(() => MultiDownload(VidStreamingMain.extractDownloadUri(new string(downloadLinks[idx]))));
ab.Name = idx.ToString();
Thread ab = new Thread(() => MultiDownload(VidStreamingMain.extractDownloadUri(new string(ca))));
ab.Name = i.ToString();
iThreads = iThreads.push_back(ab);
ab.Start();
cDownloads++;
i++;
}*/
for(uint idx = 0; idx != downloadLinks.Length; idx++)
{
string ix = new string(downloadLinks[idx]);
Thread ab = new Thread(() => MultiDownload(VidStreamingMain.extractDownloadUri(ix)));
ab.Name = (idx).ToString();
iThreads = iThreads.push_back(ab);
ab.Start();
cDownloads++;
Expand Down Expand Up @@ -144,7 +154,7 @@ private static Boolean MDownloadVideo(string dirURI, WebClient wc, string id)
AmountTs = broken.Length / 2;
int top = Console.CursorTop;
String path = dirURI.TrimToSlash();
for (int idx = 0; idx < broken.Length; idx++)
for (int idx = 0; idx < broken.Length - 1; idx++)
{
switch (broken[idx][0])
{
Expand Down

0 comments on commit aac8a23

Please sign in to comment.