Commit graph

69 commits

Author SHA1 Message Date
Florent Fourcot
7408950a0e radiofrance: remove useless else 2015-09-16 15:42:18 +02:00
Bezleputh
5f302d3e09 [radiofrance] handle new francebleu website, retrieve the good player url when default player is the video player 2015-09-15 10:46:18 +02:00
Bezleputh
f63212ea0e [radiofrance] Cleanrly display live in repl 2015-08-03 13:54:53 +02:00
Bezleputh
706a96a1f8 [radiofrance] minor fixes 2015-07-06 16:17:14 +02:00
Bezleputh
1b530433bf [radiofrance] fix typo 2015-07-02 16:28:14 +02:00
Bezleputh
4f93b7b83e [audio] move specific audio filters from weboob/capabilities/audio.py to weboob/tools/capabilities/audio/audio.py 2015-07-02 16:23:14 +02:00
Bezleputh
19a785a643 [radiofrance] handle podcasts 2015-07-02 15:35:35 +02:00
Bezleputh
3ce5002d1b [radiofrance] manage selection podcasts / improve testing 2015-07-02 15:35:34 +02:00
Bezleputh
6fe9170a9e [radiofrance] fix bug parsing json 2015-06-30 13:59:13 +02:00
Bezleputh
cfb603c6ad [radiofrance] site changed / backend rewritten using browser2 2015-06-25 13:57:25 +02:00
Florent
feb1405813 bump to 1.1 2014-10-17 14:10:38 +02:00
Laurent Bachelier
f4c17cdc9d pep8: Fix E303 too many blank lines 2014-10-11 02:15:28 +02:00
Romain Bignon
d61e15cf84 rename things related to browsers
weboob.tools.browser -> weboob.deprecated.browser
weboob.tools.parsers -> weboob.deprecated.browser.parsers
weboob.tools.mech -> weboob.deprecated.mech
weboob.browser2 -> weboob.browser
weboob.core.exceptions -> weboob.exceptions

Also, the new tree for browser2 is:

weboob.browser: import weboob.browser.browsers.* and weboob.browser.url.*
weboob.browser.browsers: all browsers (including PagesBrowser and LoginBrowser)
weboob.browser.url: the URL class
weboob.browser.profiles: all Profile classes
weboob.browser.sessions: WeboobSession and FuturesSession
weboob.browser.cookies: that's a cookies thing
weboob.browser.pages: all Page and derivated classes, and Form class
weboob.browser.exceptions: specific browser exceptions
weboob.browser.elements: AbstractElement classes, and 'method' decorator
weboob.browser.filters.*: all filters
2014-10-07 00:30:07 +02:00
Florent
0088013ae1 Rename BaseBrowser to Browser 2014-09-26 10:18:12 +02:00
Florent
444d36eee8 Rename BasePage to Page 2014-09-26 10:18:12 +02:00
Florent
5a1d83b567 Rename BaseModule to Module and Module to LoadedModule 2014-09-26 10:18:12 +02:00
Florent
f3aeddffbc Rename backend.py to module.py 2014-09-26 10:18:12 +02:00
Florent
9370b2fae7 s/Backend/Module 2014-09-26 10:18:11 +02:00
Florent
3ecb491c1c s/BACKEND/MODULE/ 2014-09-26 10:18:11 +02:00
Florent
8559af3d6a s/BaseBackend/BaseModule 2014-09-26 10:18:11 +02:00
Florent
432f97e95c bump to 1.0 2014-09-03 17:14:10 +02:00
Bezleputh
0d588e56dd [radiofrance] fix #1449 2014-08-27 16:13:26 +02:00
Romain Bignon
e025fb0b20 rename ICap to Cap (closes #1424) 2014-07-05 17:33:44 +02:00
Florent
9ca0bbae6a bump to 0.j 2014-05-19 22:45:35 +02:00
Florent
a82f57512c bump to 0.i 2014-01-08 23:40:16 +01:00
Pierre Mazière
e7805cec12 rename AudioStreamInfo into StreamInfo
Allowing future use with upcoming VideoStream

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2014-01-05 22:46:05 +01:00
Pierre Mazière
fe33234960 modify radiofrance module to use the modified ICapRadio
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2013-12-16 11:50:33 +01:00
Florent
9b022b2ebe bump to 0.h 2013-08-03 14:31:13 +02:00
Laurent Bachelier
c193cae3b9 No need to support deprecated cgi module 2013-07-27 15:19:58 +02:00
Romain Bignon
c0740e695d remove useless import of with_statement (we do not support anymore python2.5)
refs #806
2013-07-27 14:38:18 +02:00
Florent
9484099a1d bump to 0.g 2013-03-26 18:31:12 +01:00
Laurent Bachelier
be3e19a203 try/except import are now handled by flake8 2.0+ / pyflakes 0.6+ 2013-03-19 19:10:20 +01:00
Florent
bf3132e8c0 bump to 0.f 2013-01-25 17:23:49 +01:00
Laurent Bachelier
541d080c9d Use flake8 if available instead of pyflakes
With flake8, we can check for more issues and ignore those who are not
real issues.

This allowed me to find genuine errors in:
- modules/boursorama/pages/account_history.py
- modules/ing/pages/login.py
- weboob/tools/application/qt/qt.py
I left one in weboob/tools/browser/browser.py for the time being.

Some PEP8 fixes on other files.
2012-11-24 19:46:34 +01:00
Laurent Bachelier
1f310a3d33 Fix many CapVideo-related ConversionWarnings 2012-11-10 18:18:29 +01:00
Romain Bignon
4a1e4b5afa bump to 0.e 2012-10-28 20:39:49 +01:00
Laurent Bachelier
3a66728392 Fix crashes with unicode characters in maintainer name
Change every mention of MAINTAINER to avoid future issues.
2012-10-24 13:29:30 +02:00
Laurent Bachelier
9d5f808de9 radiofrance: Support franceinfo archives 2012-10-03 19:13:31 +02:00
Romain Bignon
2f8072e89e bump to 0.d 2012-05-04 21:17:46 +02:00
Laurent Bachelier
b8d1a52732 Use simplejson first, and centralize import
simplejson is supposed to be faster:
http://stackoverflow.com/questions/712791/json-and-simplejson-module-differences-in-python
2012-03-16 16:27:22 +01:00
Laurent Bachelier
0e0bf2ad37 radiofrance: Fix crash when there is no author
Triggered by FIP at night.
Also force unicode when merging titles.
2012-03-14 23:54:39 +01:00
Romain Bignon
8e391d0b88 bump to 0.c 2012-03-14 22:09:24 +01:00
Laurent Bachelier
6b6822f6ec radiofrance: Use a better source for FIP
But sometimes it doesn't work. So, we still have the playerjs method as
a fallback.
2012-03-14 17:05:53 +01:00
Laurent Bachelier
8080a71751 Remove duplicate information
Show hosts are sometimes set as the artist.
2012-03-14 17:05:53 +01:00
Laurent Bachelier
184cabf345 radiofrance: Fix fetching FIP current, support replay
FIP now uses the same website as most Radio France radios.
As a consequence, it is able to support CapVideo.

There are a few differences between FIP and the other radios, but this
still allowed for less code, and the code should be more robust for
every radio.
2012-03-14 17:05:53 +01:00
Laurent Bachelier
1430b40bc5 Fix some collecton validation
And add restrict_level helper method.
2012-03-13 22:08:46 +01:00
Laurent Bachelier
b4b7182960 Make Collection more safe and sane
* Remove callbacks in Collection object
  Make Collection a "dumb" object (and also a base object,
  though it isn't very useful for now)
* Rename Path to WorkingPath, because it is more about managing state
  than being a single path.
* Rewrite almost all WorkingPath, because the code was overly
  complicated for no reason (I tried some special cases and it turned
  out that fromstring didn't handle them, and that the
  quote-escape-unquote was just unecessary). I also rewrote it to be
  more pythonic (no more lambdas and maps) and added tests.
* Require the full split path when creating a Collection. Because, come to
  think of it, an object needs an unique identifier; in the case of
  Collections, it is the full path, not only its last part.
  I might even replace the id by the full split path in the future.
* There is now only one way to get items of a Collection: calling
  iter_resources().
* Rewrite flatten_resources to iter_resources_flat(), which just calls
  iter_resources() recursively.
* Rewrite the collection part of the canalplus module. There is no more
  callback or a page calling the browser to check another page!
  The logic is only in iter_resources().
  The resulting code is not very pretty, but it should get better.
  As a bonus, avoid to reload the main XML file when we already have it
  open.
* change_path() now expects a split path and not a string.
* up/home special cases for "cd" are handled in the same place, and
  store the previous place properly (but are not yet exploitable by
  an user command).

This is a big commit but it would be hard to split it in *working*
commits.

If you read this entire commit message, I will buy you a beer.

refs #774
fixes #773
2012-03-13 22:08:45 +01:00
Laurent Bachelier
062f2c4c3e Fix Python 2.5 support
And fix some PEP8 style issues (mostly about spaces) while I was there.

refs #806
2012-03-13 12:36:02 +01:00
Romain Bignon
56691d7ea7 rename iter_search_results to either search_videos and search_gallery (closes #779) 2012-03-12 16:24:33 +01:00
Laurent Bachelier
0fa7060b68 Better descriptions for modules 2012-02-11 00:46:48 +01:00