Commit graph

32 commits

Author SHA1 Message Date
Alexandre Morignot
39f1cf6357 [dailymotion] fix get video url 2015-08-21 09:41:53 +02:00
Vincent Texier
aea0b6a6b7 Fix dailymotion "search" return bug message
Bug(dailymotion): Not enough elements found (1 expected) with selector "div.sd_video_previewtwig"

Signed-off-by: Vincent Texier <vit@free.fr>
2014-11-18 22:15:34 +01:00
Laurent Bachelier
448c06d125 pep8 blank lines fixes
flake8 --select W391,E302,E301,E304

autopep8 can't fix W391 even though it claims it can.
Fixed using a simple custom script.
2014-10-10 23:41:44 +02:00
Romain Bignon
d61e15cf84 rename things related to browsers
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
2014-10-07 00:30:07 +02:00
Florent
444d36eee8 Rename BasePage to Page 2014-09-26 10:18:12 +02:00
Laurent Bachelier
3da02fde24 Remove useless __all__ in modules
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.
2014-09-09 19:00:02 +02:00
Florent
1daa866949 Move the import oh html2text outside of misc 2014-07-09 11:43:14 +02:00
Vincent Texier
baa289a777 Fix Youtube mplayer error "No stream found to handle url"
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>
2014-05-23 10:36:41 +02:00
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
Vincent Texier
ea574adcdb fix bug dailymotion search returns nothing
Signed-off-by: Vincent Texier <vit@free.fr>
2014-04-18 09:53:41 +02:00
Florent
3c9b1b7f53 Better selection of the div (dailymotion) 2014-04-02 14:22:18 +02:00
Florent
dca7f92c49 Fix search on dailymotion 2014-04-02 14:00:38 +02:00
Florent
36cc82d34a Traling whitespace and pep8 cleaning 2014-03-10 20:18:22 +01:00
Yann Rouillard
9010ffb025 add support for videos available at kids.dailymotion.com 2014-03-10 20:18:22 +01:00
Vincent Texier
a79ccec8bb Fix empty fields in dailymotion plugin
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>
2014-01-12 12:24:28 +01:00
Vincent Texier
057aa7e684 fix bugs in daily motion video page (closes #1320) 2014-01-02 22:33:01 +01:00
Pierre Mazière
d0b9be3916 modify dailymotion module to use the new BaseVideo/ICapVideo classes 2013-12-22 20:04:53 +01:00
Etienne Carriere
4940d6d8a6 Fix dailymotion thumbmail retrieving
Closes #1310
2013-10-28 14:50:29 +01:00
François Revol
9b6d87f3e5 dailymotion: try to fix getting the full JSON data
http://www.dailymotion.com/video/xtcsln for ex. has some sublists
which weren't cought correctly.
2013-09-18 13:39:46 +02:00
Romain Bignon
5dd502bfe5 fix dailymotion (play still doesn't work)
It fixes search and get video url (code from youtube-dl)

It isn't possible to play because it is necessary to give cookies to
player
2013-09-02 11:43:48 +02:00
Jean-Benoist Leger
74578f2558 dailymotion module: change in parsinges.py
Signed-off-by: Jean-Benoist Leger <leger@jblg.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2013-09-02 11:37:59 +02:00
Romain Bignon
c0e4609ee1 fix parsing of author 2013-06-29 20:32:02 +02:00
Laurent Bachelier
f37e3c5742 Fix indents not multiples of four 2013-03-16 00:57:31 +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
Romain Bignon
8b3d4128da fix extraction of video url 2013-02-11 22:04:04 +01:00
Laurent Bachelier
1f310a3d33 Fix many CapVideo-related ConversionWarnings 2012-11-10 18:18:29 +01:00
Laurent Bachelier
2eb2747ebb dailymotion: Text fields with more consistency and less warnings 2012-10-23 13:11:05 +02:00
Romain Bignon
9294f3e964 fix parsing authors on anyclip videos 2012-06-08 11:24:57 +02:00
Romain Bignon
189896de02 fix parsing video IDs 2012-04-06 16:08:02 +02: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
Romain Bignon
ef07a9e795 do not use thumbnail_url anymore (closes #810), use set_empty_fields() method, do not give fields in constructor of BaseVideo anymore 2012-03-12 17:16:42 +01:00
Romain Bignon
14a7a1d362 support repositories to manage backends (closes #747) 2012-01-17 17:00:05 +01:00
Renamed from weboob/backends/dailymotion/pages.py (Browse further)