[isohunt] fillobj integration
This commit is contained in:
parent
e8a788cb00
commit
e0d1c7919d
2 changed files with 24 additions and 11 deletions
|
|
@ -18,7 +18,7 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
from weboob.capabilities.torrent import ICapTorrent
|
||||
from weboob.capabilities.torrent import ICapTorrent, Torrent
|
||||
from weboob.tools.backend import BaseBackend
|
||||
|
||||
from .browser import IsohuntBrowser
|
||||
|
|
@ -50,3 +50,11 @@ class IsohuntBackend(BaseBackend, ICapTorrent):
|
|||
|
||||
def iter_torrents(self, pattern):
|
||||
return self.browser.iter_torrents(pattern.replace(' ','+'))
|
||||
|
||||
def fill_torrent(self, torrent, fields):
|
||||
if 'description' in fields or fields == None or 'files' in fields:
|
||||
return self.get_torrent(torrent.id)
|
||||
|
||||
OBJECTS = {
|
||||
Torrent:fill_torrent
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue