YTStreamExtractor: fix audio tracks on restricted

Fix audio tracks on restriced videos.
This commit is contained in:
rrooij 2016-02-21 18:24:53 +01:00
parent 4d727245e1
commit d2b808e540
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ public class YoutubeStreamExtractor implements StreamExtractor {
Vector<VideoInfo.AudioStream> audioStreams = new Vector<>(); Vector<VideoInfo.AudioStream> audioStreams = new Vector<>();
try{ try{
String encoded_url_map; String encoded_url_map;
if (videoInfoPage == null) { if (playerArgs == null) {
encoded_url_map = videoInfoPage.get("adaptive_fmts"); encoded_url_map = videoInfoPage.get("adaptive_fmts");
} else { } else {
encoded_url_map = playerArgs.getString("adaptive_fmts"); encoded_url_map = playerArgs.getString("adaptive_fmts");