Example #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
 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
Example #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
 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
Example #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
Example #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
Example #7
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
Example #8
0
    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
Example #9
0
    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
 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
Example #11
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