summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-07-03 13:46:22 +0200
committeremkael <emkael@tlen.pl>2015-07-03 13:46:22 +0200
commit1aef06a04ec087128e67fb7ccbe099131501db6c (patch)
tree5e92f13e3e75949280d464fcad182d3d18ce0fd5
parentae86a12077d1bcb9f1906523d6ebdfdb7aa8bc26 (diff)
* congratulations to mr Wasłowicz on his new TD title
-rw-r--r--http/index.py2
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