Commit graph

46 commits

Author SHA1 Message Date
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
Romain Bignon
4be4b40509 bump to 0.b 2012-02-05 19:35:30 +01:00
Romain Bignon
dfb52a2624 verbose error messages in Qt applications (closes #775) 2012-02-05 17:19:36 +01:00
Laurent Bachelier
664e4cc094 Python 2.5 compatibility 2012-02-05 13:39:24 +01:00
Laurent Bachelier
bfb3689456 Add object type filtering to iter_resources 2012-02-05 13:30:02 +01:00
Laurent Bachelier
70034d002d Provide the right extension for downloads 2012-02-04 11:34:41 +01:00
Laurent Bachelier
0dacfa1150 Add support for fetching past emissions URLs
Works with France Inter and France Culture
2012-02-04 02:08:56 +01:00
Laurent Bachelier
1a32711fa6 Fix typo in current emission artist for radiofrance 2012-02-03 13:58:04 +01:00
Laurent Bachelier
7ca156116e Support fetching the current FIP song
Sadly the weird encoding stuff is required.
2012-02-03 13:55:03 +01:00
Laurent Bachelier
3c9c2c7490 Split backend.py into backend.py and browser.py
It was becoming too large.
2012-02-03 13:55:02 +01:00
Laurent Bachelier
682e14c86a Make CapCollection understandable and useable by humans
* Make the declaration of fct and it in the constructor Collection,
 instead of adding them from the outside
* Add a function to flatten a list containing collection (solves the
 radioob search crash)
* Better display of collections in the "ls" command (and display both id
 and title)
* The "cd" command goes to the root of the path (like the UNIX cd)
* Move the Video object of canalplus in a correct path
* Make Collection iterable
* Add comments to CapCollection
* Cache the result of fct in a Collection; it is only called once
* CollectionNotFound errors can be more explicit by providing a path
* Require utf-8 in collection paths
* Code cleanups
2012-02-02 23:44:13 +01:00
Laurent Bachelier
8d15911d67 Fix some failures with badly set 'current' field. 2012-02-02 15:25:13 +01:00
Laurent Bachelier
a37382ff50 Move francebleu into a Collection
Rationale:
* 43 stations for a radio not many people care about
* It's still available by cd francebleu; ls
* The fact that it exists is displayed on the 'root' ls (though poorly,
 but it's CapCollection's/ReplApplication fault).
2012-02-02 15:24:47 +01:00
Laurent Bachelier
a19b1be338 The past participle of split is "split", not "splitted" 2012-02-02 14:26:35 +01:00
Laurent Bachelier
70317ca4e3 Sort radios 2012-02-02 10:31:51 +01:00
Laurent Bachelier
365247bd63 Add support for current France Musique info 2012-02-02 02:24:04 +01:00
Laurent Bachelier
3c20c95891 Report the correct bitrate 2012-02-02 02:00:20 +01:00
Laurent Bachelier
e0e8149bc8 Add all France Bleu stations 2012-02-02 01:53:55 +01:00
Laurent Bachelier
a1359c2303 Add another source for direct
And extract artist / title if possible
2012-02-02 01:08:41 +01:00
Laurent Bachelier
271a387ba5 Rewrite lemouv/franceinter into radiofrance
* Support for France Inter and Le Mouv', and many new radios.
* For some radios only, the current emission is fetched. Previously it was
 wrong for all two of them.
* New icon.
* Fix typo in LICENSE.
* Fix code style.
* Use fillobj() instead of duplicate code.
* Since there is not much left of the originals, I made myself the maintainer.
2012-02-02 00:29:24 +01:00