fix regexps to support diaries from authors like “coïn”.
This commit is contained in:
parent
d433b31e88
commit
6ac55feded
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue