From 4bc052c99e4631cbd242da84f41a2d68cb311f40 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Tue, 29 Dec 2015 23:58:30 +0100 Subject: [PATCH 1/2] Fix #4 (missing book covers) It seems lovelybooks changed the storage place for the covers from the own webserver to Amazon S3. So I don't need to add http to it. --- src/buchdesmonats/core.clj | 1 - 1 file changed, 1 deletion(-) diff --git a/src/buchdesmonats/core.clj b/src/buchdesmonats/core.clj index f89382b..258b4dd 100644 --- a/src/buchdesmonats/core.clj +++ b/src/buchdesmonats/core.clj @@ -32,7 +32,6 @@ (html/select [:div.bookcoverXXL :> :div :> :img]) first (get-in [:attrs :src]) - (#(str "http:" %)) (http-client/get {:as :byte-array}) :body)) From 52807edc1680e459186f1ab53ff36e050a324918 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Wed, 30 Dec 2015 00:00:24 +0100 Subject: [PATCH 2/2] Upgrade packages, switch to Clojure 1.7 and clj-http 2.0.0 --- project.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/project.clj b/project.clj index c2b868e..99f6765 100644 --- a/project.clj +++ b/project.clj @@ -1,13 +1,13 @@ -(defproject buchdesmonats "1.2" +(defproject buchdesmonats "1.3" :description "A simple tool to fetch all books of the month from the okoyono.de project." :url "https://git.okoyono.de/mezzomix/buch_des_monats" :license {:name "MIT License" :url "http://opensource.org/licenses/MIT"} - :dependencies [[org.clojure/clojure "1.6.0"] + :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/tools.logging "0.3.1"] - [enlive "1.1.5"] + [enlive "1.1.6"] [me.raynes/fs "1.4.6"] - [clj-http "1.1.2"]] + [clj-http "2.0.0"]] :main ^:skip-aot buchdesmonats.core :profiles {:uberjar {:aot :all}})