Commit graph

821 commits

Author SHA1 Message Date
Laurent Bachelier
c1c9b39e9d paste* backends: Use the check_url decorator 2011-04-21 22:23:23 +02:00
Laurent Bachelier
1a4fd0d320 paste* backends: Stricter URL matching 2011-04-21 20:48:08 +02:00
Laurent Bachelier
dc35df83ef paste* backends: Accept an URL or an ID
Like most other backends, with the id2url decorator.
2011-04-21 18:29:18 +02:00
Pierre Mazière
c7968faa20 LCL: fix history command due to website changes
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
Signed-off-by: Romain Bignon <romain@peerfuse.org>
2011-04-21 14:16:23 +02:00
Romain Bignon
66f31976bb really fix tests 2011-04-21 12:24:23 +02:00
Romain Bignon
5b057ea87f add tests for franceinter and lemouv 2011-04-21 12:16:42 +02:00
Romain Bignon
3465569da3 fix test 2011-04-21 12:15:29 +02:00
Romain Bignon
7098e44d9b use CapResources for radios 2011-04-21 12:07:37 +02:00
Romain Bignon
3751653874 rotating_password is an hidden input (closes #627) 2011-04-21 11:18:13 +02:00
Clément Schreiner
810a4fe9b0 test_push_content: now checks that the content has been pushed correctly 2011-04-21 11:02:52 +02:00
Romain Bignon
e8084ef99f CapCollection is stateless: remove get_working_collection() and change_working_collection() methods 2011-04-21 11:01:30 +02:00
Nicolas Duhamel
cc52b8eb3c Downparadise backend first commit 2011-04-20 09:26:34 +02:00
Nicolas Duhamel
f815a9c2c2 Catch CollectionNotFound 2011-04-20 09:26:33 +02:00
Nicolas Duhamel
27876970f3 backend stateful 2011-04-20 09:26:32 +02:00
Nicolas Duhamel
412a7d6e40 fix license 2011-04-20 09:26:32 +02:00
Nicolas Duhamel
d50f5f3fd4 Add collections to canalplus 2011-04-20 09:26:31 +02:00
Laurent Bachelier
154c061398 paste* backends: "Paste not found" exception 2011-04-20 01:03:04 +02:00
Laurent Bachelier
a1797bb27a pastealacon backend: The test paste got deleted 2011-04-16 14:30:12 +02:00
Romain Bignon
16c0c5174f strip content (closes #639) 2011-04-16 13:48:17 +02:00
Roger Philibert
19e4061e50 Fix #638 (Unable to find 'Cheveux') 2011-04-15 17:21:04 +02:00
Roger Philibert
31f01c2b4b fix mails parsing (fix #637)
Signed-off-by: Romain Bignon <romain@peerfuse.org>
2011-04-15 16:54:29 +02:00
Laurent Bachelier
1f571a9dc9 pastebin backend: Use a default expiration of one month
I don't want to clog pastebin's database with my unit tests!
2011-04-14 23:50:13 +02:00
Laurent Bachelier
ae52f23ea8 pastebin backend: Support posting via API if we have an apikey 2011-04-14 23:50:13 +02:00
Laurent Bachelier
667b8267db paste* backends: Do not fill the paste after post
It's the application job to call fill_paste().
We only need to get the id.
2011-04-14 23:50:13 +02:00
Laurent Bachelier
c2abb12985 paste* backends: Use the page regexp to find out the id 2011-04-14 23:49:57 +02:00
Roger Philibert
a75a4fd99c Fix E-Hentai for use without login 2011-04-14 16:19:51 +02:00
Romain Bignon
129dfc181a fix unused imports and version 2011-04-14 16:19:51 +02:00
Christophe Benz
0d92528b26 Check is_on_page(VideoPage). 2011-04-14 16:19:51 +02:00
Christophe Benz
555463c7ae Fix dailymotion with not-found URL. 2011-04-14 16:19:51 +02:00
Roger Philibert
7a0aad5e8f Some AUM fixups 2011-04-14 16:19:51 +02:00
Roger Philibert
90641ef956 E-Hentai backend 2011-04-14 16:19:51 +02:00
Laurent Bachelier
44f6189ca5 mediawiki backend: Use readurl instead of openurl
So that requests can be shown and saved if the debug options are activated.
json.load(fp) is just calling json.loads(fp.read) so there is no
performance loss.
2011-04-14 16:19:51 +02:00
Laurent Bachelier
4dc3e56d18 pastealacon backend: Support posting
The captcha is not handled but an exception is properly raised.
2011-04-14 16:19:51 +02:00
Laurent Bachelier
c2c9d365ba Add missing class to __all__ 2011-04-14 16:19:50 +02:00
Laurent Bachelier
9363781b3c Add pastealacon backend for CapPaste
Sadly, not posting for now, for two reasons:
* we get a captcha very often
* the form page seems invalid and mechanize is not able to select the form
2011-04-14 16:19:50 +02:00
Laurent Bachelier
51d4b87ebb pastebin backend: various fixes and enhancements
* Get the contents from the HTML page, eliminating one request
* Fix encoding support (everything is unicode) for all three Browser methods
* Enhance test
2011-04-12 01:43:27 +02:00
Laurent Bachelier
e597ea8844 pastebin backend: Switch to xpath expressions 2011-04-12 01:02:13 +02:00
Romain Bignon
b079953916 remove debug stuff 2011-04-11 11:17:49 +02:00
Romain Bignon
cc0b17e14e remove unused import 2011-04-11 08:28:27 +02:00
Xavier G
c5c6ddb742 CrAgr backend: cents were not correctly formatted before form submit. 2011-04-11 08:28:27 +02:00
Laurent Bachelier
a93b1a7271 cragr: Better workaround for the absence of redirection 2011-04-11 08:28:27 +02:00
Laurent Bachelier
73137b681d cragr: Support of a new history layout
Much easier to parse due to having properly separated in table elements,
and having parent div with meaningful IDs.
Found on the Toulouse region.
2011-04-11 08:28:27 +02:00
Laurent Bachelier
d56ed544fa cragr: Fix login issues with the Toulouse website (closes #629) 2011-04-11 08:28:01 +02:00
Laurent Bachelier
8b874f6b0a Add Pastebin backend and Paste capability
It is able to get a paste, and post a new one.
Only the contents and title fields are supported for now.
2011-04-10 17:32:20 +02:00
Romain Bignon
27ecb3b853 fix version and license 2011-04-10 17:27:58 +02:00
Romain Bignon
f3b2cea4ea fix franceinter radio 2011-04-10 16:48:56 +02:00
Johann Broudin
c84672b0d5 Add the french radio 'france inter' 2011-04-10 16:48:55 +02:00
Romain Bignon
9afb301ebe move select() in parser 2011-04-09 11:25:13 +02:00
Romain Bignon
7e2bb91b3b change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
Romain Bignon
5e949f6426 fix unicode problems (closes #624) 2011-04-06 12:08:50 +02:00