replace 'url2id' predicate with 'rssid'
This commit is contained in:
parent
13cde4ed1f
commit
8012afe847
7 changed files with 24 additions and 15 deletions
|
|
@ -34,3 +34,6 @@ def url2id(url):
|
|||
regexp = re.compile("http://www.20minutes.fr/(\w+)/([0-9]+)/(.*$)")
|
||||
match = regexp.match(url)
|
||||
return '%s.%d.%s' % (match.group(1), int(match.group(2)), match.group(3))
|
||||
|
||||
def rssid(entry):
|
||||
return url2id(entry.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue