weboob-devel/weboob/tools
Vincent Texier 7a72b94b37 Fix bug dailymotion not playing video with "Server returned 403: Forbidden"
Dailymotion video url send cookies then use a 302 redirect to the real video url
The real video url check the cookies sent in the request.

Some mediaplayer (mplayer) can not handle this.

So we use pure python urllib2 to handle this and load the video.
The video bytes are piped to the mediaplayer.

Others modules might need this.
They just have to set the "_play_proxy" boolean attribute to the video object.

Signed-off-by: Vincent Texier <vit@free.fr>
2014-04-21 09:33:31 +02:00
..
application Fix bug dailymotion not playing video with "Server returned 403: Forbidden" 2014-04-21 09:33:31 +02:00
browser logger can be unset at this step 2014-03-26 09:44:13 +01:00
browser2 Use regexp to validate urls 2014-04-18 09:55:31 +02:00
capabilities improve documentation of browser2 2014-04-12 15:02:34 +02:00
captcha Fix Pillow import in core 2013-06-06 13:49:39 +02:00
config Use NamedTemporaryFile(delete=False) instead of mkstemp 2013-07-27 15:42:23 +02:00
parsers Remove unused/obsolete parsers 2014-03-22 01:03:38 +01:00
__init__.py PEP8 style fixes and other small style fixes 2012-03-14 04:51:46 +01:00
backend.py add a 'settings' attribute on loggers to store user values like 'save_responses', 'responses_dirname', 'ssl_insecure', etc. 2014-03-25 22:58:35 +01:00
date.py adding ChaoticDateGuesser when you know an interval 2014-02-26 18:37:52 +01:00
decorators.py Use newer form of catching exceptions 2013-07-27 15:16:16 +02:00
inspect.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
json.py try/except import are now handled by flake8 2.0+ / pyflakes 0.6+ 2013-03-19 19:10:20 +01:00
log.py add a 'settings' attribute on loggers to store user values like 'save_responses', 'responses_dirname', 'ssl_insecure', etc. 2014-03-25 22:58:35 +01:00
mech.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
misc.py remove useless import of with_statement (we do not support anymore python2.5) 2013-07-27 14:38:18 +02:00
newsfeed.py more explicit error messages during common import errors 2013-01-14 21:28:47 +01:00
ordereddict.py try/except import are now handled by flake8 2.0+ / pyflakes 0.6+ 2013-03-19 19:10:20 +01:00
path.py Make Collection more safe and sane 2012-03-13 22:08:45 +01:00
property.py PEP8 style fixes and other small style fixes 2012-03-14 04:51:46 +01:00
regex_helper.py import regex_helper from django 2014-03-10 13:11:07 +01:00
storage.py update code documentation 2012-04-01 17:41:20 +02:00
test.py Easy spacing fixes, trailing stuff 2013-03-16 00:54:55 +01:00
value.py strip password command output and take only the first line 2014-02-07 17:09:45 +01:00