diff --git a/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..7f31860a3 Binary files /dev/null and b/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-hdpi/ic_launcher.png differ diff --git a/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..362ef63e0 Binary files /dev/null and b/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-mdpi/ic_launcher.png differ diff --git a/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..0f73f6846 Binary files /dev/null and b/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..3b3c6d4ea Binary files /dev/null and b/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..04a76e4f6 Binary files /dev/null and b/multisrc/overrides/gravureblogger/idolgravureprincessdate/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/gravureblogger/idolgravureprincessdate/src/IdolGravureprincessDate.kt b/multisrc/overrides/gravureblogger/idolgravureprincessdate/src/IdolGravureprincessDate.kt new file mode 100644 index 000000000..059ac467e --- /dev/null +++ b/multisrc/overrides/gravureblogger/idolgravureprincessdate/src/IdolGravureprincessDate.kt @@ -0,0 +1,96 @@ +package eu.kanade.tachiyomi.extension.ja.idolgravureprincessdate + +import eu.kanade.tachiyomi.multisrc.gravureblogger.GravureBlogger + +class IdolGravureprincessDate : GravureBlogger( + "Idol. gravureprincess .date", + "https://idol.gravureprincess.date", + "ja", +) { + override val labelFilters = buildMap { + put("Idol", getIdols()) + put("Magazines", getMagazine()) + } + + private fun getIdols() = listOf( + "Nogizaka46", + "AKB48", + "NMB48", + "Keyakizaka46", + "HKT48", + "SKE48", + "NGT48", + "SUPER☆GiRLS", + "Morning Musume", + "Dempagumi.inc", + "Angerme", + "Juice=Juice", + "NijiCon-虹コン", + "Houkago Princess", + "Magical Punchline", + "Idoling!!!", + "Rev. from DVL", + "Link STAR`s", + "LADYBABY", + "℃-ute", + "Country Girls", + "Up Up Girls (Kakko Kari)", + "Yumemiru Adolescence", + "Shiritsu Ebisu Chugaku", + "Tenkoushoujo Kagekidan", + "Drop", + "Steam Girls", + "Kamen Joshi's", + "LinQ", + "Doll☆Element", + "TrySail", + "Akihabara Backstage Pass", + "Palet", + "Passport☆", + "Ange☆Reve", + "BiSH", + "Ciao Bella Cinquetti", + "Gekidanherbest", + "Haraeki Stage Ace", + "Ru:Run", + "SDN48", + ) + + private fun getMagazine() = listOf( + "FLASH", + "Weekly Playboy", + "FRIDAY Magazine", + "Young Jump", + "Young Magazine", + "BLT", + "ENTAME", + "EX-Taishu", + "SPA! Magazine", + "Young Gangan", + "UTB", + "Young Animal", + "Young Champion", + "Big Comic Spirtis", + "Shonen Magazine", + "BUBKA", + "BOMB", + "Shonen Champion", + "Manga Action", + "Weekly Shonen Sunday", + "Photobooks", + "BRODY", + "Hustle Press", + "ANAN Magazine", + "SMART Magazine", + "Young Sunday", + "Gravure The Television", + "CD&DL My Girl", + "Daily LoGiRL", + "Shukan Taishu", + "Girls! Magazine", + "Soccer Game King", + "Weekly Georgia", + "Sunday Magazine", + "Mery Magazine", + ) +} diff --git a/src/ja/micmicidol/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/gravureblogger/micmicidol/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from src/ja/micmicidol/res/mipmap-hdpi/ic_launcher.png rename to multisrc/overrides/gravureblogger/micmicidol/res/mipmap-hdpi/ic_launcher.png diff --git a/src/ja/micmicidol/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/gravureblogger/micmicidol/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from src/ja/micmicidol/res/mipmap-mdpi/ic_launcher.png rename to multisrc/overrides/gravureblogger/micmicidol/res/mipmap-mdpi/ic_launcher.png diff --git a/src/ja/micmicidol/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/gravureblogger/micmicidol/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from src/ja/micmicidol/res/mipmap-xhdpi/ic_launcher.png rename to multisrc/overrides/gravureblogger/micmicidol/res/mipmap-xhdpi/ic_launcher.png diff --git a/src/ja/micmicidol/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/gravureblogger/micmicidol/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from src/ja/micmicidol/res/mipmap-xxhdpi/ic_launcher.png rename to multisrc/overrides/gravureblogger/micmicidol/res/mipmap-xxhdpi/ic_launcher.png diff --git a/src/ja/micmicidol/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/gravureblogger/micmicidol/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from src/ja/micmicidol/res/mipmap-xxxhdpi/ic_launcher.png rename to multisrc/overrides/gravureblogger/micmicidol/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/multisrc/overrides/gravureblogger/micmicidol/src/MicMicIdol.kt b/multisrc/overrides/gravureblogger/micmicidol/src/MicMicIdol.kt new file mode 100644 index 000000000..b127356ce --- /dev/null +++ b/multisrc/overrides/gravureblogger/micmicidol/src/MicMicIdol.kt @@ -0,0 +1,62 @@ +package eu.kanade.tachiyomi.extension.ja.micmicidol + +import eu.kanade.tachiyomi.multisrc.gravureblogger.GravureBlogger + +class MicMicIdol : GravureBlogger("MIC MIC IDOL", "https://www.micmicidol.club", "ja") { + override val labelFilters = buildMap { + put("Type", getTypes()) + put("Japan Magazine", getJapanMagazines()) + put("Japan Fashion", getJapanFashion()) + } + + private fun getJapanMagazines() = listOf( + "cyzo", + "EnTame", + "EX大衆", + "Friday", + "Flash", + "Shonen Magazine", + "Shonen Sunday", + "Weekly Shonen Champion", + "Weekly Big Comic Spirits", + "Weekly Jitsuwa", + "Weekly Playboy", + "Weekly SPA!", + "Young Animal", + "Young Champion", + "Young Gangan", + "Young Jump", + "Young Magazine", + ) + + private fun getJapanFashion() = listOf( + "andGIRL", + "aR", + "Baila", + "Biteki", + "CanCam", + "Classy", + "ELLE Japan", + "Ginger", + "JJ", + "Maquia", + "Mina", + "MORE", + "Non-no", + "Oggi", + "Ray", + "Scawaii", + "Steady", + "ViVi", + "VoCE", + "With", + ) + + private fun getTypes() = listOf( + "- Cover", + "- Japan Magazine", + "- Japan Fashion Magazine", + "- Japan Idol Photobook", + "- Asia Idol", + ) +} diff --git a/src/ja/micmicidol/src/eu/kanade/tachiyomi/extension/ja/micmicidol/BloggerDto.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/gravureblogger/BloggerDto.kt similarity index 95% rename from src/ja/micmicidol/src/eu/kanade/tachiyomi/extension/ja/micmicidol/BloggerDto.kt rename to multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/gravureblogger/BloggerDto.kt index 1f4bce077..c4bb17ada 100644 --- a/src/ja/micmicidol/src/eu/kanade/tachiyomi/extension/ja/micmicidol/BloggerDto.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/gravureblogger/BloggerDto.kt @@ -1,4 +1,4 @@ -package eu.kanade.tachiyomi.extension.ja.micmicidol +package eu.kanade.tachiyomi.multisrc.gravureblogger import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable diff --git a/src/ja/micmicidol/src/eu/kanade/tachiyomi/extension/ja/micmicidol/MicMicIdol.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/gravureblogger/GravureBlogger.kt similarity index 83% rename from src/ja/micmicidol/src/eu/kanade/tachiyomi/extension/ja/micmicidol/MicMicIdol.kt rename to multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/gravureblogger/GravureBlogger.kt index 4baa08330..cf4e49ee1 100644 --- a/src/ja/micmicidol/src/eu/kanade/tachiyomi/extension/ja/micmicidol/MicMicIdol.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/gravureblogger/GravureBlogger.kt @@ -1,5 +1,6 @@ -package eu.kanade.tachiyomi.extension.ja.micmicidol +package eu.kanade.tachiyomi.multisrc.gravureblogger +import android.annotation.SuppressLint import android.os.Build import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.source.model.Filter @@ -22,13 +23,12 @@ import uy.kohesive.injekt.injectLazy import java.text.SimpleDateFormat import java.util.Locale -class MicMicIdol : HttpSource() { - - override val name = "MIC MIC IDOL" - - override val baseUrl = "https://www.micmicidol.club" - - override val lang = "ja" +@SuppressLint("ObsoleteSdkInt") +abstract class GravureBlogger( + override val name: String, + override val baseUrl: String, + override val lang: String, +) : HttpSource() { override val supportsLatest = false @@ -139,26 +139,29 @@ class MicMicIdol : HttpSource() { override fun imageUrlParse(response: Response) = throw UnsupportedOperationException() + // filter name and list of values + protected open val labelFilters = mapOf>() + + class LabelFilter(name: String, labels: List