Clean IDs

This commit is contained in:
Florent 2013-10-30 14:39:32 +01:00
commit f428fb47a2
2 changed files with 2 additions and 4 deletions

View file

@ -17,10 +17,8 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.browser import BrokenPageError
from weboob.tools.capabilities.messages.genericArticle import GenericNewsPage,\ from weboob.tools.capabilities.messages.genericArticle import GenericNewsPage,\
try_drop_tree, clean_relativ_urls, NoBodyElement, NoAuthorElement,\ NoBodyElement, NoAuthorElement, NoneMainDiv
NoneMainDiv
class ArticlePage(GenericNewsPage): class ArticlePage(GenericNewsPage):

View file

@ -21,7 +21,7 @@ import re
def url2id(url): def url2id(url):
return url.split('0Dxtor')[0].split('0I')[-1] return re.sub(u'[^\d]', '', url.split('0Dxtor')[0].split('0I')[-1])
def rssid(entry): def rssid(entry):