Support magnet URLs in weboorents

This commit is contained in:
Laurent Bachelier 2012-03-09 02:48:34 +01:00
commit ee04a92f04
2 changed files with 30 additions and 13 deletions

View file

@ -25,6 +25,12 @@ from .base import IBaseCap, CapBaseObject
__all__ = ['ICapTorrent', 'Torrent']
class MagnetOnly(Exception):
def __init__(self, magnet):
self.magnet = magnet
Exception.__init__(self, 'Only magnet URL is available')
class Torrent(CapBaseObject):
def __init__(self, id, name):
CapBaseObject.__init__(self, id)