Merge branch 'master' into master
This commit is contained in:
commit
76a3742084
1 changed files with 10 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue