Quote:
Originally Posted by kovidgoyal
The list of file types calibre adds is based on a user preference, the logic for getting that list is
Code:
if gprefs['auto_add_everything']:
self.allowed = AllAllowed()
else:
self.allowed = AUTO_ADDED - frozenset(gprefs['blocked_auto_formats'])
|
Kovid,
Perhaps if you have a spare minute you could encapsulate this in a method that I (or anyone else who might need it) can use, to avoid having to duplicate your code?
Thanks!