weboob.tools.browser -> weboob.deprecated.browser
weboob.tools.parsers -> weboob.deprecated.browser.parsers
weboob.tools.mech -> weboob.deprecated.mech
weboob.browser2 -> weboob.browser
weboob.core.exceptions -> weboob.exceptions
Also, the new tree for browser2 is:
weboob.browser: import weboob.browser.browsers.* and weboob.browser.url.*
weboob.browser.browsers: all browsers (including PagesBrowser and LoginBrowser)
weboob.browser.url: the URL class
weboob.browser.profiles: all Profile classes
weboob.browser.sessions: WeboobSession and FuturesSession
weboob.browser.cookies: that's a cookies thing
weboob.browser.pages: all Page and derivated classes, and Form class
weboob.browser.exceptions: specific browser exceptions
weboob.browser.elements: AbstractElement classes, and 'method' decorator
weboob.browser.filters.*: all filters
They bring nothing of value (we never use import * anyway) and introduce
a maintenance burden.
The __all__ that I left might not be very useful either but at least
they are not a pain to maintain; they are also used by pyflakes in some
cases.
Set the "_play_proxy" boolean attribute to the video object
to pipe the video to mplayer.
Fix Youtube module test.
Signed-off-by: Vincent Texier <vit@free.fr>
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>
Change extension from flv to mp4, cause all quality formats are h264/mp4
Signed-off-by: Vincent Texier <vit@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
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.