Skip YouTube's OTF streams
This commit is contained in:
parent
6633f26ec5
commit
ebbfe7f6d4
|
@ -957,6 +957,13 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
||||||
try {
|
try {
|
||||||
ItagItem itagItem = ItagItem.getItag(itag);
|
ItagItem itagItem = ItagItem.getItag(itag);
|
||||||
if (itagItem.itagType == itagTypeWanted) {
|
if (itagItem.itagType == itagTypeWanted) {
|
||||||
|
// Ignore streams that are delivered using YouTube's OTF format,
|
||||||
|
// as those only work with DASH and not with progressive HTTP.
|
||||||
|
if (formatData.getString("type", EMPTY_STRING)
|
||||||
|
.equalsIgnoreCase("FORMAT_STREAM_TYPE_OTF")) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
String streamUrl;
|
String streamUrl;
|
||||||
if (formatData.has("url")) {
|
if (formatData.has("url")) {
|
||||||
streamUrl = formatData.getString("url");
|
streamUrl = formatData.getString("url");
|
||||||
|
|
Loading…
Reference in New Issue