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', '')
|
only = ext.get('only', '')
|
||||||
if only:
|
if only:
|
||||||
only = only.split()
|
only = only.split()
|
||||||
if iswindows and 'windows' not in only:
|
q = 'windows' if iswindows else 'osx' if isosx else 'linux'
|
||||||
return False
|
return q in only
|
||||||
if isosx and 'osx' not in only:
|
|
||||||
return False
|
|
||||||
if 'linux' not in only:
|
|
||||||
return False
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def parse_extension(ext):
|
def parse_extension(ext):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user