Skip to content

Commit

Permalink
fix pb scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sam-o committed Mar 9, 2012
1 parent e8a24b1 commit 8decb90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/source/pirate_bay_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class PirateBaySource
include ActionView::Helpers::TextHelper

YQL_QUERY = %{select * from html where url="http://thepiratebay.se/browse/201/%s/9" and xpath='//table[@id="searchResult"]/tr'}
TORRENT_URL_XPATH = '//a[starts-with(@href, "http://torrents.thepiratebay.se")]/@href'
TORRENT_URL_XPATH = '//a[starts-with(@href, "/torrent")]/@href'
SEEDS_XPATH = '//td[3]/p'
LEACHES_XPATH = '//td[4]/p'
PAGES_TO_SOURCE = 5
Expand Down

0 comments on commit 8decb90

Please sign in to comment.