diff --git a/app/src/main/java/free/rm/skytube/businessobjects/VideoStream/ParseStreamMetaData.java b/app/src/main/java/free/rm/skytube/businessobjects/VideoStream/ParseStreamMetaData.java index 8c9f373377..0ca77505fd 100644 --- a/app/src/main/java/free/rm/skytube/businessobjects/VideoStream/ParseStreamMetaData.java +++ b/app/src/main/java/free/rm/skytube/businessobjects/VideoStream/ParseStreamMetaData.java @@ -99,6 +99,10 @@ public String init(String videoId) throws Exception { JSONObject ytAssets = jsonObj.getJSONObject("assets"); String playerUrl = ytAssets.getString("js"); + + if(!playerUrl.contains("youtube.com")) { + playerUrl = "https://youtube.com" + playerUrl; + } if (playerUrl.startsWith("//")) { playerUrl = "https:" + playerUrl; }