From 05321c6e6108b86a5a004a2e28b1e3be9a7ad225 Mon Sep 17 00:00:00 2001 From: mkaay Date: Wed, 5 May 2010 18:54:17 +0200 Subject: megavideo.com plugin --- module/unescape.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'module/unescape.py') diff --git a/module/unescape.py b/module/unescape.py index 59f35f36b..41a23be5b 100644 --- a/module/unescape.py +++ b/module/unescape.py @@ -1,4 +1,5 @@ from htmlentitydefs import name2codepoint as n2cp +from urllib import unquote import re def substitute_entity(match): @@ -14,7 +15,8 @@ def substitute_entity(match): def unescape(string): entity_re = re.compile("&(#?)(\d{1,5}|\w{1,8});") - return entity_re.subn(substitute_entity, string)[0] + return entity_re.subn(substitute_entity, unquote(string))[0] + """ import re -- cgit v1.2.3