Commit 053c7331 authored by Romain Bignon's avatar Romain Bignon

fix regexps to support diaries from authors like “coïn”.

parent 05232ce9
...@@ -43,7 +43,7 @@ class DLFP(BaseBrowser): ...@@ -43,7 +43,7 @@ class DLFP(BaseBrowser):
'https?://.*linuxfr.org/wiki/[^\.]+/modifier': WikiEditPage, 'https?://.*linuxfr.org/wiki/[^\.]+/modifier': WikiEditPage,
'https?://.*linuxfr.org/suivi/[^\.]+': ContentPage, 'https?://.*linuxfr.org/suivi/[^\.]+': ContentPage,
'https?://.*linuxfr.org/sondages/[^\.]+': 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/forums/[^\./]+/posts/[^\.]+': ContentPage,
'https?://.*linuxfr.org/nodes/(\d+)/comments/(\d+)': CommentPage, 'https?://.*linuxfr.org/nodes/(\d+)/comments/(\d+)': CommentPage,
'https?://.*linuxfr.org/nodes/(\d+)/comments/nouveau': NewCommentPage, 'https?://.*linuxfr.org/nodes/(\d+)/comments/nouveau': NewCommentPage,
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
import re import re
RSSID_RE = re.compile('tag:.*:(\w+)/(\d+)') 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', REGEXPS = {'/users/%s/journaux/%s': 'D%s.%s',
'/news/%s': 'N.%s', '/news/%s': 'N.%s',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment