Skip to content

Commit

Permalink
Use _code as primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
wspl committed Mar 3, 2017
1 parent 0a87c0f commit 1a6ac6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eh.crs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gallery(@page=0,code)="http://g.e-hentai.org/g/{code}/?p={@page}&hc=1"

# Crawler Struct
gallery[]: index -> $("table.itg tr.gtr0,tr.gtr1")
title*: $("td.itd div div.it5 a").text
title: $("td.itd div div.it5 a").text
cover: $("td.itd div div.it2")
.html
.expand("(//|inits?~)(.*?org)[~/]([^~]*\\.jpg)[~\"]", "http://$2/$3")
Expand All @@ -18,7 +18,7 @@ gallery[]: index -> $("table.itg tr.gtr0,tr.gtr1")
.style
.expand(`background-position:-?(\d+)px -?(\d+)px`, "5-$1/16-($2-1)/40")
.calc
_code: $("td.itd div div.it5 a").href.match("/g/(.*)")
_code*: $("td.itd div div.it5 a").href.match("/g/(.*)")
tags[]: gallery(code = _code) -> $("div#taglist table tr td:eq(1) div a")
name*: .html
pictures[]: gallery(code = _code) -> $("div.gdtl,div.gdtm")
Expand Down

0 comments on commit 1a6ac6a

Please sign in to comment.