check if link is not valid

This commit is contained in:
gdlbo
2022-07-09 20:18:31 +03:00
parent 06c526ef74
commit 295f37b9f5
@@ -81,6 +81,11 @@ public class VideoDownloader{
}
public static void parseVideoLink(String url, Context ctx){
if(!url.equals("vk.com/video")){
ToastUtils.a("Неверная ссылка");
return;
}
String videoId = url.split("video")[1];
String ownerId = videoId.split("_")[0];