Support magnet URLs in weboorents
This commit is contained in:
parent
f8843084f0
commit
ee04a92f04
2 changed files with 30 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue