Add video support

This commit is contained in:
Motschen
2022-12-26 20:30:27 +01:00
parent c32654d5d5
commit c801e8ecd8
12 changed files with 171 additions and 92 deletions

View File

@@ -7,7 +7,7 @@ public class PictureURLUtils {
String text = signBlockEntity.getTextOnRow(0, false).getString() +
signBlockEntity.getTextOnRow(1, false).getString() +
signBlockEntity.getTextOnRow(2, false).getString();
String url = text.replaceAll("!PS:", "").replaceAll(" ","");
String url = text.replaceAll("!PS:", "").replaceAll("!VS:", "").replaceAll("!LS:", "").replaceAll(" ","");
if (url.startsWith("ps:")) url = url.replace("ps:", "https://pictshare.net/");
if (url.startsWith("imgur:")) url = url.replace("imgur:", "https://i.imgur.com/");
if (url.startsWith("imgbb:")) url = url.replace("imgbb:", "https://i.ibb.co/");