mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-27 23:40:36 +05:30
Merge branch 'master' into master
This commit is contained in:
commit
76a3742084
@ -386,11 +386,16 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
|||||||
public String getHlsUrl() throws ParsingException {
|
public String getHlsUrl() throws ParsingException {
|
||||||
assertPageFetched();
|
assertPageFetched();
|
||||||
try {
|
try {
|
||||||
String hlsvp;
|
String hlsvp = "";
|
||||||
if (playerArgs != null && playerArgs.isString("hlsvp")) {
|
if (playerArgs != null) {
|
||||||
hlsvp = playerArgs.getString("hlsvp", "");
|
if( playerArgs.isString("hlsvp") ) {
|
||||||
} else {
|
hlsvp = playerArgs.getString("hlsvp", "");
|
||||||
return "";
|
}else {
|
||||||
|
hlsvp = JsonParser.object()
|
||||||
|
.from(playerArgs.getString("player_response", "{}"))
|
||||||
|
.getObject("streamingData", new JsonObject())
|
||||||
|
.getString("hlsManifestUrl", "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return hlsvp;
|
return hlsvp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user