update AUTHORS and fix pyflakes warnings
This commit is contained in:
parent
2be0682393
commit
bae1675573
4 changed files with 2 additions and 10 deletions
2
AUTHORS
2
AUTHORS
|
|
@ -41,7 +41,7 @@ Clément Schreiner <clemux@clemux.info>
|
|||
* MediaWiki and Newsfeed modules maintainer.
|
||||
|
||||
François Revol <revol@free.fr>
|
||||
* Europarl and GDCVault modules maintainer.
|
||||
* Europarl, GDCVault and Vimeo modules maintainer.
|
||||
|
||||
Pierre Mazière <pierre.maziere@gmx.com>
|
||||
* LCL module maintainer;
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import re
|
||||
from lxml import html
|
||||
|
||||
class TokenExtractor:
|
||||
""" Extracts texts token from an HTML document """
|
||||
def __init__(self):
|
||||
|
|
|
|||
|
|
@ -25,11 +25,8 @@ ControlNotFoundError = ClientForm.ControlNotFoundError
|
|||
from urllib2 import HTTPError
|
||||
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.browser import BrowserRetry
|
||||
from weboob.tools.json import json
|
||||
|
||||
from StringIO import StringIO
|
||||
import re
|
||||
import datetime
|
||||
from dateutil.parser import parse as parse_dt
|
||||
|
||||
|
|
@ -106,10 +103,9 @@ class VideoPage(BasePage):
|
|||
#print "asking for redirect on '%s'" % (v.url)
|
||||
self.browser.set_handle_redirect(False)
|
||||
try:
|
||||
redir = self.browser.open_novisit(v.url)
|
||||
self.browser.open_novisit(v.url)
|
||||
except HTTPError, e:
|
||||
if e.getcode() == 302 and hasattr(e, 'hdrs'):
|
||||
#print e.hdrs['Location']
|
||||
v.url = unicode(e.hdrs['Location'])
|
||||
self.browser.set_handle_redirect(True)
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
from weboob.capabilities.video import BaseVideo
|
||||
|
||||
import re
|
||||
|
||||
__all__ = ['VimeoVideo']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue