Skip to content
This repository was archived by the owner on Sep 28, 2020. It is now read-only.

Commit 505bfd2

Browse files
Added the ratebypass flag to the download url. This drastically speeds up downloads.
1 parent c76edae commit 505bfd2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

YoutubeExtractor/YoutubeExtractor/DownloadUrlResolver.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ namespace YoutubeExtractor
1212
/// </summary>
1313
public static class DownloadUrlResolver
1414
{
15+
private const string RateBypassFlag = "ratebypass=yes";
1516
private const int CorrectSignatureLength = 81;
1617
private const string SignatureQuery = "signature";
1718

@@ -103,6 +104,9 @@ public static IEnumerable<VideoInfo> GetDownloadUrls(string videoUrl, bool decry
103104
{
104105
DecryptDownloadUrl(info);
105106
}
107+
108+
//Add the ratebypass parameter to the url. This is optional but greatly speeds up downloads
109+
info.DownloadUrl += "&" + RateBypassFlag;
106110
}
107111

108112
return infos;

0 commit comments

Comments
 (0)