From ff03d7329e159eba90b41c4b8dd3e6e4e995c996 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 18 Sep 2012 19:21:19 +0530 Subject: [PATCH 1/3] NSFW Corp by Darko Miletic. Fixes #1052465 (New recipe for NSFW site) --- recipes/icons/nsfw_corp.png | Bin 0 -> 977 bytes recipes/nsfw_corp.recipe | 94 ++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 recipes/icons/nsfw_corp.png create mode 100644 recipes/nsfw_corp.recipe diff --git a/recipes/icons/nsfw_corp.png b/recipes/icons/nsfw_corp.png new file mode 100644 index 0000000000000000000000000000000000000000..e96c17fd48185697f03e76c47ddcd8c06fcdf2db GIT binary patch literal 977 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GXl4m>B|mLR^8|{|O2I_wQejkkG)u zkRTv%pMhb&fIz>1z`|3EDY3h#mJ_3Qr!1k~5p?*|&lz+eEh7pVUI`~M0G|Lg1T8vq4H!Dt8!iV$d= zCUp$xkRDGL$B>FSwfztI4k_@oXulFUeL?t{%TdFdHUHg940<{{@AYr{c`GLRk^V*g zgg Date: Tue, 18 Sep 2012 23:00:07 +0530 Subject: [PATCH 2/3] ... --- src/calibre/gui2/device.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/calibre/gui2/device.py b/src/calibre/gui2/device.py index e092f819c6..2db118c8e5 100644 --- a/src/calibre/gui2/device.py +++ b/src/calibre/gui2/device.py @@ -1673,10 +1673,7 @@ class DeviceMixin(object): # {{{ if update_metadata: mi = db.get_metadata(id_, index_is_id=True, get_cover=get_covers) - book.smart_update(db.get_metadata(id_, - index_is_id=True, - get_cover=get_covers), - replace_metadata=True) + book.smart_update(mi, replace_metadata=True) book.in_library = 'UUID' # ensure that the correct application_id is set book.application_id = id_ From 5acfdb167aeeba6239412af8a0e2239b99201582 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 18 Sep 2012 23:03:51 +0530 Subject: [PATCH 3/3] ... --- recipes/stamgasten.recipe | 2 ++ src/calibre/library/catalogs/epub_mobi_builder.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/stamgasten.recipe b/recipes/stamgasten.recipe index 9a637eb7d6..3c7b9cfab8 100644 --- a/recipes/stamgasten.recipe +++ b/recipes/stamgasten.recipe @@ -1,3 +1,5 @@ +from calibre.web.feeds.news import BasicNewsRecipe + class AdvancedUserRecipe1347706704(BasicNewsRecipe): title = u'Stamgasten' __author__ = u'DrMerry' diff --git a/src/calibre/library/catalogs/epub_mobi_builder.py b/src/calibre/library/catalogs/epub_mobi_builder.py index 04e64b9695..41c42b3705 100644 --- a/src/calibre/library/catalogs/epub_mobi_builder.py +++ b/src/calibre/library/catalogs/epub_mobi_builder.py @@ -989,8 +989,8 @@ class CatalogBuilder(object): file_fmts.add(fmt) bookmark_extension = None - if file_fmts.intersection(han_formats): - book_extension = list(file_fmts.intersection(han_formats))[0] + if file_fmts.intersection(tan_formats): + book_extension = list(file_fmts.intersection(tan_formats))[0] bookmark_extension = 'han' elif file_fmts.intersection(mbp_formats): book_extension = list(file_fmts.intersection(mbp_formats))[0]