Commit graph

120 commits

Author SHA1 Message Date
Romain Bignon
9d1155955e correctly fix the problem with streamed calls on requests (closes #1683)
Do not close explicitly the socket, as it is closed automatically when all
the data is consumed.
2014-12-10 11:36:09 +01:00
Bezleputh
d0cac165ef [videoob] fix #1683 : fix problem with stream parameter in request.get in python-requests v2.5 2014-12-08 20:59:52 +01:00
Florent
d6da9843db Set copyright in applications 2014-10-17 17:57:42 +02:00
Florent
feb1405813 bump to 1.1 2014-10-17 14:10:38 +02:00
Bezleputh
724a18873b [videoob] set non verbose mode for wget when downloading m3u8 (fix #1643) 2014-10-15 11:10:43 +02:00
Florent
628c63f899 Remove backend for do() calls 2014-10-10 14:11:45 +02:00
Laurent Bachelier
74a4ef6723 Use the print function everywhere
python modernize.py --no-six -f libmodernize.fixes.fix_print -w

With manual fixes as the import was put always on top.
2014-10-06 17:00:17 +02:00
Laurent Bachelier
c07e23cafc Use class attributes as much as possible for application output
refs #803
2014-09-04 12:41:25 +02:00
Florent
432f97e95c bump to 1.0 2014-09-03 17:14:10 +02:00
Bezleputh
0a761c5d9d [videoob] improve m3u8 management in download 2014-07-29 17:40:24 +02:00
Romain Bignon
e025fb0b20 rename ICap to Cap (closes #1424) 2014-07-05 17:33:44 +02:00
Florent
b105b8df19 Fix definition of DISPLAYED_FIELDS 2014-06-18 15:34:59 +02:00
Florent
30732318b5 Introduce the DISPLAYED_FIELDS in formatter 2014-06-17 15:45:13 +02:00
Florent
9ca0bbae6a bump to 0.j 2014-05-19 22:45:35 +02:00
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