From a4fbf1bd2b82ecf2d91e344eab2a83d62a898c99 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 17 Dec 2008 19:01:25 -0800 Subject: [PATCH 1/2] Recipe for Linux Magazine, thanks to Darko Miletic --- .../gui2/images/news/linux_magazine.png | Bin 0 -> 394 bytes src/calibre/web/feeds/recipes/__init__.py | 1 + .../web/feeds/recipes/linux_magazine.py | 36 ++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 src/calibre/gui2/images/news/linux_magazine.png create mode 100644 src/calibre/web/feeds/recipes/linux_magazine.py diff --git a/src/calibre/gui2/images/news/linux_magazine.png b/src/calibre/gui2/images/news/linux_magazine.png new file mode 100644 index 0000000000000000000000000000000000000000..ef6ed8c3fe912a6936c41aff8d577082505ba114 GIT binary patch literal 394 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|Ea{HEjtmU9kH2}T-38<;Bzpw; zGBBhpVqnO)$-wYvDFZ{xKL&=}wG0fGuP`te%wu3sJKp@p)exwbv%n*=n1O*?7=#%a zX3dcR36>Q&rUPlPO$;%|)*c3OIz3$+Lp07`?c2!9tjOa!_l3Xh7*?0k8!R2`m5=?-O`d9 zm!i52@BRJ59p^0JeV_sg}4#lq46WCYGe?rT_^BBLf2qT|*;XL-P Date: Wed, 17 Dec 2008 19:15:58 -0800 Subject: [PATCH 2/2] Fix #1414 (Stack trace when SD card in reader) --- src/calibre/devices/prs505/books.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/prs505/books.py b/src/calibre/devices/prs505/books.py index f42f1b5513..b63b089fdd 100644 --- a/src/calibre/devices/prs505/books.py +++ b/src/calibre/devices/prs505/books.py @@ -60,7 +60,7 @@ class Book(object): rpath = book_metadata_field("path") id = book_metadata_field("id", formatter=int) sourceid = book_metadata_field("sourceid", formatter=int) - size = book_metadata_field("size", formatter=int) + size = book_metadata_field("size", formatter=lambda x : int(float(x))) # When setting this attribute you must use an epoch datetime = book_metadata_field("date", formatter=strptime, setter=strftime)