mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7261b9fbc4
commit
f9329fe5b6
@ -255,7 +255,7 @@ class CACerts(Command): # {{{
|
||||
# }}}
|
||||
|
||||
|
||||
class RecentUAs(Command):
|
||||
class RecentUAs(Command): # {{{
|
||||
|
||||
description = 'Get updated list of recent browser user agents'
|
||||
UA_PATH = os.path.join(Command.RESOURCES, 'common-user-agents.txt')
|
||||
@ -289,6 +289,7 @@ class RecentUAs(Command):
|
||||
raise RuntimeError('Failed to download list of common user agents')
|
||||
with open(self.UA_PATH, 'wb') as f:
|
||||
f.write('\n'.join(lines).encode('ascii'))
|
||||
# }}}
|
||||
|
||||
|
||||
class RapydScript(Command): # {{{
|
||||
|
Loading…
x
Reference in New Issue
Block a user