update extractor test results
- don't run Instagram tests on Travis anymore - replace Twitter test because timeline was made private - update Hiperdex domain to '.com' (again ...)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
"""Extractors for https://hiperdex.info/"""
|
||||
"""Extractors for https://hiperdex.com/"""
|
||||
|
||||
from .common import ChapterExtractor, MangaExtractor
|
||||
from .. import text
|
||||
@@ -14,13 +14,13 @@ from ..cache import memcache
|
||||
import re
|
||||
|
||||
|
||||
BASE_PATTERN = r"(?:https?://)?(?:www\.)?hiperdex\.(?:info|com|net)"
|
||||
BASE_PATTERN = r"(?:https?://)?(?:www\.)?hiperdex\.(?:com|net|info)"
|
||||
|
||||
|
||||
class HiperdexBase():
|
||||
"""Base class for hiperdex extractors"""
|
||||
category = "hiperdex"
|
||||
root = "https://hiperdex.info"
|
||||
root = "https://hiperdex.com"
|
||||
|
||||
@memcache(keyarg=1)
|
||||
def manga_data(self, manga, page=None):
|
||||
@@ -63,11 +63,11 @@ class HiperdexBase():
|
||||
|
||||
|
||||
class HiperdexChapterExtractor(HiperdexBase, ChapterExtractor):
|
||||
"""Extractor for manga chapters from hiperdex.info"""
|
||||
"""Extractor for manga chapters from hiperdex.com"""
|
||||
pattern = BASE_PATTERN + r"(/manga/([^/?&#]+)/([^/?&#]+))"
|
||||
test = (
|
||||
("https://hiperdex.info/manga/domestic-na-kanojo/154-5/", {
|
||||
"pattern": r"https://hiperdex.(info|com|net)/wp-content/uploads"
|
||||
("https://hiperdex.com/manga/domestic-na-kanojo/154-5/", {
|
||||
"pattern": r"https://hiperdex.(com|net|info)/wp-content/uploads"
|
||||
r"/WP-manga/data/manga_\w+/[0-9a-f]{32}/\d+\.webp",
|
||||
"count": 9,
|
||||
"keyword": {
|
||||
@@ -83,8 +83,8 @@ class HiperdexChapterExtractor(HiperdexBase, ChapterExtractor):
|
||||
"type" : "Manga",
|
||||
},
|
||||
}),
|
||||
("https://hiperdex.com/manga/domestic-na-kanojo/154-5/"),
|
||||
("https://hiperdex.net/manga/domestic-na-kanojo/154-5/"),
|
||||
("https://hiperdex.info/manga/domestic-na-kanojo/154-5/"),
|
||||
)
|
||||
|
||||
def __init__(self, match):
|
||||
@@ -103,11 +103,11 @@ class HiperdexChapterExtractor(HiperdexBase, ChapterExtractor):
|
||||
|
||||
|
||||
class HiperdexMangaExtractor(HiperdexBase, MangaExtractor):
|
||||
"""Extractor for manga from hiperdex.info"""
|
||||
"""Extractor for manga from hiperdex.com"""
|
||||
chapterclass = HiperdexChapterExtractor
|
||||
pattern = BASE_PATTERN + r"(/manga/([^/?&#]+))/?$"
|
||||
test = (
|
||||
("https://hiperdex.info/manga/youre-not-that-special/", {
|
||||
("https://hiperdex.com/manga/youre-not-that-special/", {
|
||||
"count": 51,
|
||||
"pattern": HiperdexChapterExtractor.pattern,
|
||||
"keyword": {
|
||||
@@ -124,8 +124,8 @@ class HiperdexMangaExtractor(HiperdexBase, MangaExtractor):
|
||||
"type" : "Manhwa",
|
||||
},
|
||||
}),
|
||||
("https://hiperdex.com/manga/youre-not-that-special/"),
|
||||
("https://hiperdex.net/manga/youre-not-that-special/"),
|
||||
("https://hiperdex.info/manga/youre-not-that-special/"),
|
||||
)
|
||||
|
||||
def __init__(self, match):
|
||||
@@ -152,16 +152,16 @@ class HiperdexMangaExtractor(HiperdexBase, MangaExtractor):
|
||||
|
||||
|
||||
class HiperdexArtistExtractor(HiperdexBase, MangaExtractor):
|
||||
"""Extractor for an artists's manga on hiperdex.info"""
|
||||
"""Extractor for an artists's manga on hiperdex.com"""
|
||||
subcategory = "artist"
|
||||
categorytransfer = False
|
||||
chapterclass = HiperdexMangaExtractor
|
||||
reverse = False
|
||||
pattern = BASE_PATTERN + r"(/manga-a(?:rtist|uthor)/([^/?&#]+))"
|
||||
test = (
|
||||
("https://hiperdex.info/manga-artist/beck-ho-an/"),
|
||||
("https://hiperdex.com/manga-artist/beck-ho-an/"),
|
||||
("https://hiperdex.net/manga-artist/beck-ho-an/"),
|
||||
("https://hiperdex.info/manga-artist/beck-ho-an/"),
|
||||
("https://hiperdex.com/manga-author/viagra/", {
|
||||
"pattern": HiperdexMangaExtractor.pattern,
|
||||
"count": ">= 6",
|
||||
|
||||
Reference in New Issue
Block a user