1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-04 10:54:35 +00:00

Ported ThePirateBay plugin to the new API

This commit is contained in:
Christophe Dumez 2010-12-26 09:55:33 +00:00
parent c14deec893
commit 384eaf54ef
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#VERSION: 1.30 #VERSION: 1.40
#AUTHORS: Fabien Devaux (fab@gnux.info) #AUTHORS: Fabien Devaux (fab@gnux.info)
#CONTRIBUTORS: Christophe Dumez (chris@qbittorrent.org) #CONTRIBUTORS: Christophe Dumez (chris@qbittorrent.org)
@ -58,6 +58,7 @@ class piratebay(object):
self.current_item = {} self.current_item = {}
self.td_counter = 0 self.td_counter = 0
self.code = params['href'].split('/')[2] self.code = params['href'].split('/')[2]
self.current_item['desc_link'] = 'http://thepiratebay.org'+params['href'].strip()
self.in_name = True self.in_name = True
elif params['href'].startswith('http://torrents.thepiratebay.org/%s'%self.code): elif params['href'].startswith('http://torrents.thepiratebay.org/%s'%self.code):
self.current_item['link']=params['href'].strip() self.current_item['link']=params['href'].strip()

View File

@ -2,6 +2,6 @@ isohunt: 1.32
torrentreactor: 1.21 torrentreactor: 1.21
btjunkie: 2.31 btjunkie: 2.31
mininova: 1.40 mininova: 1.40
piratebay: 1.30 piratebay: 1.40
vertor: 1.1 vertor: 1.1
torrentdownloads: 1.06 torrentdownloads: 1.06