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

Commit c23b74f

Browse files
committed
Update readme.md
1 parent 23699e4 commit c23b74f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

readme.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ IEnumerable<VideoInfo> videoInfos = DownloadUrlResolver.GetDownloadUrls(link);
6767
*/
6868
VideoInfo video = videoInfos
6969
.First(info => info.VideoType == VideoType.Mp4 && info.Resolution == 360);
70+
71+
/*
72+
* If the video has a decrypted signature, decipher it
73+
*/
74+
if (video.RequiresDecryption)
75+
{
76+
DownloadUrlResolver.DecryptDownloadUrl(video);
77+
}
7078

7179
/*
7280
* Create the video downloader.
@@ -97,6 +105,14 @@ VideoInfo video = videoInfos
97105
.Where(info => info.CanExtractAudio)
98106
.OrderByDescending(info => info.AudioBitrate)
99107
.First();
108+
109+
/*
110+
* If the video has a decrypted signature, decipher it
111+
*/
112+
if (video.RequiresDecryption)
113+
{
114+
DownloadUrlResolver.DecryptDownloadUrl(video);
115+
}
100116

101117
/*
102118
* Create the audio downloader.

0 commit comments

Comments
 (0)