diff --git a/docs/supportedsites.md b/docs/supportedsites.md
index 4ebda247..0a4febc5 100644
--- a/docs/supportedsites.md
+++ b/docs/supportedsites.md
@@ -285,7 +285,7 @@ Consider all sites to be NSFW unless otherwise known.
| Imagevenue |
- http://imagevenue.com/ |
+ https://imagevenue.com/ |
individual Images |
|
@@ -597,7 +597,7 @@ Consider all sites to be NSFW unless otherwise known.
| Pururin |
- https://pururin.io/ |
+ https://pururin.to/ |
Galleries |
|
diff --git a/gallery_dl/extractor/pururin.py b/gallery_dl/extractor/pururin.py
index 49c24bcc..dee7bd42 100644
--- a/gallery_dl/extractor/pururin.py
+++ b/gallery_dl/extractor/pururin.py
@@ -6,20 +6,22 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
-"""Extractors for https://pururin.io/"""
+"""Extractors for https://pururin.to/"""
from .common import GalleryExtractor
from .. import text, util
+import binascii
import json
class PururinGalleryExtractor(GalleryExtractor):
"""Extractor for image galleries on pururin.io"""
category = "pururin"
- pattern = r"(?:https?://)?(?:www\.)?pururin\.io/(?:gallery|read)/(\d+)"
+ pattern = r"(?:https?://)?(?:www\.)?pururin\.[ti]o/(?:gallery|read)/(\d+)"
test = (
- ("https://pururin.io/gallery/38661/iowant-2", {
- "pattern": r"https://cdn.pururin.io/\w+/images/data/\d+/\d+\.jpg",
+ ("https://pururin.to/gallery/38661/iowant-2", {
+ "pattern": r"https://cdn.pururin.[ti]o/\w+"
+ r"/images/data/\d+/\d+\.jpg",
"keyword": {
"title" : "re:I ?owant 2!!",
"title_en" : "re:I ?owant 2!!",
@@ -41,11 +43,12 @@ class PururinGalleryExtractor(GalleryExtractor):
"language" : "English",
}
}),
- ("https://pururin.io/gallery/7661/unisis-team-vanilla", {
+ ("https://pururin.to/gallery/7661/unisis-team-vanilla", {
"count": 17,
}),
+ ("https://pururin.io/gallery/38661/iowant-2"),
)
- root = "https://pururin.io"
+ root = "https://pururin.to"
def __init__(self, match):
self.gallery_id = match.group(1)
@@ -70,8 +73,8 @@ class PururinGalleryExtractor(GalleryExtractor):
url = "{}/read/{}/01/x".format(self.root, self.gallery_id)
page = self.request(url).text
- info = json.loads(text.unescape(text.extract(
- page, ':gallery="', '"')[0]))
+ info = json.loads(binascii.a2b_base64(text.extract(
+ page, '