YTStreamExtractor: fix audio tracks on restricted
Fix audio tracks on restriced videos.
This commit is contained in:
parent
4d727245e1
commit
d2b808e540
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue