0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-06-30 22:19:29 -04:00
2009-02-08 17:49:33 +01:00

12 lines
259 B
Python

import re
PATTERN = re.compile('<a href="javascript:void\(null\);" onclick="play\(this,\'(http://lp3.polskieradio.pl/_files/mp3/.*mp3)\'\);">')
def zamien(m):
return '<a href="' + m.group(1) + '">'
def lp3(html):
return PATTERN.sub(zamien, html)