Skip to content

Commit

Permalink
ehentai metadata plugin v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyingren committed Oct 29, 2017
1 parent 0050d67 commit 6143c27
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions ehentai_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def to_metadata(log,gmetadata,ExHentai_Status): # {{{
mi.language = tag_
else:
tags_.append(tag_)
elif re.match('parody|group|character|artist', tag):
log('drop tag %s' % tag)
continue
# elif re.match('parody|group|character|artist', tag):
# log('drop tag %s' % tag)
# continue
elif not ':' in tag:
log('drop tag %s' % tag)
continue
Expand All @@ -88,7 +88,7 @@ class Ehentai(Source):

name = 'E-hentai Galleries'
author = 'Wu yuan'
version = (1,1,1)
version = (1,1,2)
minimum_calibre_version = (2, 80, 0)

description = _('Download metadata and cover from e-hentai.org.'
Expand Down Expand Up @@ -270,9 +270,14 @@ def identify(self, log, result_queue, abort, title=None, authors=None,identifier
return as_unicode(e)
if not raw and identifiers and title and authors and not abort.is_set():
return self.identify(log, result_queue, abort, title=title,authors=authors, timeout=timeout)
if is_exhentai is True and not 'https://exhentai.org/' in raw:
log.error('The cookies for ExHentai is expired.')
return
if is_exhentai is True:
try:
'https://exhentai.org/' in raw
except Exception as e:
log.error('The cookies for ExHentai is invalid.')
log.error('Exhentai cookies:')
log.error(self.ExHentai_Cookies)
return
gidlist = self.get_gallery_info(log,raw)
if not gidlist:
log.error('No result found.\n','query: %s' % query)
Expand Down

0 comments on commit 6143c27

Please sign in to comment.