Commit graph

106 commits

Author SHA1 Message Date
Bezleputh
9e40e5b9df [videoob] Use wget instead of avconv 2014-05-06 22:32:41 +02:00
Bezleputh
9e72f864b3 [videoob] use aconv to download videos 2014-05-06 15:51:05 +02:00
Bezleputh
9ca4784a27 [videoob] add playlist play command 2014-01-24 00:44:49 +01:00
Romain Bignon
d2b9a0a2d2 move obj_to_filename() into ReplApplication and use it in weboorrents 2014-01-16 23:56:42 +01:00
Romain Bignon
dc4984a811 add command 'videoob playlist download' 2014-01-16 23:43:40 +01:00
Romain Bignon
69d392e0c0 videoob [play|info]: ability to give several videos 2014-01-16 23:08:24 +01:00
Noe Rubinstein
cb411f4c54 Videoob: download: replace data fields in video filename 2014-01-17 00:04:35 +01:00
Florent
a82f57512c bump to 0.i 2014-01-08 23:40:16 +01:00
Florent
d2a1985e87 Allow to download in a folder with generated filename 2013-12-05 13:19:16 +01:00
Vincent A
89e1917a86 videoob: support curl for downloading 2013-11-21 14:19:58 +01:00
Vincent A
5a30d5568a videoob: sanitize default download filename
As full URLs are supported with quvi backend, the default download
filename has to be tweaked.
2013-09-11 11:53:34 +02:00
Bezleputh
7c62d9a570 add playlist support in videoob 2013-09-09 09:46:44 +02:00
Florent
9b022b2ebe bump to 0.h 2013-08-03 14:31:13 +02:00
Romain Bignon
b99d599aa9 remove parameter max_results from all capabilities 2013-07-27 23:40:24 +02:00
Romain Bignon
bdf4c13f4e remove useless calls to ReplApplication.flush() (closes #812) 2013-07-27 19:00:58 +02:00
Romain Bignon
9094294683 default behavior is to unlimit results, except for explicit commands (searches or history)
closes #1139
2013-07-27 15:56:45 +02:00
Laurent Bachelier
a6ad7e83ff Use newer form of catching exceptions
autopep8 -i --select=W602
Also some other minor deprecated syntax changes, like "while 1".
I did not commit the less obvious changes.
2013-07-27 15:16:16 +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
7094931c92 Easy spacing fixes, trailing stuff
Remove useless trailing \
Remove trailing spaces
Add missing empty lines

autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 .

Diff quickly checked.
2013-03-16 00:54:55 +01:00
ianux
d01b0ef58f Add resume option for video downloading
Signed-off-by: ianux <ianux@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2013-03-09 23:14:09 +01:00
Laurent Bachelier
ae06ae3384 Add missing "whatis entry" to man pages
This is recommended by Debian.
closes #618
2013-02-13 00:38:33 +01:00
Florent
bf3132e8c0 bump to 0.f 2013-01-25 17:23:49 +01:00
Julien Hebert
16edbd9141 prise en charge du rtmp 2012-12-10 18:07:49 +01:00
theo
cf60351830 Add -e to rtmpdump options
Adding -e to rtmpdump.

So instead of:
    rtmpdump -r <url> -o <file>
we will have
    rtmpdump -e -r <url> -o <file>

If <file> doesn't exist, it will be created. So the -e switch doesn't
change anything.

If <file> alredy exists, then rtmpdump will try to complete a previous
download.

That way, if videoob download <id> fails, running the command again
will complete the download without starting again from scratch.
2012-11-06 01:13:45 +01:00
Romain Bignon
4a1e4b5afa bump to 0.e 2012-10-28 20:39:49 +01:00
Romain Bignon
3fcc3333a0 do not write description line if there are only NotAvailable attributes 2012-10-27 16:47:23 +02:00
Romain Bignon
2f8072e89e bump to 0.d 2012-05-04 21:17:46 +02:00
Romain Bignon
fc849995f4 rewrite of the formatters system 2012-04-03 22:40:38 +02:00
Laurent Bachelier
3b2bafdf12 Centralize "empty" comparisons
And always use "is" instead of "==".
2012-03-27 12:14:37 +02: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
Romain Bignon
8e391d0b88 bump to 0.c 2012-03-14 22:09:24 +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
Romain Bignon
56691d7ea7 rename iter_search_results to either search_videos and search_gallery (closes #779) 2012-03-12 16:24:33 +01:00
Romain Bignon
5019e07232 check all empty values possible 2012-03-12 13:44:51 +01:00
Romain Bignon
4be4b40509 bump to 0.b 2012-02-05 19:35:30 +01:00
Laurent Bachelier
bfb3689456 Add object type filtering to iter_resources 2012-02-05 13:30:02 +01:00
Laurent Bachelier
53915bf6b5 Better way of testing the start of a string 2012-02-04 02:08:56 +01:00
Romain Bignon
eb3f681136 bump to 0.a 2011-10-10 11:38:02 +02:00
Romain Bignon
d9e174d4c1 display a warning when no URL is available on media 2011-08-04 09:24:38 +02:00
Romain Bignon
654af3ecc4 command 'download' supports mms streams 2011-06-25 13:50:13 +02:00
Romain Bignon
53e22d9f4b bump to 0.9 2011-05-08 18:31:44 +02:00
Laurent Bachelier
8075d538f0 Better messages and return codes in applications
Use stderr and return codes >0 when it makes sense.
Loose return code conventions:
* 1 for generic errors
* 2 for user input errors
* 3 for remote errors (not found, etc.)
* 4 for not implemented
2011-05-04 00:44:43 +02:00
Romain Bignon
48d6f1daf1 fix license 2011-04-26 09:12:22 +02:00
Romain Bignon
7098e44d9b use CapResources for radios 2011-04-21 12:07:37 +02:00
Romain Bignon
c28d5a99c1 factorize ls and cd in ReplApplication 2011-04-21 11:01:50 +02:00
Nicolas Duhamel
0f53a02947 Introduce tostring function 2011-04-20 09:26:33 +02:00
Nicolas Duhamel
82afb34f7a Use Path object 2011-04-20 09:26:33 +02:00
Nicolas Duhamel
f815a9c2c2 Catch CollectionNotFound 2011-04-20 09:26:33 +02:00
Nicolas Duhamel
3e17eb0991 little fix 2011-04-20 09:26:33 +02:00