Commit graph

2,702 commits

Author SHA1 Message Date
Laurent Bachelier
d70e72486a Fix and update INSTALL 2012-03-18 21:41:25 +01:00
Romain Bignon
e2aaef914a fix 'close' command 2012-03-18 11:33:56 +01:00
Romain Bignon
4b947f8b29 add icon for freemobile 2012-03-18 10:30:43 +01:00
theo
8c977825b9 ls dir is equivalent to cd dir + ls + cd ..
Until now, ls discarded arguments.

ls = ls dir:

videoob> ls
~ (emissions) Emissions (canalplus)
~ (sport) Sport (canalplus)
~ (cinema) Cinema (canalplus)
~ (cesar-2012) Cesar 2012 (canalplus)
~ (series-fictions) Series / fictions (canalplus)
~ (du-hard-ou-du-cochon) Du hard ou du cochon (canalplus)
~ (divertissement) Divertissement (canalplus)
~ (canal-street) Canal street (canalplus)
~ (musique) Musique (canalplus)
~ (docus-infos) Docus / infos (canalplus)
videoob> ls sport
~ (emissions) Emissions (canalplus)
~ (sport) Sport (canalplus)
~ (cinema) Cinema (canalplus)
~ (cesar-2012) Cesar 2012 (canalplus)
~ (series-fictions) Series / fictions (canalplus)
~ (du-hard-ou-du-cochon) Du hard ou du cochon (canalplus)
~ (divertissement) Divertissement (canalplus)
~ (canal-street) Canal street (canalplus)
~ (musique) Musique (canalplus)
~ (docus-infos) Docus / infos (canalplus)

With this patch, we are now able to ls a dir without chdir into it.

For instance:
videoob> ls
~ (emissions) Emissions (canalplus)
~ (sport) Sport (canalplus)
~ (cinema) Cinema (canalplus)
~ (cesar-2012) Cesar 2012 (canalplus)
~ (series-fictions) Series / fictions (canalplus)
~ (du-hard-ou-du-cochon) Du hard ou du cochon (canalplus)
~ (divertissement) Divertissement (canalplus)
~ (canal-street) Canal street (canalplus)
~ (musique) Musique (canalplus)
~ (docus-infos) Docus / infos (canalplus)
videoob> ls sport
~ (les-incontournables) Les incontournables (canalplus)
~ (les-plus-recentes) Les plus recentes (canalplus)
~ (les-plus-vues) Les plus vues (canalplus)
~ (tout-le-football) Tout le football (canalplus)
~ (tout-le-rugby) Tout le rugby (canalplus)
~ (tout-le-basket) Tout le basket (canalplus)
~ (tout-le-tennis-golf) Tout le tennis / golf (canalplus)
~ (autres-sports-home-sport) Autres sports - home sport (canalplus)
~ (les-emissions-sport) Les emissions sport (canalplus)
videoob> ls
~ (emissions) Emissions (canalplus)
~ (sport) Sport (canalplus)
~ (cinema) Cinema (canalplus)
~ (cesar-2012) Cesar 2012 (canalplus)
~ (series-fictions) Series / fictions (canalplus)
~ (du-hard-ou-du-cochon) Du hard ou du cochon (canalplus)
~ (divertissement) Divertissement (canalplus)
~ (canal-street) Canal street (canalplus)
~ (musique) Musique (canalplus)
~ (docus-infos) Docus / infos (canalplus)

