package rasel.lunar.launcher.utils

import org.jsoup.nodes.Document
import java.net.URLEncoder

object RssList {

    val TEST_PAG2 = "https://torrentsee246.com/topic/index?category1=129&category2=132"
    val jGuruMain = "https://jav.guru/"
    val jGuruRanks ="https://jav.guru/most-watched-rank/"


    val youtubeUrls = arrayListOf(
        "https://www.youtube.com/@zzanbro",
        "https://www.youtube.com/@sungsikyung",
        "https://www.youtube.com/@%EC%A7%80%EB%AC%B4%EB%B9%84",
        "https://www.youtube.com/@gyeomsonisnothing",
        "https://www.youtube.com/@ddeunddeun"
    )
    val newsFeeds = arrayListOf(
        "https://news.google.com/rss?hl=ko&gl=KR&ceid=KR:ko",
    )

    val feedJsons = arrayListOf(
        "https://www.reddit.com/r/nsfw/.json",
        "https://www.reddit.com/r/Mogong/.json",
//        "https://www.reddit.com/r/Mogong/comments/e6tu50/19_%ED%9B%84%EB%B0%A9%EA%B0%80%EB%93%9D%ED%95%9C_%EC%84%9C%EB%B8%8C%EB%A0%88%EB%94%A7/.json"

//        "https://www.reddit.com/r/${URLEncoder.encode("모공")}/.json",
    )

    fun getFeedUrls()  = keyWords.map { "https://news.google.com/rss/search?q=${URLEncoder.encode(it)}=ko&gl=KR&ceid=KR%3Ako/" }

    val keyWords = listOf(
        "영화",
        "개발",
        "신작",
        "신보",
        "날씨",
        "테크",
        "래퍼",
        "부동산",
        "과학",
        "당뇨",
        "신장",
        "여행",
        "음반",
        "도끼",
        "힙합",
    )
}

object DocParserManager {
    fun parse(doc : Document) {}
}
interface DocParser { fun <T>parse(doc : Document) : T }

class JGuruMain {
    var maxDate : Long = Long.MIN_VALUE
    var minDate : Long = Long.MAX_VALUE

}