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

Commit 2658161

Browse files
committed
Merge pull request #167 from detroxx92/master
fixed issue 165
2 parents 5ef74fc + e1b1ca7 commit 2658161

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

YoutubeExtractor/YoutubeExtractor/DownloadUrlResolver.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@ private static string GetAdaptiveStreamMap(JObject json)
215215
{
216216
JToken streamMap = json["args"]["adaptive_fmts"];
217217

218+
// bugfix: adaptive_fmts is missing in some videos, use url_encoded_fmt_stream_map instead
219+
if (streamMap == null)
220+
{
221+
streamMap = json["args"]["url_encoded_fmt_stream_map"];
222+
}
223+
218224
return streamMap.ToString();
219225
}
220226

0 commit comments

Comments
 (0)