From 1aef06a04ec087128e67fb7ccbe099131501db6c Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 3 Jul 2015 13:46:22 +0200 Subject: * congratulations to mr Wasłowicz on his new TD title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http') diff --git a/http/index.py b/http/index.py index 4a5dd27..1628ae2 100644 --- a/http/index.py +++ b/http/index.py @@ -25,7 +25,7 @@ def fetch_with_user_agent_spoof(cache_path, remote_url, user_agent): '?' + urllib.urlencode({'pid_search': 13650, 'p': 21})) content = opener.open(remote_url).read() if egg: - content = re.sub(r'src="\.\./cezar1/fots.*?"', 'src="pic/egg.jpg"', content.replace('asłowicz', 'ąsłowicz')) + content = re.sub(r'src="\.\./cezar1/fots.*?"', 'src="pic/egg.jpg"', content.replace('asłowicz', 'ąsłowicz').replace('ważną licencją', 'gwiazdką')) open(cache_path, 'w+').write(content) # returns content of cached file, refreshing cache if necessary -- cgit v1.2.3