Skip to content

Commit

Permalink
Update Pururin to new host
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbWatershed committed Dec 3, 2024
1 parent 333aff7 commit 9324e15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package me.devsaki.hentoid.activities.sources

import me.devsaki.hentoid.enums.Site

private const val DOMAIN_FILTER = "pururin.to"
const val PUR_GALLERY_PATTERN = "//pururin.to/browse/tags/collection/"
private val GALLERY_FILTER = arrayOf(PUR_GALLERY_PATTERN, "//pururin.to/gallery/")
private const val DOMAIN_FILTER = "pururin.me"
const val PUR_GALLERY_PATTERN = "//pururin.me/browse/tags/collection/"
private val GALLERY_FILTER = arrayOf(PUR_GALLERY_PATTERN, "//pururin.me/gallery/")

class PururinActivity : BaseWebActivity() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ data class Content(
Site.TSUMINO -> return url.replace("/Read/Index", "")
Site.PURURIN -> {
if (url.contains("/collection/")) return url
return url.replace(getHttpProtocol(url) + "://pururin.to/gallery", "")
return url.replace(getHttpProtocol(url) + "://pururin.me/gallery", "")
}

Site.NHENTAI -> return url.replace(site.url, "").replace("/g/", "/")
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/me/devsaki/hentoid/enums/Site.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ enum class Site(val code: Int, val description: String, val url: String, val ico
"https://www.fakku.net",
R.drawable.ic_site_fakku
), // Legacy support for old fakku archives
PURURIN(1, "Pururin", "https://pururin.to", R.drawable.ic_site_pururin),
PURURIN(1, "Pururin", "https://pururin.me", R.drawable.ic_site_pururin),
HITOMI(2, "hitomi", "https://hitomi.la", R.drawable.ic_site_hitomi),
NHENTAI(3, "nhentai", "https://nhentai.net", R.drawable.ic_site_nhentai),
TSUMINO(4, "tsumino", "https://www.tsumino.com", R.drawable.ic_site_tsumino),
Expand Down

0 comments on commit 9324e15

Please sign in to comment.