Coder Social home page Coder Social logo

cdhigh / kindleear Goto Github PK

View Code? Open in Web Editor NEW
2.7K 2.7K 633.0 21.29 MB

Aggregates RSS and web content, sends to Kindle, and includes an e-ink optimized online reader.

Home Page: http://cdhigh.github.io/KindleEar/

License: MIT License

Python 94.33% CSS 1.09% HTML 2.18% JavaScript 2.26% Batchfile 0.02% Dockerfile 0.02% Shell 0.10%

kindleear's People

Contributors

bookfere avatar bryant1410 avatar cdhigh avatar gaojianzhong avatar henryouly avatar hjianhao avatar insert0003 avatar iyuangang avatar lord63 avatar maojj avatar miaowm5 avatar rexdf avatar runbing avatar seff avatar skiinder avatar th0mass avatar timgates42 avatar wangshanpeng avatar whtsky avatar yiwenlu66 avatar zhu327 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kindleear's Issues

怎样进行rss定制以及logs出现的异常如何修正

2014-02-21 04:53:38.046 /deliver 500 8ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-21 04:53:38.045 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-21 03:53:37.932 /deliver 500 9ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-21 03:53:37.930 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-21 02:53:37.842 /deliver 500 48ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-21 02:53:37.840 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-21 01:53:37.684 /deliver 500 130ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-21 01:53:37.682 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-21 00:53:37.460 /deliver 500 9ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-21 00:53:37.458 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 23:53:37.413 /deliver 500 15ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 23:53:37.410 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 22:53:37.347 /deliver 500 16ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 22:53:37.344 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 21:53:37.217 /deliver 500 12ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 21:53:37.213 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 20:53:37.157 /deliver 500 9ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 20:53:37.156 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 19:53:37.041 /deliver 500 4462ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 19:53:37.029 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in
I 2014-02-20 19:53:37.041 This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This requ

2014-02-20 18:53:32.464 /deliver 500 47ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 18:53:32.461 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in
W 2014-02-20 18:53:32.464 After handling this request, the process that handled this request was found to have handled too many sequential errors, and was terminated. This is l

2014-02-20 17:53:32.368 /deliver 500 180ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 17:53:32.366 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 16:53:32.087 /deliver 500 10ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 16:53:32.084 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 15:53:31.985 /deliver 500 7ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 15:53:31.983 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 14:53:31.882 /deliver 500 12ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 14:53:31.880 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 13:53:31.836 /deliver 500 8ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 13:53:31.834 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 12:53:31.733 /deliver 500 8ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 12:53:31.731 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 11:53:31.692 /deliver 500 10ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 11:53:31.689 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 11:00:00.260 /removelogs 500 13ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 11:00:00.258 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

