From 16be6df4d026c8609c886d69b98d5514b98a0a9c Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 9 Apr 2012 10:10:55 +0200 Subject: [PATCH] fix loading hds module --- contrib/hds/export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/hds/export.py b/contrib/hds/export.py index b2b7a117..11ec1206 100755 --- a/contrib/hds/export.py +++ b/contrib/hds/export.py @@ -33,7 +33,7 @@ logging.basicConfig(stream=sys.stdout, level=level) def main(filename): weboob = Weboob() try: - hds = weboob.modules_loader.load_module('hds') + hds = weboob.build_backend('hds') except ModuleLoadError, e: print >>sys.stderr, 'Unable to load "hds" module: %s' % e return 1 @@ -60,7 +60,7 @@ def main(filename): stored_authors = set([s[0] for s in db.execute('SELECT name FROM authors')]) sys.stdout.write('ok\n') - br = hds.browser.HDSBrowser() + br = hds.browser to_fetch = set() sys.stdout.write('Getting stories list from website... ') sys.stdout.flush()