mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
version 0.8.17
This commit is contained in:
parent
6c01b3cc67
commit
b264c0742b
@ -19,6 +19,56 @@
|
|||||||
# new recipes:
|
# new recipes:
|
||||||
# - title:
|
# - title:
|
||||||
|
|
||||||
|
- version: 0.8.17
|
||||||
|
date: 2011-09-02
|
||||||
|
|
||||||
|
new features:
|
||||||
|
- title: "Basic support for Amazon AZW4 format (PDF wrapped inside a MOBI)"
|
||||||
|
|
||||||
|
- title: "When showing the cover browser in a separate window, allow the use of the V, D shortcut keys to view the current book and send it to device respectively."
|
||||||
|
tickets: [836402]
|
||||||
|
|
||||||
|
- title: "Add an option in Preferences->Miscellaneous to abort conversion jobs that take too long."
|
||||||
|
tickets: [835233]
|
||||||
|
|
||||||
|
- title: "Driver for HTC Evo and HP TouchPad (with kindle app)"
|
||||||
|
|
||||||
|
- title: "Preferences->Adding books, detect when the user specifies a test expression with no file extension and popup a warning"
|
||||||
|
|
||||||
|
bug fixes:
|
||||||
|
- title: "E-book viewer: Ensure toolbars are always visible"
|
||||||
|
|
||||||
|
- title: "Content server: Fix grouping of Tags/authors not working for some non english languages with Internet Explorer"
|
||||||
|
tickets: [835238]
|
||||||
|
|
||||||
|
- title: "When downloading metadata from amazon, fix italics inside brackets getting lost."
|
||||||
|
tickets: [836857]
|
||||||
|
|
||||||
|
- title: "Get Books: Add EscapeMagazine.pl and RW2010.pl stores"
|
||||||
|
|
||||||
|
- title: "Conversion pipeline: Fix conversion of cm/mm to pts. Fixes use of cm as a length unit when converting to MOBI."
|
||||||
|
|
||||||
|
- title: "When showing the cover browser in a separate window, focus the cover browser so that keyboard shortcuts work immediately."
|
||||||
|
tickets: [835933]
|
||||||
|
|
||||||
|
- title: "HTMLZ Output: Fix special chars like ampersands, etc. not being converted to entities"
|
||||||
|
|
||||||
|
- title: "Keyboard shortcuts config: Fix clicking done in the shortcut editor with shortcuts set to default caused the displayed shortcut to be always set to None"
|
||||||
|
|
||||||
|
- title: "Fix bottom most entries in keyboard shortcuts not editable"
|
||||||
|
|
||||||
|
improved recipes:
|
||||||
|
- Hacker News
|
||||||
|
- Nikkei News
|
||||||
|
|
||||||
|
new recipes:
|
||||||
|
- title: "Haber 7 and Hira"
|
||||||
|
authors: thomass
|
||||||
|
|
||||||
|
- title: "NTV and NTVSpor by A Erdogan"
|
||||||
|
author: A Erdogan
|
||||||
|
|
||||||
|
|
||||||
- version: 0.8.16
|
- version: 0.8.16
|
||||||
date: 2011-08-26
|
date: 2011-08-26
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ __license__ = 'GPL v3'
|
|||||||
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
|
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
__appname__ = u'calibre'
|
__appname__ = u'calibre'
|
||||||
numeric_version = (0, 8, 16)
|
numeric_version = (0, 8, 17)
|
||||||
__version__ = u'.'.join(map(unicode, numeric_version))
|
__version__ = u'.'.join(map(unicode, numeric_version))
|
||||||
__author__ = u"Kovid Goyal <kovid@kovidgoyal.net>"
|
__author__ = u"Kovid Goyal <kovid@kovidgoyal.net>"
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@ __license__ = 'GPL 3'
|
|||||||
__copyright__ = '2011, Tomasz Długosz <tomek3d@gmail.com>'
|
__copyright__ = '2011, Tomasz Długosz <tomek3d@gmail.com>'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
import re
|
|
||||||
import urllib
|
import urllib
|
||||||
from contextlib import closing
|
from contextlib import closing
|
||||||
|
|
||||||
@ -24,7 +23,7 @@ from calibre.gui2.store.web_store_dialog import WebStoreDialog
|
|||||||
class BookotekaStore(BasicStoreConfig, StorePlugin):
|
class BookotekaStore(BasicStoreConfig, StorePlugin):
|
||||||
|
|
||||||
def open(self, parent=None, detail_item=None, external=False):
|
def open(self, parent=None, detail_item=None, external=False):
|
||||||
|
|
||||||
url = 'http://bookoteka.pl/ebooki'
|
url = 'http://bookoteka.pl/ebooki'
|
||||||
detail_url = None
|
detail_url = None
|
||||||
|
|
||||||
@ -41,16 +40,16 @@ class BookotekaStore(BasicStoreConfig, StorePlugin):
|
|||||||
|
|
||||||
def search(self, query, max_results=10, timeout=60):
|
def search(self, query, max_results=10, timeout=60):
|
||||||
url = 'http://bookoteka.pl/list?search=' + urllib.quote_plus(query) + '&cat=1&hp=1&type=1'
|
url = 'http://bookoteka.pl/list?search=' + urllib.quote_plus(query) + '&cat=1&hp=1&type=1'
|
||||||
|
|
||||||
br = browser()
|
br = browser()
|
||||||
|
|
||||||
counter = max_results
|
counter = max_results
|
||||||
with closing(br.open(url, timeout=timeout)) as f:
|
with closing(br.open(url, timeout=timeout)) as f:
|
||||||
doc = html.fromstring(f.read())
|
doc = html.fromstring(f.read())
|
||||||
for data in doc.xpath('//li[@class="EBOOK"]'):
|
for data in doc.xpath('//li[@class="EBOOK"]'):
|
||||||
if counter <= 0:
|
if counter <= 0:
|
||||||
break
|
break
|
||||||
|
|
||||||
id = ''.join(data.xpath('.//a[@class="item_link"]/@href'))
|
id = ''.join(data.xpath('.//a[@class="item_link"]/@href'))
|
||||||
if not id:
|
if not id:
|
||||||
continue
|
continue
|
||||||
@ -63,7 +62,7 @@ class BookotekaStore(BasicStoreConfig, StorePlugin):
|
|||||||
formats = ', '.join(data.xpath('.//a[@class="fancybox protected"]/text()'))
|
formats = ', '.join(data.xpath('.//a[@class="fancybox protected"]/text()'))
|
||||||
|
|
||||||
counter -= 1
|
counter -= 1
|
||||||
|
|
||||||
s = SearchResult()
|
s = SearchResult()
|
||||||
s.cover_url = 'http://bookoteka.pl' + cover_url
|
s.cover_url = 'http://bookoteka.pl' + cover_url
|
||||||
s.title = title.strip()
|
s.title = title.strip()
|
||||||
@ -72,5 +71,5 @@ class BookotekaStore(BasicStoreConfig, StorePlugin):
|
|||||||
s.detail_item = 'http://bookoteka.pl' + id.strip()
|
s.detail_item = 'http://bookoteka.pl' + id.strip()
|
||||||
s.drm = SearchResult.DRM_UNLOCKED
|
s.drm = SearchResult.DRM_UNLOCKED
|
||||||
s.formats = formats.strip()
|
s.formats = formats.strip()
|
||||||
|
|
||||||
yield s
|
yield s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user