Skip to content

Commit

Permalink
Add: use gid/token in the title (exh). #83
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 committed Dec 4, 2017
1 parent 133a162 commit a382f84
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions comiccrawler/mods/exh.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ def check_login(html):

def get_title(html, url):
check_login(html)
t = re.findall("<h1 id=\"g(j|n)\">(.+?)</h1>", html)
t = t[-1][1]

return unescape(t)
title = re.findall("<h1 id=\"g(j|n)\">(.+?)</h1>", html)[-1][1]
hash = re.search(r"/g/(\w+/\w+)", url).group(1)
return unescape("{title} ({hash})".format(title=title, hash=hash))

def get_episodes(html, url):
check_login(html)
Expand Down

0 comments on commit a382f84

Please sign in to comment.