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
a5eb1d789c
Update part of the js interpreter
2014-09-05 15:48:52 +02:00
Romain Bignon
d6213643c8
backport some youtube-dl changes ( closes #1422 )
2014-07-05 14:12:58 +02:00
Vincent Texier
8d3b110934
Fix bug is_logged function
...
closes #1423
Signed-off-by: Vincent Texier <vit@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2014-07-05 13:59:38 +02:00
Romain Bignon
1ffc83df5d
fix unexpected argument to BrokenPageError
2014-03-25 21:48:42 +01:00
Laurent Bachelier
10be4fb695
youtube-dl: Fix returning the best format
2014-03-08 20:20:07 +01:00
Romain Bignon
d82cc615a3
steal youtube-dl code to fix youtube module
2014-03-04 21:02:05 +01:00
Romain Bignon
37c963b54b
fix credentials encoding
2013-07-28 11:04:48 +02:00
Laurent Bachelier
8c8eb672fc
youtube: Take over maintainership, update copyrights
2013-07-21 01:57:38 +02:00
Laurent Bachelier
5a548e1e8c
youtube: Fix crash with weird characters
2013-07-21 01:53:33 +02:00
Laurent Bachelier
aa8f0999a0
youtube: Support for a silly protection
...
Not sure I can even call that DRM.
closes #1277
2013-07-21 01:13:40 +02:00
Romain Bignon
7f81f261a1
detect if video is forbidden and raise an appropriated exception
2013-03-28 17:29:43 +01:00
Romain Bignon
3a79a21360
fix detection of media url on youtube
2013-03-22 16:42:16 +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
071bd9c597
fix login on youtube
2012-12-10 17:59:40 +01:00
Romain Bignon
dfd4c8321c
fix youtube website changes
2012-09-17 19:25:00 +02:00
Romain Bignon
17705782e0
ForbiddenVideo is a UserError
2012-05-14 21:20:44 +02:00
Laurent Bachelier
b8d1a52732
Use simplejson first, and centralize import
...
simplejson is supposed to be faster:
http://stackoverflow.com/questions/712791/json-and-simplejson-module-differences-in-python
2012-03-16 16:27:22 +01:00
Laurent Bachelier
006e97a8be
PEP8 style fixes and other small style fixes
...
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.
Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
change to a comment something that wasn't really appropriate for a
docstring.
* Unneeded first if condition in meteofrance
2012-03-14 04:51:46 +01:00
Romain Bignon
eb5b5a312f
fix parsing youtube URL
2012-01-21 16:19:45 +01:00
Romain Bignon
14a7a1d362
support repositories to manage backends ( closes #747 )
2012-01-17 17:00:05 +01:00