diff --git a/app/src/main/java/my/project/sakuraproject/main/base/BaseModel.java b/app/src/main/java/my/project/sakuraproject/main/base/BaseModel.java new file mode 100644 index 0000000..5126afd --- /dev/null +++ b/app/src/main/java/my/project/sakuraproject/main/base/BaseModel.java @@ -0,0 +1,11 @@ +package my.project.sakuraproject.main.base; + +import org.jsoup.nodes.Document; +import org.jsoup.nodes.Element; + +public class BaseModel { + public static boolean hasRefresh(Document body) { + Element meta = body.select("meta[http-equiv=refresh]").first(); + return meta != null; + } +}