Commit graph

57 commits

Author SHA1 Message Date
Florent
f3aeddffbc Rename backend.py to module.py 2014-09-26 10:18:12 +02:00
Florent
9370b2fae7 s/Backend/Module 2014-09-26 10:18:11 +02:00
Florent
3ecb491c1c s/BACKEND/MODULE/ 2014-09-26 10:18:11 +02:00
Florent
8559af3d6a s/BaseBackend/BaseModule 2014-09-26 10:18:11 +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
432f97e95c bump to 1.0 2014-09-03 17:14:10 +02:00
Florent
1daa866949 Move the import oh html2text outside of misc 2014-07-09 11:43:14 +02:00
Romain Bignon
e025fb0b20 rename ICap to Cap (closes #1424) 2014-07-05 17:33:44 +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
Florent
9ca0bbae6a bump to 0.j 2014-05-19 22:45:35 +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
Laurent Bachelier
46d858d772 dailymotion: Funnier logo 2014-01-17 22:53:11 +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
Florent
a82f57512c bump to 0.i 2014-01-08 23:40:16 +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
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
c0740e695d remove useless import of with_statement (we do not support anymore python2.5)
refs #806
2013-07-27 14:38:18 +02:00
Romain Bignon
c0e4609ee1 fix parsing of author 2013-06-29 20:32:02 +02:00
Florent
9484099a1d bump to 0.g 2013-03-26 18:31:12 +01: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
Laurent Bachelier
dc4fa48e53 dailymotion: Fix search
And avoid redirects
2013-02-27 00:11:34 +01:00
Romain Bignon
8b3d4128da fix extraction of video url 2013-02-11 22:04:04 +01:00
Florent
bf3132e8c0 bump to 0.f 2013-01-25 17:23:49 +01:00
Laurent Bachelier
1f310a3d33 Fix many CapVideo-related ConversionWarnings 2012-11-10 18:18:29 +01:00
Romain Bignon
4a1e4b5afa bump to 0.e 2012-10-28 20:39:49 +01:00
Laurent Bachelier
3a66728392 Fix crashes with unicode characters in maintainer name
Change every mention of MAINTAINER to avoid future issues.
2012-10-24 13:29:30 +02:00
Laurent Bachelier
c7c23b11ab dailymotion: Use the right domain
dailymotion.com would always get redirected to www.dailymotion.com.
This saves us at least one request.
2012-10-23 15:57:04 +02:00
Laurent Bachelier
96860fcb97 dailymotion: Chose a random video to test
Did this mostly because the first video had an issue, it was first
in the search results but deleted (the page was "410 Gone").
But this ends up testing more videos anyway.
2012-10-23 15:55:38 +02:00
Laurent Bachelier
2eb2747ebb dailymotion: Text fields with more consistency and less warnings 2012-10-23 13:11:05 +02:00
Laurent Bachelier
bcbccb4586 Remove duplicate DailymotionVideo.id2url
It is already in the called function decorator
2012-10-23 13:10:56 +02:00
Laurent Bachelier
bd41a3b73e dailymotion: Fix search-then-play combination
refs #860
2012-10-23 13:10:52 +02:00
Laurent Bachelier
d64e50e2a8 dailymotion: Add support for embed URLs 2012-08-19 17:43:42 +02:00
Romain Bignon
9294f3e964 fix parsing authors on anyclip videos 2012-06-08 11:24:57 +02:00
Romain Bignon
2f8072e89e bump to 0.d 2012-05-04 21:17:46 +02:00
Romain Bignon
189896de02 fix parsing video IDs 2012-04-06 16:08:02 +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
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
Laurent Bachelier
ea0af7b6a1 Fix getting latest dailymotion videos 2012-03-15 23:38:32 +01:00