diff options
| author | 2021-11-10 01:26:06 -0500 | |
|---|---|---|
| committer | 2021-11-10 01:26:06 -0500 | |
| commit | fc8c5e642017e2b4e5299e2093e72b316479690d (patch) | |
| tree | 41119c71e8d86755f4c945d8c2ccf5a7000f546e /gallery_dl/extractor/bcy.py | |
| parent | 4a965d875415907cc1a016b428ae305a964f9228 (diff) | |
New upstream version 1.19.2.upstream/1.19.2
Diffstat (limited to 'gallery_dl/extractor/bcy.py')
| -rw-r--r-- | gallery_dl/extractor/bcy.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gallery_dl/extractor/bcy.py b/gallery_dl/extractor/bcy.py index f867bd9..47e51b3 100644 --- a/gallery_dl/extractor/bcy.py +++ b/gallery_dl/extractor/bcy.py @@ -9,7 +9,7 @@ """Extractors for https://bcy.net/""" from .common import Extractor, Message -from .. import text +from .. import text, exception import json import re @@ -93,7 +93,7 @@ class BcyExtractor(Extractor): def _data_from_post(self, post_id): url = "{}/item/detail/{}".format(self.root, post_id) - page = self.request(url).text + page = self.request(url, notfound="post").text return json.loads( text.extract(page, 'JSON.parse("', '");')[0] .replace('\\\\u002F', '/') @@ -178,6 +178,7 @@ class BcyPostExtractor(BcyExtractor): }), # deleted ("https://bcy.net/item/detail/6780546160802143236", { + "exception": exception.NotFoundError, "count": 0, }), # only visible to logged in users |
