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

This commit is contained in:
Romain Bignon 2011-07-27 16:27:58 +02:00
commit 6ac55feded
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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',