Skip to content

Commit

Permalink
2.016 not downloading images in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Dec 22, 2016
1 parent ecc273f commit a967259
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## 2.016

- 修复可能会下到评论中的图的问题

## 2.015
- 显示重命名时的错误
- 修复扩展名中多余的`.`
Expand Down
4 changes: 2 additions & 2 deletions xeHentai/const.py
Expand Up @@ -15,8 +15,8 @@
CODEPAGE = locale.getdefaultlocale()[1]
ANDROID = 'ANDROID_ARGUMENT' in os.environ

__version__ = 2.015
DEVELOPMENT = False
__version__ = 2.016
DEVELOPMENT = True

SCRIPT_NAME = "xeHentai"

Expand Down
4 changes: 3 additions & 1 deletion xeHentai/filters.py
Expand Up @@ -96,7 +96,9 @@ def flt_metadata(r, suc, fail):
def flt_pageurl(r, suc, fail):
# input gallery response
# add per image urls if suc; finish task if fail
picpage = re.findall('<a href="(https*://(?:g.e-hentai|exhentai).org/./[a-f0-9]{10}/\d+\-\d+)"><img', r.text)
picpage = re.findall(
'<a href="(https*://(?:g.e-hentai|exhentai).org/./[a-f0-9]{10}/\d+\-\d+)"><img[^>]+blank.gif',
r.text)
if not picpage:
fail(ERR_NO_PAGEURL_FOUND)
for p in picpage:
Expand Down

0 comments on commit a967259

Please sign in to comment.