mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove spurious python-requests entry from common user agents
This commit is contained in:
parent
30e6bf5ff8
commit
5b61049860
@ -29,7 +29,7 @@ def common_user_agents():
|
|||||||
count, ua = line.partition(':')[::2]
|
count, ua = line.partition(':')[::2]
|
||||||
count = int(count.strip())
|
count = int(count.strip())
|
||||||
ua = ua.strip()
|
ua = ua.strip()
|
||||||
if len(ua) > 20:
|
if len(ua) > 25 and 'python' not in ua:
|
||||||
ans[ua] = count
|
ans[ua] = count
|
||||||
return ans, list(sorted(ans, reverse=True, key=ans.__getitem__))
|
return ans, list(sorted(ans, reverse=True, key=ans.__getitem__))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user