Clean IDs
This commit is contained in:
parent
3d2ec0afe0
commit
f428fb47a2
2 changed files with 2 additions and 4 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue