upgraded link parser

This commit is contained in:
gdlbo
2022-11-14 14:56:21 +03:00
parent a29e0dcf4b
commit 604d19cc40
3 changed files with 7 additions and 2 deletions
@@ -133,6 +133,11 @@ public class VideoDownloader {
}
public static void parseVideoLink(String url, Context ctx) {
if (url.startsWith("http://")) {
url.replace("http://", "https://");
} else if (url.startsWith("vk.com"))
url = "https://" + url;
if (url.contains("vk.com/story")) {
String storyId = url.substring(url.startsWith("https") ? 20 : 19) + "_story";