# HG changeset patch # User Steve Losh # Date 1319416871 14400 # Node ID fcd5abfaeff4b05ddaa742f6d0d4d3fbd23cf25b # Parent 540b3d6bc2bcdac4046905295d452b92cc98d4a6 Store shows before notifying so we get the right title in the email. diff -r 540b3d6bc2bc -r fcd5abfaeff4 src/newseasons/loops/refresh.clj --- a/src/newseasons/loops/refresh.clj Sun Oct 23 20:22:13 2011 -0400 +++ b/src/newseasons/loops/refresh.clj Sun Oct 23 20:41:11 2011 -0400 @@ -42,8 +42,8 @@ (println " refreshing" id) (let [show (itunes/itunes-lookup-seasons id)] (when show - (check-and-notify show) - (shows/store-raw-show show)) + (shows/store-raw-show show) + (check-and-notify show)) (Thread/sleep 10000))) (defn- refresh []