Commit graph

12 commits

Author SHA1 Message Date
Romain Bignon
6af0c9acae fix typo 2013-12-22 22:28:47 +01:00
Pierre Mazière
90aba908b5 modify vimeo module to use the new BaseVideo/ICapVideo classes 2013-12-22 20:04:53 +01: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
Laurent Bachelier
34334f7deb vimeo: Get author 2013-03-30 01:16:05 +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
c21d1f7925 Code clarity fixes
autopep8 -ir -j2 --select=E303,E125
Diff checked manually.
2013-03-16 00:52:43 +01:00
François Revol
1d0faa1af0 vimeo: Fix for no-embed videos
Some videos like http://vimeo.com/61275290 have restrictions
on embedding, which makes the usual JSON url fail.
So we first try to parse the JSON data directly from the
script element in the page.

Signed-off-by: François Revol <revol@free.fr>
2013-03-14 08:44:10 +01:00
Romain Bignon
bae1675573 update AUTHORS and fix pyflakes warnings 2012-09-12 13:48:33 +02:00
François Revol
2be0682393 vimeo: Handle vp6 and vp8 codecs
Older videos aren't available as h264, so check the available
codecs and ask for the latest.

Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2012-09-12 13:44:54 +02:00
François Revol
24f1a62586 vimeo: Remove logging to vimeo as it is not required
It seems the POST request to /log/client is not necessary,
so no need to tell vimeo about ourselves.

Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2012-09-12 13:44:52 +02:00
François Revol
6c92d3265a vimeo: Cleanup, use HD when available
Remove commented failed attempts

Check the JSON data for hd file

Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2012-09-12 13:44:50 +02:00
François Revol
8ef6e64dfe Add a video module for vimeo.com
The trick is to log ourselves in to validate the provided signature,
then the video file redirect works.
Since the redirected url is not checked for User-Agent unlike the redirect one,
we disable redirects to get the actual location and use it instead.
This allows running wget or vlc without faking their User-Agents.

For now it only downloads sd videos.
TODO: get the highest quality
TODO: search, latest

Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2012-09-12 13:44:37 +02:00