       (load-if-not-exist
        (partial get-chapters-by-index active-content)
        (fn [[_ {path :path}]]
-         (rdb/download-json remote-db path)))
+         (rdb/download-json remote-db path))
+       (fn [chapters]
+         (dispatch [:chapter-load 0 (nth chapters 0)])
+         (dispatch [:chapters-load-success chapters])))
       (.catch (fn [err]
                 (if (= (.-message err) "Network request failed")
                   (dispatch [:show-network-error])


;; TODO: think about lenses

(defn get-serial-by-index [content index]
  (-> content
      (nth (first index))))

(defn get-seasons-by-index [content index]
  (-> (get-serial-by-index content index)


(defn get-chapter-by-index [content index]
  (-> (get-chapters-by-index content index)
      (save-nth (-> index (rest) (rest) (first)))))

(defn load-if-not-exist
  ([getter load-fn on-loaded]
