mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 10:42:34 +01:00
disable unique archive id checks for some tests
- same image twice in a livedoor blog post - unreliable results for related pinterest items
This commit is contained in:
parent
67e54ed8ea
commit
da6789b2b0
@ -1,5 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
## 1.11.1 - 2019-11-09
|
## 1.11.1 - 2019-11-09
|
||||||
### Fixes
|
### Fixes
|
||||||
- Fix inclusion of bash completion and man pages in source distributions
|
- Fix inclusion of bash completion and man pages in source distributions
|
||||||
|
@ -89,6 +89,7 @@ class LivedoorBlogExtractor(LivedoorExtractor):
|
|||||||
("http://blog.livedoor.jp/zatsu_ke/", {
|
("http://blog.livedoor.jp/zatsu_ke/", {
|
||||||
"range": "1-50",
|
"range": "1-50",
|
||||||
"count": 50,
|
"count": 50,
|
||||||
|
"archive": False,
|
||||||
"pattern": r"https?://livedoor.blogimg.jp/\w+/imgs/\w/\w/\w+\.\w+",
|
"pattern": r"https?://livedoor.blogimg.jp/\w+/imgs/\w/\w/\w+\.\w+",
|
||||||
"keyword": {
|
"keyword": {
|
||||||
"post": {
|
"post": {
|
||||||
|
@ -119,8 +119,9 @@ class PinterestRelatedPinExtractor(PinterestPinExtractor):
|
|||||||
directory_fmt = ("{category}", "related {original_pin[id]}")
|
directory_fmt = ("{category}", "related {original_pin[id]}")
|
||||||
pattern = BASE_PATTERN + r"/pin/([^/?#&]+).*#related$"
|
pattern = BASE_PATTERN + r"/pin/([^/?#&]+).*#related$"
|
||||||
test = ("https://www.pinterest.com/pin/858146903966145189/#related", {
|
test = ("https://www.pinterest.com/pin/858146903966145189/#related", {
|
||||||
"range": "31-50",
|
"range": "31-70",
|
||||||
"count": 20,
|
"count": 40,
|
||||||
|
"archive": False,
|
||||||
})
|
})
|
||||||
|
|
||||||
def metadata(self):
|
def metadata(self):
|
||||||
@ -138,8 +139,9 @@ class PinterestRelatedBoardExtractor(PinterestBoardExtractor):
|
|||||||
"{board[name]}", "related")
|
"{board[name]}", "related")
|
||||||
pattern = BASE_PATTERN + r"/(?!pin/)([^/?#&]+)/([^/?#&]+).*#related$"
|
pattern = BASE_PATTERN + r"/(?!pin/)([^/?#&]+)/([^/?#&]+).*#related$"
|
||||||
test = ("https://www.pinterest.com/g1952849/test-/#related", {
|
test = ("https://www.pinterest.com/g1952849/test-/#related", {
|
||||||
"range": "31-50",
|
"range": "31-70",
|
||||||
"count": 20,
|
"count": 40,
|
||||||
|
"archive": False,
|
||||||
})
|
})
|
||||||
|
|
||||||
def pins(self):
|
def pins(self):
|
||||||
|
@ -6,4 +6,4 @@
|
|||||||
# it under the terms of the GNU General Public License version 2 as
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
# published by the Free Software Foundation.
|
# published by the Free Software Foundation.
|
||||||
|
|
||||||
__version__ = "1.11.1"
|
__version__ = "1.11.2-dev"
|
||||||
|
@ -27,7 +27,6 @@ TRAVIS_SKIP = {
|
|||||||
# temporary issues, etc.
|
# temporary issues, etc.
|
||||||
BROKEN = {
|
BROKEN = {
|
||||||
"hentaifox",
|
"hentaifox",
|
||||||
"livedoor",
|
|
||||||
"mangapark",
|
"mangapark",
|
||||||
"yaplog",
|
"yaplog",
|
||||||
}
|
}
|
||||||
@ -85,8 +84,12 @@ class TestExtractorResults(unittest.TestCase):
|
|||||||
self.skipTest(exc)
|
self.skipTest(exc)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
# test archive-id uniqueness
|
if result.get("archive", True):
|
||||||
self.assertEqual(len(set(tjob.archive_list)), len(tjob.archive_list))
|
self.assertEqual(
|
||||||
|
len(set(tjob.archive_list)),
|
||||||
|
len(tjob.archive_list),
|
||||||
|
"archive-id uniqueness",
|
||||||
|
)
|
||||||
|
|
||||||
if tjob.queue:
|
if tjob.queue:
|
||||||
# test '_extractor' entries
|
# test '_extractor' entries
|
||||||
|
Loading…
Reference in New Issue
Block a user