Commit graph

21 commits

Author SHA1 Message Date
Laurent Bachelier
448c06d125 pep8 blank lines fixes
flake8 --select W391,E302,E301,E304

autopep8 can't fix W391 even though it claims it can.
Fixed using a simple custom script.
2014-10-10 23:41:44 +02:00
Florent
44dffce7b2 Rename CapBase to Capability 2014-09-26 10:18:12 +02:00
Florent
e5f11a15eb s/IBaseCap/CapBase/ (refs #1424) 2014-07-09 12:59:31 +02:00
Florent
537b49e6bd DateField/TimeField/Delta are not really a base object 2014-07-09 11:46:46 +02:00
Romain Bignon
e025fb0b20 rename ICap to Cap (closes #1424) 2014-07-05 17:33:44 +02:00
Romain Bignon
51958135cb rename CapBaseObject to BaseObject (refs #1424) 2014-07-05 17:26:05 +02:00
Romain Bignon
aea269e9f6 create UserError exception
Modules can raise this exception when they want to print errors to user
2012-04-25 13:43:52 +02:00
Romain Bignon
c6a141595c change way to describe fields of CapBaseObject, and lot of documentation 2012-03-26 14:35:54 +02:00
Laurent Bachelier
ee04a92f04 Support magnet URLs in weboorents 2012-03-09 02:49:00 +01:00
Laurent Bachelier
a31a751e28 Clean up the Torrent object
As discussed on IRC, those huge constructors aren't ideal.
Includes misc pep8 fixes.
2012-03-09 00:43:02 +01:00
Laurent Bachelier
878621825b Fix the KickAss test, and enhance it (closes #651)
This allowed to fix a crash when parsing descriptions with invalid
unicode (KickAss is quite horrible it seems).

A new attribute, filename, has been added. It is the recommended
filename of the .torrent file, and should simplify downloading files when
it will be supported by weboorents.

The usage text/tail was useless, lxml supports text_content() for HTML,
which is much simpler.
2011-04-28 11:21:01 +02:00
Romain Bignon
7e2bb91b3b change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
Romain Bignon
916400467e use "basestring" instead of "(str,unicode)" 2010-10-16 17:44:09 +02:00
Romain Bignon
92c6507f71 use the new add_field() method to define fields 2010-10-08 13:43:57 +02:00
Romain Bignon
e980e040ba capabilities objets inherit from CapBaseObject (refs #369) 2010-08-12 17:22:04 +02:00
Christophe Benz
45ffb0fe7d s/ICap/IBaseCap and add constants 2010-08-12 16:04:53 +02:00
Christophe Benz
470f2a9fe2 use real comments for licence header 2010-06-22 16:27:33 +02:00
Romain Bignon
550fee93ba command 'getfile' to store torrent in a file (or to stdout with '-') 2010-05-02 19:09:31 +02:00
Romain Bignon
2ee1c761ea implement Gazelle.get_torrent() method 2010-05-02 18:55:56 +02:00
Romain Bignon
85d78e9bdf new 'gazelle' backend (bittorrent trackers), implementing ICapTorrent 2010-05-01 16:47:39 +02:00
Romain Bignon
245c44987d new ICapTorrent capability 2010-05-01 14:41:09 +02:00