diff --git a/weboob/backends/dlfp/browser.py b/weboob/backends/dlfp/browser.py index 879ea510..b860c642 100644 --- a/weboob/backends/dlfp/browser.py +++ b/weboob/backends/dlfp/browser.py @@ -43,7 +43,7 @@ class DLFP(BaseBrowser): 'https?://.*linuxfr.org/wiki/[^\.]+/modifier': WikiEditPage, 'https?://.*linuxfr.org/suivi/[^\.]+': ContentPage, 'https?://.*linuxfr.org/sondages/[^\.]+': ContentPage, - 'https?://.*linuxfr.org/users/[\w\-_]+/journaux/[^\.]+': ContentPage, + 'https?://.*linuxfr.org/users/[^\./]+/journaux/[^\.]+': ContentPage, 'https?://.*linuxfr.org/forums/[^\./]+/posts/[^\.]+': ContentPage, 'https?://.*linuxfr.org/nodes/(\d+)/comments/(\d+)': CommentPage, 'https?://.*linuxfr.org/nodes/(\d+)/comments/nouveau': NewCommentPage, diff --git a/weboob/backends/dlfp/tools.py b/weboob/backends/dlfp/tools.py index acbcd83c..52486565 100644 --- a/weboob/backends/dlfp/tools.py +++ b/weboob/backends/dlfp/tools.py @@ -21,7 +21,7 @@ import re RSSID_RE = re.compile('tag:.*:(\w+)/(\d+)') -ID2URL_RE = re.compile('^(\w)([\w\-_]*)\.([^ \.]+)$') +ID2URL_RE = re.compile('^(\w)(.*)\.([^ \.]+)$') REGEXPS = {'/users/%s/journaux/%s': 'D%s.%s', '/news/%s': 'N.%s',