diff options
| author | 2021-05-03 23:36:45 -0400 | |
|---|---|---|
| committer | 2021-05-03 23:36:45 -0400 | |
| commit | e7eb1f9779f2e223575ab23a6bc1abf2222e7d27 (patch) | |
| tree | 6cfdc1e3da2143801a598a0ba1182d8f7289dc6d /gallery_dl/extractor/bcy.py | |
| parent | d27dcd4646242d6da8436f14c7b37ce864355858 (diff) | |
New upstream version 1.17.3.upstream/1.17.3
Diffstat (limited to 'gallery_dl/extractor/bcy.py')
| -rw-r--r-- | gallery_dl/extractor/bcy.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gallery_dl/extractor/bcy.py b/gallery_dl/extractor/bcy.py index 6e0003d..d6e3683 100644 --- a/gallery_dl/extractor/bcy.py +++ b/gallery_dl/extractor/bcy.py @@ -170,11 +170,16 @@ class BcyPostExtractor(BcyExtractor): }, }), # only watermarked images available - ("https://bcy.net/item/detail/6780546160802143236", { + ("https://bcy.net/item/detail/6950136331708144648", { "pattern": r"https://p\d-bcy.byteimg.com/img/banciyuan/[0-9a-f]+" r"~tplv-banciyuan-logo-v3:.+\.image", - "count": 8, + "count": 10, "keyword": {"filter": "watermark"} + + }), + # deleted + ("https://bcy.net/item/detail/6780546160802143236", { + "count": 0, }), # only visible to logged in users ("https://bcy.net/item/detail/6747523535150783495", { @@ -183,7 +188,10 @@ class BcyPostExtractor(BcyExtractor): ) def posts(self): - data = self._data_from_post(self.item_id) + try: + data = self._data_from_post(self.item_id) + except KeyError: + return () post = data["post_data"] post["image_list"] = post["multi"] post["plain"] = text.parse_unicode_escapes(post["plain"]) |
