Skip to content

Commit

Permalink
roar
Browse files Browse the repository at this point in the history
  • Loading branch information
airhorns committed Sep 19, 2011
1 parent a5ac5b3 commit d4c628e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jobs/autotrader_search.coffee
@@ -1,5 +1,6 @@
coffee = require 'coffee-script'
busters = require '../lib/busters'
ent = require 'ent'

@class = class ListingSearch extends busters.Job
RCS_RE = /rcs=(\d+)/
Expand All @@ -9,7 +10,7 @@ busters = require '../lib/busters'
urls = [url]
@getHtml url, (err, $) =>
lastLink = $('div.Pager a').last()
href = "http://www.autotrader.ca#{lastLink.attribs.href}"
href = "http://www.autotrader.ca#{ent.decode lastLink.attribs.href}"

if match = RCS_RE.exec(href)
lastRCS = parseInt(match[1], 10)
Expand Down

0 comments on commit d4c628e

Please sign in to comment.