コード例 #1
0
 def search(self, query, max_results=10, timeout=60):
     for s in OpenSearchOPDSStore.search(self, query, max_results, timeout):
         s.detail_item = 'http://www.archive.org/details/' + s.detail_item.split(
             ':')[-1]
         s.price = '$0.00'
         s.drm = SearchResult.DRM_UNLOCKED
         yield s
コード例 #2
0
 def search(self, query, max_results=10, timeout=60):
     for s in OpenSearchOPDSStore.search(self, query, max_results, timeout):
         s.detail_item = 'https://flibusta.appspot.com/b/' + s.detail_item.split(
             ':')[-1]
         s.price = '$0.00'
         s.drm = SearchResult.DRM_UNLOCKED
         yield s
コード例 #3
0
 def search(self, query, max_results=10, timeout=60):
     query = self.strip_accents(unicode(query))
     for s in OpenSearchOPDSStore.search(self, query, max_results, timeout):
         if s.downloads:
             s.drm = SearchResult.DRM_UNLOCKED
             s.price = '$0.00'
             yield s
コード例 #4
0
 def search(self, query, max_results=10, timeout=60):
     query = self.strip_accents(type(u'')(query))
     for s in OpenSearchOPDSStore.search(self, query, max_results, timeout):
         if s.downloads:
             s.drm = SearchResult.DRM_UNLOCKED
             s.price = '$0.00'
             yield s
コード例 #5
0
 def search(self, query, max_results=10, timeout=60):
     for s in OpenSearchOPDSStore.search(self, query, max_results, timeout):
         if s.downloads:
             s.drm = SearchResult.DRM_UNLOCKED
             s.price = '$0.00'
         else:
             s.drm = SearchResult.DRM_LOCKED
             s.formats = 'EPUB'
         yield s
コード例 #6
0
    def search(self, query, max_results=10, timeout=60):
        # check for cyrillic symbols before performing search
        uquery = str(query.strip(), 'utf-8')
        reObj = re.search('^[а-яА-Я\\d\\s]{3,}$', uquery)
        if not reObj:
            return

        for s in OpenSearchOPDSStore.search(self, query, max_results, timeout):
            yield s
コード例 #7
0
ファイル: feedbooks_plugin.py プロジェクト: j-howell/calibre
 def search(self, query, max_results=10, timeout=60):
     for s in OpenSearchOPDSStore.search(self, query, max_results, timeout):
         if s.downloads:
             s.drm = SearchResult.DRM_UNLOCKED
             s.price = '$0.00'
         else:
             s.drm = SearchResult.DRM_LOCKED
             s.formats = 'EPUB'
         yield s
コード例 #8
0
ファイル: biblio_plugin.py プロジェクト: MarioJC/calibre
    def search(self, query, max_results=10, timeout=60):
        # check for cyrillic symbols before performing search
        uquery = unicode(query.strip(), 'utf-8')
        reObj = re.search(u'^[а-яА-Я\\d\\s]{3,}$', uquery)
        if not reObj:
            return

        for s in OpenSearchOPDSStore.search(self, query, max_results, timeout):
            yield s
コード例 #9
0
ファイル: biblio_plugin.py プロジェクト: zyxw121/webcal
    def search(self, query, max_results=10, timeout=60):
        # check for cyrillic symbols before performing search
        if isinstance(query, bytes):
            query = query.decode('utf-8')
        uquery = query.strip()
        reObj = re.search(u'^[а-яА-Я\\d\\s]{3,}$', uquery)
        if not reObj:
            return

        for s in OpenSearchOPDSStore.search(self, query, max_results, timeout):
            yield s
コード例 #10
0
 def search(self, query, max_results=10, timeout=60):
     for s in OpenSearchOPDSStore.search(self, query, max_results, timeout):
         s.drm = SearchResult.DRM_UNLOCKED
         s.formats = 'EPUB, PDF, MOBI'
         yield s
コード例 #11
0
ファイル: archive_org_plugin.py プロジェクト: Eksmo/calibre
 def search(self, query, max_results=10, timeout=60):
     for s in OpenSearchOPDSStore.search(self, query, max_results, timeout):
         s.detail_item = 'http://www.archive.org/details/' + s.detail_item.split(':')[-1]
         s.price = '$0.00'
         s.drm = SearchResult.DRM_UNLOCKED
         yield s