diff options
-rw-r--r-- | http/index.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |