Example #1
0
 def __init__(self, *args, **kwargs):
     """
     Args:
         args:
         kwargs:
     """
     self.touched_fields = frozenset([
         'title', 'authors', 'identifier:goodreads', 'identifier:amazon',
         'identifier:isbn', 'rating', 'comments', 'publisher', 'pubdate',
         'tags', 'series'
     ])
     Source.__init__(self, *args, **kwargs)
Example #2
0
    def __init__(self, *args, **kwargs):
        self.logger = logging.getLogger('urls')
        self.logger.setLevel(logging.DEBUG)
        self.logger.addHandler(CalibreHandler(logging.DEBUG))

        comicvine_logger = logging.getLogger(
            'calibre_plugins.comicvine.pycomicvine')
        comicvine_logger.setLevel(logging.DEBUG)
        comicvine_logger.addHandler(CalibreHandler(logging.DEBUG))

        self._qlock = threading.RLock()
        Source.__init__(self, *args, **kwargs)
Example #3
0
    def __init__(self, *args, **kwargs):
        self.logger = logging.getLogger('urls')
        self.logger.setLevel(logging.DEBUG)
        self.logger.addHandler(CalibreHandler(logging.DEBUG))

        comicvine_logger = logging.getLogger(
            'calibre_plugins.comicvine.pycomicvine')
        comicvine_logger.setLevel(logging.DEBUG)
        comicvine_logger.addHandler(CalibreHandler(logging.DEBUG))

        self._qlock = threading.RLock()
        Source.__init__(self, *args, **kwargs)
Example #4
0
    def __init__(self, *args, **kwargs):
        Source.__init__(self, *args, **kwargs)

        prefs = self.prefs
        prefs.defaults['key_migrated'] = False
        prefs.defaults['isbndb_key'] = None

        if not prefs['key_migrated']:
            prefs['key_migrated'] = True
            try:
                from calibre.customize.ui import config
                key = config['plugin_customization']['IsbnDB']
                prefs['isbndb_key'] = key
            except:
                pass
Example #5
0
    def __init__(self, *args, **kwargs):
        Source.__init__(self, *args, **kwargs)

        # Try to inject into the regular Goodreads plugin. If this succeeds, this will provide data for use in our
        # identify (identifiers and results for all Goodreads results). If this fails, we do want to perform our
        # identify as normal. The advantage of this integration is that it works for items that don't already have a
        # goodreads identifier.
        self.is_integrated = False
        try:
            from .goodreads_integration import inject_into_goodreads
            inject_into_goodreads()
            self.is_integrated = True
        except ImportError:
            pass
        print('Integration status:', self.is_integrated)
Example #6
0
    def __init__(self, *args, **kwargs):
        Source.__init__(self, *args, **kwargs)

        prefs = self.prefs
        prefs.defaults['key_migrated'] = False
        prefs.defaults['isbndb_key'] = None

        if not prefs['key_migrated']:
            prefs['key_migrated'] = True
            try:
                from calibre.customize.ui import config
                key = config['plugin_customization']['IsbnDB']
                prefs['isbndb_key'] = key
            except:
                pass
Example #7
0
 def save_settings(self, *args, **kwargs):
     Source.save_settings(self, *args, **kwargs)
     self.set_amazon_id_touched_fields()
Example #8
0
 def __init__(self, *args, **kwargs):
     Source.__init__(self, *args, **kwargs)
     self.set_amazon_id_touched_fields()
Example #9
0
 def save_settings(self, *args, **kwargs):
     Source.save_settings(self, *args, **kwargs)
     self.set_amazon_id_touched_fields()
Example #10
0
 def __init__(self, *args, **kwargs):
     Source.__init__(self, *args, **kwargs)
     self.set_amazon_id_touched_fields()
Example #11
0
 def __init__(self, *args, **kwargs):  # {{{
     Source.__init__(self, *args, **kwargs)
     self.config_exhentai()
     self.config_proxy()
Example #12
0
 def __init__(self, *args, **kwargs):
   self.logger = logging.getLogger('urls')
   self.logger.setLevel(logging.DEBUG)
   self.logger.addHandler(utils.CalibreHandler(logging.DEBUG))
   self._qlock = allocate_lock()
   Source.__init__(self, *args, **kwargs)
Example #13
0
 def __init__(self, *args, **kwargs):
   self.logger = logging.getLogger('urls')
   self.logger.setLevel(logging.DEBUG)
   self.logger.addHandler(utils.CalibreHandler(logging.DEBUG))
   self._qlock = threading.RLock()
   Source.__init__(self, *args, **kwargs)
Example #14
0
 def __init__(self, *args, **kwargs):
     Source.__init__(self, *args, **kwargs)