|
|
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
|
|
|
|
#VERSION: 1.01 |
|
|
|
|
#VERSION: 1.02 |
|
|
|
|
#AUTHORS: Christophe Dumez (chris@qbittorrent.org) |
|
|
|
|
|
|
|
|
|
# Redistribution and use in source and binary forms, with or without |
|
|
|
@ -55,11 +55,11 @@ class legittorrents(object):
@@ -55,11 +55,11 @@ class legittorrents(object):
|
|
|
|
|
def start_a(self, attr): |
|
|
|
|
params = dict(attr) |
|
|
|
|
if params.has_key('href') and params['href'].startswith('download.php?'): |
|
|
|
|
self.current_item['link'] = self.url + params['href'].strip() |
|
|
|
|
self.current_item['link'] = self.url + '/' + params['href'].strip() |
|
|
|
|
elif params.has_key('href') and params['href'].startswith('index.php?page=torrent-details'): |
|
|
|
|
self.current_item = {} |
|
|
|
|
self.td_counter = 0 |
|
|
|
|
self.current_item['desc_link'] = self.url + params['href'].strip() |
|
|
|
|
self.current_item['desc_link'] = self.url + '/' + params['href'].strip() |
|
|
|
|
|
|
|
|
|
def handle_data(self, data): |
|
|
|
|
if self.td_counter == 0: |
|
|
|
|