diff --git a/modules/liberation/pages/article.py b/modules/liberation/pages/article.py index 25b1d6bd..c44b8505 100644 --- a/modules/liberation/pages/article.py +++ b/modules/liberation/pages/article.py @@ -17,10 +17,8 @@ # You should have received a copy of the GNU Affero General Public License # along with weboob. If not, see . -from weboob.tools.browser import BrokenPageError from weboob.tools.capabilities.messages.genericArticle import GenericNewsPage,\ - try_drop_tree, clean_relativ_urls, NoBodyElement, NoAuthorElement,\ - NoneMainDiv + NoBodyElement, NoAuthorElement, NoneMainDiv class ArticlePage(GenericNewsPage): diff --git a/modules/liberation/tools.py b/modules/liberation/tools.py index 75a90ff5..eaa01b12 100644 --- a/modules/liberation/tools.py +++ b/modules/liberation/tools.py @@ -21,7 +21,7 @@ import re def url2id(url): - return url.split('0Dxtor')[0].split('0I')[-1] + return re.sub(u'[^\d]', '', url.split('0Dxtor')[0].split('0I')[-1]) def rssid(entry):