CS: Use local copy of donate button image

This commit is contained in:
Kovid Goyal 2010-10-27 07:49:36 -06:00
parent 4a4e912662
commit c7022e88eb
4 changed files with 7 additions and 2 deletions

View File

@ -58,7 +58,7 @@
<input type="hidden" name="cmd" value="_s-xclick"></input> <input type="hidden" name="cmd" value="_s-xclick"></input>
<input type="hidden" name="hosted_button_id" value="3028915"></input> <input type="hidden" name="hosted_button_id" value="3028915"></input>
<input type="image" <input type="image"
src="http://calibre-ebook.com/site_media//img/button-donate.png" src="/static/button-donate.png"
name="submit"></input> name="submit"></input>
<img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" <img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif"
width="1" height="1"></img> width="1" height="1"></img>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -37,6 +37,7 @@ def get_social_metadata(title, authors, publisher, isbn):
if isbn: if isbn:
br = browser() br = browser()
response_xml = br.open('http://status.calibre-ebook.com/aws/metadata/'+isbn).read() response_xml = br.open('http://status.calibre-ebook.com/aws/metadata/'+isbn).read()
print 1111111, response_xml
root = etree.fromstring(response_xml) root = etree.fromstring(response_xml)
try: try:
check_for_errors(root, isbn) check_for_errors(root, isbn)
@ -63,6 +64,8 @@ def get_social_metadata(title, authors, publisher, isbn):
if num_of_reviews > 4 and rating > 0 and rating < 5: if num_of_reviews > 4 and rating > 0 and rating < 5:
mi.rating = rating mi.rating = rating
except: except:
import traceback
traceback.print_exc()
pass pass
tags = [x.text for x in root.findall('.//%s/%s'%(AWS('Subjects'), tags = [x.text for x in root.findall('.//%s/%s'%(AWS('Subjects'),
AWS('Subject')))] AWS('Subject')))]

View File

@ -463,5 +463,7 @@ Finally, you can add downloaded news to the |app| library with::
/opt/calibre/calibredb add --with-library /path/to/library outfile.epub /opt/calibre/calibredb add --with-library /path/to/library outfile.epub
Remember to read the command line documentatation section of the |app| User Manual to learn more about these, and other commands. Remember to read the command line documentation section of the |app| User Manual to learn more about these, and other commands.
.. note:: Some parts of calibre require a X server. If you're lucky, nothing you do will fall into this category, if not, you will have to look into using xvfb.