mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
oops
This commit is contained in:
parent
3466aaff4c
commit
37649fc9ed
@ -79,12 +79,8 @@ def is_ext_allowed(ext):
|
||||
only = ext.get('only', '')
|
||||
if only:
|
||||
only = only.split()
|
||||
if iswindows and 'windows' not in only:
|
||||
return False
|
||||
if isosx and 'osx' not in only:
|
||||
return False
|
||||
if 'linux' not in only:
|
||||
return False
|
||||
q = 'windows' if iswindows else 'osx' if isosx else 'linux'
|
||||
return q in only
|
||||
return True
|
||||
|
||||
def parse_extension(ext):
|
||||
|
Loading…
x
Reference in New Issue
Block a user