Commit graph

13 commits

Author SHA1 Message Date
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
Romain Bignon
f3ee34dab4 remove unused import of ControlNotFoundError 2014-08-30 18:01:49 +02:00
Pierre Mazière
dae97bd278 modify gdcvault 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
13026702bd Whitespace 2013-04-03 19:04:55 +02:00
François Revol
4b8e65c7e3 gdcvault: Fix flakes warnings 2013-03-25 17:07:26 +01:00
François Revol
b55812c5a2 gdcvault: Fix various weird cases
* comment out or remove some debug prints
* try to cope with non-UTF-8 title passed (1013483).
Couldn't get it to be recoded yet.
* handle boggus url to xml config file (http:/...) (1015020)
* handle iframes with page name different than 'player.html' (1013798)
* handle xml config filenames with spaces (1441)
* catch xml config names with 'smil' as hostname, which means speakervideo
points to a smil file describing the streams, and take the file with the
highest bitrate
* account for xml config with only valid slidesvideo (1016627) and use it
as fallback
* handle configs with 'Invalid Date' as date text (1016634)

We can now dump the entire gdcvault video files urls with a few exceptions
(403 HTTP errors), and many /mediaProxy.php urls failing to redirect, which
are still to be investigated.
2013-03-25 17:07:26 +01:00
François Revol
38b80491f1 gdcvault: Implement searching; partial download fix
* Implement search functionality, using POST to get JSON data
* Fix download for most items even for non-free ones.
For now only missing are non-free mp3 files it seems (like 769),
/mediaProxy.php returns 2bytes html crap.
2013-03-22 16:45:45 +01:00
François Revol
c8685b8e3b gdcvault: implement all 4 media types
* We now retrieve correctly all 4 media types:

** Video (plain flv file)
ex: http://gdcvault.com/play/29

** Audio (mp3)
ex: http://gdcvault.com/play/22/From-One-off-to-Franchise

** Slides (pdf, not really a video but they download fine)
ex: http://gdcvault.com/play/1015486

** DS Video (dual screen, two flv files) (by default the speaker file,
but id#slides gets the other video (however default filenames conflict)
ex: http://gdcvault.com/play/1015841
2013-03-22 16:45:43 +01:00
François Revol
8a07b7a9ce gdcvault: implement login
* since there is a limited number of usable concurrent sessions
we force a logout on exit.

Signed-off-by: François Revol <revol@free.fr>
2013-03-18 11:13:36 +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
d24ca46ef6 Add a video module for gdcvault.com
For now it only fetches the speaker video, but each page can have
both a speaker and slides video feed.
TODO: search

Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2012-09-01 09:29:39 +02:00