rename bitedick to btdigg

This commit is contained in:
Romain Bignon 2014-01-29 12:02:30 +01:00
commit dd739fd763
7 changed files with 0 additions and 0 deletions

View file

@ -1,38 +0,0 @@
# -*- coding: utf-8 -*-
from weboob.capabilities.torrent import ICapTorrent
from weboob.tools.backend import BaseBackend
from .browser import BTDiggBrowser
__all__ = ['BTDiggBackend']
class BTDiggBackend(BaseBackend, ICapTorrent):
NAME = 'btdigg'
MAINTAINER = u'Matthieu Rakotojaona'
EMAIL = 'matthieu.rakotojaona@gmail.com'
VERSION = '0.i'
DESCRIPTION = 'The BitTorrent DHT search engine.'
LICENSE = 'CC0'
BROWSER = BTDiggBrowser
def create_default_browser(self):
return self.create_browser()
def get_torrent(self, id):
return self.browser.get_torrent(id)
def get_torrent_file(self, id):
return self.browser.get_torrent_file(id)
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:
# return self.get_torrent(torrent.id)
#OBJECTS = {
# Torrent:fill_torrent
#}