1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 04:02:32 +01:00

update misc test results

- Livedoor now uses https:// for its image URLs
- Instagram image URLs got simplified
This commit is contained in:
Mike Fährmann 2019-11-20 21:45:48 +01:00
parent fca87974fe
commit 978cb03f81
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
5 changed files with 10 additions and 12 deletions

View File

@ -67,7 +67,7 @@ class _3dbooruPopularExtractor(booru.MoebooruPopularMixin, _3dbooruExtractor):
r"/post/popular_(?P<scale>by_(?:day|week|month)|recent)"
r"(?:\?(?P<query>[^#]*))?")
test = ("http://behoimi.org/post/popular_by_month?month=2&year=2013", {
"url": "f5a26c624da9a3d1dbc610e4a614bc57df6251c5",
"url": "8b1a5c5b7a10f8f5d3d6124d1aabfee0277078cb",
"count": 20,
})

View File

@ -292,7 +292,7 @@ class InstagramImageExtractor(InstagramExtractor):
# GraphImage
("https://www.instagram.com/p/BqvsDleB3lV/", {
"pattern": r"https://[^/]+\.(cdninstagram\.com|fbcdn\.net)"
r"/vp/[0-9a-f]+/[0-9A-F]+/t51.2885-15/e35"
r"/v(p/[0-9a-f]+/[0-9A-F]+)?/t51.2885-15/e35"
r"/44877605_725955034447492_3123079845831750529_n.jpg",
"keyword": {
"date": "type:datetime",

View File

@ -89,7 +89,6 @@ class LivedoorBlogExtractor(LivedoorExtractor):
("http://blog.livedoor.jp/zatsu_ke/", {
"range": "1-50",
"count": 50,
"archive": False,
"pattern": r"https?://livedoor.blogimg.jp/\w+/imgs/\w/\w/\w+\.\w+",
"keyword": {
"post": {
@ -132,16 +131,16 @@ class LivedoorPostExtractor(LivedoorExtractor):
pattern = r"(?:https?://)?blog\.livedoor\.jp/(\w+)/archives/(\d+)"
test = (
("http://blog.livedoor.jp/zatsu_ke/archives/51493859.html", {
"url": "8826fe623f19dc868e7538e8519bf8491e92a0a2",
"keyword": "83993111d5d0c08d021196802dd36b73f04c7057",
"url": "9ca3bbba62722c8155be79ad7fc47be409e4a7a2",
"keyword": "1f5b558492e0734f638b760f70bfc0b65c5a97b9",
}),
("http://blog.livedoor.jp/amaumauma/archives/7835811.html", {
"url": "fc1d6a9557245b5a27d3a10bf0fa9922ef377215",
"keyword": "fd700760c98897c3125328e157972f905fd34aaa",
"url": "204bbd6a9db4969c50e0923855aeede04f2e4a62",
"keyword": "05821c7141360e6057ef2d382b046f28326a799d",
}),
("http://blog.livedoor.jp/uotapo/archives/1050616939.html", {
"url": "3f3581807ec4776e6a67ed7985a22494d4bc4904",
"keyword": "9e319413a42e08d32f0dcbe8aa3b452ad41aa906",
"url": "4b5ab144b7309eb870d9c08f8853d1abee9946d2",
"keyword": "84fbf6e4eef16675013d6333039a7cfcb22c2d50",
}),
)

View File

@ -24,7 +24,7 @@ class SenmangaChapterExtractor(Extractor):
("http://raw.senmanga.com/Bokura-wa-Minna-Kawaisou/37A/1", {
"url": "5f95140ff511d8497e2ec08fa7267c6bb231faec",
"keyword": "705d941a150765edb33cd2707074bd703a93788c",
"content": "0e37b1995708ffc175f2e175d91a518e6948c379",
"content": "556a16d5ca3441d7a5807b6b5ac06ec458a3e4ba",
}),
("http://raw.senmanga.com/Love-Lab/2016-03/1", {
"url": "8347b9f00c14b864dd3c19a1f5ae52adb2ef00de",

View File

@ -29,7 +29,6 @@ BROKEN = {
"hentaifox",
"mangapark",
"pixhost",
"yaplog",
}
@ -79,7 +78,7 @@ class TestExtractorResults(unittest.TestCase):
pass
except exception.HttpError as exc:
exc = str(exc)
if re.match(r"5\d\d: ", exc) or \
if re.match(r"'5\d\d ", exc) or \
re.search(r"\bRead timed out\b", exc):
self._skipped.append((url, exc))
self.skipTest(exc)