Commits

Steve Losh committed 893382a

Moar.

Comments (0)

Files changed (2)

                            [cheshire "2.0.2"]
                            [clj-http "0.2.1"]
                            [aleph "0.2.0-beta2"]]
-            :main newseasons.server)
+            :main newseasons.server
+            :run-aliases {:refresh newseasons.loops.refresh/main})
 

src/newseasons/loops/refresh.clj

 (defn- refresh-show [id]
   (println "  refreshing" id)
   (let [show (itunes/itunes-lookup-seasons id)]
-    (println show)
-    (println "    ->" (show "artistName"))
+    (when show
+      (println "    ->" (show "artistName")))
     (Thread/sleep 5000)))
 
 (defn- refresh []
 
 (defn main [& args]
   (println "Starting Refresh Loop!")
-  (println)
+  (println "----------------------")
   (dorun (repeatedly refresh)))