diff options
author | Sebastian Dziallas <sebastian@when.com> | 2009-11-29 15:28:59 (GMT) |
---|---|---|
committer | Sebastian Dziallas <sebastian@when.com> | 2009-11-29 15:28:59 (GMT) |
commit | 93623f42992a490fc98e586679c68b9b4a4ae5b1 (patch) | |
tree | d233554d28cecf6ebe8a168eb7ab8674dddbf06d | |
parent | 7dabfb2350b98ef2f20525084d0dfd1fa78dd2b0 (diff) |
let "Max und Moritz" and "Les Voyages Extraordinaires" in
-rwxr-xr-x | copy-to-datastore.py | 13 | ||||
-rw-r--r-- | soas-aslo-and-content.ks | 16 |
2 files changed, 28 insertions, 1 deletions
diff --git a/copy-to-datastore.py b/copy-to-datastore.py index 850ac75..c52292c 100755 --- a/copy-to-datastore.py +++ b/copy-to-datastore.py @@ -67,6 +67,19 @@ def create_entry(filename, meta): create_content_file(metadata_path, 'tags', tags) files = ( + ("pg11589-images.epub", + {"title": "Les Voyages Extraordinaires de Jules Verne", + "mime_type": "application/epub+zip", + "description": "Couronnés par l'Académie française", + "tags": "Romance Literature", + }), + ("pg17161-images.epub", + {"title": "Max und Moritz von Wilhelm Busch", + "mime_type": "application/epub+zip", + "description": "Eine Bubengeschichte in sieben Streichen", + "tags": "Juvenile Belles Lettres", + }), + ("carroll-alice-in-wonderland-illustrations.epub", {"title": "A Christmas Carol by Charles Dickens", "mime_type": "application/epub+zip", diff --git a/soas-aslo-and-content.ks b/soas-aslo-and-content.ks index 0c8abaa..133b12c 100644 --- a/soas-aslo-and-content.ks +++ b/soas-aslo-and-content.ks @@ -98,7 +98,7 @@ for pdf in $PDFS ; do cp -p $bundle $BUNDLES_DIR done -# pull e-books for inclusion +# e-books from epubbooks.com EPUB="$EPUB 1/dickens-a-christmas-carol-illustrations" # A Christmas Carol EPUB="$EPUB 7/carroll-alice-in-wonderland-illustrations" # Alice in Wonderland EPUB="$EPUB 19/baum-dorothy-and-the-wizard-in-oz-illustrations" # Dorothy and the Wizard in Oz @@ -115,6 +115,20 @@ for epub in $EPUB ; do cp -p $bundle $BUNDLES_DIR done +# e-books from project gutenberg +EPUB="$EPUB 11589" # Les Voyages Extraordinaires +EPUB="$EPUB 17161" # Max und Moritz + +for epub in $EPUB ; do + url=http://www.gutenberg.org/cache/epub/$epub/pg$epub-images.epub + remote_file=$(basename $(curl -4 -s -L -w %{url_effective} -I $url | tail -1)) + bundle=$CACHE_DIR/$remote_file + if [ ! -f $bundle ] ; then + curl -s -4 -L $url > $bundle + fi + cp -p $bundle $BUNDLES_DIR +done + # get the script to install the activities cp -p $WD/../install-activity.py . chmod a+x ./install-activity.py |