From d2b808e5404927d1c913627439e6704a688ecc97 Mon Sep 17 00:00:00 2001 From: rrooij Date: Sun, 21 Feb 2016 18:24:53 +0100 Subject: [PATCH] YTStreamExtractor: fix audio tracks on restricted Fix audio tracks on restriced videos. --- .../extractor/services/youtube/YoutubeStreamExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java index 384df6739..1f9e65df3 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java @@ -386,7 +386,7 @@ public class YoutubeStreamExtractor implements StreamExtractor { Vector audioStreams = new Vector<>(); try{ String encoded_url_map; - if (videoInfoPage == null) { + if (playerArgs == null) { encoded_url_map = videoInfoPage.get("adaptive_fmts"); } else { encoded_url_map = playerArgs.getString("adaptive_fmts");