mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-01 01:16:01 +00:00
- Fixed isohunt search engine
This commit is contained in:
parent
eb3a8d5f56
commit
50d8f8eb04
@ -26,6 +26,7 @@
|
|||||||
- BUGFIX: Fixed possible segfault on loading due to columns size loading
|
- BUGFIX: Fixed possible segfault on loading due to columns size loading
|
||||||
- BUGFIX: Fixed problems that could happen with delete selection action
|
- BUGFIX: Fixed problems that could happen with delete selection action
|
||||||
- BUGFIX: Fixed an arithmetic exception that could happen in ETA calculation
|
- BUGFIX: Fixed an arithmetic exception that could happen in ETA calculation
|
||||||
|
- BUGFIX: Fixed Isohunt search engine
|
||||||
- COSMETIC: Now displaying the number of downloads in tab title
|
- COSMETIC: Now displaying the number of downloads in tab title
|
||||||
- COSMETIC: Redesigned download from url dialog
|
- COSMETIC: Redesigned download from url dialog
|
||||||
- COSMETIC: Added a message to warn user that we started download from an url
|
- COSMETIC: Added a message to warn user that we started download from an url
|
||||||
|
3
TODO
3
TODO
@ -33,5 +33,6 @@
|
|||||||
|
|
||||||
// Before 0.7.0
|
// Before 0.7.0
|
||||||
- Test tracker authentication
|
- Test tracker authentication
|
||||||
- Wait for libtorrent v0.11 final release
|
- Wait for libtorrent v0.11rc release
|
||||||
|
- Test & fix search engines (especially DownloadFromUrl)
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Version: 1.8
|
||||||
|
# Changelog:
|
||||||
|
# - Fixed links from isohunt
|
||||||
|
|
||||||
# Version: 1.7
|
# Version: 1.7
|
||||||
# Changelog:
|
# Changelog:
|
||||||
# - merged with qbittorrent branch (code cleanup, indentation mistakes)
|
# - merged with qbittorrent branch (code cleanup, indentation mistakes)
|
||||||
@ -341,12 +345,13 @@ class Isohunt(object):
|
|||||||
def start_tr(self, attr):
|
def start_tr(self, attr):
|
||||||
params = dict(attr)
|
params = dict(attr)
|
||||||
if 'onclick' in params:
|
if 'onclick' in params:
|
||||||
Durl='http://isohunt.com/dl.php?id='
|
Durl='http://isohunt.com/download'
|
||||||
self.current_item = {}
|
self.current_item = {}
|
||||||
self.td_counter = 0
|
self.td_counter = 0
|
||||||
begin_id = params['onclick'].find("id=")+3
|
try:
|
||||||
end_id = params['onclick'][begin_id:].find("'")
|
self.current_item['link'] = '%s/%s'%(Durl, params['onclick'].split('/')[2])
|
||||||
self.current_item['link'] = '%s%s'%(Durl,str(params['onclick'][begin_id:begin_id+end_id]))
|
except IndexError:
|
||||||
|
self.current_item['link'] = None
|
||||||
|
|
||||||
def handle_data(self, data):
|
def handle_data(self, data):
|
||||||
if self.td_counter == 3:
|
if self.td_counter == 3:
|
||||||
@ -379,8 +384,9 @@ class Isohunt(object):
|
|||||||
self.current_item['seeds'] = 0
|
self.current_item['seeds'] = 0
|
||||||
if not self.current_item.has_key('leech') or not self.current_item['leech'].isdigit():
|
if not self.current_item.has_key('leech') or not self.current_item['leech'].isdigit():
|
||||||
self.current_item['leech'] = 0
|
self.current_item['leech'] = 0
|
||||||
prettyPrinter(self.current_item)
|
if self.current_item['link'] is not None:
|
||||||
self.results.append('a')
|
prettyPrinter(self.current_item)
|
||||||
|
self.results.append('a')
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.results = []
|
self.results = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user