2014-02-20 10:53:31.587 /deliver 500 95ms 0kb AppEngine-Google; (+http://code.google.com/appengine) module=default version=1
E 2014-02-20 10:53:31.586 Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in

‹ Prev 20 1-20 Next 20 › (Bottom: 18:46:14 ago)

请教

最近在看你写的KindleEar的代码。有个问题:为什么要先生成OEB,再转成mobi?

send failed

投递不成功。失败

1

config.py配置如下:

!/usr/bin/env python

-- coding:utf-8 --

"""app的配置文件"""

SRC_EMAIL = "[email protected]" #邮件的发件人地址
TIMEZONE = 8 #默认时区

DEFAULT_MASTHEAD = "mh_default.gif" #如果书籍没有报头,则使用此报头。
DEFAULT_COVER = "cv_default.jpg" #如果书籍没有封面,则使用此封面,留空则不添加封面

自定义RSS的默认标题,后续可以在网页上修改,如果包含中文则需要在前面加u''

MY_FEEDS_TITLE = u'chenykindler'
MY_FEEDS_DESC = u'RSS delivering from chenykindler'

设置下载RSS和文章的超时时间,单位为秒,如果RSS很多,设置短一点有可能提高一些效率

但是也增加了下载超时的可能,超时则丢失超时的RSS或文章或图片,不会有更多的影响

(GAE默认为5秒)

CONNECTION_TIMEOUT = 25

True则发送邮件的文件名转换为拼音(如果是汉字的话)

PINYIN_FILENAME = False

True则每篇文章都自动检测编码,这会减慢一些处理速度,但是一般不会导致乱码

False则先使用上一篇文章的编码进行解码,如果失败再检测此文章编码,

因为每个RSS源的第一篇文章都强制检测一次编码,一般来说不会导致乱码,

并且处理性能好很多,如果有部分文章出现乱码,则需要设置此选项为True

否则还是推荐设置为False

ALWAYS_CHAR_DETECT = False

是否生成TOC的文章内容预览,如果使用非触摸版Kindle,没意义,因为看不到

对于kindle touch和kindle paperwhite可以设置为True。

GENERATE_TOC_DESC = True
TOC_DESC_WORD_LIMIT = 150 # 内容预览(摘要)字数限制

为减少文件大小,将大图片缩小为此尺寸,(Width,Height)

此尺寸是适应Kindle3的,如果你是完美主义者,可以设置为(568,682),扣除margin

如果你使用的是其他分辨率的机器,可以直接修改为其他值

REDUCE_IMAGE_TO = (600,800)

在使用[email protected]邮件转发时,是否删除CSS

删除CSS后阅读体验更佳,但是会丢失各种字体和颜色等排版信息

如果不删除CSS,则部分文本可能太小以致于难以阅读

当转换HTML时,Amazon的推送服务器会删除CSS

DELETE_CSS_FOR_APPSPOTMAIL = True

如果邮件中除链接外,正文少于多少个字则直接抓取链接,忽略正文

WORDCNT_THRESHOLD_FOR_APMAIL = 100

邮件转发时截取的标题长度

SUBJECT_WORDCNT_FOR_APMAIL = 16

白痴又来问问题了

deliver Time那一项 除了整点以外 可以修改增加其它时间点吗?比如23:30啊之类的 在哪儿修改............

自定义RSS发送出错了,使用的是最新版1.6.9,请帮忙看看

出现三处类似的ERROR请帮忙看看谢谢:
/worker?tz=8&to=chuliqiang%40kindle.com&u=admin&titlefmt=%25a%2C+%25b+%25d&type=mobi&id=5328783104016384 500 25214ms 0kb AppEngine-Google; (+http://code.google.com/appengine)

0.1.0.2 - - [12/Oct/2013:04:51:38 -0700] "GET /worker?tz=8&to=chuliqiang%40kindle.com&u=admin&titlefmt=%25a%2C+%25b+%25d&type=mobi&id=5328783104016384 HTTP/1.1" 500 135 "http://chuliqiang7.appspot.com/deliver" "AppEngine-Google; (+http://code.google.com/appengine)" "chuliqiang7.appspot.com" ms=25215 cpu_ms=13217 cpm_usd=0.002775 queue_name=deliverqueue1 task_name=6151571037722741052 app_engine_release=1.8.5 instance=00c61b117ca9e71c0550dd7e671d4614c4d15e

E 2013-10-12 04:51:38.109

Traceback (most recent call last):

E 2013-10-12 04:51:38.109

File "/base/data/home/apps/s~chuliqiang7/1.370789235130676979/web/application.py", line 239, in process

E 2013-10-12 04:51:38.109

return self.handle()

E 2013-10-12 04:51:38.109

File "/base/data/home/apps/s~chuliqiang7/1.370789235130676979/web/application.py", line 230, in handle

E 2013-10-12 04:51:38.109

return self._delegate(fn, self.fvars, args)

E 2013-10-12 04:51:38.110

File "/base/data/home/apps/s~chuliqiang7/1.370789235130676979/web/application.py", line 420, in _delegate

E 2013-10-12 04:51:38.110

return handle_class(cls)

E 2013-10-12 04:51:38.110

File "/base/data/home/apps/s~chuliqiang7/1.370789235130676979/web/application.py", line 396, in handle_class

E 2013-10-12 04:51:38.110

return tocall(*args)

E 2013-10-12 04:51:38.110

File "/base/data/home/apps/s~chuliqiang7/1.370789235130676979/main.py", line 697, in GET

E 2013-10-12 04:51:38.110

for sec_or_media, url, title, content, brief in book.Items(opts):

E 2013-10-12 04:51:38.110

File "/base/data/home/apps/s~chuliqiang7/1.370789235130676979/books/base.py", line 364, in Items

E 2013-10-12 04:51:38.110

for title, imgurl, imgfn, content, brief in readability(article,url,opts):

E 2013-10-12 04:51:38.110

File "/base/data/home/apps/s~chuliqiang7/1.370789235130676979/books/base.py", line 492, in readability

E 2013-10-12 04:51:38.110

img.parent.replace_with(img)

E 2013-10-12 04:51:38.110

File "/base/data/home/apps/s~chuliqiang7/1.370789235130676979/bs4/element.py", line 211, in replace_with

E 2013-10-12 04:51:38.110

my_index = self.parent.index(self)

E 2013-10-12 04:51:38.110

AttributeError: 'NoneType' object has no attribute 'index'

[question] 关于在python中import calibre的问题

抱歉打扰,我现在自己在写一个python应用想调用calibre的库,已经从git上下载了calibre源码,是在运行python setup.py install的时候会出现
File "C:\Users\emma_ping\Downloads\calibre-master\calibre-master\setup\build_e
nvironment.py", line 126, in
md = glob.glob(os.path.join(prefix, 'build', 'ImageMagick-*'))[-1]
IndexError: list index out of range

看了下build_environment, prefix是hardcode:
prefix = r'C:\cygwin\home\kovid\sw'

caliber官网上只写了要设置CALIBRE_DEVELOP_FROM环境变量,我设了本机calibre的src目录,没有用。

我现在直接把kindleear中的calibre包扔到python的site package下,一般功能可以使用了,但是我还是想知道你是怎么做到在python中直接import calibre的呢?

AZW3 File Format

Hi,
Can you add AZW3 option to book types? It supports justification.

要是添加个分享到Tumblr就好了

只要加一个http://www.tumblr.com/share/link?url=UrlEncode(url) 的超链接就好,点击之后会提示登录,只是不知道url保存在哪呢。。。
Timblr可以推送到Facebook和Twitter,感觉挺好用的。

1.9.2新版上传错误

下面是错误信息,我改了app.yaml里的kindleear和config.py中的邮箱和DOMAIN,此外没做其它修改,以前也是这样上传,这次会提示出错的原因会是什么?

C:\Users\Administrator\Desktop\kindleear_uploader>set PYTHONPATH=C:\Users\Admini
strator\Desktop\kindleear_uploader\DLLs;C:\Users\Administrator\Desktop\kindleear
_uploader\libs;C:\Users\Administrator\Desktop\kindleear_uploader\lib

C:\Users\Administrator\Desktop\kindleear_uploader>python.exe appcfg.py update ki
ndleear
11:06 AM Host: appengine.google.com
Error parsing yaml file:
mapping values are not allowed here
in "kindleear\app.yaml", line 1, column 27

C:\Users\Administrator\Desktop\kindleear_uploader>pause
请按任意键继续. . .

关于最新版本internal error的问题

在直接上传最新版本的之后,点击“我的订阅”会出现“internal error”,等待了六小时依然如此。后来查看后台,发现数据库indexes并未建立,然后上传了一个1.6.14版本,部署成功后后发现indexes建立成功,再次上传最新版本,可以使用

邮件转发失败

cdhigh兄好:

转发别的邮件都很正常,唯独这个邮件不行。
kindleEar已经更新到最新版。

0.1.0.20 - - [30/Oct/2013:17:24:49 -0700] "POST /_ah/mail/[email protected] HTTP/1.1" 200 84 - - "appid.appspot.com" ms=573 cpu_ms=347 cpm_usd=0.000009 app_engine_release=1.8.6 instance=00c61b117c986af4c0ec85effeb8d95cbf2b28c9

W 2013-10-31 08:24:49.350

Decode html bodies of mail failed.

W 2013-10-31 08:24:49.352

Decode text bodies of mail failed.

以下为配置文件:


!/usr/bin/env python

-- coding:utf-8 --

"""app的配置文件"""

SRC_EMAIL = "[email protected]" #邮件的发件人地址
TIMEZONE = 8 #默认时区

DEFAULT_MASTHEAD = "mh_default.gif" #如果书籍没有报头,则使用此报头。
DEFAULT_COVER = "cv_default.jpg" #如果书籍没有封面,则使用此封面,留空则不添加封面

自定义RSS的默认标题,后续可以在网页上修改,如果包含中文则需要在前面加u''

MY_FEEDS_TITLE = u'KindleEar'
MY_FEEDS_DESC = u'RSS delivering from KindleEar'

设置下载RSS和文章的超时时间,单位为秒,如果RSS很多,设置短一点有可能提高一些效率

但是也增加了下载超时的可能,超时则丢失超时的RSS或文章或图片,不会有更多的影响

(GAE默认为5秒)

CONNECTION_TIMEOUT = 25

True则发送邮件的文件名转换为拼音(如果是汉字的话)

PINYIN_FILENAME = False

True则每篇文章都自动检测编码,这会减慢一些处理速度,但是一般不会导致乱码

False则先使用上一篇文章的编码进行解码,如果失败再检测此文章编码,

因为每个RSS源的第一篇文章都强制检测一次编码,一般来说不会导致乱码,

并且处理性能好很多,如果有部分文章出现乱码,则需要设置此选项为True

否则还是推荐设置为False

ALWAYS_CHAR_DETECT = True

是否生成TOC的文章内容预览,如果使用非触摸版Kindle,没意义,因为看不到

对于kindle touch和kindle paperwhite可以设置为True。

GENERATE_TOC_DESC = False
TOC_DESC_WORD_LIMIT = 150 # 内容预览(摘要)字数限制

为减少文件大小,将大图片缩小为此尺寸,(Width,Height)

此尺寸是适应Kindle3的,如果你是完美主义者,可以设置为(568,682),扣除margin

如果你使用的是其他分辨率的机器,可以直接修改为其他值

REDUCE_IMAGE_TO = (568,682)

在使用[email protected]邮件转发时,是否删除CSS

删除CSS后阅读体验更佳,但是会丢失各种字体和颜色等排版信息

如果不删除CSS,则部分文本可能太小以致于难以阅读

当转换HTML时,Amazon的推送服务器会删除CSS

DELETE_CSS_FOR_APPSPOTMAIL = True

issue with RSS generated via Yahoo Pipes.

Hi when I use this RSS in my KindleEar copy (1.6.3) I get this error, is there anything I can do to solve this problem?:

2013-08-21 01:18:54.391 /worker?tz=3&to=xxxx%40yahoo.com&u=admin&titlefmt=%25m-%25d&type=mobi&id=5681726336532480 200 16451ms 0kb AppEngine-Google; (+http://code.google.com/appengine)
W 2013-08-21 01:18:38.254 feed item invalid,link to webpage for article.(Şahin Alpay - El Sisi, Uluslararası Ceza Mahkemesi'ni hak etti)
W 2013-08-21 01:18:38.255 feed item invalid,link to webpage for article.(Abdülhamit Bilici - İhvan'a kurulan tuzak)
W 2013-08-21 01:18:38.255 feed item invalid,link to webpage for article.(Ahmet HAKAN - Hakkınızı helal edin)
W 2013-08-21 01:18:38.255 feed item invalid,link to webpage for article.(Yılmaz ÖZDİL - Ben izindeyken...)
W 2013-08-21 01:18:38.256 feed item invalid,link to webpage for article.(Hasan Karakaya - İhsan Dağı, Yavuz Baydar... Gezi ödülleri verilmeye başlandı!)
W 2013-08-21 01:18:38.256 feed item invalid,link to webpage for article.(Taha AKYOL - Demokrasi ve İslamcılar)
W 2013-08-21 01:18:38.256 feed item invalid,link to webpage for article.(Abdurrahman Dilipak - Ebu Leheb, Ebu Cehil, Karun, Belam)

点击"Save to Wiz" 显示 Your Kindle is unable to load the requested page

我的是K4,这个链接我认为它会把内容保存到wiz,但是点击显示上面的文字。

Updated 1:可能是GFW封锁了Kindle访问*.appspot.com

Updated 2:设置了GFW选项,但是分享到Wiz出现”Some parameter is missing or wrong“。查看了代码,好像main.py里面的判断没有把wiz加进去

if not username or not url or
action not in ('evernote',): # 这里没有wiz?
return "Some parameter is missing or wrong!
"

1.6.17打不开https://chuliqiang7.appspot.com/my网页了

网页显示:internal server error
log:

2013-12-28 19:05:14.985 /my 500 47ms 0kb Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 module=default version=1
E 2013-12-28 19:05:14.984 Traceback (most recent call last):
E 2013-12-28 19:05:14.984 File "/base/data/home/apps/s~chuliqiang7/1.372665220638654106/web/application.py", line 239, in process
E 2013-12-28 19:05:14.984 return self.handle()
E 2013-12-28 19:05:14.984 File "/base/data/home/apps/s~chuliqiang7/1.372665220638654106/web/application.py", line 230, in handle
E 2013-12-28 19:05:14.984 return self._delegate(fn, self.fvars, args)
E 2013-12-28 19:05:14.984 File "/base/data/home/apps/s~chuliqiang7/1.372665220638654106/web/application.py", line 420, in _delegate
E 2013-12-28 19:05:14.984 return handle_class(cls)
E 2013-12-28 19:05:14.984 File "/base/data/home/apps/s~chuliqiang7/1.372665220638654106/web/application.py", line 396, in handle_class
E 2013-12-28 19:05:14.984 return tocall(*args)
E 2013-12-28 19:05:14.984 File "/base/data/home/apps/s~chuliqiang7/1.372665220638654106/main.py", line 488, in GET
E 2013-12-28 19:05:14.984 books=Book.all().filter("builtin = ",True),myfeeds=myfeeds,tips=tips)
E 2013-12-28 19:05:14.984 File "/base/data/home/apps/s~chuliqiang7/1.372665220638654106/main.py", line 210, in render
E 2013-12-28 19:05:14.984 return jjenv.get_template(templatefile).render(title=title, **kwargs)
E 2013-12-28 19:05:14.984 File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/jinja2-2.6/jinja2/environment.py", line 894, in render
E 2013-12-28 19:05:14.984 return self.environment.handle_exception(exc_info, True)
E 2013-12-28 19:05:14.984 File "templates/my.html", line 1, in top-level template code
E 2013-12-28 19:05:14.984 {% extends "base.html" %}
E 2013-12-28 19:05:14.984 File "templates/base.html", line 67, in top-level template code
E 2013-12-28 19:05:14.984 {% block content %}
E 2013-12-28 19:05:14.984 File "templates/my.html", line 28, in block "content"
E 2013-12-28 19:05:14.984 {% for feed in myfeeds %}
E 2013-12-28 19:05:14.984 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/db/__init__.py", line 2326, in next
E 2013-12-28 19:05:14.984 return self.__model_class.from_entity(self.__iterator.next())
E 2013-12-28 19:05:14.984 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2891, in next
E 2013-12-28 19:05:14.984 next_batch = self.__batcher.next()
E 2013-12-28 19:05:14.984 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2753, in next
E 2013-12-28 19:05:14.984 return self.next_batch(self.AT_LEAST_ONE)
E 2013-12-28 19:05:14.984 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2790, in next_batch
E 2013-12-28 19:05:14.984 batch = self.__next_batch.get_result()
E 2013-12-28 19:05:14.984 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 612, in get_result
E 2013-12-28 19:05:14.984 return self.__get_result_hook(self)
E 2013-12-28 19:05:14.984 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2542, in __query_result_hook
E 2013-12-28 19:05:14.984 yaml_index=yaml, xml_index=xml)
E 2013-12-28 19:05:14.984 NeedIndexError: The index for this query is not ready to serve. See the Datastore Indexes page in the Admin Console.
E 2013-12-28 19:05:14.984 The suggested index for this query is:
E 2013-12-28 19:05:14.984 - kind: Feed
E 2013-12-28 19:05:14.984 properties:
E 2013-12-28 19:05:14.984 - name: book
E 2013-12-28 19:05:14.984 - name: time

点击我的订阅出现internal server error

出现internal server error

2014-01-26 18:23:52.019 /logs 500 90ms 0kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36 AppEngine-Google; (+http://code.google.com/appengine; appid: stest9053) module=default version=1
E 2014-01-26 18:23:52.017 Traceback (most recent call last):
E 2014-01-26 18:23:52.017 File "/base/data/home/apps/s
rss4edison/1.373336992507142896/web/application.py", line 239, in process
E 2014-01-26 18:23:52.017 return self.handle()
E 2014-01-26 18:23:52.017 File "/base/data/home/apps/srss4edison/1.373336992507142896/web/application.py", line 230, in handle
E 2014-01-26 18:23:52.017 return self._delegate(fn, self.fvars, args)
E 2014-01-26 18:23:52.017 File "/base/data/home/apps/s
rss4edison/1.373336992507142896/web/application.py", line 420, in _delegate
E 2014-01-26 18:23:52.017 return handle_class(cls)
E 2014-01-26 18:23:52.017 File "/base/data/home/apps/srss4edison/1.373336992507142896/web/application.py", line 396, in handle_class
E 2014-01-26 18:23:52.017 return tocall(*args)
E 2014-01-26 18:23:52.017 File "/base/data/home/apps/s
rss4edison/1.373336992507142896/main.py", line 1126, in GET
E 2014-01-26 18:23:52.017 mylogs = DeliverLog.all().filter("username = ", user.name).order('-time').fetch(limit=10)
E 2014-01-26 18:23:52.017 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/db/init.py", line 2157, in fetch
E 2014-01-26 18:23:52.017 return list(self.run(limit=limit, offset=offset, **kwargs))
E 2014-01-26 18:23:52.017 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/db/init.py", line 2326, in next
E 2014-01-26 18:23:52.017 return self.__model_class.from_entity(self.__iterator.next())
E 2014-01-26 18:23:52.017 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2891, in next
E 2014-01-26 18:23:52.017 next_batch = self.__batcher.next()
E 2014-01-26 18:23:52.017 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2753, in next
E 2014-01-26 18:23:52.017 return self.next_batch(self.AT_LEAST_ONE)
E 2014-01-26 18:23:52.017 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2790, in next_batch
E 2014-01-26 18:23:52.017 batch = self.__next_batch.get_result()
E 2014-01-26 18:23:52.017 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 612, in get_result
E 2014-01-26 18:23:52.017 return self.__get_result_hook(self)
E 2014-01-26 18:23:52.017 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2542, in __query_result_hook
E 2014-01-26 18:23:52.017 yaml_index=yaml, xml_index=xml)
E 2014-01-26 18:23:52.017 NeedIndexError: The index for this query is not ready to serve. See the Datastore Indexes page in the Admin Console.
E 2014-01-26 18:23:52.017 The suggested index for this query is:
E 2014-01-26 18:23:52.017 - kind: DeliverLog
E 2014-01-26 18:23:52.017 properties:
E 2014-01-26 18:23:52.017 - name: username
E 2014-01-26 18:23:52.017 - name: time
E 2014-01-26 18:23:52.017 direction: desc

Default Chinese books

If possible could you set the app settings so that default Chinese books only visible when Chinese is chosen as the interface language? Also for Turkish, etc. Or as a better way you can add a checkbox to choose the languages that will be allowed to show in that area.

无法自动定时推送,手动推送则可用

搜了一下好像有人跟我问题一样,
#31

gae的日志看不懂啊

2014-03-27 18:43:43.230 /my 500 41ms 0kb Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36 module=default version=1
E 2014-03-27 18:43:43.229 Traceback (most recent call last):
E 2014-03-27 18:43:43.229 File "/base/data/home/apps/skindlexeeqing/1.374713553351548450/web/application.py", line 239, in process
E 2014-03-27 18:43:43.229 return self.handle()
E 2014-03-27 18:43:43.229 File "/base/data/home/apps/s
kindlexeeqing/1.374713553351548450/web/application.py", line 230, in handle
E 2014-03-27 18:43:43.229 return self._delegate(fn, self.fvars, args)
E 2014-03-27 18:43:43.229 File "/base/data/home/apps/skindlexeeqing/1.374713553351548450/web/application.py", line 420, in _delegate
E 2014-03-27 18:43:43.229 return handle_class(cls)
E 2014-03-27 18:43:43.229 File "/base/data/home/apps/s
kindlexeeqing/1.374713553351548450/web/application.py", line 396, in handle_class
E 2014-03-27 18:43:43.229 return tocall(_args)
E 2014-03-27 18:43:43.229 File "/base/data/home/apps/skindlexeeqing/1.374713553351548450/main.py", line 658, in GET
E 2014-03-27 18:43:43.229 books=Book.all().filter("builtin = ",True),myfeeds=myfeeds,tips=tips)
E 2014-03-27 18:43:43.229 File "/base/data/home/apps/s
kindlexeeqing/1.374713553351548450/main.py", line 311, in render
E 2014-03-27 18:43:43.229 return jjenv.get_template(templatefile).render(title=title, *_kwargs)
E 2014-03-27 18:43:43.229 File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/jinja2-2.6/jinja2/environment.py", line 894, in render
E 2014-03-27 18:43:43.229 return self.environment.handle_exception(exc_info, True)
E 2014-03-27 18:43:43.229 File "templates/my.html", line 1, in top-level template code
E 2014-03-27 18:43:43.229 {% extends "base.html" %}
E 2014-03-27 18:43:43.229 File "templates/base.html", line 75, in top-level template code
E 2014-03-27 18:43:43.229 {% block content %}
E 2014-03-27 18:43:43.229 File "templates/my.html", line 6, in block "content"
E 2014-03-27 18:43:43.229 {% for feed in myfeeds -%}
E 2014-03-27 18:43:43.229 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/db/init.py", line 2326, in next
E 2014-03-27 18:43:43.229 return self.__model_class.from_entity(self.__iterator.next())
E 2014-03-27 18:43:43.229 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2893, in next
E 2014-03-27 18:43:43.229 next_batch = self.__batcher.next()
E 2014-03-27 18:43:43.229 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2755, in next
E 2014-03-27 18:43:43.229 return self.next_batch(self.AT_LEAST_ONE)
E 2014-03-27 18:43:43.229 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2792, in next_batch
E 2014-03-27 18:43:43.229 batch = self.__next_batch.get_result()
E 2014-03-27 18:43:43.229 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 612, in get_result
E 2014-03-27 18:43:43.229 return self.__get_result_hook(self)
E 2014-03-27 18:43:43.229 File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2544, in __query_result_hook
E 2014-03-27 18:43:43.229 yaml_index=yaml, xml_index=xml)
E 2014-03-27 18:43:43.229 NeedIndexError: The index for this query is not ready to serve. See the Datastore Indexes page in the Admin Console.
E 2014-03-27 18:43:43.229 The suggested index for this query is:
E 2014-03-27 18:43:43.229 - kind: Feed
E 2014-03-27 18:43:43.229 properties:
E 2014-03-27 18:43:43.229 - name: book
E 2014-03-27 18:43:43.229 - name: time

请问如何添加书?

如果做好了对应的py,放进books目录
用uploader重新上传的话,是不是之前设置的东西(用户、密码、订阅、推送时间设置)全会丢失?现在不敢贸然行动……
如果是这样,应该如何只上传这几个py,而不改动其他文件呢?

KindleEar能不能共用Wordpress的用户系统

现在KindleEar的用户是独立的,如果想把KindleEar和Wordpress的用户系统关联起来,让KindleEar共用Wordpress的用户系统,有没有可能?我看了下Python和Php好想很难通信似的,有没有实现的思路?

Time zone

How to set time zone +5.30?
Manually...

目录跳转有问题,请求帮忙解决!

目前的MOBI生成模块在生成杂志模式MOBI发送到kindle还存在此BUG,请求高人帮忙解决。
问题描述:
目前每次在文章中按“View Sections & Articles”后会跳到目录的第一项,而使用kindlegen和calibre生成的MOBI每次按"View Sections & Articles"都会跳到你正在看的这篇文章对应的目录项。

提交至GAE出现报错

C:\kindleear_uploader>set PYTHONPATH=C:\kindleear_uploader\DLLs;C:\kindleear_upl
oader\libs;C:\kindleear_uploader\lib

C:\kindleear_uploader>python.exe appcfg.py update kindleear
08:12 PM Host: appengine.google.com
08:12 PM Host: appengine.google.com
Usage: appcfg.py [options] update | [file, ...]

appcfg.py: error: Directory does not contain an kindleear.yaml configuration fil
e.

C:\kindleear_uploader>pause
请按任意键继续. . .

how can I add localisation for another language

What should I do apart from adding reated files on i18n/tr to have a Turkish localisation for your app?

also I need "Turkish" option on Custom RSS language settings. If possiible could you add it? if not then how could I add it to my copy?
image

推送内容其中的一个订阅源的内容出现了乱码

我订阅了一个Feed叫“i黑马”地址是:

http://www.iheima.com/index.php?m=content&c=rssall&rssid=9

一直以来都没问题,但是今天这个订阅里面的内容突然全部变成乱码了:

screenshot_2014_03_08t10_05_27 0800

程序没有任何修改,直接打开那个Feed地址也是正常的。我看之前Issue有反馈乱码的问题,我在config.py把那个ALWAYS_CHAR_DETECT页改成乐True,然后重新生成推送了一下,问题依旧。

很不好意思又麻烦你来了~ :目

保存到 evernote 与映像笔记

在归档与分享的 - 在每篇文章后附加 'Save to evernote' 超链接
在下面填上我的映像笔记邮箱账号, 保存不成功, 然后我查了下映像笔记与evernote的区别, 两者的账号竟然不能通用, 但是我的笔记都是保存在映像笔记中, 所以不知道如果支持映像笔记, 需要修改哪些代码?

补充
在main.py 中, advshare, share class 与sendhtmlemail 方法中, 没有找到哪里对evernote 的邮箱地址含有evernote 还是yingxiang 进行校验

自动定时投递不起作用

下午部署到GAE上的,填好基本设置设定了投递时间为20:00,并且自动投递的两个都勾起来了,发现自动定时投递没有起作用。点击现在投递是没问题的,可以推送。是不是还要配置什么?我对GAE不了解。

自定义RSS存在Bug?

如下的 RSS :http://feeds.feedburner.com/shuzishuaishuai
无论使用什么订阅方式(isfulltext),到了Kindle Touch后都看不到内容,只有标题。但是实际上是应该显示内容的,我试过,其他RSS阅读都可以显示,只有KindleEar不可以。

请核实一下。

关于知乎日报和yahoopipe

非常感谢作者的辛苦。在研究yahoo pipe时深深被各种不规范的rss源困扰
用1.6.16时有3个小问题
1 使用自带的知乎日报的源,appengine中总会提示 skipped http://daily.zhihu.com/story/XXXXX,每天大概4-5条。什么原因?
2 kindleear和yahoo pipe配合有什么要注意的?是不是要把全文的勾去掉?我的订阅pipe源有时出现fetch rss failed(504)什么原因?(源没有问题,全文也试验了)
3 配置里面如果修改CONNECTION_TIMEOUT = 30对上面两个问题有帮助吗?
1.7正在试用中

1.7不能推送

自动推送手动推送都不行,回滚1.6.17就正常了

喷嚏图卦已经很多天没有图片了 http://code.google.com/appengine上面说 取IMG失败(错误:450)

看到你在hipda上说推送到别的邮箱再转发到kindle设备,极快捷,几分钟就推送到设备了,我用139邮箱转发的。

配置成功之后访问慢

按照readme中的说明配置完成了, 可以访问, 推送也可以, 但是每次都需要刷新n 多遍才能进去, 每按一个按钮有需要刷新n 多遍, 才能进去.
第一次推送, 选择了立刻推送, 然后页面老是访问失败, 刷新了n 多遍, 才正常显示, 但是进入到amazon的管理kindle 界面一看, 同一个文件被推送了十几次.

Cloud API

I want to transfer downloaded book to any cloud service using api like gdrive,dropbox,etc instead of email. How to do that? means how to use generated ebook before its deletion?

instapaper 不支持GB2312

def fetcharticle(self, url, decoder):
"""链接网页获取一篇文章"""
if self.fulltext_by_instapaper and not self.fulltext_by_readability:
url = "http://www.instapaper.com/m?u=%s" % self.url_unescape(url)

但instapaper 不支持GB2312,会不会出问题?

重复投递的问题

非常感谢你提供的这个KindleEar,很是喜欢。在使用中遇到一个问题,就是定时推送功能出现重复。我查看投递日志,显示只推送了一条,但是Amazon的个人文档里却出现重复的两份。请问这是哪里的问题?

补充:好像在我点击手动推送之后,第二天自动推送就会出现这个问题。

030a18ba-89ad-461b-a1d6-f0d7939b7377

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.