Skip to content

Commit 11be1d7

Browse files
committed
add download precentage
1 parent 8c091a4 commit 11be1d7

File tree

4 files changed

+216
-209
lines changed

4 files changed

+216
-209
lines changed

TubeDl/TubeDlHelpers.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static string Extention()
6060

6161
}
6262

63-
63+
public static Double filesize;
6464
public static string GetFileSize(Uri uriPath)
6565
{
6666
var webRequest = HttpWebRequest.Create(uriPath);
@@ -71,6 +71,7 @@ public static string GetFileSize(Uri uriPath)
7171
var fileSize = webResponse.Headers.Get("Content-Length");
7272
var fileSizeInMegaByte = Unkdevt.StringHelpers.GetLengthString(Math.Round(
7373
Convert.ToDouble(fileSize)));
74+
filesize = Convert.ToDouble(fileSize);
7475
return fileSizeInMegaByte;
7576
}
7677
}

0 commit comments

Comments
 (0)