Romain Bignon
9ca4a2530c
filename is not a required argument
2011-05-03 12:08:10 +02:00
Romain Bignon
5331e6fec6
remove unused code
2011-05-03 11:58:58 +02:00
Laurent Bachelier
904c9ff5f9
Fix typos and trailing spaces
2011-05-03 11:56:47 +02:00
Romain Bignon
3121e0c57d
fix 4chan backend to support message "AMERICA FUCK YEAH" outside of a thread
2011-05-03 11:55:57 +02:00
Romain Bignon
29d164f737
fix matched URLs of inrocks
2011-05-03 11:46:09 +02:00
Roger Philibert
432db07599
fix rate limiting
2011-05-03 02:52:54 +02:00
Noe Rubinstein
5eba831497
Fix and improve Galleroob
2011-05-03 02:52:54 +02:00
Noe Rubinstein
afe5db74b4
Put Thumbnail in a tools.capabilities
2011-05-03 02:52:38 +02:00
Noe Rubinstein
ecb076d9b5
Change "Video" to "Radio" in radioob
2011-05-03 02:22:49 +02:00
Noe Rubinstein
92c5ce8b66
Write Gallery to title-based dir
2011-05-03 02:22:49 +02:00
Roger Philibert
c74362edb7
Improve EHentai backend
2011-05-03 02:22:49 +02:00
Noé Rubinstein
ee7ae31abf
fix and improve galleroob
2011-05-03 02:22:49 +02:00
Romain Bignon
7e50b24b6b
Revert "Uncomment python dependencies." ( closes #654 )
...
This reverts commit dce76d35f8 .
It is really CRAPPY to add a hard dependencies to optional things like
PyQt.
2011-05-02 10:46:35 +02:00
Romain Bignon
d41a5de0d7
icons for new backends
2011-05-02 08:49:12 +02:00
Romain Bignon
1327edb1ed
add script to install xdg
2011-05-02 08:49:12 +02:00
Romain Bignon
6d6542f474
remove downparadise
2011-05-02 08:49:12 +02:00
Laurent Bachelier
aa939ca2bd
Support testing with multiple backend instances
...
This is useful for testing backends with different configurations
(different sites, being anonymous or not, etc.)
The previous behavior was to chose a random backend instance.
2011-05-02 02:05:14 +02:00
Laurent Bachelier
5fcc515fa6
Browser tries to login if the password is not None
...
Workaround since there is no way yet to mark a config argument as
optional.
2011-05-01 22:51:39 +02:00
Laurent Bachelier
f11d093e22
pastebin backend: stricter URL matching
2011-05-01 22:30:11 +02:00
Laurent Bachelier
5e90c1f47c
Support more YouTube URLs
...
The regular expression is also more strict, yet accepts the
youtu.be short URLs and user page URLs.
2011-05-01 14:37:15 +02:00
Laurent Bachelier
740e7f12d2
pastebin backend: Support login
...
Also add an option to Browser to avoid making useless requests.
2011-04-30 22:28:03 +02:00
Laurent Bachelier
f63180c187
CapPaste: Support expiration for posting, as a max_age parameter
2011-04-30 00:26:23 +02:00
Laurent Bachelier
a9220c96af
Add tools.capabilities.paste tools for building Paste Backends
...
It will provide useful functions but as it imposes on the structure of
the backends, it will not be put straight into the Paste capability.
2011-04-29 23:27:10 +02:00
Romain Bignon
d5bc6e7cc3
fix encoding issues when posting on wiki
2011-04-28 11:21:14 +02: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
Laurent Bachelier
b64b039cdd
paste* backends: Support '$full' for fields
2011-04-27 18:31:03 +02:00
Laurent Bachelier
fbd4511ffa
CapPaste: add method to find if a paste is suitable for the backend
...
Basic support in pastoob added (there is no way yet to change the
default options).
Backends support the "public/private" requirement.
2011-04-27 00:41:50 +02:00
Laurent Bachelier
9022435e49
paste* backends: Support the 'public' attribute
2011-04-27 00:32:15 +02:00
Laurent Bachelier
4b2b9e511f
pastoob: add a newline for get
...
Unless we are writing in a file or in a pipe
2011-04-26 18:55:42 +02:00
Laurent Bachelier
61c1aef493
pastoob: Fix displayed help for post
2011-04-26 18:55:42 +02:00
Romain Bignon
7602f0c1cc
oops invalid syntax
2011-04-26 13:17:39 +02:00
Romain
f43b2e6834
Fix FreeBSD support (permission issue)
...
Signed-off-by: Romain <romain.garbage@gmail.com>
2011-04-26 13:05:42 +02:00
Romain Bignon
48d6f1daf1
fix license
2011-04-26 09:12:22 +02:00
Romain Bignon
c6854cbfa3
FreeBSD support (thanks to Romain Garbage)
2011-04-26 08:17:38 +02:00
Romain Bignon
fa37ef38e3
fix to remove fucking hack from feedparser >= 5.0 ( closes #649 )
2011-04-24 16:58:20 +02:00
Laurent Bachelier
30f2f8e374
Python 2.5 compatibility for pastoob and paste backends
2011-04-24 00:18:05 +02:00
Laurent Bachelier
5ac2de43d7
Try to import Python's OrderedDict
...
There is an OrderedDict in Python 2.7+.
The try order is now as follows:
* OrderedDict from Python's collections module
* OrderedDict from the jsonencode module (dependency)
* OrderedDict from the ordereddict module (pypi package)
* our own OrderedDict
2011-04-23 23:55:12 +02:00
Romain Bignon
203d540163
fix fillobj() on videos without thumbnails
2011-04-23 09:22:25 +02:00
Romain Bignon
923c2ffc84
remove dead code
2011-04-23 09:04:41 +02:00
Laurent Bachelier
8af2674994
Better API for ICapPaste.new_paste
2011-04-23 00:30:27 +02:00
Laurent Bachelier
6c2d164883
Add basic support for pasting with pastoob
...
And fix the capability.
2011-04-23 00:17:40 +02:00
Laurent Bachelier
5c7eaa3151
Pastoob fixes
...
Do not use print (as it add a newline), fix the wanted fields, use "get"
instead of "show".
2011-04-22 22:06:14 +02:00
Laurent Bachelier
2c6d5d4e70
Fix previous commit on domain checking of id2url
...
* the condition on empty self.DOMAIN didn't work
* it introduced a regression as subdomains were accepted by the old code
2011-04-22 10:37:30 +02:00
Romain Bignon
a92063eb12
+x
2011-04-22 09:07:49 +02:00
Laurent Bachelier
d3f6c270f8
Introduce the pastoop application
...
For now it can only get the contents of a paste.
2011-04-21 23:11:00 +02:00
Laurent Bachelier
7bf794b7e5
Add missing fillobj() call on get_object
...
fillobj was only called when getting previously fetched objects in
interactive mode.
This probably wasn't detected because most get_* backend functions
usually fill a lot of fields by themselves.
2011-04-21 22:59:30 +02:00
Laurent Bachelier
c1c9b39e9d
paste* backends: Use the check_url decorator
2011-04-21 22:23:23 +02:00
Laurent Bachelier
4d8030b8dd
Add check_url decorator, remove check_domain
...
check_domain was not used anywhere and was bugged (the domain argument
was ignored in favor of self.DOMAIN).
The check_url decorator checks if the URL can be handled, if not it will
return None. The idea is to avoid making unnecessary requests.
2011-04-21 22:18:17 +02:00
Laurent Bachelier
1a4fd0d320
paste* backends: Stricter URL matching
2011-04-21 20:48:08 +02:00
Laurent Bachelier
619b97669d
Enhance domain checking of url2id
...
* Do not check for the domain if it is empty in the Browser class
* Better check of the domain (actually parse the URL domain)
* Add docstring
2011-04-21 20:15:18 +02:00