Signed-off-by: theo <theocrite@theocrite.org>
2012-03-16 17:20:18 +01: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
Romain Bignon
7c0bcfe499 fix included path 2012-03-16 15:03:06 +01:00
Laurent Bachelier
e958c229e6 Move the "empty search for latest" to collections
There is now a "latest" collection (or "latest_nsfw").
The feature didn't look much used, since it didn't work on many
backends.
Using collections will make it easy to support other things
like most viewed, featured, etc.
As a bonus, I added tests for every backend with the feature.
2012-03-16 03:34:22 +01:00
Laurent Bachelier
4d628112d5 Fix getting youjizz video URLs, better test 2012-03-16 01:31:42 +01:00
Florent Fourcot
65251c4ceb Display renew confirmation/errors 2012-03-16 00:49:58 +01:00
Florent Fourcot
03f998a33f Renew command on champslibres 2012-03-16 00:49:56 +01:00
Florent Fourcot
bdcc5db8bb Add "renew" in ICapBook and in boobooks 2012-03-16 00:49:54 +01:00
Florent Fourcot
8c0dbe18f0 Fix some strange effects with login 2012-03-16 00:49:53 +01:00
Florent Fourcot
34a71f9ef8 Fix error messages 2012-03-16 00:49:51 +01:00
Florent
12c51ba61c First implementation of champslibres module 2012-03-16 00:49:48 +01:00
Florent
642cfbb41c First implementation of taz.de module 2012-03-16 00:49:46 +01:00
Laurent Bachelier
ceac11153d Fix getting latest francetelevisions videos 2012-03-16 00:09:56 +01:00
Laurent Bachelier
e1d3e43a4d Fix getting dailymotion thumbnails
It is now in "data-src" instead of "src", because they use JavaScript
lazy loading.
Also ask for the bigger thumbnail, and remove useless anti-caching.
2012-03-15 23:49:55 +01:00
Laurent Bachelier
ea0af7b6a1 Fix getting latest dailymotion videos 2012-03-15 23:38:32 +01:00
Laurent Bachelier
9a5a80f21a Fix getting latest Arte videos 2012-03-15 22:55:00 +01:00
Laurent Bachelier
30ca21c5d8 Use the right default value for XDG_DATA_DIRS
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
2012-03-15 18:51:18 +01:00
Laurent Bachelier
d806585109 freemobile-munin: Fix typos, indentation, documentation 2012-03-15 18:27:26 +01:00
Romain Bignon
4422a25421 fix getting accounts 2012-03-15 15:50:47 +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
Laurent Bachelier
3a68fc615b Remove *.pyc before running tests 2012-03-14 23:53:14 +01:00
Romain Bignon
1200dc0408 add missing desktop file 2012-03-14 23:19:30 +01:00
Romain Bignon
1761feef51 add icons for new applications 2012-03-14 22:30:21 +01:00
Romain Bignon
8e391d0b88 bump to 0.c 2012-03-14 22:09:24 +01:00
Romain Bignon
f119e2e584 Weboob 0.b released 2012-03-14 22:08:56 +01:00
Laurent Bachelier
c43e4d40f9 Fix packaging of Qt Makefiles 2012-03-14 22:07:29 +01:00
Romain Bignon
224e6b923a move boobank-munin to contrib/ 2012-03-14 22:03:24 +01:00
Romain Bignon
df7325d712 get all fields of housings 2012-03-14 21:56:36 +01:00
Romain Bignon
98968d50d1 use urlparse to parse proxy url 2012-03-14 19:44:46 +01:00
Florent
d3de7d24de Fix parsing of internationals comings calls 2012-03-14 17:09:01 +01:00
Florent
12e4a9c6ff Change regexp (backend change) 2012-03-14 17:08:52 +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
Florent
a9d103ce5b Improve difference between National/International 2012-03-14 15:28:42 +01:00
Florent
7d4e185d02 Fix multiples results in prompt application 2012-03-14 11:46:08 +01:00
Florent
2dd47e745e Don't cut and url... 2012-03-14 10:50:07 +01:00
Florent
34e95f8f7b Add format as file extension 2012-03-14 10:30:17 +01:00
Romain Bignon
74a39b3ff5 fix call to get_details() 2012-03-14 07:20:54 +01:00
Florent
99a2e554e8 Download bill on freemobile 2012-03-14 07:12:03 +01:00
Laurent Bachelier
006e97a8be PEP8 style fixes and other small style fixes
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.

Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
  classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
  change to a comment something that wasn't really appropriate for a
  docstring.
* Unneeded first if condition in meteofrance
2012-03-14 04:51:46 +01:00
Romain Bignon
1e000acf3a remove unused imports 2012-03-13 22:45:39 +01:00
Romain Bignon
9c4b8e3a59 add a formatter for subscriptions, and do 'ls' work 2012-03-13 22:43:42 +01:00
Laurent Bachelier
6ad93c7ea9 Use the helper function in the new capability
Revolutionary and magical.
2012-03-13 22:10:24 +01:00
Laurent Bachelier
fae4470101 Prepare for objects that are also Collections
Don't force objects to have an id, especially since that id was
incorrect. "plap/plop" would have the same id as "plop", i.e. "plop".
We don't rely on the id for handling Collections anymore.

Change to use more unique property names.

Change the display, instead of using '*', we use '~', and there is no
"Collection" header anymore.
Updated formatters could use that way of showing the object is also a
collection too.

refs #774
2012-03-13 22:08:46 +01:00
Laurent Bachelier
f4dbefb6ef Add some useful properties to Collection 2012-03-13 22:08:46 +01:00
Laurent Bachelier
1430b40bc5 Fix some collecton validation
And add restrict_level helper method.
2012-03-13 22:08:46 +01:00