mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-10-18 00:47:39 +00:00
YTStreamExtractor: fix audio tracks on restricted
Fix audio tracks on restriced videos.
This commit is contained in:
@@ -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");
|
||||||
|
Reference in New Issue
Block a user