From 9b5a98fa0185fcaaf0cbb6406ba07ac53c9f0d7a Mon Sep 17 00:00:00 2001 From: lunaticbum <> Date: Mon, 2 Sep 2024 11:32:40 +0900 Subject: [PATCH] ... --- .../lunar/launcher/model/CommunityData.kt | 230 ++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 app/src/main/kotlin/rasel/lunar/launcher/model/CommunityData.kt diff --git a/app/src/main/kotlin/rasel/lunar/launcher/model/CommunityData.kt b/app/src/main/kotlin/rasel/lunar/launcher/model/CommunityData.kt new file mode 100644 index 0000000..c97fa95 --- /dev/null +++ b/app/src/main/kotlin/rasel/lunar/launcher/model/CommunityData.kt @@ -0,0 +1,230 @@ +package rasel.lunar.launcher.model + +import android.annotation.SuppressLint +import android.content.Context +import androidx.work.Worker +import androidx.work.WorkerParameters +import com.google.gson.Gson +import org.json.JSONObject +import org.jsoup.Jsoup +import org.jsoup.nodes.Document +import rasel.lunar.launcher.home.LauncherHome.Companion.rssSet +import rasel.lunar.launcher.todos.Root +import rasel.lunar.launcher.todos.RssDataItem +import rasel.lunar.launcher.todos.RssDataType +import rasel.lunar.launcher.todos.RssFeedsParser +import rasel.lunar.launcher.utils.BLog +import rasel.lunar.launcher.utils.RssList +import rasel.lunar.launcher.utils.RssList.feedJsons +import rasel.lunar.launcher.utils.beforeDay +import java.text.SimpleDateFormat +import java.util.Date + + +class DCGetter : Worker { + companion object { + val TAG = "DCGetter" + } + constructor(context: Context, workerParams: WorkerParameters) : super(context, workerParams) { + + } + + fun parseDcLi(dc_li : org.jsoup.nodes.Element) : ArrayList{ + var temp = arrayListOf() + if (dc_li.html().contains("