From 82e62e652882c350116643f1e4522a7fc2ce6e7a Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Fri, 25 Jan 2013 16:10:14 +0100 Subject: [PATCH 1/2] Fix to beam_ebooks to honor the max_count parameter --- src/calibre/gui2/store/stores/beam_ebooks_de_plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/store/stores/beam_ebooks_de_plugin.py b/src/calibre/gui2/store/stores/beam_ebooks_de_plugin.py index 7a35b91fc3..ada35baa0e 100644 --- a/src/calibre/gui2/store/stores/beam_ebooks_de_plugin.py +++ b/src/calibre/gui2/store/stores/beam_ebooks_de_plugin.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import (unicode_literals, division, absolute_import, print_function) -store_version = 1 # Needed for dynamic plugin loading +store_version = 2 # Needed for dynamic plugin loading __license__ = 'GPL 3' __copyright__ = '2011, John Schember ' @@ -43,7 +43,8 @@ class BeamEBooksDEStore(BasicStoreConfig, StorePlugin): d.exec_() def search(self, query, max_results=10, timeout=60): - url = 'http://www.beam-ebooks.de/suchergebnis.php?Type=&sw=' + urllib2.quote(query) + url = 'http://www.beam-ebooks.de/suchergebnis.php?Type=&limit={0}&sw={1}'.format( + max_results, urllib2.quote(query)) br = browser() counter = max_results From a19175cd4a8a7a61e3f0663d66197239a7e9eae8 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Fri, 25 Jan 2013 16:59:43 +0100 Subject: [PATCH 2/2] Store owner gave me a better detail link. --- src/calibre/gui2/store/stores/beam_ebooks_de_plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/store/stores/beam_ebooks_de_plugin.py b/src/calibre/gui2/store/stores/beam_ebooks_de_plugin.py index ada35baa0e..e8e320a88e 100644 --- a/src/calibre/gui2/store/stores/beam_ebooks_de_plugin.py +++ b/src/calibre/gui2/store/stores/beam_ebooks_de_plugin.py @@ -26,7 +26,8 @@ class BeamEBooksDEStore(BasicStoreConfig, StorePlugin): def open(self, parent=None, detail_item=None, external=False): url = 'http://klick.affiliwelt.net/klick.php?bannerid=10072&pid=32307&prid=908' url_details = ('http://klick.affiliwelt.net/klick.php?' - 'bannerid=66820&pid=32307&prid=908&feedid=27&prdid={0}') + 'bannerid=66830&pid=32307&prid=908&' + 'url=http://www.beam-ebooks.de/ebook/{0}') if external or self.config.get('open_external', False): if detail_item: